[03:00:42]OFD Sender: No OFD packet to send [03:00:47]OFD Sender: No OFD packet to send [03:00:52]OFD Sender: No OFD packet to send [03:00:57]OFD Sender: No OFD packet to send [03:01:02]OFD Sender: No OFD packet to send [03:01:07]OFD Sender: No OFD packet to send [03:01:12]OFD Sender: No OFD packet to send [03:01:17]OFD Sender: No OFD packet to send [03:01:22]OFD Sender: No OFD packet to send [03:01:27]OFD Sender: No OFD packet to send [03:01:32]OFD Sender: No OFD packet to send [03:01:37]OFD Sender: No OFD packet to send [03:01:42]OFD Sender: No OFD packet to send [03:01:47]OFD Sender: No OFD packet to send [03:01:52]OFD Sender: No OFD packet to send [03:01:57]OFD Sender: No OFD packet to send [03:02:02]OFD Sender: No OFD packet to send [03:02:07]OFD Sender: No OFD packet to send [03:02:12]OFD Sender: No OFD packet to send [03:02:17]OFD Sender: No OFD packet to send [03:02:22]OFD Sender: No OFD packet to send [03:02:27]OFD Sender: No OFD packet to send [03:02:32]OFD Sender: No OFD packet to send [03:02:37]OFD Sender: No OFD packet to send [03:02:42]OFD Sender: No OFD packet to send [03:02:47]OFD Sender: No OFD packet to send [03:02:52]OFD Sender: No OFD packet to send [03:02:57]OFD Sender: No OFD packet to send [03:03:02]OFD Sender: No OFD packet to send [03:03:03]accept exits with 8 [03:03:03]New connection [03:03:03]New thread 3067317604 created [03:03:03]Thread 3067460964 joined [03:03:03]Waiting for new connection... [03:03:03] Sock 8.Parse request [03:03:03]Sock 8.Check first char [03:03:03]Sock 8.First char is OK [03:03:03]request: POST /json_proto HTTP/1.0 [03:03:03]Method: POST [03:03:03]URL: /json_proto [03:03:03]Method is POST - this is cgi request [03:03:03]url: /json_proto [03:03:03]query_string will be loaded in cgi processing [03:03:03]execute_cgi json_proto POST (null) [03:03:03]execute_cgi path=json_proto method=POST [03:03:03]POST find Content-Length [03:03:03]Host: 172.17.45.132:8080 [03:03:03]Content-Length: 670 [03:03:03]Content-Type: application/json [03:03:03] [03:03:03]POST finish read [03:03:03]Found Content-Length = 670 [03:03:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126278", "tax_sys" : 0, "items" : [ { "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 170.00, "quantity" : 3.000, "sum" : 510.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 510.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:03:03]execute_script... [03:03: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)126278", "tax_sys" : 0, "items" : [ { "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 170.00, "quantity" : 3.000, "sum" : 510.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 510.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:03:03]POST & json_proto [03:03:03]process_json_proto [03:03:03]json parsed OK: [03:03:03]protocol is kg_v1.0 [03:03:03]action value=close_receipt [03:03:03]process_action close_receipt [03:03:03]cmd_close_receipt [03:03:03]MH_GetDate [03:03:03]Write to MH i2c: F0 00 00 48 32 69 [03:03:03]Write i2c OK [03:03:03]MH_I2C_Read... [03:03:03]Read from MH i2c: F0 [03:03:03]MH_I2C_Read... [03:03:03]Read from MH i2c: F0 09 00 [03:03:03]MH_I2C_Read... [03:03:03]Read from MH i2c: F0 09 00 48 32 00 EB B4 A5 66 E3 0B 90 66 00 [03:03:03]GetLastDocTimeStamp 1722135518 [03:03:03]current date 1722135787 [03:03:03]FM_GetShiftState [03:03:03]SAM_PROTO_GetShiftState [03:03:03]wFMCommunicate request_size=4 [03:03:03]MH_SAM_APDU [03:03:03]CAPDU: 80 13 01 00 [03:03:03]Write to MH i2c: E2 08 00 49 32 80 13 01 00 00 00 00 00 F8 [03:03:03]Write i2c OK [03:03:03]MH_I2C_Read... [03:03:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:03:03]Read from MH i2c: E2 [03:03:03]MH_I2C_Read... [03:03:03]Read from MH i2c: E2 0E 00 [03:03:03]MH_I2C_Read... [03:03:03]Read from MH i2c: E2 0E 00 49 32 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 EC [03:03:03]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [03:03:03]wFMCommunicate OK [03:03:03]SAM_PROTO_GetShiftState done [03:03:03]FM_GetShiftState done [03:03:03]opened in 1722125648 [03:03:03]opened+sec_in_day 1722212048 [03:03:03]quantity*price = 51000 [03:03:03]sum+1 = 51001 [03:03:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 510.00 НСП 1% : 4.51 НДС 12% : 54.16 Наличными: 510.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 19 28.07.2024 03:03 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 1968 ФПД: 95186796812302 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T030307&type=1&operation_type=1&fn_number=0000000002094248&fd_number=1968&fm=95186796812302&tin=02508201610067®Number=0000000000189667&sum=51000 0 [03:03:04]StoreToDocumentArchive [03:03:04]shift 13 fd 1968 [03:03:04]save to /storage/0013/doc_00001968 [03:03:04]save last doc name /storage/0013/doc_00001968 to /storage/kkm_last_doc_name [03:03:04]save OK [03:03:04]Clear old archive folders... [03:03:04]ProcessDocumentItem done err = 0, tmpTLVsize=282 [03:03:04]tlvbuf is 020341D0 [03:03:04]SAM_PROTO_ClearQueue [03:03:04]wFMCommunicate request_size=4 [03:03:04]MH_SAM_APDU [03:03:04]CAPDU: 80 09 00 00 [03:03:04]Write to MH i2c: E2 08 00 56 32 80 09 00 00 00 00 00 00 FA [03:03:04]Write i2c OK [03:03:04]MH_I2C_Read... [03:03:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:03:04]Read from MH i2c: E2 [03:03:04]MH_I2C_Read... [03:03:04]Read from MH i2c: E2 03 00 [03:03:04]MH_I2C_Read... [03:03:04]Read from MH i2c: E2 03 00 56 32 00 90 00 FC [03:03:04]RAPDU: 90 00 [03:03:04]wFMCommunicate OK [03:03:04]SAM_PROTO_ClearQueue done [03:03:04]KKMCreateOFDPacket [03:03:04]OFDProtocolAddRootSTLVToBuf [03:03:04]FM_MakeSignedData [03:03:04]FM_MakeSignedData [03:03:04]SAM_PROTO_SignData [03:03:04]wFMCommunicate request_size=4 [03:03:04]MH_SAM_APDU [03:03:04]CAPDU: 80 0D 01 02 [03:03:04]Write to MH i2c: E2 08 00 57 32 80 0D 01 02 00 00 00 00 02 [03:03:04]Write i2c OK [03:03:04]MH_I2C_Read... [03:03:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:03:04]Read from MH i2c: E2 [03:03:04]MH_I2C_Read... [03:03:04]Read from MH i2c: E2 03 00 [03:03:04]MH_I2C_Read... [03:03:04]Read from MH i2c: E2 03 00 57 32 00 90 00 FD [03:03:04]RAPDU: 90 00 [03:03:04]wFMCommunicate OK [03:03:04]wFMCommunicate request_size=255 [03:03:04]MH_SAM_APDU [03:03:04]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 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 68 42 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 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 15 00 00 00 00 07 04 06 00 38 C7 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 EB B4 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 [03:03:04]Write to MH i2c: E2 02 01 58 32 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 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 68 42 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 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 15 00 00 00 00 07 04 06 00 38 C7 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 EB B4 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 00 00 14 [03:03:04]Write i2c OK [03:03:04]MH_I2C_Read... [03:03:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:03:05]Read from MH i2c: E2 [03:03:05]MH_I2C_Read... [03:03:05]Read from MH i2c: E2 03 00 [03:03:05]MH_I2C_Read... [03:03:05]Read from MH i2c: E2 03 00 58 32 00 90 00 FE [03:03:05]RAPDU: 90 00 [03:03:05]wFMCommunicate OK [03:03:05]wFMCommunicate request_size=41 [03:03:05]MH_SAM_APDU [03:03:05]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 B0 07 00 00 35 04 06 00 56 92 67 36 18 0E [03:03:05]Write to MH i2c: E2 2C 00 59 32 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 B0 07 00 00 35 04 06 00 56 92 67 36 18 0E 00 00 33 [03:03:05]Write i2c OK [03:03:05]MH_I2C_Read... [03:03:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:03:05]Read from MH i2c: E2 [03:03:05]MH_I2C_Read... [03:03:05]Read from MH i2c: E2 03 00 [03:03:05]MH_I2C_Read... [03:03:05]Read from MH i2c: E2 03 00 59 32 00 90 00 FF [03:03:05]RAPDU: 90 00 [03:03:05]wFMCommunicate OK [03:03:05]wFMCommunicate request_size=4 [03:03:05]MH_SAM_APDU [03:03:05]CAPDU: 80 0D 03 02 [03:03:05]Write to MH i2c: E2 08 00 5A 32 80 0D 03 02 00 00 00 00 07 [03:03:05]Write i2c OK [03:03:05]MH_I2C_Read... [03:03:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:03:05]Read from MH i2c: E2 [03:03:05]MH_I2C_Read... [03:03:05]Read from MH i2c: E2 0B 00 [03:03:05]MH_I2C_Read... [03:03:05]Read from MH i2c: E2 0B 00 5A 32 00 AC 42 5D B8 80 6D 20 D4 90 00 EC [03:03:05]RAPDU: AC 42 5D B8 80 6D 20 D4 90 00 [03:03:05]wFMCommunicate OK [03:03:05]SAM_PROTO_SignData done [03:03:05]FM_MakeSignedData done [03:03:05]CreateOFDProtocolMessage [03:03:05]wFMCommunicate request_size=4 [03:03:05]MH_SAM_APDU [03:03:05]CAPDU: 80 11 00 00 [03:03:05]Write to MH i2c: E2 08 00 5B 32 80 11 00 00 00 00 00 00 07 [03:03:05]Write i2c OK [03:03:05]MH_I2C_Read... [03:03:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:03:05]Read from MH i2c: E2 [03:03:05]MH_I2C_Read... [03:03:05]Read from MH i2c: E2 17 00 [03:03:05]MH_I2C_Read... [03:03:05]Read from MH i2c: E2 17 00 5B 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 57 [03:03:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [03:03:05]wFMCommunicate OK [03:03:05]CreateOFDProtocolMessage done [03:03:05]OFDSenderStorePacket 1968 [03:03:05]StoreOFDPacket docnum=1968 [03:03:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2E 01 00 00 E9 6F 26 01 D9 CE 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 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 68 42 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 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 15 00 00 00 00 07 04 06 00 38 C7 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 EB B4 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 B0 07 00 00 35 04 06 00 56 92 67 36 18 0E AC 42 5D B8 80 6D 20 D4 [03:03:05]CheckFolder [03:03:05]dirname=/storage/ofd_packets [03:03:05]CheckFolder done [03:03:05]ProducePacketName [03:03:05]name=ofd_packets/00001968 [03:03:05]NVStorageSaveData ofd_packets/00001968 [03:03:05]File name is /storage/ofd_packets/00001968 [03:03:05]Write 332 bytes [03:03:05]NVStorageSaveData done [03:03:05]OFDSenderStorePacket done [03:03:05]KKMCreateOFDPacket done [03:03:05]NVStorageSaveData kkm_last_timestamp [03:03:05]File name is /storage/kkm_last_timestamp [03:03:05]Write 4 bytes [03:03:05]NVStorageSaveData done [03:03:05]ExternCall_PrintAddStr [03:03:05]wPrintStart [03:03:05]Write to MH i2c: 01 00 00 5C 32 8E [03:03:05]Write i2c OK [03:03:05]MH_I2C_Read... [03:03:05]Read from MH i2c: 01 [03:03:05]MH_I2C_Read... [03:03:05]Read from MH i2c: 01 07 00 [03:03:05]MH_I2C_Read... [03:03:05]Read from MH i2c: 01 07 00 5C 32 00 00 00 00 00 FF 0F A3 [03:03:05]RasterBufferAndPrint [03:03:05]line Счет N : (3)126278 [03:03:05]line ИНН: 02508201610067 [03:03:05]line Контрольно-Кассовый Чек [03:03:05]line ПРОДАЖА [03:03:05]line Товар: 4700000480357 [03:03:05]line Пиво шахтерское 1л ПЭТ [03:03:05]line 3.000 * 170.00 [03:03:05]line = 510.00 [03:03:05]line НДС 12% НСП 1% [03:03:05]line > о реализуемом товаре [03:03:05]line ИТОГО: 510.00 [03:03:05]line НСП 1% : 4.51 [03:03:05]line НДС 12% : 54.16 [03:03:05]line Наличными: 510.00 [03:03:05]line Безнал.: 0.00 [03:03:05]line Место: АЗС № 127 "Партнер Нефть" [03:03:05]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [03:03:05]line СНО: Общий режим [03:03:05]line Чек 19 28.07.2024 03:03 [03:03:05]line Смена: 13 ФФД: 1.0 [03:03:05]line ЗНМ: 0300000161 [03:03:05]line РНМ: 0000000000189667 [03:03:05]line Версия ККМ: v1.0 [03:03:05]line ФМ: 0000000002094248 [03:03:05]line ФД: 1968 [03:03:05]line ФПД: 95186796812302 [03:03:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T030307&type=1&operation_type=1&fn_number=0000000002094248&fd_number=1968&fm=95186796812302&tin=02508201610067®Number=0000000000189667&sum=51000 [03:03:05]line 0 [03:03:05]OFD Sender: Processing packet 1968 [packets to send 1, broken 0] [03:03:05]ProducePacketName [03:03:05]name=ofd_packets/00001968 [03:03:05]OFD Sender: To server: pG, [03:03:05]CommunicateWithHost lk.salyk.kg:30040 [03:03:05]ConnectInit lk.salyk.kg [03:03:05]written 0, free lines is 4095 [03:03:05]Connected sock=10 [03:03:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2E 01 00 00 E9 6F 26 01 D9 CE 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 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 68 42 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 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 15 00 00 00 00 07 04 06 00 38 C7 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 EB B4 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 B0 07 00 00 35 04 06 00 56 92 67 36 18 0E AC 42 5D B8 80 6D 20 D4 [03:03:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 59 64 47 00 15 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 B0 07 00 00 F4 03 04 00 5C 60 A5 66 B6 04 01 00 00 7C D1 3B DD 96 7A E7 3C [03:03:06]CommunicateWithHost err = 0 [03:03:06]CheckOFDResponse [03:03:06]1017 (14) - 77093643461234 [03:03:06]1041 (16) - 0000000002094248 [03:03:06]1040 (4) - 1968 [03:03:06]1012 (4) - 27.07.2024 21:02 [03:03:06]1206 (1) - 0 [03:03:06]OFD Sender: Remove packet 1968 [03:03:06]ProducePacketName [03:03:06]name=ofd_packets/00001968 [03:03:06]NVStorageDeleteData [03:03:06]Write to MH i2c: 01 00 00 84 32 B6 [03:03:06]Write i2c OK [03:03:06]MH_I2C_Read... [03:03:06]Read from MH i2c: 01 [03:03:06]MH_I2C_Read... [03:03:06]Read from MH i2c: 01 07 00 [03:03:06]MH_I2C_Read... [03:03:06]Read from MH i2c: 01 07 00 84 32 00 00 00 00 00 23 0D ED [03:03:06]RasterBufferAndPrint [03:03:06]line [03:03:06]line [03:03:06]line [03:03:06]line [03:03:06]line [03:03:06]written 0, free lines is 3369 [03:03:06]MH_Cut [03:03:06]Write to MH i2c: D1 01 00 8B 32 01 8F [03:03:06]Write i2c OK [03:03:06]MH_I2C_Read... [03:03:06]Read from MH i2c: D1 [03:03:06]MH_I2C_Read... [03:03:06]Read from MH i2c: D1 01 00 [03:03:06]MH_I2C_Read... [03:03:06]Read from MH i2c: D1 01 00 8B 32 00 8E [03:03:06]Write to MH i2c: 01 00 00 8C 32 BE [03:03:06]Write i2c OK [03:03:06]MH_I2C_Read... [03:03:06]OFD Sender: No OFD packet to send [03:03:06]*** Cut start [03:03:06]*** Partial cut [03:03:06]*** CUTSNS_PIN = 1 [03:03:06]*** CUTSNS_PIN = 0 [03:03:07]*** Brake cut motor [03:03:07]Read from MH i2c: 01 [03:03:07]MH_I2C_Read... [03:03:07]*** Stop cut motor [03:03:07]*** Cut end [03:03:07]Read from MH i2c: 01 07 00 [03:03:07]MH_I2C_Read... [03:03:07]Read from MH i2c: 01 07 00 8C 32 00 00 00 00 00 FF 0F D3 [03:03:07]process_action close_receipt done [03:03:07]requested_data is exist [03:03:07]produce_requested_data [03:03:07]requested_item fm.sn is exist - process it [03:03:07]wFMCommunicate request_size=4 [03:03:07]MH_SAM_APDU [03:03:07]CAPDU: 80 11 00 00 [03:03:07]Write to MH i2c: E2 08 00 8D 32 80 11 00 00 00 00 00 00 39 [03:03:07]Write i2c OK [03:03:07]MH_I2C_Read... [03:03:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:03:07]Read from MH i2c: E2 [03:03:07]MH_I2C_Read... [03:03:07]Read from MH i2c: E2 17 00 [03:03:07]MH_I2C_Read... [03:03:07]Read from MH i2c: E2 17 00 8D 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 89 [03:03:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [03:03:07]wFMCommunicate OK [03:03:07]requested_item fd.num is exist - process it [03:03:07]SAM_PROTO_GetFieldsCounters [03:03:07]wFMCommunicate request_size=4 [03:03:07]MH_SAM_APDU [03:03:07]CAPDU: 80 13 00 00 [03:03:07]Write to MH i2c: E2 08 00 8E 32 80 13 00 00 00 00 00 00 3C [03:03:07]Write i2c OK [03:03:07]MH_I2C_Read... [03:03:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:03:07]Read from MH i2c: E2 [03:03:07]MH_I2C_Read... [03:03:07]Read from MH i2c: E2 62 00 [03:03:07]MH_I2C_Read... [03:03:07]Read from MH i2c: E2 62 00 8E 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 B0 07 00 00 0E 04 04 00 0D 00 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 63 [03:03:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 B0 07 00 00 0E 04 04 00 0D 00 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 [03:03:07]wFMCommunicate OK [03:03:07]SAM_PROTO_GetFieldsCounters done [03:03:07]requested_item shift.num is exist - process it [03:03:07]requested_item shift.opened is exist - process it [03:03:07]req_shift_opened [03:03:07]FM_GetShiftState [03:03:07]SAM_PROTO_GetShiftState [03:03:07]wFMCommunicate request_size=4 [03:03:07]MH_SAM_APDU [03:03:07]CAPDU: 80 13 01 00 [03:03:07]Write to MH i2c: E2 08 00 8F 32 80 13 01 00 00 00 00 00 3E [03:03:07]Write i2c OK [03:03:07]MH_I2C_Read... [03:03:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:03:07]Read from MH i2c: E2 [03:03:07]MH_I2C_Read... [03:03:07]Read from MH i2c: E2 0E 00 [03:03:07]MH_I2C_Read... [03:03:07]Read from MH i2c: E2 0E 00 8F 32 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 32 [03:03:07]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [03:03:07]wFMCommunicate OK [03:03:07]SAM_PROTO_GetShiftState done [03:03:07]FM_GetShiftState done [03:03:07]req_shift_opened done [03:03:07]requested_item shift.open_date is exist - process it [03:03:07]req_shift_open_date [03:03:07]req_shift_open_date done [03:03:07]produce_requested_data done [03:03:07]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":1968,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [03:03:07]process_action_free close_receipt [03:03:07]json_value_free [03:03:07]json_value_free done [03:03:07]process_json_proto returns [03:03:07]Send response to host [03:03:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":1968,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [03:03:07]free response buf [03:03:07]execute_script done [03:03:07]execute_script returns [03:03:07]free content buf [03:03:07]Sock 8.Close socket [03:03:07]Sock 8.Thread stoped [03:03:11]OFD Sender: No OFD packet to send [03:03:16]OFD Sender: No OFD packet to send [03:03:21]OFD Sender: No OFD packet to send [03:03:26]OFD Sender: No OFD packet to send [03:03:31]OFD Sender: No OFD packet to send [03:03:36]OFD Sender: No OFD packet to send [03:03:41]OFD Sender: No OFD packet to send [03:03:46]OFD Sender: No OFD packet to send [03:03:51]OFD Sender: No OFD packet to send [03:03:56]OFD Sender: No OFD packet to send [03:04:01]OFD Sender: No OFD packet to send [03:04:06]OFD Sender: No OFD packet to send [03:04:11]OFD Sender: No OFD packet to send [03:04:16]OFD Sender: No OFD packet to send [03:04:21]OFD Sender: No OFD packet to send [03:04:26]OFD Sender: No OFD packet to send [03:04:31]OFD Sender: No OFD packet to send [03:04:36]OFD Sender: No OFD packet to send [03:04:41]OFD Sender: No OFD packet to send [03:04:46]OFD Sender: No OFD packet to send [03:04:51]OFD Sender: No OFD packet to send [03:04:56]OFD Sender: No OFD packet to send [03:05:01]OFD Sender: No OFD packet to send [03:05:06]OFD Sender: No OFD packet to send [03:05:11]OFD Sender: No OFD packet to send [03:05:16]OFD Sender: No OFD packet to send [03:05:21]OFD Sender: No OFD packet to send [03:05:26]OFD Sender: No OFD packet to send [03:05:31]OFD Sender: No OFD packet to send [03:05:36]OFD Sender: No OFD packet to send [03:05:41]OFD Sender: No OFD packet to send [03:05:46]OFD Sender: No OFD packet to send [03:05:51]OFD Sender: No OFD packet to send [03:05:56]OFD Sender: No OFD packet to send [03:06:01]OFD Sender: No OFD packet to send [03:06:06]OFD Sender: No OFD packet to send [03:06:11]OFD Sender: No OFD packet to send [03:06:16]OFD Sender: No OFD packet to send [03:06:21]OFD Sender: No OFD packet to send [03:06:26]OFD Sender: No OFD packet to send [03:06:31]OFD Sender: No OFD packet to send [03:06:36]OFD Sender: No OFD packet to send [03:06:41]OFD Sender: No OFD packet to send [03:06:46]OFD Sender: No OFD packet to send [03:06:51]OFD Sender: No OFD packet to send [03:06:56]OFD Sender: No OFD packet to send [03:07:01]OFD Sender: No OFD packet to send [03:07:06]OFD Sender: No OFD packet to send [03:07:11]OFD Sender: No OFD packet to send [03:07:16]OFD Sender: No OFD packet to send [03:07:21]OFD Sender: No OFD packet to send [03:07:26]OFD Sender: No OFD packet to send [03:07:31]OFD Sender: No OFD packet to send [03:07:36]OFD Sender: No OFD packet to send [03:07:41]OFD Sender: No OFD packet to send [03:07:46]OFD Sender: No OFD packet to send [03:07:51]OFD Sender: No OFD packet to send [03:07:56]OFD Sender: No OFD packet to send [03:08:01]OFD Sender: No OFD packet to send [03:08:06]OFD Sender: No OFD packet to send [03:08:11]OFD Sender: No OFD packet to send [03:08:16]OFD Sender: No OFD packet to send [03:08:21]OFD Sender: No OFD packet to send [03:08:26]OFD Sender: No OFD packet to send [03:08:31]OFD Sender: No OFD packet to send [03:08:36]OFD Sender: No OFD packet to send [03:15:49]ConnectInit Can't connect to host [03:15:53]ConnectInit Can't take IP for lk.salyk.kg [03:15:53]CommunicateWithHost connect error [03:15:53]CommunicateWithHost err = -1 [03:15:53]OFD Sender: Server communicate error [03:15:58]OFD Sender: Processing packet 1969 [packets to send 1, broken 0] [03:15:58]ProducePacketName [03:15:58]name=ofd_packets/00001969 [03:15:58]OFD Sender: To server: pG, [03:15:58]CommunicateWithHost lk.salyk.kg:30040 [03:15:58]ConnectInit lk.salyk.kg [03:15:59]Connected sock=9 [03:15:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 22 01 00 00 6D B1 1A 01 C2 B1 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 78 B7 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 B1 07 00 00 35 04 06 00 4F D8 F4 DE FF A9 38 8D 89 34 E5 D2 B0 50 [03:15:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 E3 4B 47 00 5A 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 32 30 39 34 32 34 38 10 04 04 00 B1 07 00 00 F4 03 04 00 61 63 A5 66 B6 04 01 00 00 D4 6E EC 56 33 1E BA F0 [03:15:59]CommunicateWithHost err = 0 [03:15:59]CheckOFDResponse [03:15:59]1017 (14) - 77093643461234 [03:15:59]1041 (16) - 0000000002094248 [03:15:59]1040 (4) - 1969 [03:15:59]1012 (4) - 27.07.2024 21:15 [03:15:59]1206 (1) - 0 [03:15:59]OFD Sender: Remove packet 1969 [03:15:59]ProducePacketName [03:15:59]name=ofd_packets/00001969 [03:15:59]NVStorageDeleteData [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:45]accept exits with 8 [03:16:45]New connection [03:16:45]New thread 3067317604 created [03:16:45]Thread 3067460964 joined [03:16:45]Waiting for new connection... [03:16:45] Sock 8.Parse request [03:16:45]Sock 8.Check first char [03:16:45]Sock 8.First char is OK [03:16:45]request: POST /json_proto HTTP/1.0 [03:16:45]Method: POST [03:16:45]URL: /json_proto [03:16:45]Method is POST - this is cgi request [03:16:45]url: /json_proto [03:16:45]query_string will be loaded in cgi processing [03:16:45]execute_cgi json_proto POST (null) [03:16:45]execute_cgi path=json_proto method=POST [03:16:45]POST find Content-Length [03:16:45]Host: 172.17.45.132:8080 [03:16:45]Content-Length: 1283 [03:16:45]Content-Type: application/json [03:16:45] [03:16:45]POST finish read [03:16:45]Found Content-Length = 1283 [03:16:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126280", "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 }]} ,{ "code": "5449000011527", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,33\u043B", "price" : 85.00, "quantity" : 2.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4603290004831", "name": "\u041F\u0435\u0447.\u0437\u0430\u0442.TONDI \u0421\u044D\u043D\u0434.\u0448\u043E\u043A.\u0432\u043A.", "price" : 86.00, "quantity" : 1.000, "sum" : 86.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: Balance.KG", "payments": [ { "type": 1, "sum" : 396.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:16:45]execute_script... [03:16:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126280", "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 }]} ,{ "code": "5449000011527", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,33\u043B", "price" : 85.00, "quantity" : 2.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4603290004831", "name": "\u041F\u0435\u0447.\u0437\u0430\u0442.TONDI \u0421\u044D\u043D\u0434.\u0448\u043E\u043A.\u0432\u043A.", "price" : 86.00, "quantity" : 1.000, "sum" : 86.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: Balance.KG", "payments": [ { "type": 1, "sum" : 396.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:16:45]POST & json_proto [03:16:45]process_json_proto [03:16:45]json parsed OK: [03:16:45]protocol is kg_v1.0 [03:16:45]action value=close_receipt [03:16:45]process_action close_receipt [03:16:45]cmd_close_receipt [03:16:45]MH_GetDate [03:16:45]Write to MH i2c: F0 00 00 D8 32 F9 [03:16:45]Write i2c OK [03:16:45]MH_I2C_Read... [03:16:45]Read from MH i2c: F0 [03:16:45]MH_I2C_Read... [03:16:45]Read from MH i2c: F0 09 00 [03:16:45]MH_I2C_Read... [03:16:45]Read from MH i2c: F0 09 00 D8 32 00 20 B8 A5 66 E3 0B 90 66 C9 [03:16:45]GetLastDocTimeStamp 1722136440 [03:16:45]current date 1722136608 [03:16:45]FM_GetShiftState [03:16:45]SAM_PROTO_GetShiftState [03:16:45]wFMCommunicate request_size=4 [03:16:45]MH_SAM_APDU [03:16:45]CAPDU: 80 13 01 00 [03:16:45]Write to MH i2c: E2 08 00 D9 32 80 13 01 00 00 00 00 00 88 [03:16:45]Write i2c OK [03:16:45]MH_I2C_Read... [03:16:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:16:45]Read from MH i2c: E2 [03:16:45]MH_I2C_Read... [03:16:45]Read from MH i2c: E2 0E 00 [03:16:45]MH_I2C_Read... [03:16:45]Read from MH i2c: E2 0E 00 D9 32 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 7C [03:16:45]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [03:16:45]wFMCommunicate OK [03:16:45]SAM_PROTO_GetShiftState done [03:16:45]FM_GetShiftState done [03:16:45]opened in 1722125648 [03:16:45]opened+sec_in_day 1722212048 [03:16:45]quantity*price = 14000 [03:16:45]sum+1 = 14001 [03:16:45]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000011527 Напиток Фанта 0,33л 2.000 * 85.00 = 170.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4603290004831 Печ.зат.TONDI Сэнд.шок.вк. 1.000 * 86.00 = 86.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 396.00 НСП 1% : 3.50 НДС 12% : 42.05 Наличными: 0.00 Безнал.: 396.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 21 28.07.2024 03:16 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: Balance.KG ФМ: 0000000002094248 ФД: 1970 ФПД: 276077204028127 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T031649&type=1&operation_type=1&fn_number=0000000002094248&fd_number=1970&fm=276077204028127&tin=02508201610067®Number=0000000000189667&sum=39600 0 [03:16:46]StoreToDocumentArchive [03:16:46]shift 13 fd 1970 [03:16:46]save to /storage/0013/doc_00001970 [03:16:46]save last doc name /storage/0013/doc_00001970 to /storage/kkm_last_doc_name [03:16:46]save OK [03:16:46]Clear old archive folders... [03:16:46]ProcessDocumentItem done err = 0, tmpTLVsize=490 [03:16:46]tlvbuf is 01F44530 [03:16:46]SAM_PROTO_ClearQueue [03:16:46]wFMCommunicate request_size=4 [03:16:46]MH_SAM_APDU [03:16:46]CAPDU: 80 09 00 00 [03:16:46]Write to MH i2c: E2 08 00 E6 32 80 09 00 00 00 00 00 00 8A [03:16:46]Write i2c OK [03:16:46]MH_I2C_Read... [03:16:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:16:46]Read from MH i2c: E2 [03:16:46]MH_I2C_Read... [03:16:46]Read from MH i2c: E2 03 00 [03:16:46]MH_I2C_Read... [03:16:46]Read from MH i2c: E2 03 00 E6 32 00 90 00 8C [03:16:46]RAPDU: 90 00 [03:16:46]wFMCommunicate OK [03:16:46]SAM_PROTO_ClearQueue done [03:16:46]KKMCreateOFDPacket [03:16:46]OFDProtocolAddRootSTLVToBuf [03:16:46]FM_MakeSignedData [03:16:46]FM_MakeSignedData [03:16:46]SAM_PROTO_SignData [03:16:46]wFMCommunicate request_size=4 [03:16:46]MH_SAM_APDU [03:16:46]CAPDU: 80 0D 01 02 [03:16:46]Write to MH i2c: E2 08 00 E7 32 80 0D 01 02 00 00 00 00 92 [03:16:46]Write i2c OK [03:16:46]MH_I2C_Read... [03:16:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:16:46]Read from MH i2c: E2 [03:16:46]MH_I2C_Read... [03:16:46]Read from MH i2c: E2 03 00 [03:16:46]MH_I2C_Read... [03:16:46]Read from MH i2c: E2 03 00 E7 32 00 90 00 8D [03:16:46]RAPDU: 90 00 [03:16:46]wFMCommunicate OK [03:16:46]wFMCommunicate request_size=255 [03:16:46]MH_SAM_APDU [03:16:46]CAPDU: 80 0D 02 02 FA 03 00 EA 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 23 04 64 00 8A 04 0D 00 35 34 34 39 30 30 30 30 31 31 35 32 37 06 04 20 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 33 31 06 04 29 00 D0 9F D0 B5 D1 87 2E D0 B7 [03:16:46]Write to MH i2c: E2 02 01 E8 32 80 0D 02 02 FA 00 03 00 EA 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 23 04 64 00 8A 04 0D 00 35 34 34 39 30 30 30 30 31 31 35 32 37 06 04 20 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 33 31 06 04 29 00 D0 9F D0 B5 D1 87 2E D0 B7 00 00 4F [03:16:46]Write i2c OK [03:16:46]MH_I2C_Read... [03:16:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:16:47]Read from MH i2c: E2 [03:16:47]MH_I2C_Read... [03:16:47]Read from MH i2c: E2 03 00 [03:16:47]MH_I2C_Read... [03:16:47]Read from MH i2c: E2 03 00 E8 32 00 90 00 8E [03:16:47]RAPDU: 90 00 [03:16:47]wFMCommunicate OK [03:16:47]wFMCommunicate request_size=249 [03:16:47]MH_SAM_APDU [03:16:47]CAPDU: 80 0D 02 02 F4 D0 B0 D1 82 2E 54 4F 4E 44 49 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2E D0 B2 D0 BA 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 21 00 00 00 00 13 04 06 00 98 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 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 6D 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 9A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 21 B8 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 B2 07 00 00 35 04 06 00 FB 17 3B AD 3A DF [03:16:47]Write to MH i2c: E2 FC 00 E9 32 80 0D 02 02 F4 00 D0 B0 D1 82 2E 54 4F 4E 44 49 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2E D0 B2 D0 BA 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 21 00 00 00 00 13 04 06 00 98 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 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 6D 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 9A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 21 B8 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 B2 07 00 00 35 04 06 00 FB 17 3B AD 3A DF 00 00 0C [03:16:47]Write i2c OK [03:16:47]MH_I2C_Read... [03:16:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:16:47]Read from MH i2c: E2 [03:16:47]MH_I2C_Read... [03:16:47]Read from MH i2c: E2 03 00 [03:16:47]MH_I2C_Read... [03:16:47]Read from MH i2c: E2 03 00 E9 32 00 90 00 8F [03:16:47]RAPDU: 90 00 [03:16:47]wFMCommunicate OK [03:16:47]wFMCommunicate request_size=4 [03:16:47]MH_SAM_APDU [03:16:47]CAPDU: 80 0D 03 02 [03:16:47]Write to MH i2c: E2 08 00 EA 32 80 0D 03 02 00 00 00 00 97 [03:16:47]Write i2c OK [03:16:47]MH_I2C_Read... [03:16:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:16:47]Read from MH i2c: E2 [03:16:47]MH_I2C_Read... [03:16:47]Read from MH i2c: E2 0B 00 [03:16:47]MH_I2C_Read... [03:16:47]Read from MH i2c: E2 0B 00 EA 32 00 39 E4 74 A8 81 23 3A 69 90 00 18 [03:16:47]RAPDU: 39 E4 74 A8 81 23 3A 69 90 00 [03:16:47]wFMCommunicate OK [03:16:47]SAM_PROTO_SignData done [03:16:47]FM_MakeSignedData done [03:16:47]CreateOFDProtocolMessage [03:16:47]wFMCommunicate request_size=4 [03:16:47]MH_SAM_APDU [03:16:47]CAPDU: 80 11 00 00 [03:16:47]Write to MH i2c: E2 08 00 EB 32 80 11 00 00 00 00 00 00 97 [03:16:47]Write i2c OK [03:16:47]MH_I2C_Read... [03:16:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:16:47]Read from MH i2c: E2 [03:16:47]MH_I2C_Read... [03:16:47]Read from MH i2c: E2 17 00 [03:16:47]MH_I2C_Read... [03:16:47]Read from MH i2c: E2 17 00 EB 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 E7 [03:16:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [03:16:47]wFMCommunicate OK [03:16:47]CreateOFDProtocolMessage done [03:16:47]OFDSenderStorePacket 1970 [03:16:47]StoreOFDPacket docnum=1970 [03:16:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 FE 01 00 00 51 5B F6 01 D5 40 5A 03 01 00 03 00 EA 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 23 04 64 00 8A 04 0D 00 35 34 34 39 30 30 30 30 31 31 35 32 37 06 04 20 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 33 31 06 04 29 00 D0 9F D0 B5 D1 87 2E D0 B7 D0 B0 D1 82 2E 54 4F 4E 44 49 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2E D0 B2 D0 BA 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 21 00 00 00 00 13 04 06 00 98 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 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 6D 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 9A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 21 B8 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 B2 07 00 00 35 04 06 00 FB 17 3B AD 3A DF 39 E4 74 A8 81 23 3A 69 [03:16:47]CheckFolder [03:16:47]dirname=/storage/ofd_packets [03:16:47]CheckFolder done [03:16:47]ProducePacketName [03:16:47]name=ofd_packets/00001970 [03:16:47]NVStorageSaveData ofd_packets/00001970 [03:16:47]File name is /storage/ofd_packets/00001970 [03:16:47]Write 540 bytes [03:16:47]NVStorageSaveData done [03:16:47]OFDSenderStorePacket done [03:16:47]KKMCreateOFDPacket done [03:16:47]NVStorageSaveData kkm_last_timestamp [03:16:47]File name is /storage/kkm_last_timestamp [03:16:47]Write 4 bytes [03:16:47]NVStorageSaveData done [03:16:47]ExternCall_PrintAddStr [03:16:47]wPrintStart [03:16:47]Write to MH i2c: 01 00 00 EC 32 1E [03:16:47]OFD Sender: Processing packet 1970 [packets to send 1, broken 0] [03:16:47]ProducePacketName [03:16:47]name=ofd_packets/00001970 [03:16:47]OFD Sender: To server: pG, [03:16:47]CommunicateWithHost lk.salyk.kg:30040 [03:16:47]ConnectInit lk.salyk.kg [03:16:47]Write i2c OK [03:16:47]MH_I2C_Read... [03:16:47]Read from MH i2c: 01 [03:16:47]MH_I2C_Read... [03:16:47]Read from MH i2c: 01 07 00 [03:16:47]MH_I2C_Read... [03:16:47]Read from MH i2c: 01 07 00 EC 32 00 00 00 00 00 FF 0F 33 [03:16:47]RasterBufferAndPrint [03:16:47]line Счет N : (3)126280 [03:16:47]line ИНН: 02508201610067 [03:16:47]line Контрольно-Кассовый Чек [03:16:47]line ПРОДАЖА [03:16:47]line Товар: 48743570 [03:16:47]line Сигареты Winston XStyle Blue [03:16:47]line 1.000 * 140.00 [03:16:47]line = 140.00 [03:16:47]line НДС 12% НСП 1% [03:16:47]line > о реализуемом товаре [03:16:47]line Товар: 5449000011527 [03:16:47]line Напиток Фанта 0,33л [03:16:47]line 2.000 * 85.00 [03:16:47]line = 170.00 [03:16:47]line НДС 12% НСП 1% [03:16:47]line > о реализуемом товаре [03:16:47]line Товар: 4603290004831 [03:16:47]line Печ.зат.TONDI Сэнд.шок.вк. [03:16:47]line 1.000 * 86.00 [03:16:47]line = 86.00 [03:16:47]line НДС 12% НСП 1% [03:16:47]line > о реализуемом товаре [03:16:47]line ИТОГО: 396.00 [03:16:47]line НСП 1% : 3.50 [03:16:47]line НДС 12% : 42.05 [03:16:47]line Наличными: 0.00 [03:16:47]line Безнал.: 396.00 [03:16:47]line Место: АЗС № 127 "Партнер Нефть" [03:16:47]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [03:16:47]line СНО: Общий режим [03:16:47]line Чек 21 28.07.2024 03:16 [03:16:47]line Смена: 13 ФФД: 1.0 [03:16:47]line ЗНМ: 0300000161 [03:16:47]line РНМ: 0000000000189667 [03:16:47]line Версия ККМ: v1.0 [03:16:47]line Платежная система: Balance.KG [03:16:47]line ФМ: 0000000002094248 [03:16:47]line ФД: 1970 [03:16:47]line ФПД: 276077204028127 [03:16:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T031649&type=1&operation_type=1&fn_number=0000000002094248&fd_number=1970&fm=276077204028127&tin=02508201610067®Number=0000000000189667&sum=39600 [03:16:47]line 0 [03:16:47]written 0, free lines is 4095 [03:16:47]Connected sock=10 [03:16:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 FE 01 00 00 51 5B F6 01 D5 40 5A 03 01 00 03 00 EA 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 23 04 64 00 8A 04 0D 00 35 34 34 39 30 30 30 30 31 31 35 32 37 06 04 20 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 33 31 06 04 29 00 D0 9F D0 B5 D1 87 2E D0 B7 D0 B0 D1 82 2E 54 4F 4E 44 49 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2E D0 B2 D0 BA 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 21 00 00 00 00 13 04 06 00 98 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 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 6D 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 9A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 21 B8 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 B2 07 00 00 35 04 06 00 FB 17 3B AD 3A DF 39 E4 74 A8 81 23 3A 69 [03:16:48]Write to MH i2c: 01 00 00 22 33 55 [03:16:48]Write i2c OK [03:16:48]MH_I2C_Read... [03:16:48]Read from MH i2c: 01 [03:16:48]MH_I2C_Read... [03:16:48]Read from MH i2c: 01 07 00 [03:16:48]MH_I2C_Read... [03:16:48]Read from MH i2c: 01 07 00 22 33 00 00 00 00 00 70 0C D8 [03:16:48]RasterBufferAndPrint [03:16:48]line [03:16:48]line [03:16:48]line [03:16:48]line [03:16:48]line [03:16:48]written 0, free lines is 3190 [03:16:48]MH_Cut [03:16:48]Write to MH i2c: D1 01 00 29 33 01 2E [03:16:48]Write i2c OK [03:16:48]MH_I2C_Read... [03:16:48]Read from MH i2c: D1 [03:16:48]MH_I2C_Read... [03:16:48]Read from MH i2c: D1 01 00 [03:16:48]MH_I2C_Read... [03:16:48]Read from MH i2c: D1 01 00 29 33 00 2D [03:16:48]Write to MH i2c: 01 00 00 2A 33 5D [03:16:48]Write i2c OK [03:16:48]MH_I2C_Read... [03:16:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 0A 57 47 00 AF EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 B2 07 00 00 F4 03 04 00 92 63 A5 66 B6 04 01 00 00 11 E7 66 FB 03 77 47 9E [03:16:48]CommunicateWithHost err = 0 [03:16:48]CheckOFDResponse [03:16:48]1017 (14) - 77093643461234 [03:16:48]1041 (16) - 0000000002094248 [03:16:48]1040 (4) - 1970 [03:16:48]1012 (4) - 27.07.2024 21:16 [03:16:48]1206 (1) - 0 [03:16:48]OFD Sender: Remove packet 1970 [03:16:48]ProducePacketName [03:16:48]name=ofd_packets/00001970 [03:16:48]NVStorageDeleteData [03:16:48]OFD Sender: No OFD packet to send [03:16:48]*** Cut start [03:16:48]*** Partial cut [03:16:48]*** CUTSNS_PIN = 1 [03:16:48]*** CUTSNS_PIN = 0 [03:16:49]*** Brake cut motor [03:16:49]Read from MH i2c: 01 [03:16:49]MH_I2C_Read... [03:16:49]*** Stop cut motor [03:16:49]*** Cut end [03:16:49]Read from MH i2c: 01 07 00 [03:16:49]MH_I2C_Read... [03:16:49]Read from MH i2c: 01 07 00 2A 33 00 00 00 00 00 FF 0F 72 [03:16:49]process_action close_receipt done [03:16:49]requested_data is exist [03:16:49]produce_requested_data [03:16:49]requested_item fm.sn is exist - process it [03:16:49]wFMCommunicate request_size=4 [03:16:49]MH_SAM_APDU [03:16:49]CAPDU: 80 11 00 00 [03:16:49]Write to MH i2c: E2 08 00 2B 33 80 11 00 00 00 00 00 00 D8 [03:16:49]Write i2c OK [03:16:49]MH_I2C_Read... [03:16:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:16:49]Read from MH i2c: E2 [03:16:49]MH_I2C_Read... [03:16:49]Read from MH i2c: E2 17 00 [03:16:49]MH_I2C_Read... [03:16:49]Read from MH i2c: E2 17 00 2B 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 28 [03:16:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [03:16:49]wFMCommunicate OK [03:16:49]requested_item fd.num is exist - process it [03:16:49]SAM_PROTO_GetFieldsCounters [03:16:49]wFMCommunicate request_size=4 [03:16:49]MH_SAM_APDU [03:16:49]CAPDU: 80 13 00 00 [03:16:49]Write to MH i2c: E2 08 00 2C 33 80 13 00 00 00 00 00 00 DB [03:16:49]Write i2c OK [03:16:49]MH_I2C_Read... [03:16:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:16:49]Read from MH i2c: E2 [03:16:49]MH_I2C_Read... [03:16:49]Read from MH i2c: E2 62 00 [03:16:49]MH_I2C_Read... [03:16:49]Read from MH i2c: E2 62 00 2C 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 B2 07 00 00 0E 04 04 00 0D 00 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 0A [03:16:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 B2 07 00 00 0E 04 04 00 0D 00 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 [03:16:49]wFMCommunicate OK [03:16:49]SAM_PROTO_GetFieldsCounters done [03:16:49]requested_item shift.num is exist - process it [03:16:49]requested_item shift.opened is exist - process it [03:16:49]req_shift_opened [03:16:49]FM_GetShiftState [03:16:49]SAM_PROTO_GetShiftState [03:16:49]wFMCommunicate request_size=4 [03:16:49]MH_SAM_APDU [03:16:49]CAPDU: 80 13 01 00 [03:16:49]Write to MH i2c: E2 08 00 2D 33 80 13 01 00 00 00 00 00 DD [03:16:49]Write i2c OK [03:16:49]MH_I2C_Read... [03:16:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:16:49]Read from MH i2c: E2 [03:16:49]MH_I2C_Read... [03:16:49]Read from MH i2c: E2 0E 00 [03:16:49]MH_I2C_Read... [03:16:49]Read from MH i2c: E2 0E 00 2D 33 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 D1 [03:16:49]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [03:16:49]wFMCommunicate OK [03:16:49]SAM_PROTO_GetShiftState done [03:16:49]FM_GetShiftState done [03:16:49]req_shift_opened done [03:16:49]requested_item shift.open_date is exist - process it [03:16:49]req_shift_open_date [03:16:49]req_shift_open_date done [03:16:49]produce_requested_data done [03:16:49]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":1970,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [03:16:49]process_action_free close_receipt [03:16:49]json_value_free [03:16:49]json_value_free done [03:16:49]process_json_proto returns [03:16:49]Send response to host [03:16:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":1970,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [03:16:49]free response buf [03:16:49]execute_script done [03:16:49]execute_script returns [03:16:49]free content buf [03:16:49]Sock 8.Close socket [03:16:49]Sock 8.Thread stoped [03:16:53]OFD Sender: No OFD packet to send [03:16:58]OFD Sender: No OFD packet to send [03:17:03]OFD Sender: No OFD packet to send [03:17:08]OFD Sender: No OFD packet to send [03:17:13]OFD Sender: No OFD packet to send [03:17:18]OFD Sender: No OFD packet to send [03:17:23]OFD Sender: No OFD packet to send [03:17:28]OFD Sender: No OFD packet to send [03:17:33]OFD Sender: No OFD packet to send [03:17:38]OFD Sender: No OFD packet to send [03:17:43]OFD Sender: No OFD packet to send [03:17:48]OFD Sender: No OFD packet to send [03:17:53]OFD Sender: No OFD packet to send [03:17:58]OFD Sender: No OFD packet to send [03:18:03]OFD Sender: No OFD packet to send [03:18:08]OFD Sender: No OFD packet to send [03:18:13]OFD Sender: No OFD packet to send [03:18:18]OFD Sender: No OFD packet to send [03:18:23]OFD Sender: No OFD packet to send [03:18:28]OFD Sender: No OFD packet to send [03:18:33]OFD Sender: No OFD packet to send [03:18:38]OFD Sender: No OFD packet to send [03:18:43]OFD Sender: No OFD packet to send [03:18:48]OFD Sender: No OFD packet to send [03:18:53]OFD Sender: No OFD packet to send [03:18:58]OFD Sender: No OFD packet to send [03:19:03]OFD Sender: No OFD packet to send [03:19:08]OFD Sender: No OFD packet to send [03:19:13]OFD Sender: No OFD packet to send [03:19:18]OFD Sender: No OFD packet to send [03:19:23]OFD Sender: No OFD packet to send [03:19:28]OFD Sender: No OFD packet to send [03:19:33]OFD Sender: No OFD packet to send [03:19:36]accept exits with 9 [03:19:36]New connection [03:19:36]New thread 3067460964 created [03:19:36]Thread 3067317604 joined [03:19:36]Waiting for new connection... [03:19:36] Sock 9.Parse request [03:19:36]Sock 9.Check first char [03:19:36]Sock 9.First char is OK [03:19:36]request: POST /json_proto HTTP/1.0 [03:19:36]Method: POST [03:19:36]URL: /json_proto [03:19:36]Method is POST - this is cgi request [03:19:36]url: /json_proto [03:19:36]query_string will be loaded in cgi processing [03:19:36]execute_cgi json_proto POST (null) [03:19:36]execute_cgi path=json_proto method=POST [03:19:36]POST find Content-Length [03:19:36]Host: 172.17.45.132:8080 [03:19:36]Content-Length: 630 [03:19:36]Content-Type: application/json [03:19:36] [03:19:36]POST finish read [03:19:36]Found Content-Length = 630 [03:19:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126281", "tax_sys" : 0, "items" : [ { "code": "4700000480814", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 0,5 \u0441\u0442", "price" : 100.00, "quantity" : 2.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" ] } } [03:19:36]execute_script... [03:19: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)126281", "tax_sys" : 0, "items" : [ { "code": "4700000480814", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 0,5 \u0441\u0442", "price" : 100.00, "quantity" : 2.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" ] } } [03:19:36]POST & json_proto [03:19:36]process_json_proto [03:19:36]json parsed OK: [03:19:36]protocol is kg_v1.0 [03:19:36]action value=close_receipt [03:19:36]process_action close_receipt [03:19:36]cmd_close_receipt [03:19:36]MH_GetDate [03:19:36]Write to MH i2c: F0 00 00 2E 33 50 [03:19:36]Write i2c OK [03:19:36]MH_I2C_Read... [03:19:36]Read from MH i2c: F0 [03:19:36]MH_I2C_Read... [03:19:36]Read from MH i2c: F0 09 00 [03:19:36]MH_I2C_Read... [03:19:36]Read from MH i2c: F0 09 00 2E 33 00 CC B8 A5 66 E3 0B 90 66 CC [03:19:36]GetLastDocTimeStamp 1722136609 [03:19:36]current date 1722136780 [03:19:36]FM_GetShiftState [03:19:36]SAM_PROTO_GetShiftState [03:19:36]wFMCommunicate request_size=4 [03:19:36]MH_SAM_APDU [03:19:36]CAPDU: 80 13 01 00 [03:19:36]Write to MH i2c: E2 08 00 2F 33 80 13 01 00 00 00 00 00 DF [03:19:36]Write i2c OK [03:19:36]MH_I2C_Read... [03:19:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:19:36]Read from MH i2c: E2 [03:19:36]MH_I2C_Read... [03:19:36]Read from MH i2c: E2 0E 00 [03:19:36]MH_I2C_Read... [03:19:36]Read from MH i2c: E2 0E 00 2F 33 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 D3 [03:19:36]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [03:19:36]wFMCommunicate OK [03:19:36]SAM_PROTO_GetShiftState done [03:19:36]FM_GetShiftState done [03:19:36]opened in 1722125648 [03:19:36]opened+sec_in_day 1722212048 [03:19:36]quantity*price = 20000 [03:19:36]sum+1 = 20001 [03:19:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 22 28.07.2024 03:19 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 1971 ФПД: 22759536304025 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T031940&type=1&operation_type=1&fn_number=0000000002094248&fd_number=1971&fm=22759536304025&tin=02508201610067®Number=0000000000189667&sum=20000 0 [03:19:37]StoreToDocumentArchive [03:19:37]shift 13 fd 1971 [03:19:37]save to /storage/0013/doc_00001971 [03:19:37]save last doc name /storage/0013/doc_00001971 to /storage/kkm_last_doc_name [03:19:37]save OK [03:19:37]Clear old archive folders... [03:19:37]ProcessDocumentItem done err = 0, tmpTLVsize=270 [03:19:37]tlvbuf is 01FD6D40 [03:19:37]SAM_PROTO_ClearQueue [03:19:37]wFMCommunicate request_size=4 [03:19:37]MH_SAM_APDU [03:19:37]CAPDU: 80 09 00 00 [03:19:37]Write to MH i2c: E2 08 00 3C 33 80 09 00 00 00 00 00 00 E1 [03:19:37]Write i2c OK [03:19:37]MH_I2C_Read... [03:19:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:19:37]Read from MH i2c: E2 [03:19:37]MH_I2C_Read... [03:19:37]Read from MH i2c: E2 03 00 [03:19:37]MH_I2C_Read... [03:19:37]Read from MH i2c: E2 03 00 3C 33 00 90 00 E3 [03:19:37]RAPDU: 90 00 [03:19:37]wFMCommunicate OK [03:19:37]SAM_PROTO_ClearQueue done [03:19:37]KKMCreateOFDPacket [03:19:37]OFDProtocolAddRootSTLVToBuf [03:19:37]FM_MakeSignedData [03:19:37]FM_MakeSignedData [03:19:37]SAM_PROTO_SignData [03:19:37]wFMCommunicate request_size=4 [03:19:37]MH_SAM_APDU [03:19:37]CAPDU: 80 0D 01 02 [03:19:37]Write to MH i2c: E2 08 00 3D 33 80 0D 01 02 00 00 00 00 E9 [03:19:37]Write i2c OK [03:19:37]MH_I2C_Read... [03:19:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:19:37]Read from MH i2c: E2 [03:19:37]MH_I2C_Read... [03:19:37]Read from MH i2c: E2 03 00 [03:19:37]MH_I2C_Read... [03:19:37]Read from MH i2c: E2 03 00 3D 33 00 90 00 E4 [03:19:37]RAPDU: 90 00 [03:19:37]wFMCommunicate OK [03:19:37]wFMCommunicate request_size=255 [03:19:37]MH_SAM_APDU [03:19:37]CAPDU: 80 0D 02 02 FA 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 10 27 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 16 00 00 00 F4 03 04 00 CC B8 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 [03:19:37]Write to MH i2c: E2 02 01 3E 33 80 0D 02 02 FA 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 10 27 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 16 00 00 00 F4 03 04 00 CC B8 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 00 00 F9 [03:19:37]Write i2c OK [03:19:37]MH_I2C_Read... [03:19:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:19:38]Read from MH i2c: E2 [03:19:38]MH_I2C_Read... [03:19:38]Read from MH i2c: E2 03 00 [03:19:38]MH_I2C_Read... [03:19:38]Read from MH i2c: E2 03 00 3E 33 00 90 00 E5 [03:19:38]RAPDU: 90 00 [03:19:38]wFMCommunicate OK [03:19:38]wFMCommunicate request_size=29 [03:19:38]MH_SAM_APDU [03:19:38]CAPDU: 80 0D 02 02 18 30 39 34 32 34 38 10 04 04 00 B3 07 00 00 35 04 06 00 14 B3 1E 13 9F 99 [03:19:38]Write to MH i2c: E2 20 00 3F 33 80 0D 02 02 18 00 30 39 34 32 34 38 10 04 04 00 B3 07 00 00 35 04 06 00 14 B3 1E 13 9F 99 00 00 98 [03:19:38]Write i2c OK [03:19:38]MH_I2C_Read... [03:19:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:19:38]Read from MH i2c: E2 [03:19:38]MH_I2C_Read... [03:19:38]Read from MH i2c: E2 03 00 [03:19:38]MH_I2C_Read... [03:19:38]Read from MH i2c: E2 03 00 3F 33 00 90 00 E6 [03:19:38]RAPDU: 90 00 [03:19:38]wFMCommunicate OK [03:19:38]wFMCommunicate request_size=4 [03:19:38]MH_SAM_APDU [03:19:38]CAPDU: 80 0D 03 02 [03:19:38]Write to MH i2c: E2 08 00 40 33 80 0D 03 02 00 00 00 00 EE [03:19:38]Write i2c OK [03:19:38]MH_I2C_Read... [03:19:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:19:38]Read from MH i2c: E2 [03:19:38]MH_I2C_Read... [03:19:38]Read from MH i2c: E2 0B 00 [03:19:38]MH_I2C_Read... [03:19:38]Read from MH i2c: E2 0B 00 40 33 00 DE 8B D3 7D 59 8F 84 6F 90 00 83 [03:19:38]RAPDU: DE 8B D3 7D 59 8F 84 6F 90 00 [03:19:38]wFMCommunicate OK [03:19:38]SAM_PROTO_SignData done [03:19:38]FM_MakeSignedData done [03:19:38]CreateOFDProtocolMessage [03:19:38]wFMCommunicate request_size=4 [03:19:38]MH_SAM_APDU [03:19:38]CAPDU: 80 11 00 00 [03:19:38]Write to MH i2c: E2 08 00 41 33 80 11 00 00 00 00 00 00 EE [03:19:38]Write i2c OK [03:19:38]MH_I2C_Read... [03:19:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:19:38]Read from MH i2c: E2 [03:19:38]MH_I2C_Read... [03:19:38]Read from MH i2c: E2 17 00 [03:19:38]MH_I2C_Read... [03:19:38]Read from MH i2c: E2 17 00 41 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 3E [03:19:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [03:19:38]wFMCommunicate OK [03:19:38]CreateOFDProtocolMessage done [03:19:38]OFDSenderStorePacket 1971 [03:19:38]StoreOFDPacket docnum=1971 [03:19:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 22 01 00 00 02 53 1A 01 3A 61 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 10 27 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 16 00 00 00 F4 03 04 00 CC B8 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 B3 07 00 00 35 04 06 00 14 B3 1E 13 9F 99 DE 8B D3 7D 59 8F 84 6F [03:19:38]CheckFolder [03:19:38]dirname=/storage/ofd_packets [03:19:38]CheckFolder done [03:19:38]ProducePacketName [03:19:38]name=ofd_packets/00001971 [03:19:38]NVStorageSaveData ofd_packets/00001971 [03:19:38]File name is /storage/ofd_packets/00001971 [03:19:38]Write 320 bytes [03:19:38]NVStorageSaveData done [03:19:38]OFDSenderStorePacket done [03:19:38]KKMCreateOFDPacket done [03:19:38]NVStorageSaveData kkm_last_timestamp [03:19:38]File name is /storage/kkm_last_timestamp [03:19:38]Write 4 bytes [03:19:38]NVStorageSaveData done [03:19:38]ExternCall_PrintAddStr [03:19:38]wPrintStart [03:19:38]Write to MH i2c: 01 00 00 42 33 75 [03:19:38]Write i2c OK [03:19:38]MH_I2C_Read... [03:19:38]Read from MH i2c: 01 [03:19:38]MH_I2C_Read... [03:19:38]Read from MH i2c: 01 07 00 [03:19:38]MH_I2C_Read... [03:19:38]Read from MH i2c: 01 07 00 42 33 00 00 00 00 00 FF 0F 8A [03:19:38]RasterBufferAndPrint [03:19:38]line Счет N : (3)126281 [03:19:38]line ИНН: 02508201610067 [03:19:38]line Контрольно-Кассовый Чек [03:19:38]line ПРОДАЖА [03:19:38]line Товар: 4700000480814 [03:19:38]line Пиво Живое 0,5 ст [03:19:38]line 2.000 * 100.00 [03:19:38]line = 200.00 [03:19:38]line НДС 12% НСП 1% [03:19:38]line > о реализуемом товаре [03:19:38]line ИТОГО: 200.00 [03:19:38]line НСП 1% : 1.77 [03:19:38]line НДС 12% : 21.24 [03:19:38]line Наличными: 200.00 [03:19:38]line Безнал.: 0.00 [03:19:38]line Место: АЗС № 127 "Партнер Нефть" [03:19:38]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [03:19:38]line СНО: Общий режим [03:19:38]line Чек 22 28.07.2024 03:19 [03:19:38]line Смена: 13 ФФД: 1.0 [03:19:38]line ЗНМ: 0300000161 [03:19:38]line РНМ: 0000000000189667 [03:19:38]line Версия ККМ: v1.0 [03:19:38]line ФМ: 0000000002094248 [03:19:38]line ФД: 1971 [03:19:38]line ФПД: 22759536304025 [03:19:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T031940&type=1&operation_type=1&fn_number=0000000002094248&fd_number=1971&fm=22759536304025&tin=02508201610067®Number=0000000000189667&sum=20000 [03:19:38]line 0 [03:19:38]OFD Sender: Processing packet 1971 [packets to send 1, broken 0] [03:19:38]ProducePacketName [03:19:38]name=ofd_packets/00001971 [03:19:38]OFD Sender: To server: pG, [03:19:38]CommunicateWithHost lk.salyk.kg:30040 [03:19:38]ConnectInit lk.salyk.kg [03:19:38]written 0, free lines is 4095 [03:19:38]Connected sock=10 [03:19:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 22 01 00 00 02 53 1A 01 3A 61 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 10 27 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 16 00 00 00 F4 03 04 00 CC B8 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 B3 07 00 00 35 04 06 00 14 B3 1E 13 9F 99 DE 8B D3 7D 59 8F 84 6F [03:19:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 33 97 47 00 1F 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 B3 07 00 00 F4 03 04 00 3D 64 A5 66 B6 04 01 00 00 42 54 18 D0 03 71 88 23 [03:19:39]CommunicateWithHost err = 0 [03:19:39]CheckOFDResponse [03:19:39]1017 (14) - 77093643461234 [03:19:39]1041 (16) - 0000000002094248 [03:19:39]1040 (4) - 1971 [03:19:39]1012 (4) - 27.07.2024 21:18 [03:19:39]1206 (1) - 0 [03:19:39]OFD Sender: Remove packet 1971 [03:19:39]ProducePacketName [03:19:39]name=ofd_packets/00001971 [03:19:39]NVStorageDeleteData [03:19:39]Write to MH i2c: 01 00 00 6A 33 9D [03:19:39]Write i2c OK [03:19:39]MH_I2C_Read... [03:19:39]Read from MH i2c: 01 [03:19:39]MH_I2C_Read... [03:19:39]Read from MH i2c: 01 07 00 [03:19:39]MH_I2C_Read... [03:19:39]Read from MH i2c: 01 07 00 6A 33 00 00 00 00 00 0F 0D C0 [03:19:39]RasterBufferAndPrint [03:19:39]line [03:19:39]line [03:19:39]line [03:19:39]line [03:19:39]line [03:19:39]written 0, free lines is 3349 [03:19:39]MH_Cut [03:19:39]Write to MH i2c: D1 01 00 71 33 01 76 [03:19:39]Write i2c OK [03:19:39]MH_I2C_Read... [03:19:39]Read from MH i2c: D1 [03:19:39]MH_I2C_Read... [03:19:39]Read from MH i2c: D1 01 00 [03:19:39]MH_I2C_Read... [03:19:39]Read from MH i2c: D1 01 00 71 33 00 75 [03:19:39]Write to MH i2c: 01 00 00 72 33 A5 [03:19:39]Write i2c OK [03:19:39]MH_I2C_Read... [03:19:39]OFD Sender: No OFD packet to send [03:19:39]*** Cut start [03:19:39]*** Partial cut [03:19:39]*** CUTSNS_PIN = 1 [03:19:39]*** CUTSNS_PIN = 0 [03:19:40]*** Brake cut motor [03:19:40]Read from MH i2c: 01 [03:19:40]MH_I2C_Read... [03:19:40]*** Stop cut motor [03:19:40]*** Cut end [03:19:40]Read from MH i2c: 01 07 00 [03:19:40]MH_I2C_Read... [03:19:40]Read from MH i2c: 01 07 00 72 33 00 00 00 00 00 FF 0F BA [03:19:40]process_action close_receipt done [03:19:40]requested_data is exist [03:19:40]produce_requested_data [03:19:40]requested_item fm.sn is exist - process it [03:19:40]wFMCommunicate request_size=4 [03:19:40]MH_SAM_APDU [03:19:40]CAPDU: 80 11 00 00 [03:19:40]Write to MH i2c: E2 08 00 73 33 80 11 00 00 00 00 00 00 20 [03:19:40]Write i2c OK [03:19:40]MH_I2C_Read... [03:19:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:19:40]Read from MH i2c: E2 [03:19:40]MH_I2C_Read... [03:19:40]Read from MH i2c: E2 17 00 [03:19:40]MH_I2C_Read... [03:19:40]Read from MH i2c: E2 17 00 73 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 70 [03:19:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [03:19:40]wFMCommunicate OK [03:19:40]requested_item fd.num is exist - process it [03:19:40]SAM_PROTO_GetFieldsCounters [03:19:40]wFMCommunicate request_size=4 [03:19:40]MH_SAM_APDU [03:19:40]CAPDU: 80 13 00 00 [03:19:40]Write to MH i2c: E2 08 00 74 33 80 13 00 00 00 00 00 00 23 [03:19:40]Write i2c OK [03:19:40]MH_I2C_Read... [03:19:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:19:40]Read from MH i2c: E2 [03:19:40]MH_I2C_Read... [03:19:40]Read from MH i2c: E2 62 00 [03:19:40]MH_I2C_Read... [03:19:40]Read from MH i2c: E2 62 00 74 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 B3 07 00 00 0E 04 04 00 0D 00 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 56 [03:19:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 B3 07 00 00 0E 04 04 00 0D 00 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 [03:19:40]wFMCommunicate OK [03:19:40]SAM_PROTO_GetFieldsCounters done [03:19:40]requested_item shift.num is exist - process it [03:19:40]requested_item shift.opened is exist - process it [03:19:40]req_shift_opened [03:19:40]FM_GetShiftState [03:19:40]SAM_PROTO_GetShiftState [03:19:40]wFMCommunicate request_size=4 [03:19:40]MH_SAM_APDU [03:19:40]CAPDU: 80 13 01 00 [03:19:40]Write to MH i2c: E2 08 00 75 33 80 13 01 00 00 00 00 00 25 [03:19:40]Write i2c OK [03:19:40]MH_I2C_Read... [03:19:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:19:40]Read from MH i2c: E2 [03:19:40]MH_I2C_Read... [03:19:40]Read from MH i2c: E2 0E 00 [03:19:40]MH_I2C_Read... [03:19:40]Read from MH i2c: E2 0E 00 75 33 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 19 [03:19:40]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [03:19:40]wFMCommunicate OK [03:19:40]SAM_PROTO_GetShiftState done [03:19:40]FM_GetShiftState done [03:19:40]req_shift_opened done [03:19:40]requested_item shift.open_date is exist - process it [03:19:40]req_shift_open_date [03:19:40]req_shift_open_date done [03:19:40]produce_requested_data done [03:19:40]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":1971,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [03:19:40]process_action_free close_receipt [03:19:40]json_value_free [03:19:40]json_value_free done [03:19:40]process_json_proto returns [03:19:40]Send response to host [03:19:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":1971,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [03:19:40]free response buf [03:19:40]execute_script done [03:19:40]execute_script returns [03:19:40]free content buf [03:19:40]Sock 9.Close socket [03:19:40]Sock 9.Thread stoped [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:48]accept exits with 8 [03:20:48]New connection [03:20:48]New thread 3067317604 created [03:20:48]Thread 3067460964 joined [03:20:48]Waiting for new connection... [03:20:48] Sock 8.Parse request [03:20:48]Sock 8.Check first char [03:20:48]Sock 8.First char is OK [03:20:48]request: POST /json_proto HTTP/1.0 [03:20:48]Method: POST [03:20:48]URL: /json_proto [03:20:48]Method is POST - this is cgi request [03:20:48]url: /json_proto [03:20:48]query_string will be loaded in cgi processing [03:20:48]execute_cgi json_proto POST (null) [03:20:48]execute_cgi path=json_proto method=POST [03:20:48]POST find Content-Length [03:20:48]Host: 172.17.45.132:8080 [03:20:48]Content-Length: 624 [03:20:48]Content-Type: application/json [03:20:48] [03:20:48]POST finish read [03:20:48]Found Content-Length = 624 [03:20:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126282", "tax_sys" : 0, "items" : [ { "code": "4600721021627", "name": "\u041F\u0438\u0432\u043E \u0411\u0410\u0414 0,5\u043B \u0441\u0442", "price" : 150.00, "quantity" : 3.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" ] } } [03:20:48]execute_script... [03:20: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)126282", "tax_sys" : 0, "items" : [ { "code": "4600721021627", "name": "\u041F\u0438\u0432\u043E \u0411\u0410\u0414 0,5\u043B \u0441\u0442", "price" : 150.00, "quantity" : 3.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" ] } } [03:20:48]POST & json_proto [03:20:48]process_json_proto [03:20:48]json parsed OK: [03:20:48]protocol is kg_v1.0 [03:20:48]action value=close_receipt [03:20:48]process_action close_receipt [03:20:48]cmd_close_receipt [03:20:48]MH_GetDate [03:20:48]Write to MH i2c: F0 00 00 76 33 98 [03:20:48]Write i2c OK [03:20:48]MH_I2C_Read... [03:20:48]Read from MH i2c: F0 [03:20:48]MH_I2C_Read... [03:20:48]Read from MH i2c: F0 09 00 [03:20:48]MH_I2C_Read... [03:20:48]Read from MH i2c: F0 09 00 76 33 00 14 B9 A5 66 E3 0B 90 66 5D [03:20:48]GetLastDocTimeStamp 1722136780 [03:20:48]current date 1722136852 [03:20:48]FM_GetShiftState [03:20:48]SAM_PROTO_GetShiftState [03:20:48]wFMCommunicate request_size=4 [03:20:48]MH_SAM_APDU [03:20:48]CAPDU: 80 13 01 00 [03:20:48]Write to MH i2c: E2 08 00 77 33 80 13 01 00 00 00 00 00 27 [03:20:48]Write i2c OK [03:20:48]MH_I2C_Read... [03:20:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:20:48]Read from MH i2c: E2 [03:20:48]MH_I2C_Read... [03:20:48]Read from MH i2c: E2 0E 00 [03:20:48]MH_I2C_Read... [03:20:48]Read from MH i2c: E2 0E 00 77 33 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 1B [03:20:48]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [03:20:48]wFMCommunicate OK [03:20:48]SAM_PROTO_GetShiftState done [03:20:48]FM_GetShiftState done [03:20:48]opened in 1722125648 [03:20:48]opened+sec_in_day 1722212048 [03:20:48]quantity*price = 45000 [03:20:48]sum+1 = 45001 [03:20:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 450.00 НСП 1% : 3.98 НДС 12% : 47.79 Наличными: 450.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 23 28.07.2024 03:20 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 1972 ФПД: 242912582914149 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T032052&type=1&operation_type=1&fn_number=0000000002094248&fd_number=1972&fm=242912582914149&tin=02508201610067®Number=0000000000189667&sum=45000 0 [03:20:49]StoreToDocumentArchive [03:20:49]shift 13 fd 1972 [03:20:49]save to /storage/0013/doc_00001972 [03:20:49]save last doc name /storage/0013/doc_00001972 to /storage/kkm_last_doc_name [03:20:49]save OK [03:20:49]Clear old archive folders... [03:20:49]ProcessDocumentItem done err = 0, tmpTLVsize=268 [03:20:49]tlvbuf is B6E24610 [03:20:49]SAM_PROTO_ClearQueue [03:20:49]wFMCommunicate request_size=4 [03:20:49]MH_SAM_APDU [03:20:49]CAPDU: 80 09 00 00 [03:20:49]Write to MH i2c: E2 08 00 84 33 80 09 00 00 00 00 00 00 29 [03:20:49]Write i2c OK [03:20:49]MH_I2C_Read... [03:20:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:20:49]Read from MH i2c: E2 [03:20:49]MH_I2C_Read... [03:20:49]Read from MH i2c: E2 03 00 [03:20:49]MH_I2C_Read... [03:20:49]Read from MH i2c: E2 03 00 84 33 00 90 00 2B [03:20:49]RAPDU: 90 00 [03:20:49]wFMCommunicate OK [03:20:49]SAM_PROTO_ClearQueue done [03:20:49]KKMCreateOFDPacket [03:20:49]OFDProtocolAddRootSTLVToBuf [03:20:49]FM_MakeSignedData [03:20:49]FM_MakeSignedData [03:20:49]SAM_PROTO_SignData [03:20:49]wFMCommunicate request_size=4 [03:20:49]MH_SAM_APDU [03:20:49]CAPDU: 80 0D 01 02 [03:20:49]Write to MH i2c: E2 08 00 85 33 80 0D 01 02 00 00 00 00 31 [03:20:49]Write i2c OK [03:20:49]MH_I2C_Read... [03:20:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:20:49]Read from MH i2c: E2 [03:20:49]MH_I2C_Read... [03:20:49]Read from MH i2c: E2 03 00 [03:20:49]MH_I2C_Read... [03:20:49]Read from MH i2c: E2 03 00 85 33 00 90 00 2C [03:20:49]RAPDU: 90 00 [03:20:49]wFMCommunicate OK [03:20:49]wFMCommunicate request_size=255 [03:20:49]MH_SAM_APDU [03:20:49]CAPDU: 80 0D 02 02 FA 03 00 0C 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 B8 0B 00 00 00 00 00 37 04 06 00 98 3A 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 17 00 00 00 F4 03 04 00 14 B9 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 [03:20:49]Write to MH i2c: E2 02 01 86 33 80 0D 02 02 FA 00 03 00 0C 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 B8 0B 00 00 00 00 00 37 04 06 00 98 3A 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 17 00 00 00 F4 03 04 00 14 B9 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 00 00 06 [03:20:50]Write i2c OK [03:20:50]MH_I2C_Read... [03:20:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:20:50]Read from MH i2c: E2 [03:20:50]MH_I2C_Read... [03:20:50]Read from MH i2c: E2 03 00 [03:20:50]MH_I2C_Read... [03:20:50]Read from MH i2c: E2 03 00 86 33 00 90 00 2D [03:20:50]RAPDU: 90 00 [03:20:50]wFMCommunicate OK [03:20:50]wFMCommunicate request_size=27 [03:20:50]MH_SAM_APDU [03:20:50]CAPDU: 80 0D 02 02 16 34 32 34 38 10 04 04 00 B4 07 00 00 35 04 06 00 DC ED 7E 37 50 65 [03:20:50]Write to MH i2c: E2 1E 00 87 33 80 0D 02 02 16 00 34 32 34 38 10 04 04 00 B4 07 00 00 35 04 06 00 DC ED 7E 37 50 65 00 00 77 [03:20:50]Write i2c OK [03:20:50]MH_I2C_Read... [03:20:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:20:50]Read from MH i2c: E2 [03:20:50]MH_I2C_Read... [03:20:50]Read from MH i2c: E2 03 00 [03:20:50]MH_I2C_Read... [03:20:50]Read from MH i2c: E2 03 00 87 33 00 90 00 2E [03:20:50]RAPDU: 90 00 [03:20:50]wFMCommunicate OK [03:20:50]wFMCommunicate request_size=4 [03:20:50]MH_SAM_APDU [03:20:50]CAPDU: 80 0D 03 02 [03:20:50]Write to MH i2c: E2 08 00 88 33 80 0D 03 02 00 00 00 00 36 [03:20:50]Write i2c OK [03:20:50]MH_I2C_Read... [03:20:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:20:50]Read from MH i2c: E2 [03:20:50]MH_I2C_Read... [03:20:50]Read from MH i2c: E2 0B 00 [03:20:50]MH_I2C_Read... [03:20:50]Read from MH i2c: E2 0B 00 88 33 00 C2 12 4A 1A 74 06 6B 54 90 00 A8 [03:20:50]RAPDU: C2 12 4A 1A 74 06 6B 54 90 00 [03:20:50]wFMCommunicate OK [03:20:50]SAM_PROTO_SignData done [03:20:50]FM_MakeSignedData done [03:20:50]CreateOFDProtocolMessage [03:20:50]wFMCommunicate request_size=4 [03:20:50]MH_SAM_APDU [03:20:50]CAPDU: 80 11 00 00 [03:20:50]Write to MH i2c: E2 08 00 89 33 80 11 00 00 00 00 00 00 36 [03:20:50]Write i2c OK [03:20:50]MH_I2C_Read... [03:20:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:20:50]Read from MH i2c: E2 [03:20:50]MH_I2C_Read... [03:20:50]Read from MH i2c: E2 17 00 [03:20:50]MH_I2C_Read... [03:20:50]Read from MH i2c: E2 17 00 89 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 86 [03:20:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [03:20:50]wFMCommunicate OK [03:20:50]CreateOFDProtocolMessage done [03:20:50]OFDSenderStorePacket 1972 [03:20:50]StoreOFDPacket docnum=1972 [03:20:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 20 01 00 00 42 D4 18 01 74 C3 5A 03 01 00 03 00 0C 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 B8 0B 00 00 00 00 00 37 04 06 00 98 3A 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 17 00 00 00 F4 03 04 00 14 B9 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 B4 07 00 00 35 04 06 00 DC ED 7E 37 50 65 C2 12 4A 1A 74 06 6B 54 [03:20:50]CheckFolder [03:20:50]dirname=/storage/ofd_packets [03:20:50]CheckFolder done [03:20:50]ProducePacketName [03:20:50]name=ofd_packets/00001972 [03:20:50]NVStorageSaveData ofd_packets/00001972 [03:20:50]File name is /storage/ofd_packets/00001972 [03:20:50]Write 318 bytes [03:20:50]NVStorageSaveData done [03:20:50]OFDSenderStorePacket done [03:20:50]KKMCreateOFDPacket done [03:20:50]NVStorageSaveData kkm_last_timestamp [03:20:50]File name is /storage/kkm_last_timestamp [03:20:50]Write 4 bytes [03:20:50]NVStorageSaveData done [03:20:50]ExternCall_PrintAddStr [03:20:50]wPrintStart [03:20:50]Write to MH i2c: 01 00 00 8A 33 BD [03:20:50]Write i2c OK [03:20:50]MH_I2C_Read... [03:20:50]Read from MH i2c: 01 [03:20:50]MH_I2C_Read... [03:20:50]Read from MH i2c: 01 07 00 [03:20:50]MH_I2C_Read... [03:20:50]Read from MH i2c: 01 07 00 8A 33 00 00 00 00 00 FF 0F D2 [03:20:50]RasterBufferAndPrint [03:20:50]line Счет N : (3)126282 [03:20:50]line ИНН: 02508201610067 [03:20:50]line Контрольно-Кассовый Чек [03:20:50]line ПРОДАЖА [03:20:50]line Товар: 4600721021627 [03:20:50]line Пиво БАД 0,5л ст [03:20:50]line 3.000 * 150.00 [03:20:50]line = 450.00 [03:20:50]line НДС 12% НСП 1% [03:20:50]line > о реализуемом товаре [03:20:50]line ИТОГО: 450.00 [03:20:50]line НСП 1% : 3.98 [03:20:50]line НДС 12% : 47.79 [03:20:50]line Наличными: 450.00 [03:20:50]line Безнал.: 0.00 [03:20:50]line Место: АЗС № 127 "Партнер Нефть" [03:20:50]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [03:20:50]line СНО: Общий режим [03:20:50]line Чек 23 28.07.2024 03:20 [03:20:50]line Смена: 13 ФФД: 1.0 [03:20:50]line ЗНМ: 0300000161 [03:20:50]line РНМ: 0000000000189667 [03:20:50]line Версия ККМ: v1.0 [03:20:50]line ФМ: 0000000002094248 [03:20:50]line ФД: 1972 [03:20:50]line ФПД: 242912582914149 [03:20:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T032052&type=1&operation_type=1&fn_number=0000000002094248&fd_number=1972&fm=242912582914149&tin=02508201610067®Number=0000000000189667&sum=45000 [03:20:50]line 0 [03:20:50]OFD Sender: Processing packet 1972 [packets to send 1, broken 0] [03:20:50]ProducePacketName [03:20:50]name=ofd_packets/00001972 [03:20:50]OFD Sender: To server: pG, [03:20:50]CommunicateWithHost lk.salyk.kg:30040 [03:20:50]ConnectInit lk.salyk.kg [03:20:50]written 0, free lines is 4095 [03:20:50]Connected sock=10 [03:20:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 20 01 00 00 42 D4 18 01 74 C3 5A 03 01 00 03 00 0C 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 B8 0B 00 00 00 00 00 37 04 06 00 98 3A 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 17 00 00 00 F4 03 04 00 14 B9 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 B4 07 00 00 35 04 06 00 DC ED 7E 37 50 65 C2 12 4A 1A 74 06 6B 54 [03:20:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 EE 1F 47 00 70 C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 B4 07 00 00 F4 03 04 00 85 64 A5 66 B6 04 01 00 00 27 02 A0 47 23 48 17 9A [03:20:51]CommunicateWithHost err = 0 [03:20:51]CheckOFDResponse [03:20:51]1017 (14) - 77093643461234 [03:20:51]1041 (16) - 0000000002094248 [03:20:51]1040 (4) - 1972 [03:20:51]1012 (4) - 27.07.2024 21:20 [03:20:51]1206 (1) - 0 [03:20:51]OFD Sender: Remove packet 1972 [03:20:51]ProducePacketName [03:20:51]name=ofd_packets/00001972 [03:20:51]NVStorageDeleteData [03:20:51]Write to MH i2c: 01 00 00 B2 33 E5 [03:20:51]Write i2c OK [03:20:51]MH_I2C_Read... [03:20:51]Read from MH i2c: 01 [03:20:51]MH_I2C_Read... [03:20:51]Read from MH i2c: 01 07 00 [03:20:51]MH_I2C_Read... [03:20:51]Read from MH i2c: 01 07 00 B2 33 00 00 00 00 00 17 0D 10 [03:20:51]RasterBufferAndPrint [03:20:51]line [03:20:51]line [03:20:51]line [03:20:51]line [03:20:51]line [03:20:51]written 0, free lines is 3357 [03:20:51]MH_Cut [03:20:51]Write to MH i2c: D1 01 00 B9 33 01 BE [03:20:51]Write i2c OK [03:20:51]MH_I2C_Read... [03:20:51]Read from MH i2c: D1 [03:20:51]MH_I2C_Read... [03:20:51]Read from MH i2c: D1 01 00 [03:20:51]MH_I2C_Read... [03:20:51]Read from MH i2c: D1 01 00 B9 33 00 BD [03:20:51]Write to MH i2c: 01 00 00 BA 33 ED [03:20:51]Write i2c OK [03:20:51]MH_I2C_Read... [03:20:51]OFD Sender: No OFD packet to send [03:20:51]*** Cut start [03:20:51]*** Partial cut [03:20:51]*** CUTSNS_PIN = 1 [03:20:51]*** CUTSNS_PIN = 0 [03:20:52]*** Brake cut motor [03:20:52]Read from MH i2c: 01 [03:20:52]MH_I2C_Read... [03:20:52]*** Stop cut motor [03:20:52]*** Cut end [03:20:52]Read from MH i2c: 01 07 00 [03:20:52]MH_I2C_Read... [03:20:52]Read from MH i2c: 01 07 00 BA 33 00 00 00 00 00 FF 0F 02 [03:20:52]process_action close_receipt done [03:20:52]requested_data is exist [03:20:52]produce_requested_data [03:20:52]requested_item fm.sn is exist - process it [03:20:52]wFMCommunicate request_size=4 [03:20:52]MH_SAM_APDU [03:20:52]CAPDU: 80 11 00 00 [03:20:52]Write to MH i2c: E2 08 00 BB 33 80 11 00 00 00 00 00 00 68 [03:20:52]Write i2c OK [03:20:52]MH_I2C_Read... [03:20:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:20:52]Read from MH i2c: E2 [03:20:52]MH_I2C_Read... [03:20:52]Read from MH i2c: E2 17 00 [03:20:52]MH_I2C_Read... [03:20:52]Read from MH i2c: E2 17 00 BB 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 B8 [03:20:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [03:20:52]wFMCommunicate OK [03:20:52]requested_item fd.num is exist - process it [03:20:52]SAM_PROTO_GetFieldsCounters [03:20:52]wFMCommunicate request_size=4 [03:20:52]MH_SAM_APDU [03:20:52]CAPDU: 80 13 00 00 [03:20:52]Write to MH i2c: E2 08 00 BC 33 80 13 00 00 00 00 00 00 6B [03:20:52]Write i2c OK [03:20:52]MH_I2C_Read... [03:20:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:20:52]Read from MH i2c: E2 [03:20:52]MH_I2C_Read... [03:20:52]Read from MH i2c: E2 62 00 [03:20:52]MH_I2C_Read... [03:20:52]Read from MH i2c: E2 62 00 BC 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 B4 07 00 00 0E 04 04 00 0D 00 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 A2 [03:20:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 B4 07 00 00 0E 04 04 00 0D 00 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 [03:20:52]wFMCommunicate OK [03:20:52]SAM_PROTO_GetFieldsCounters done [03:20:52]requested_item shift.num is exist - process it [03:20:52]requested_item shift.opened is exist - process it [03:20:52]req_shift_opened [03:20:52]FM_GetShiftState [03:20:52]SAM_PROTO_GetShiftState [03:20:52]wFMCommunicate request_size=4 [03:20:52]MH_SAM_APDU [03:20:52]CAPDU: 80 13 01 00 [03:20:52]Write to MH i2c: E2 08 00 BD 33 80 13 01 00 00 00 00 00 6D [03:20:52]Write i2c OK [03:20:52]MH_I2C_Read... [03:20:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:20:52]Read from MH i2c: E2 [03:20:52]MH_I2C_Read... [03:20:52]Read from MH i2c: E2 0E 00 [03:20:52]MH_I2C_Read... [03:20:52]Read from MH i2c: E2 0E 00 BD 33 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 61 [03:20:52]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [03:20:52]wFMCommunicate OK [03:20:52]SAM_PROTO_GetShiftState done [03:20:52]FM_GetShiftState done [03:20:52]req_shift_opened done [03:20:52]requested_item shift.open_date is exist - process it [03:20:52]req_shift_open_date [03:20:52]req_shift_open_date done [03:20:52]produce_requested_data done [03:20:52]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":1972,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [03:20:52]process_action_free close_receipt [03:20:52]json_value_free [03:20:52]json_value_free done [03:20:52]process_json_proto returns [03:20:52]Send response to host [03:20:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":1972,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [03:20:52]free response buf [03:20:52]execute_script done [03:20:52]execute_script returns [03:20:52]free content buf [03:20:52]Sock 8.Close socket [03:20:52]Sock 8.Thread stoped [03:20:56]OFD Sender: No OFD packet to send [03:21:01]OFD Sender: No OFD packet to send [03:21:06]OFD Sender: No OFD packet to send [03:21:11]OFD Sender: No OFD packet to send [03:21:16]OFD Sender: No OFD packet to send [03:21:21]OFD Sender: No OFD packet to send [03:21:26]OFD Sender: No OFD packet to send [03:21:31]OFD Sender: No OFD packet to send [03:21:36]OFD Sender: No OFD packet to send [03:21:41]OFD Sender: No OFD packet to send [03:21:46]OFD Sender: No OFD packet to send [03:21:51]OFD Sender: No OFD packet to send [03:21:56]OFD Sender: No OFD packet to send [03:22:01]OFD Sender: No OFD packet to send [03:22:06]OFD Sender: No OFD packet to send [03:22:11]OFD Sender: No OFD packet to send [03:22:16]OFD Sender: No OFD packet to send [03:22:21]OFD Sender: No OFD packet to send [03:22:26]OFD Sender: No OFD packet to send [03:22:31]OFD Sender: No OFD packet to send [03:22:36]OFD Sender: No OFD packet to send [03:22:41]OFD Sender: No OFD packet to send [03:22:46]OFD Sender: No OFD packet to send [03:22:51]OFD Sender: No OFD packet to send [03:22:56]OFD Sender: No OFD packet to send [03:23:01]OFD Sender: No OFD packet to send [03:23:06]OFD Sender: No OFD packet to send [03:23:11]OFD Sender: No OFD packet to send [03:23:16]OFD Sender: No OFD packet to send [03:23:21]OFD Sender: No OFD packet to send [03:23:26]OFD Sender: No OFD packet to send [03:23:31]OFD Sender: No OFD packet to send [03:23:36]OFD Sender: No OFD packet to send [03:23:41]OFD Sender: No OFD packet to send [03:23:46]OFD Sender: No OFD packet to send [03:23:51]OFD Sender: No OFD packet to send [03:23:56]OFD Sender: No OFD packet to send [03:24:01]OFD Sender: No OFD packet to send [03:24:06]OFD Sender: No OFD packet to send [03:24:11]OFD Sender: No OFD packet to send [03:24:16]OFD Sender: No OFD packet to send [03:24:21]OFD Sender: No OFD packet to send [03:24:26]OFD Sender: No OFD packet to send [03:24:31]OFD Sender: No OFD packet to send [03:24:36]OFD Sender: No OFD packet to send [03:24:41]OFD Sender: No OFD packet to send [03:24:46]OFD Sender: No OFD packet to send [03:24:51]OFD Sender: No OFD packet to send [03:24:56]OFD Sender: No OFD packet to send [03:25:01]OFD Sender: No OFD packet to send [03:25:06]OFD Sender: No OFD packet to send [03:25:11]OFD Sender: No OFD packet to send [03:25:16]OFD Sender: No OFD packet to send [03:25:21]OFD Sender: No OFD packet to send [03:25:26]OFD Sender: No OFD packet to send [03:25:31]OFD Sender: No OFD packet to send [03:25:36]OFD Sender: No OFD packet to send [03:25:41]OFD Sender: No OFD packet to send [03:25:46]OFD Sender: No OFD packet to send [03:25:51]OFD Sender: No OFD packet to send [03:25:56]OFD Sender: No OFD packet to send [03:26:01]OFD Sender: No OFD packet to send [03:26:06]OFD Sender: No OFD packet to send [03:26:11]OFD Sender: No OFD packet to send [03:26:16]OFD Sender: No OFD packet to send [03:26:21]OFD Sender: No OFD packet to send [03:26:26]OFD Sender: No OFD packet to send [03:26:31]OFD Sender: No OFD packet to send [03:26:36]OFD Sender: No OFD packet to send [03:26:41]OFD Sender: No OFD packet to send [03:26:46]OFD Sender: No OFD packet to send [03:26:51]OFD Sender: No OFD packet to send [03:26:56]OFD Sender: No OFD packet to send [03:27:01]OFD Sender: No OFD packet to send [03:27:06]OFD Sender: No OFD packet to send [03:27:11]OFD Sender: No OFD packet to send [03:27:16]OFD Sender: No OFD packet to send [03:27:21]OFD Sender: No OFD packet to send [03:27:26]OFD Sender: No OFD packet to send [03:27:31]OFD Sender: No OFD packet to send [03:27:36]OFD Sender: No OFD packet to send [03:27:41]OFD Sender: No OFD packet to send [03:27:46]OFD Sender: No OFD packet to send [03:27:51]OFD Sender: No OFD packet to send [03:27:56]OFD Sender: No OFD packet to send [03:28:01]OFD Sender: No OFD packet to send [03:28:06]OFD Sender: No OFD packet to send [03:28:11]OFD Sender: No OFD packet to send [03:28:16]OFD Sender: No OFD packet to send [03:28:21]OFD Sender: No OFD packet to send [03:28:26]OFD Sender: No OFD packet to send [03:28:31]OFD Sender: No OFD packet to send [03:28:36]OFD Sender: No OFD packet to send [03:28:41]OFD Sender: No OFD packet to send [03:28:46]OFD Sender: No OFD packet to send [03:28:51]OFD Sender: No OFD packet to send [03:28:57]OFD Sender: No OFD packet to send [03:29:02]OFD Sender: No OFD packet to send [03:29:07]OFD Sender: No OFD packet to send [03:29:12]OFD Sender: No OFD packet to send [03:29:17]OFD Sender: No OFD packet to send [03:29:22]OFD Sender: No OFD packet to send [03:29:27]OFD Sender: No OFD packet to send [03:29:32]OFD Sender: No OFD packet to send [03:29:37]OFD Sender: No OFD packet to send [03:29:42]OFD Sender: No OFD packet to send [03:29:47]OFD Sender: No OFD packet to send [03:29:52]OFD Sender: No OFD packet to send [03:29:57]OFD Sender: No OFD packet to send [03:30:02]OFD Sender: No OFD packet to send [03:30:07]OFD Sender: No OFD packet to send [03:30:12]OFD Sender: No OFD packet to send [03:30:17]OFD Sender: No OFD packet to send [03:30:22]OFD Sender: No OFD packet to send [03:30:27]OFD Sender: No OFD packet to send [03:30:32]OFD Sender: No OFD packet to send [03:30:37]OFD Sender: No OFD packet to send [03:30:42]OFD Sender: No OFD packet to send [03:30:47]OFD Sender: No OFD packet to send [03:30:52]OFD Sender: No OFD packet to send [03:30:57]OFD Sender: No OFD packet to send [03:31:02]OFD Sender: No OFD packet to send [03:31:07]OFD Sender: No OFD packet to send [03:31:12]OFD Sender: No OFD packet to send [03:31:17]OFD Sender: No OFD packet to send [03:31:22]OFD Sender: No OFD packet to send [03:31:27]OFD Sender: No OFD packet to send [03:31:32]OFD Sender: No OFD packet to send [03:31:37]OFD Sender: No OFD packet to send [03:31:42]OFD Sender: No OFD packet to send [03:31:47]OFD Sender: No OFD packet to send [03:31:52]OFD Sender: No OFD packet to send [03:31:57]OFD Sender: No OFD packet to send [03:32:02]OFD Sender: No OFD packet to send [03:32:07]OFD Sender: No OFD packet to send [03:32:12]OFD Sender: No OFD packet to send [03:32:17]OFD Sender: No OFD packet to send [03:32:22]OFD Sender: No OFD packet to send [03:32:27]OFD Sender: No OFD packet to send [03:32:32]OFD Sender: No OFD packet to send [03:32:37]OFD Sender: No OFD packet to send [03:32:42]OFD Sender: No OFD packet to send [03:32:47]OFD Sender: No OFD packet to send [03:32:52]OFD Sender: No OFD packet to send [03:32:57]OFD Sender: No OFD packet to send [03:33:02]OFD Sender: No OFD packet to send [03:33:07]OFD Sender: No OFD packet to send [03:33:12]OFD Sender: No OFD packet to send [03:33:17]OFD Sender: No OFD packet to send [03:33:22]OFD Sender: No OFD packet to send [03:33:27]OFD Sender: No OFD packet to send [03:33:32]OFD Sender: No OFD packet to send [03:33:37]OFD Sender: No OFD packet to send [03:33:42]OFD Sender: No OFD packet to send [03:33:47]OFD Sender: No OFD packet to send [03:33:52]OFD Sender: No OFD packet to send [03:33:57]OFD Sender: No OFD packet to send [03:34:02]OFD Sender: No OFD packet to send [03:34:07]OFD Sender: No OFD packet to send [03:34:12]OFD Sender: No OFD packet to send [03:34:17]OFD Sender: No OFD packet to send [03:34:22]OFD Sender: No OFD packet to send [03:34:27]OFD Sender: No OFD packet to send [03:34:32]OFD Sender: No OFD packet to send [03:34:37]OFD Sender: No OFD packet to send [03:34:42]OFD Sender: No OFD packet to send [03:34:47]OFD Sender: No OFD packet to send [03:34:52]OFD Sender: No OFD packet to send [03:34:57]OFD Sender: No OFD packet to send [03:35:02]OFD Sender: No OFD packet to send [03:35:07]OFD Sender: No OFD packet to send [03:35:12]OFD Sender: No OFD packet to send [03:35:17]OFD Sender: No OFD packet to send [03:35:22]OFD Sender: No OFD packet to send [03:35:27]OFD Sender: No OFD packet to send [03:35:32]OFD Sender: No OFD packet to send [03:35:37]OFD Sender: No OFD packet to send [03:35:42]OFD Sender: No OFD packet to send [03:35:47]OFD Sender: No OFD packet to send [03:35:52]OFD Sender: No OFD packet to send [03:35:57]OFD Sender: No OFD packet to send [03:36:02]OFD Sender: No OFD packet to send [03:36:07]OFD Sender: No OFD packet to send [03:36:12]OFD Sender: No OFD packet to send [03:36:17]OFD Sender: No OFD packet to send [03:36:22]OFD Sender: No OFD packet to send [03:36:27]OFD Sender: No OFD packet to send [03:36:32]OFD Sender: No OFD packet to send [03:36:37]OFD Sender: No OFD packet to send [03:36:42]OFD Sender: No OFD packet to send [03:36:47]OFD Sender: No OFD packet to send [03:36:52]OFD Sender: No OFD packet to send [03:36:57]OFD Sender: No OFD packet to send [03:37:02]OFD Sender: No OFD packet to send [03:37:07]OFD Sender: No OFD packet to send [03:37:12]OFD Sender: No OFD packet to send [03:37:17]OFD Sender: No OFD packet to send [03:37:22]OFD Sender: No OFD packet to send [03:37:27]OFD Sender: No OFD packet to send [03:37:32]OFD Sender: No OFD packet to send [03:37:37]OFD Sender: No OFD packet to send [03:37:42]OFD Sender: No OFD packet to send [03:37:47]OFD Sender: No OFD packet to send [03:37:52]OFD Sender: No OFD packet to send [03:37:57]OFD Sender: No OFD packet to send [03:38:02]OFD Sender: No OFD packet to send [03:38:07]OFD Sender: No OFD packet to send [03:38:12]OFD Sender: No OFD packet to send [03:38:17]OFD Sender: No OFD packet to send [03:38:22]OFD Sender: No OFD packet to send [03:38:27]OFD Sender: No OFD packet to send [03:38:32]OFD Sender: No OFD packet to send [03:38:37]OFD Sender: No OFD packet to send [03:38:42]OFD Sender: No OFD packet to send [03:38:47]OFD Sender: No OFD packet to send [03:38:52]OFD Sender: No OFD packet to send [03:38:57]OFD Sender: No OFD packet to send [03:39:02]OFD Sender: No OFD packet to send [03:39:07]OFD Sender: No OFD packet to send [03:39:12]OFD Sender: No OFD packet to send [03:39:17]OFD Sender: No OFD packet to send [03:39:22]OFD Sender: No OFD packet to send [03:39:27]OFD Sender: No OFD packet to send [03:39:32]OFD Sender: No OFD packet to send [03:39:37]OFD Sender: No OFD packet to send [03:39:42]OFD Sender: No OFD packet to send [03:39:47]OFD Sender: No OFD packet to send [03:39:52]OFD Sender: No OFD packet to send [03:39:57]OFD Sender: No OFD packet to send [03:40:02]OFD Sender: No OFD packet to send [03:40:07]OFD Sender: No OFD packet to send [03:40:12]OFD Sender: No OFD packet to send [03:40:17]OFD Sender: No OFD packet to send [03:40:22]OFD Sender: No OFD packet to send [03:40:27]OFD Sender: No OFD packet to send [03:40:32]OFD Sender: No OFD packet to send [03:40:37]OFD Sender: No OFD packet to send [03:40:42]OFD Sender: No OFD packet to send [03:40:47]OFD Sender: No OFD packet to send [03:40:52]OFD Sender: No OFD packet to send [03:40:57]OFD Sender: No OFD packet to send [03:41:02]OFD Sender: No OFD packet to send [03:41:07]OFD Sender: No OFD packet to send [03:41:12]OFD Sender: No OFD packet to send [03:41:17]OFD Sender: No OFD packet to send [03:41:22]OFD Sender: No OFD packet to send [03:41:27]OFD Sender: No OFD packet to send [03:41:32]OFD Sender: No OFD packet to send [03:41:33]accept exits with 9 [03:41:33]New connection [03:41:33]New thread 3067460964 created [03:41:33]Thread 3067317604 joined [03:41:33]Waiting for new connection... [03:41:33] Sock 9.Parse request [03:41:33]Sock 9.Check first char [03:41:33]Sock 9.First char is OK [03:41:33]request: POST /json_proto HTTP/1.0 [03:41:33]Method: POST [03:41:33]URL: /json_proto [03:41:33]Method is POST - this is cgi request [03:41:33]url: /json_proto [03:41:33]query_string will be loaded in cgi processing [03:41:33]execute_cgi json_proto POST (null) [03:41:33]execute_cgi path=json_proto method=POST [03:41:33]POST find Content-Length [03:41:33]Host: 172.17.45.132:8080 [03:41:33]Content-Length: 792 [03:41:33]Content-Type: application/json [03:41:33] [03:41:33]POST finish read [03:41:33]Found Content-Length = 792 [03:41:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126283", "tax_sys" : 0, "items" : [ { "code": "4605664012121", "name": "\u041F\u0438\u0432\u043E \u0431\u0443\u0442 \u0410\u043C\u0441\u0442\u0435\u0440\u0434\u0430\u043C 0,5", "price" : 144.00, "quantity" : 4.000, "sum" : 576.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: Balance.KG", "payments": [ { "type": 1, "sum" : 576.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:41:33]execute_script... [03:41: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)126283", "tax_sys" : 0, "items" : [ { "code": "4605664012121", "name": "\u041F\u0438\u0432\u043E \u0431\u0443\u0442 \u0410\u043C\u0441\u0442\u0435\u0440\u0434\u0430\u043C 0,5", "price" : 144.00, "quantity" : 4.000, "sum" : 576.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: Balance.KG", "payments": [ { "type": 1, "sum" : 576.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:41:33]POST & json_proto [03:41:33]process_json_proto [03:41:33]json parsed OK: [03:41:33]protocol is kg_v1.0 [03:41:33]action value=close_receipt [03:41:33]process_action close_receipt [03:41:33]cmd_close_receipt [03:41:33]MH_GetDate [03:41:33]Write to MH i2c: F0 00 00 BE 33 E0 [03:41:33]Write i2c OK [03:41:33]MH_I2C_Read... [03:41:33]Read from MH i2c: F0 [03:41:33]MH_I2C_Read... [03:41:33]Read from MH i2c: F0 09 00 [03:41:33]MH_I2C_Read... [03:41:33]Read from MH i2c: F0 09 00 BE 33 00 F1 BD A5 66 E3 0B 90 66 86 [03:41:33]GetLastDocTimeStamp 1722136852 [03:41:33]current date 1722138097 [03:41:33]FM_GetShiftState [03:41:33]SAM_PROTO_GetShiftState [03:41:33]wFMCommunicate request_size=4 [03:41:33]MH_SAM_APDU [03:41:33]CAPDU: 80 13 01 00 [03:41:33]Write to MH i2c: E2 08 00 BF 33 80 13 01 00 00 00 00 00 6F [03:41:33]Write i2c OK [03:41:33]MH_I2C_Read... [03:41:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:41:33]Read from MH i2c: E2 [03:41:33]MH_I2C_Read... [03:41:33]Read from MH i2c: E2 0E 00 [03:41:33]MH_I2C_Read... [03:41:33]Read from MH i2c: E2 0E 00 BF 33 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 63 [03:41:33]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [03:41:33]wFMCommunicate OK [03:41:33]SAM_PROTO_GetShiftState done [03:41:33]FM_GetShiftState done [03:41:33]opened in 1722125648 [03:41:33]opened+sec_in_day 1722212048 [03:41:33]quantity*price = 57600 [03:41:33]sum+1 = 57601 [03:41:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 576.00 НСП 1% : 5.10 НДС 12% : 61.17 Наличными: 0.00 Безнал.: 576.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 24 28.07.2024 03:41 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: Balance.KG ФМ: 0000000002094248 ФД: 1973 ФПД: 152989742916712 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T034137&type=1&operation_type=1&fn_number=0000000002094248&fd_number=1973&fm=152989742916712&tin=02508201610067®Number=0000000000189667&sum=57600 0 [03:41:34]StoreToDocumentArchive [03:41:34]shift 13 fd 1973 [03:41:34]save to /storage/0013/doc_00001973 [03:41:34]save last doc name /storage/0013/doc_00001973 to /storage/kkm_last_doc_name [03:41:34]save OK [03:41:34]Clear old archive folders... [03:41:34]ProcessDocumentItem done err = 0, tmpTLVsize=280 [03:41:34]tlvbuf is 02031060 [03:41:34]SAM_PROTO_ClearQueue [03:41:34]wFMCommunicate request_size=4 [03:41:34]MH_SAM_APDU [03:41:34]CAPDU: 80 09 00 00 [03:41:34]Write to MH i2c: E2 08 00 CC 33 80 09 00 00 00 00 00 00 71 [03:41:34]Write i2c OK [03:41:34]MH_I2C_Read... [03:41:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:41:34]Read from MH i2c: E2 [03:41:34]MH_I2C_Read... [03:41:34]Read from MH i2c: E2 03 00 [03:41:34]MH_I2C_Read... [03:41:34]Read from MH i2c: E2 03 00 CC 33 00 90 00 73 [03:41:34]RAPDU: 90 00 [03:41:34]wFMCommunicate OK [03:41:34]SAM_PROTO_ClearQueue done [03:41:34]KKMCreateOFDPacket [03:41:34]OFDProtocolAddRootSTLVToBuf [03:41:34]FM_MakeSignedData [03:41:34]FM_MakeSignedData [03:41:34]SAM_PROTO_SignData [03:41:34]wFMCommunicate request_size=4 [03:41:34]MH_SAM_APDU [03:41:34]CAPDU: 80 0D 01 02 [03:41:34]Write to MH i2c: E2 08 00 CD 33 80 0D 01 02 00 00 00 00 79 [03:41:34]Write i2c OK [03:41:34]MH_I2C_Read... [03:41:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:41:34]Read from MH i2c: E2 [03:41:34]MH_I2C_Read... [03:41:34]Read from MH i2c: E2 03 00 [03:41:34]MH_I2C_Read... [03:41:34]Read from MH i2c: E2 03 00 CD 33 00 90 00 74 [03:41:34]RAPDU: 90 00 [03:41:34]wFMCommunicate OK [03:41:34]wFMCommunicate request_size=255 [03:41:34]MH_SAM_APDU [03:41:34]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 30 35 36 36 34 30 31 32 31 32 31 06 04 26 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 B1 D1 83 D1 82 20 D0 90 D0 BC D1 81 D1 82 D0 B5 D1 80 D0 B4 D0 B0 D0 BC 20 30 2C 35 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 00 E1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 E1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 17 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 E1 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 F1 BD A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 [03:41:34]Write to MH i2c: E2 02 01 CE 33 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 30 35 36 36 34 30 31 32 31 32 31 06 04 26 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 B1 D1 83 D1 82 20 D0 90 D0 BC D1 81 D1 82 D0 B5 D1 80 D0 B4 D0 B0 D0 BC 20 30 2C 35 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 00 E1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 E1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 17 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 E1 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 F1 BD A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 00 00 52 [03:41:35]Write i2c OK [03:41:35]MH_I2C_Read... [03:41:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:41:35]Read from MH i2c: E2 [03:41:35]MH_I2C_Read... [03:41:35]Read from MH i2c: E2 03 00 [03:41:35]MH_I2C_Read... [03:41:35]Read from MH i2c: E2 03 00 CE 33 00 90 00 75 [03:41:35]RAPDU: 90 00 [03:41:35]wFMCommunicate OK [03:41:35]wFMCommunicate request_size=39 [03:41:35]MH_SAM_APDU [03:41:35]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 B5 07 00 00 35 04 06 00 8B 24 B3 47 E4 68 [03:41:35]Write to MH i2c: E2 2A 00 CF 33 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 B5 07 00 00 35 04 06 00 8B 24 B3 47 E4 68 00 00 E5 [03:41:35]Write i2c OK [03:41:35]MH_I2C_Read... [03:41:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:41:35]Read from MH i2c: E2 [03:41:35]MH_I2C_Read... [03:41:35]Read from MH i2c: E2 03 00 [03:41:35]MH_I2C_Read... [03:41:35]Read from MH i2c: E2 03 00 CF 33 00 90 00 76 [03:41:35]RAPDU: 90 00 [03:41:35]wFMCommunicate OK [03:41:35]wFMCommunicate request_size=4 [03:41:35]MH_SAM_APDU [03:41:35]CAPDU: 80 0D 03 02 [03:41:35]Write to MH i2c: E2 08 00 D0 33 80 0D 03 02 00 00 00 00 7E [03:41:35]Write i2c OK [03:41:35]MH_I2C_Read... [03:41:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:41:35]Read from MH i2c: E2 [03:41:35]MH_I2C_Read... [03:41:35]Read from MH i2c: E2 0B 00 [03:41:35]MH_I2C_Read... [03:41:35]Read from MH i2c: E2 0B 00 D0 33 00 E3 24 5E 78 A7 7E 2A 68 90 00 13 [03:41:35]RAPDU: E3 24 5E 78 A7 7E 2A 68 90 00 [03:41:35]wFMCommunicate OK [03:41:35]SAM_PROTO_SignData done [03:41:35]FM_MakeSignedData done [03:41:35]CreateOFDProtocolMessage [03:41:35]wFMCommunicate request_size=4 [03:41:35]MH_SAM_APDU [03:41:35]CAPDU: 80 11 00 00 [03:41:35]Write to MH i2c: E2 08 00 D1 33 80 11 00 00 00 00 00 00 7E [03:41:35]Write i2c OK [03:41:35]MH_I2C_Read... [03:41:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:41:35]Read from MH i2c: E2 [03:41:35]MH_I2C_Read... [03:41:35]Read from MH i2c: E2 17 00 [03:41:35]MH_I2C_Read... [03:41:35]Read from MH i2c: E2 17 00 D1 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 CE [03:41:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [03:41:35]wFMCommunicate OK [03:41:35]CreateOFDProtocolMessage done [03:41:35]OFDSenderStorePacket 1973 [03:41:35]StoreOFDPacket docnum=1973 [03:41:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2C 01 00 00 D3 45 24 01 79 B5 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 30 35 36 36 34 30 31 32 31 32 31 06 04 26 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 B1 D1 83 D1 82 20 D0 90 D0 BC D1 81 D1 82 D0 B5 D1 80 D0 B4 D0 B0 D0 BC 20 30 2C 35 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 00 E1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 E1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 17 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 E1 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 F1 BD A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 B5 07 00 00 35 04 06 00 8B 24 B3 47 E4 68 E3 24 5E 78 A7 7E 2A 68 [03:41:35]CheckFolder [03:41:35]dirname=/storage/ofd_packets [03:41:35]CheckFolder done [03:41:35]ProducePacketName [03:41:35]name=ofd_packets/00001973 [03:41:35]NVStorageSaveData ofd_packets/00001973 [03:41:35]File name is /storage/ofd_packets/00001973 [03:41:35]Write 330 bytes [03:41:35]NVStorageSaveData done [03:41:35]OFDSenderStorePacket done [03:41:35]KKMCreateOFDPacket done [03:41:35]NVStorageSaveData kkm_last_timestamp [03:41:35]File name is /storage/kkm_last_timestamp [03:41:35]Write 4 bytes [03:41:35]NVStorageSaveData done [03:41:35]ExternCall_PrintAddStr [03:41:35]wPrintStart [03:41:35]Write to MH i2c: 01 00 00 D2 33 05 [03:41:35]Write i2c OK [03:41:35]MH_I2C_Read... [03:41:35]Read from MH i2c: 01 [03:41:35]MH_I2C_Read... [03:41:35]Read from MH i2c: 01 07 00 [03:41:35]MH_I2C_Read... [03:41:35]Read from MH i2c: 01 07 00 D2 33 00 00 00 00 00 FF 0F 1A [03:41:35]RasterBufferAndPrint [03:41:35]line Счет N : (3)126283 [03:41:35]line ИНН: 02508201610067 [03:41:35]line Контрольно-Кассовый Чек [03:41:35]line ПРОДАЖА [03:41:35]line Товар: 4605664012121 [03:41:35]line Пиво бут Амстердам 0,5 [03:41:35]line 4.000 * 144.00 [03:41:35]line = 576.00 [03:41:35]line НДС 12% НСП 1% [03:41:35]line > о реализуемом товаре [03:41:35]line ИТОГО: 576.00 [03:41:35]line НСП 1% : 5.10 [03:41:35]line НДС 12% : 61.17 [03:41:35]line Наличными: 0.00 [03:41:35]line Безнал.: 576.00 [03:41:35]line Место: АЗС № 127 "Партнер Нефть" [03:41:35]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [03:41:35]line СНО: Общий режим [03:41:35]line Чек 24 28.07.2024 03:41 [03:41:35]line Смена: 13 ФФД: 1.0 [03:41:35]line ЗНМ: 0300000161 [03:41:35]line РНМ: 0000000000189667 [03:41:35]line Версия ККМ: v1.0 [03:41:35]line Платежная система: Balance.KG [03:41:35]line ФМ: 0000000002094248 [03:41:35]line ФД: 1973 [03:41:35]line ФПД: 152989742916712 [03:41:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T034137&type=1&operation_type=1&fn_number=0000000002094248&fd_number=1973&fm=152989742916712&tin=02508201610067®Number=0000000000189667&sum=57600 [03:41:35]line 0 [03:41:35]OFD Sender: Processing packet 1973 [packets to send 1, broken 0] [03:41:35]ProducePacketName [03:41:35]name=ofd_packets/00001973 [03:41:35]OFD Sender: To server: pG, [03:41:35]CommunicateWithHost lk.salyk.kg:30040 [03:41:35]ConnectInit lk.salyk.kg [03:41:35]written 0, free lines is 4095 [03:41:35]Connected sock=11 [03:41:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2C 01 00 00 D3 45 24 01 79 B5 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 30 35 36 36 34 30 31 32 31 32 31 06 04 26 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 B1 D1 83 D1 82 20 D0 90 D0 BC D1 81 D1 82 D0 B5 D1 80 D0 B4 D0 B0 D0 BC 20 30 2C 35 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 00 E1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 E1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 17 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 E1 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 F1 BD A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 B5 07 00 00 35 04 06 00 8B 24 B3 47 E4 68 E3 24 5E 78 A7 7E 2A 68 [03:41:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 DA C3 47 00 4B A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 B5 07 00 00 F4 03 04 00 62 69 A5 66 B6 04 01 00 00 59 7D 44 64 34 82 55 34 [03:41:36]CommunicateWithHost err = 0 [03:41:36]CheckOFDResponse [03:41:36]1017 (14) - 77093643461234 [03:41:36]1041 (16) - 0000000002094248 [03:41:36]1040 (4) - 1973 [03:41:36]1012 (4) - 27.07.2024 21:40 [03:41:36]1206 (1) - 0 [03:41:36]OFD Sender: Remove packet 1973 [03:41:36]ProducePacketName [03:41:36]name=ofd_packets/00001973 [03:41:36]NVStorageDeleteData [03:41:36]Write to MH i2c: 01 00 00 FC 33 2F [03:41:36]Write i2c OK [03:41:36]MH_I2C_Read... [03:41:36]Read from MH i2c: 01 [03:41:36]MH_I2C_Read... [03:41:36]Read from MH i2c: 01 07 00 [03:41:36]MH_I2C_Read... [03:41:36]Read from MH i2c: 01 07 00 FC 33 00 00 00 00 00 01 0D 44 [03:41:36]RasterBufferAndPrint [03:41:36]line [03:41:36]line [03:41:36]line [03:41:36]line [03:41:36]line [03:41:36]written 0, free lines is 3335 [03:41:36]MH_Cut [03:41:36]Write to MH i2c: D1 01 00 03 34 01 09 [03:41:36]Write i2c OK [03:41:36]MH_I2C_Read... [03:41:36]Read from MH i2c: D1 [03:41:36]MH_I2C_Read... [03:41:36]Read from MH i2c: D1 01 00 [03:41:36]MH_I2C_Read... [03:41:36]Read from MH i2c: D1 01 00 03 34 00 08 [03:41:36]Write to MH i2c: 01 00 00 04 34 38 [03:41:36]Write i2c OK [03:41:36]MH_I2C_Read... [03:41:36]OFD Sender: No OFD packet to send [03:41:36]*** Cut start [03:41:36]*** Partial cut [03:41:36]*** CUTSNS_PIN = 1 [03:41:36]*** CUTSNS_PIN = 0 [03:41:37]*** Brake cut motor [03:41:37]Read from MH i2c: 01 [03:41:37]MH_I2C_Read... [03:41:37]*** Stop cut motor [03:41:37]*** Cut end [03:41:37]Read from MH i2c: 01 07 00 [03:41:37]MH_I2C_Read... [03:41:37]Read from MH i2c: 01 07 00 04 34 00 00 00 00 00 FF 0F 4D [03:41:37]process_action close_receipt done [03:41:37]requested_data is exist [03:41:37]produce_requested_data [03:41:37]requested_item fm.sn is exist - process it [03:41:37]wFMCommunicate request_size=4 [03:41:37]MH_SAM_APDU [03:41:37]CAPDU: 80 11 00 00 [03:41:37]Write to MH i2c: E2 08 00 05 34 80 11 00 00 00 00 00 00 B3 [03:41:37]Write i2c OK [03:41:37]MH_I2C_Read... [03:41:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:41:37]Read from MH i2c: E2 [03:41:37]MH_I2C_Read... [03:41:37]Read from MH i2c: E2 17 00 [03:41:37]MH_I2C_Read... [03:41:37]Read from MH i2c: E2 17 00 05 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 03 [03:41:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [03:41:37]wFMCommunicate OK [03:41:37]requested_item fd.num is exist - process it [03:41:37]SAM_PROTO_GetFieldsCounters [03:41:37]wFMCommunicate request_size=4 [03:41:37]MH_SAM_APDU [03:41:37]CAPDU: 80 13 00 00 [03:41:37]Write to MH i2c: E2 08 00 06 34 80 13 00 00 00 00 00 00 B6 [03:41:37]Write i2c OK [03:41:37]MH_I2C_Read... [03:41:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:41:37]Read from MH i2c: E2 [03:41:37]MH_I2C_Read... [03:41:37]Read from MH i2c: E2 62 00 [03:41:37]MH_I2C_Read... [03:41:37]Read from MH i2c: E2 62 00 06 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 B5 07 00 00 0E 04 04 00 0D 00 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 F1 [03:41:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 B5 07 00 00 0E 04 04 00 0D 00 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 [03:41:37]wFMCommunicate OK [03:41:37]SAM_PROTO_GetFieldsCounters done [03:41:37]requested_item shift.num is exist - process it [03:41:37]requested_item shift.opened is exist - process it [03:41:37]req_shift_opened [03:41:37]FM_GetShiftState [03:41:37]SAM_PROTO_GetShiftState [03:41:37]wFMCommunicate request_size=4 [03:41:37]MH_SAM_APDU [03:41:37]CAPDU: 80 13 01 00 [03:41:37]Write to MH i2c: E2 08 00 07 34 80 13 01 00 00 00 00 00 B8 [03:41:37]Write i2c OK [03:41:37]MH_I2C_Read... [03:41:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:41:37]Read from MH i2c: E2 [03:41:37]MH_I2C_Read... [03:41:37]Read from MH i2c: E2 0E 00 [03:41:37]MH_I2C_Read... [03:41:37]Read from MH i2c: E2 0E 00 07 34 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 AC [03:41:37]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [03:41:37]wFMCommunicate OK [03:41:37]SAM_PROTO_GetShiftState done [03:41:37]FM_GetShiftState done [03:41:37]req_shift_opened done [03:41:37]requested_item shift.open_date is exist - process it [03:41:37]req_shift_open_date [03:41:37]req_shift_open_date done [03:41:37]produce_requested_data done [03:41:37]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":1973,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [03:41:37]process_action_free close_receipt [03:41:37]json_value_free [03:41:37]json_value_free done [03:41:37]process_json_proto returns [03:41:37]Send response to host [03:41:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":1973,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [03:41:37]free response buf [03:41:37]execute_script done [03:41:37]execute_script returns [03:41:37]free content buf [03:41:37]Sock 9.Close socket [03:41:37]Sock 9.Thread stoped [03:41:41]OFD Sender: No OFD packet to send [03:41:43]accept exits with 8 [03:41:43]New connection [03:41:43]New thread 3067317604 created [03:41:43]Thread 3067460964 joined [03:41:43]Waiting for new connection... [03:41:43] Sock 8.Parse request [03:41:43]Sock 8.Check first char [03:41:43]Sock 8.First char is OK [03:41:43]request: POST /json_proto HTTP/1.0 [03:41:43]Method: POST [03:41:43]URL: /json_proto [03:41:43]Method is POST - this is cgi request [03:41:43]url: /json_proto [03:41:43]query_string will be loaded in cgi processing [03:41:43]execute_cgi json_proto POST (null) [03:41:43]execute_cgi path=json_proto method=POST [03:41:43]POST find Content-Length [03:41:43]Host: 172.17.45.132:8080 [03:41:43]Content-Length: 850 [03:41:43]Content-Type: application/json [03:41:43] [03:41:43]POST finish read [03:41:43]Found Content-Length = 850 [03:41:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 1973, "base_FM": "0000000002094248", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126283", "tax_sys" : 0, "items" : [ { "code": "4605664012121", "name": "\u041F\u0438\u0432\u043E \u0431\u0443\u0442 \u0410\u043C\u0441\u0442\u0435\u0440\u0434\u0430\u043C 0,5", "price" : 144.00, "quantity" : 4.000, "sum" : 576.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: Balance.KG", "payments": [ { "type": 1, "sum" : 576.00 } ], "post_footer_text": "1973" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:41:43]execute_script... [03:41:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 1973, "base_FM": "0000000002094248", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126283", "tax_sys" : 0, "items" : [ { "code": "4605664012121", "name": "\u041F\u0438\u0432\u043E \u0431\u0443\u0442 \u0410\u043C\u0441\u0442\u0435\u0440\u0434\u0430\u043C 0,5", "price" : 144.00, "quantity" : 4.000, "sum" : 576.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: Balance.KG", "payments": [ { "type": 1, "sum" : 576.00 } ], "post_footer_text": "1973" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:41:43]POST & json_proto [03:41:43]process_json_proto [03:41:43]json parsed OK: [03:41:43]protocol is kg_v1.0 [03:41:43]action value=close_receipt [03:41:43]process_action close_receipt [03:41:43]cmd_close_receipt [03:41:43]MH_GetDate [03:41:43]Write to MH i2c: F0 00 00 08 34 2B [03:41:43]Write i2c OK [03:41:43]MH_I2C_Read... [03:41:43]Read from MH i2c: F0 [03:41:43]MH_I2C_Read... [03:41:43]Read from MH i2c: F0 09 00 [03:41:43]MH_I2C_Read... [03:41:43]Read from MH i2c: F0 09 00 08 34 00 FB BD A5 66 E3 0B 90 66 DB [03:41:43]GetLastDocTimeStamp 1722138097 [03:41:43]current date 1722138107 [03:41:43]FM_GetShiftState [03:41:43]SAM_PROTO_GetShiftState [03:41:43]wFMCommunicate request_size=4 [03:41:43]MH_SAM_APDU [03:41:43]CAPDU: 80 13 01 00 [03:41:43]Write to MH i2c: E2 08 00 09 34 80 13 01 00 00 00 00 00 BA [03:41:43]Write i2c OK [03:41:43]MH_I2C_Read... [03:41:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:41:43]Read from MH i2c: E2 [03:41:43]MH_I2C_Read... [03:41:43]Read from MH i2c: E2 0E 00 [03:41:43]MH_I2C_Read... [03:41:43]Read from MH i2c: E2 0E 00 09 34 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 AE [03:41:43]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [03:41:43]wFMCommunicate OK [03:41:43]SAM_PROTO_GetShiftState done [03:41:43]FM_GetShiftState done [03:41:43]opened in 1722125648 [03:41:43]opened+sec_in_day 1722212048 [03:41:43]quantity*price = 57600 [03:41:43]sum+1 = 57601 [03:41:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 576.00 НСП 1% : 5.10 НДС 12% : 61.17 Наличными: 0.00 Безнал.: 576.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 25 28.07.2024 03:41 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФД осн.: 1973 ФМ осн.: 0000000002094248 Платежная система: Balance.KG ФМ: 0000000002094248 ФД: 1974 ФПД: 185268028288545 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T034147&type=2&operation_type=1&fn_number=0000000002094248&fd_number=1974&fm=185268028288545&tin=02508201610067®Number=0000000000189667&sum=57600 1973 [03:41:44]StoreToDocumentArchive [03:41:44]shift 13 fd 1974 [03:41:44]save to /storage/0013/doc_00001974 [03:41:44]save last doc name /storage/0013/doc_00001974 to /storage/kkm_last_doc_name [03:41:44]save OK [03:41:44]Clear old archive folders... [03:41:44]ProcessDocumentItem done err = 0, tmpTLVsize=308 [03:41:44]tlvbuf is 01F92420 [03:41:44]SAM_PROTO_ClearQueue [03:41:44]wFMCommunicate request_size=4 [03:41:44]MH_SAM_APDU [03:41:44]CAPDU: 80 09 00 00 [03:41:44]Write to MH i2c: E2 08 00 18 34 80 09 00 00 00 00 00 00 BE [03:41:44]Write i2c OK [03:41:44]MH_I2C_Read... [03:41:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:41:44]Read from MH i2c: E2 [03:41:44]MH_I2C_Read... [03:41:44]Read from MH i2c: E2 03 00 [03:41:44]MH_I2C_Read... [03:41:44]Read from MH i2c: E2 03 00 18 34 00 90 00 C0 [03:41:44]RAPDU: 90 00 [03:41:44]wFMCommunicate OK [03:41:44]SAM_PROTO_ClearQueue done [03:41:44]KKMCreateOFDPacket [03:41:44]OFDProtocolAddRootSTLVToBuf [03:41:44]FM_MakeSignedData [03:41:44]FM_MakeSignedData [03:41:44]SAM_PROTO_SignData [03:41:44]wFMCommunicate request_size=4 [03:41:44]MH_SAM_APDU [03:41:44]CAPDU: 80 0D 01 02 [03:41:44]Write to MH i2c: E2 08 00 19 34 80 0D 01 02 00 00 00 00 C6 [03:41:44]Write i2c OK [03:41:44]MH_I2C_Read... [03:41:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:41:44]Read from MH i2c: E2 [03:41:44]MH_I2C_Read... [03:41:44]Read from MH i2c: E2 03 00 [03:41:44]MH_I2C_Read... [03:41:44]Read from MH i2c: E2 03 00 19 34 00 90 00 C1 [03:41:44]RAPDU: 90 00 [03:41:44]wFMCommunicate OK [03:41:44]wFMCommunicate request_size=255 [03:41:44]MH_SAM_APDU [03:41:44]CAPDU: 80 0D 02 02 FA 03 00 34 01 1E 04 01 00 02 23 04 6A 00 8A 04 0D 00 34 36 30 35 36 36 34 30 31 32 31 32 31 06 04 26 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 B1 D1 83 D1 82 20 D0 90 D0 BC D1 81 D1 82 D0 B5 D1 80 D0 B4 D0 B0 D0 BC 20 30 2C 35 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 00 E1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 E1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 17 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 E1 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 FB BD A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 27 04 04 00 [03:41:44]Write to MH i2c: E2 02 01 1A 34 80 0D 02 02 FA 00 03 00 34 01 1E 04 01 00 02 23 04 6A 00 8A 04 0D 00 34 36 30 35 36 36 34 30 31 32 31 32 31 06 04 26 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 B1 D1 83 D1 82 20 D0 90 D0 BC D1 81 D1 82 D0 B5 D1 80 D0 B4 D0 B0 D0 BC 20 30 2C 35 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 00 E1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 E1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 17 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 E1 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 FB BD A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 27 04 04 00 00 00 D1 [03:41:45]Write i2c OK [03:41:45]MH_I2C_Read... [03:41:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:41:45]Read from MH i2c: E2 [03:41:45]MH_I2C_Read... [03:41:45]Read from MH i2c: E2 03 00 [03:41:45]MH_I2C_Read... [03:41:45]Read from MH i2c: E2 03 00 1A 34 00 90 00 C2 [03:41:45]RAPDU: 90 00 [03:41:45]wFMCommunicate OK [03:41:45]wFMCommunicate request_size=67 [03:41:45]MH_SAM_APDU [03:41:45]CAPDU: 80 0D 02 02 3E B5 07 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 B6 07 00 00 35 04 06 00 A8 80 13 03 AE 21 [03:41:45]Write to MH i2c: E2 46 00 1B 34 80 0D 02 02 3E 00 B5 07 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 B6 07 00 00 35 04 06 00 A8 80 13 03 AE 21 00 00 BD [03:41:45]Write i2c OK [03:41:45]MH_I2C_Read... [03:41:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:41:45]Read from MH i2c: E2 [03:41:45]MH_I2C_Read... [03:41:45]Read from MH i2c: E2 03 00 [03:41:45]MH_I2C_Read... [03:41:45]Read from MH i2c: E2 03 00 1B 34 00 90 00 C3 [03:41:45]RAPDU: 90 00 [03:41:45]wFMCommunicate OK [03:41:45]wFMCommunicate request_size=4 [03:41:45]MH_SAM_APDU [03:41:45]CAPDU: 80 0D 03 02 [03:41:45]Write to MH i2c: E2 08 00 1C 34 80 0D 03 02 00 00 00 00 CB [03:41:45]Write i2c OK [03:41:45]MH_I2C_Read... [03:41:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:41:45]Read from MH i2c: E2 [03:41:45]MH_I2C_Read... [03:41:45]Read from MH i2c: E2 0B 00 [03:41:45]MH_I2C_Read... [03:41:45]Read from MH i2c: E2 0B 00 1C 34 00 A8 20 5C 89 E7 0B 57 3C 90 00 FE [03:41:45]RAPDU: A8 20 5C 89 E7 0B 57 3C 90 00 [03:41:45]wFMCommunicate OK [03:41:45]SAM_PROTO_SignData done [03:41:45]FM_MakeSignedData done [03:41:45]CreateOFDProtocolMessage [03:41:45]wFMCommunicate request_size=4 [03:41:45]MH_SAM_APDU [03:41:45]CAPDU: 80 11 00 00 [03:41:45]Write to MH i2c: E2 08 00 1D 34 80 11 00 00 00 00 00 00 CB [03:41:45]Write i2c OK [03:41:45]MH_I2C_Read... [03:41:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:41:45]Read from MH i2c: E2 [03:41:45]MH_I2C_Read... [03:41:45]Read from MH i2c: E2 17 00 [03:41:45]MH_I2C_Read... [03:41:45]Read from MH i2c: E2 17 00 1D 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 1B [03:41:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [03:41:45]wFMCommunicate OK [03:41:45]CreateOFDProtocolMessage done [03:41:45]OFDSenderStorePacket 1974 [03:41:45]StoreOFDPacket docnum=1974 [03:41:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 48 01 00 00 49 9F 40 01 C6 05 5A 03 01 00 03 00 34 01 1E 04 01 00 02 23 04 6A 00 8A 04 0D 00 34 36 30 35 36 36 34 30 31 32 31 32 31 06 04 26 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 B1 D1 83 D1 82 20 D0 90 D0 BC D1 81 D1 82 D0 B5 D1 80 D0 B4 D0 B0 D0 BC 20 30 2C 35 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 00 E1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 E1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 17 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 E1 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 FB BD A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 27 04 04 00 B5 07 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 B6 07 00 00 35 04 06 00 A8 80 13 03 AE 21 A8 20 5C 89 E7 0B 57 3C [03:41:45]CheckFolder [03:41:45]dirname=/storage/ofd_packets [03:41:45]CheckFolder done [03:41:45]ProducePacketName [03:41:45]name=ofd_packets/00001974 [03:41:45]NVStorageSaveData ofd_packets/00001974 [03:41:45]File name is /storage/ofd_packets/00001974 [03:41:45]Write 358 bytes [03:41:45]NVStorageSaveData done [03:41:45]OFDSenderStorePacket done [03:41:45]KKMCreateOFDPacket done [03:41:45]NVStorageSaveData kkm_last_timestamp [03:41:45]File name is /storage/kkm_last_timestamp [03:41:45]Write 4 bytes [03:41:45]NVStorageSaveData done [03:41:45]ExternCall_PrintAddStr [03:41:45]wPrintStart [03:41:45]Write to MH i2c: 01 00 00 1E 34 52 [03:41:45]Write i2c OK [03:41:45]MH_I2C_Read... [03:41:45]Read from MH i2c: 01 [03:41:45]MH_I2C_Read... [03:41:45]Read from MH i2c: 01 07 00 [03:41:45]MH_I2C_Read... [03:41:45]Read from MH i2c: 01 07 00 1E 34 00 00 00 00 00 FF 0F 67 [03:41:45]RasterBufferAndPrint [03:41:45]line Счет N : (3)126283 [03:41:45]line ИНН: 02508201610067 [03:41:45]line Контрольно-Кассовый Чек [03:41:45]line ВОЗВРАТ ПРОДАЖИ [03:41:45]line Товар: 4605664012121 [03:41:45]line Пиво бут Амстердам 0,5 [03:41:45]line 4.000 * 144.00 [03:41:45]line = 576.00 [03:41:45]line НДС 12% НСП 1% [03:41:45]line > о реализуемом товаре [03:41:45]line ИТОГО: 576.00 [03:41:45]line НСП 1% : 5.10 [03:41:45]line НДС 12% : 61.17 [03:41:45]line Наличными: 0.00 [03:41:45]line Безнал.: 576.00 [03:41:45]line Место: АЗС № 127 "Партнер Нефть" [03:41:45]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [03:41:45]line СНО: Общий режим [03:41:45]line Чек 25 28.07.2024 03:41 [03:41:45]line Смена: 13 ФФД: 1.0 [03:41:45]line ЗНМ: 0300000161 [03:41:45]line РНМ: 0000000000189667 [03:41:45]line Версия ККМ: v1.0 [03:41:45]line ФД осн.: 1973 [03:41:45]line ФМ осн.: 0000000002094248 [03:41:45]line Платежная система: Balance.KG [03:41:45]line ФМ: 0000000002094248 [03:41:45]line ФД: 1974 [03:41:45]line ФПД: 185268028288545 [03:41:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T034147&type=2&operation_type=1&fn_number=0000000002094248&fd_number=1974&fm=185268028288545&tin=02508201610067®Number=0000000000189667&sum=57600 [03:41:45]line 1973 [03:41:45]written 0, free lines is 4095 [03:41:45]OFD Sender: Processing packet 1974 [packets to send 1, broken 0] [03:41:45]ProducePacketName [03:41:45]name=ofd_packets/00001974 [03:41:45]OFD Sender: To server: pG, [03:41:45]CommunicateWithHost lk.salyk.kg:30040 [03:41:45]ConnectInit lk.salyk.kg [03:41:45]Connected sock=10 [03:41:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 48 01 00 00 49 9F 40 01 C6 05 5A 03 01 00 03 00 34 01 1E 04 01 00 02 23 04 6A 00 8A 04 0D 00 34 36 30 35 36 36 34 30 31 32 31 32 31 06 04 26 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 B1 D1 83 D1 82 20 D0 90 D0 BC D1 81 D1 82 D0 B5 D1 80 D0 B4 D0 B0 D0 BC 20 30 2C 35 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 00 E1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 E1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 17 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 E1 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 FB BD A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 27 04 04 00 B5 07 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 B6 07 00 00 35 04 06 00 A8 80 13 03 AE 21 A8 20 5C 89 E7 0B 57 3C [03:41:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 18 0B 47 00 55 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 32 30 39 34 32 34 38 10 04 04 00 B6 07 00 00 F4 03 04 00 6B 69 A5 66 B6 04 01 00 00 66 4F DA 4F B5 65 DC 35 [03:41:45]CommunicateWithHost err = 0 [03:41:45]CheckOFDResponse [03:41:45]1017 (14) - 77093643461234 [03:41:45]1041 (16) - 0000000002094248 [03:41:45]1040 (4) - 1974 [03:41:45]1012 (4) - 27.07.2024 21:40 [03:41:45]1206 (1) - 0 [03:41:45]OFD Sender: Remove packet 1974 [03:41:45]ProducePacketName [03:41:45]name=ofd_packets/00001974 [03:41:45]NVStorageDeleteData [03:41:45]Write to MH i2c: 01 00 00 4A 34 7E [03:41:45]Write i2c OK [03:41:45]MH_I2C_Read... [03:41:45]Read from MH i2c: 01 [03:41:45]MH_I2C_Read... [03:41:45]Read from MH i2c: 01 07 00 [03:41:45]MH_I2C_Read... [03:41:45]Read from MH i2c: 01 07 00 4A 34 00 00 00 00 00 0A 0D 9C [03:41:45]RasterBufferAndPrint [03:41:45]line [03:41:45]line [03:41:45]line [03:41:45]line [03:41:45]line [03:41:45]written 0, free lines is 3350 [03:41:46]MH_Cut [03:41:46]Write to MH i2c: D1 01 00 51 34 01 57 [03:41:46]Write i2c OK [03:41:46]MH_I2C_Read... [03:41:46]Read from MH i2c: D1 [03:41:46]MH_I2C_Read... [03:41:46]Read from MH i2c: D1 01 00 [03:41:46]MH_I2C_Read... [03:41:46]Read from MH i2c: D1 01 00 51 34 00 56 [03:41:46]Write to MH i2c: 01 00 00 52 34 86 [03:41:46]Write i2c OK [03:41:46]MH_I2C_Read... [03:41:46]OFD Sender: No OFD packet to send [03:41:46]*** Cut start [03:41:46]*** Partial cut [03:41:46]*** CUTSNS_PIN = 1 [03:41:46]*** CUTSNS_PIN = 0 [03:41:46]*** Brake cut motor [03:41:47]Read from MH i2c: 01 [03:41:47]MH_I2C_Read... [03:41:47]*** Stop cut motor [03:41:47]*** Cut end [03:41:47]Read from MH i2c: 01 07 00 [03:41:47]MH_I2C_Read... [03:41:47]Read from MH i2c: 01 07 00 52 34 00 00 00 00 00 FF 0F 9B [03:41:47]process_action close_receipt done [03:41:47]requested_data is exist [03:41:47]produce_requested_data [03:41:47]requested_item fm.sn is exist - process it [03:41:47]wFMCommunicate request_size=4 [03:41:47]MH_SAM_APDU [03:41:47]CAPDU: 80 11 00 00 [03:41:47]Write to MH i2c: E2 08 00 53 34 80 11 00 00 00 00 00 00 01 [03:41:47]Write i2c OK [03:41:47]MH_I2C_Read... [03:41:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:41:47]Read from MH i2c: E2 [03:41:47]MH_I2C_Read... [03:41:47]Read from MH i2c: E2 17 00 [03:41:47]MH_I2C_Read... [03:41:47]Read from MH i2c: E2 17 00 53 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 51 [03:41:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [03:41:47]wFMCommunicate OK [03:41:47]requested_item fd.num is exist - process it [03:41:47]SAM_PROTO_GetFieldsCounters [03:41:47]wFMCommunicate request_size=4 [03:41:47]MH_SAM_APDU [03:41:47]CAPDU: 80 13 00 00 [03:41:47]Write to MH i2c: E2 08 00 54 34 80 13 00 00 00 00 00 00 04 [03:41:47]Write i2c OK [03:41:47]MH_I2C_Read... [03:41:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:41:47]Read from MH i2c: E2 [03:41:47]MH_I2C_Read... [03:41:47]Read from MH i2c: E2 62 00 [03:41:47]MH_I2C_Read... [03:41:47]Read from MH i2c: E2 62 00 54 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 B6 07 00 00 0E 04 04 00 0D 00 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 43 [03:41:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 B6 07 00 00 0E 04 04 00 0D 00 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 [03:41:47]wFMCommunicate OK [03:41:47]SAM_PROTO_GetFieldsCounters done [03:41:47]requested_item shift.num is exist - process it [03:41:47]requested_item shift.opened is exist - process it [03:41:47]req_shift_opened [03:41:47]FM_GetShiftState [03:41:47]SAM_PROTO_GetShiftState [03:41:47]wFMCommunicate request_size=4 [03:41:47]MH_SAM_APDU [03:41:47]CAPDU: 80 13 01 00 [03:41:47]Write to MH i2c: E2 08 00 55 34 80 13 01 00 00 00 00 00 06 [03:41:47]Write i2c OK [03:41:47]MH_I2C_Read... [03:41:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:41:47]Read from MH i2c: E2 [03:41:47]MH_I2C_Read... [03:41:47]Read from MH i2c: E2 0E 00 [03:41:47]MH_I2C_Read... [03:41:47]Read from MH i2c: E2 0E 00 55 34 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 FA [03:41:47]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [03:41:47]wFMCommunicate OK [03:41:47]SAM_PROTO_GetShiftState done [03:41:47]FM_GetShiftState done [03:41:47]req_shift_opened done [03:41:47]requested_item shift.open_date is exist - process it [03:41:47]req_shift_open_date [03:41:47]req_shift_open_date done [03:41:47]produce_requested_data done [03:41:47]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":1974,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [03:41:47]process_action_free close_receipt [03:41:47]json_value_free [03:41:47]json_value_free done [03:41:47]process_json_proto returns [03:41:47]Send response to host [03:41:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":1974,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [03:41:47]free response buf [03:41:47]execute_script done [03:41:47]execute_script returns [03:41:47]free content buf [03:41:47]Sock 8.Close socket [03:41:47]Sock 8.Thread stoped [03:41:48]accept exits with 9 [03:41:48]New connection [03:41:48]New thread 3067460964 created [03:41:48]Thread 3067317604 joined [03:41:48]Waiting for new connection... [03:41:48] Sock 9.Parse request [03:41:48]Sock 9.Check first char [03:41:48]Sock 9.First char is OK [03:41:48]request: POST /json_proto HTTP/1.0 [03:41:48]Method: POST [03:41:48]URL: /json_proto [03:41:48]Method is POST - this is cgi request [03:41:48]url: /json_proto [03:41:48]query_string will be loaded in cgi processing [03:41:48]execute_cgi json_proto POST (null) [03:41:48]execute_cgi path=json_proto method=POST [03:41:48]POST find Content-Length [03:41:48]Host: 172.17.45.132:8080 [03:41:48]Content-Length: 821 [03:41:48]Content-Type: application/json [03:41:48] [03:41:48]POST finish read [03:41:48]Found Content-Length = 821 [03:41:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126284", "tax_sys" : 0, "items" : [ { "code": "4605664012121", "name": "\u041F\u0438\u0432\u043E \u0431\u0443\u0442 \u0410\u043C\u0441\u0442\u0435\u0440\u0434\u0430\u043C 0,5", "price" : 144.00, "quantity" : 4.000, "sum" : 576.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" : 576.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:41:48]execute_script... [03:41: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)126284", "tax_sys" : 0, "items" : [ { "code": "4605664012121", "name": "\u041F\u0438\u0432\u043E \u0431\u0443\u0442 \u0410\u043C\u0441\u0442\u0435\u0440\u0434\u0430\u043C 0,5", "price" : 144.00, "quantity" : 4.000, "sum" : 576.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" : 576.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:41:48]POST & json_proto [03:41:48]process_json_proto [03:41:48]json parsed OK: [03:41:48]protocol is kg_v1.0 [03:41:48]action value=close_receipt [03:41:48]process_action close_receipt [03:41:48]cmd_close_receipt [03:41:48]MH_GetDate [03:41:48]Write to MH i2c: F0 00 00 56 34 79 [03:41:48]Write i2c OK [03:41:48]MH_I2C_Read... [03:41:48]Read from MH i2c: F0 [03:41:48]MH_I2C_Read... [03:41:48]Read from MH i2c: F0 09 00 [03:41:48]MH_I2C_Read... [03:41:48]Read from MH i2c: F0 09 00 56 34 00 00 BE A5 66 E3 0B 90 66 2F [03:41:48]GetLastDocTimeStamp 1722138107 [03:41:48]current date 1722138112 [03:41:48]FM_GetShiftState [03:41:48]SAM_PROTO_GetShiftState [03:41:48]wFMCommunicate request_size=4 [03:41:48]MH_SAM_APDU [03:41:48]CAPDU: 80 13 01 00 [03:41:48]Write to MH i2c: E2 08 00 57 34 80 13 01 00 00 00 00 00 08 [03:41:48]Write i2c OK [03:41:48]MH_I2C_Read... [03:41:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:41:48]Read from MH i2c: E2 [03:41:48]MH_I2C_Read... [03:41:48]Read from MH i2c: E2 0E 00 [03:41:48]MH_I2C_Read... [03:41:48]Read from MH i2c: E2 0E 00 57 34 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 FC [03:41:48]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [03:41:48]wFMCommunicate OK [03:41:48]SAM_PROTO_GetShiftState done [03:41:48]FM_GetShiftState done [03:41:48]opened in 1722125648 [03:41:48]opened+sec_in_day 1722212048 [03:41:48]quantity*price = 57600 [03:41:48]sum+1 = 57601 [03:41:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 576.00 НСП 1% : 5.10 НДС 12% : 61.17 Наличными: 0.00 Безнал.: 576.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 26 28.07.2024 03:41 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 1975 ФПД: 7705146994883 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T034152&type=1&operation_type=1&fn_number=0000000002094248&fd_number=1975&fm=7705146994883&tin=02508201610067®Number=0000000000189667&sum=57600 0 [03:41:50]StoreToDocumentArchive [03:41:50]shift 13 fd 1975 [03:41:50]save to /storage/0013/doc_00001975 [03:41:50]save last doc name /storage/0013/doc_00001975 to /storage/kkm_last_doc_name [03:41:50]save OK [03:41:50]Clear old archive folders... [03:41:50]ProcessDocumentItem done err = 0, tmpTLVsize=280 [03:41:50]tlvbuf is 01F5F860 [03:41:50]SAM_PROTO_ClearQueue [03:41:50]wFMCommunicate request_size=4 [03:41:50]MH_SAM_APDU [03:41:50]CAPDU: 80 09 00 00 [03:41:50]Write to MH i2c: E2 08 00 64 34 80 09 00 00 00 00 00 00 0A [03:41:50]Write i2c OK [03:41:50]MH_I2C_Read... [03:41:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:41:50]Read from MH i2c: E2 [03:41:50]MH_I2C_Read... [03:41:50]Read from MH i2c: E2 03 00 [03:41:50]MH_I2C_Read... [03:41:50]Read from MH i2c: E2 03 00 64 34 00 90 00 0C [03:41:50]RAPDU: 90 00 [03:41:50]wFMCommunicate OK [03:41:50]SAM_PROTO_ClearQueue done [03:41:50]KKMCreateOFDPacket [03:41:50]OFDProtocolAddRootSTLVToBuf [03:41:50]FM_MakeSignedData [03:41:50]FM_MakeSignedData [03:41:50]SAM_PROTO_SignData [03:41:50]wFMCommunicate request_size=4 [03:41:50]MH_SAM_APDU [03:41:50]CAPDU: 80 0D 01 02 [03:41:50]Write to MH i2c: E2 08 00 65 34 80 0D 01 02 00 00 00 00 12 [03:41:50]Write i2c OK [03:41:50]MH_I2C_Read... [03:41:50]Read from MH i2c: E2 [03:41:50]MH_I2C_Read... [03:41:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:41:50]Read from MH i2c: E2 03 00 [03:41:50]MH_I2C_Read... [03:41:50]Read from MH i2c: E2 03 00 65 34 00 90 00 0D [03:41:50]RAPDU: 90 00 [03:41:50]wFMCommunicate OK [03:41:50]wFMCommunicate request_size=255 [03:41:50]MH_SAM_APDU [03:41:50]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 30 35 36 36 34 30 31 32 31 32 31 06 04 26 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 B1 D1 83 D1 82 20 D0 90 D0 BC D1 81 D1 82 D0 B5 D1 80 D0 B4 D0 B0 D0 BC 20 30 2C 35 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 00 E1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 E1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 17 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 E1 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 00 BE A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 [03:41:50]Write to MH i2c: E2 02 01 66 34 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 30 35 36 36 34 30 31 32 31 32 31 06 04 26 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 B1 D1 83 D1 82 20 D0 90 D0 BC D1 81 D1 82 D0 B5 D1 80 D0 B4 D0 B0 D0 BC 20 30 2C 35 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 00 E1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 E1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 17 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 E1 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 00 BE A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 00 00 FD [03:41:50]Write i2c OK [03:41:50]MH_I2C_Read... [03:41:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:41:50]Read from MH i2c: E2 [03:41:50]MH_I2C_Read... [03:41:50]Read from MH i2c: E2 03 00 [03:41:50]MH_I2C_Read... [03:41:50]Read from MH i2c: E2 03 00 66 34 00 90 00 0E [03:41:50]RAPDU: 90 00 [03:41:50]wFMCommunicate OK [03:41:50]wFMCommunicate request_size=39 [03:41:50]MH_SAM_APDU [03:41:50]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 B7 07 00 00 35 04 06 00 07 01 FE 8C B0 C3 [03:41:50]Write to MH i2c: E2 2A 00 67 34 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 B7 07 00 00 35 04 06 00 07 01 FE 8C B0 C3 00 00 90 [03:41:50]Write i2c OK [03:41:50]MH_I2C_Read... [03:41:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:41:50]Read from MH i2c: E2 [03:41:50]MH_I2C_Read... [03:41:50]Read from MH i2c: E2 03 00 [03:41:50]MH_I2C_Read... [03:41:50]Read from MH i2c: E2 03 00 67 34 00 90 00 0F [03:41:50]RAPDU: 90 00 [03:41:50]wFMCommunicate OK [03:41:50]wFMCommunicate request_size=4 [03:41:50]MH_SAM_APDU [03:41:50]CAPDU: 80 0D 03 02 [03:41:50]Write to MH i2c: E2 08 00 68 34 80 0D 03 02 00 00 00 00 17 [03:41:50]Write i2c OK [03:41:50]MH_I2C_Read... [03:41:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:41:50]Read from MH i2c: E2 [03:41:50]MH_I2C_Read... [03:41:50]Read from MH i2c: E2 0B 00 [03:41:50]MH_I2C_Read... [03:41:50]Read from MH i2c: E2 0B 00 68 34 00 B4 F8 0F 46 F3 1B 2D DF 90 00 33 [03:41:50]RAPDU: B4 F8 0F 46 F3 1B 2D DF 90 00 [03:41:50]wFMCommunicate OK [03:41:50]SAM_PROTO_SignData done [03:41:50]FM_MakeSignedData done [03:41:50]CreateOFDProtocolMessage [03:41:50]wFMCommunicate request_size=4 [03:41:50]MH_SAM_APDU [03:41:50]CAPDU: 80 11 00 00 [03:41:50]Write to MH i2c: E2 08 00 69 34 80 11 00 00 00 00 00 00 17 [03:41:50]Write i2c OK [03:41:50]MH_I2C_Read... [03:41:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:41:50]Read from MH i2c: E2 [03:41:50]MH_I2C_Read... [03:41:50]Read from MH i2c: E2 17 00 [03:41:50]MH_I2C_Read... [03:41:50]Read from MH i2c: E2 17 00 69 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 67 [03:41:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [03:41:50]wFMCommunicate OK [03:41:50]CreateOFDProtocolMessage done [03:41:50]OFDSenderStorePacket 1975 [03:41:50]StoreOFDPacket docnum=1975 [03:41:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2C 01 00 00 E4 0C 24 01 5C A9 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 30 35 36 36 34 30 31 32 31 32 31 06 04 26 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 B1 D1 83 D1 82 20 D0 90 D0 BC D1 81 D1 82 D0 B5 D1 80 D0 B4 D0 B0 D0 BC 20 30 2C 35 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 00 E1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 E1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 17 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 E1 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 00 BE A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 B7 07 00 00 35 04 06 00 07 01 FE 8C B0 C3 B4 F8 0F 46 F3 1B 2D DF [03:41:50]CheckFolder [03:41:50]dirname=/storage/ofd_packets [03:41:50]CheckFolder done [03:41:50]ProducePacketName [03:41:50]name=ofd_packets/00001975 [03:41:50]NVStorageSaveData ofd_packets/00001975 [03:41:50]File name is /storage/ofd_packets/00001975 [03:41:50]Write 330 bytes [03:41:50]NVStorageSaveData done [03:41:50]OFDSenderStorePacket done [03:41:50]KKMCreateOFDPacket done [03:41:50]NVStorageSaveData kkm_last_timestamp [03:41:50]File name is /storage/kkm_last_timestamp [03:41:50]Write 4 bytes [03:41:50]NVStorageSaveData done [03:41:50]ExternCall_PrintAddStr [03:41:50]wPrintStart [03:41:50]Write to MH i2c: 01 00 00 6A 34 9E [03:41:50]Write i2c OK [03:41:50]MH_I2C_Read... [03:41:50]Read from MH i2c: 01 [03:41:50]MH_I2C_Read... [03:41:50]Read from MH i2c: 01 07 00 [03:41:50]MH_I2C_Read... [03:41:50]Read from MH i2c: 01 07 00 6A 34 00 00 00 00 00 FF 0F B3 [03:41:50]RasterBufferAndPrint [03:41:50]line Счет N : (3)126284 [03:41:50]line ИНН: 02508201610067 [03:41:50]line Контрольно-Кассовый Чек [03:41:50]line ПРОДАЖА [03:41:50]line Товар: 4605664012121 [03:41:50]line Пиво бут Амстердам 0,5 [03:41:50]line 4.000 * 144.00 [03:41:50]line = 576.00 [03:41:50]line НДС 12% НСП 1% [03:41:50]line > о реализуемом товаре [03:41:50]line ИТОГО: 576.00 [03:41:50]line НСП 1% : 5.10 [03:41:50]line НДС 12% : 61.17 [03:41:50]line Наличными: 0.00 [03:41:50]line Безнал.: 576.00 [03:41:50]line Место: АЗС № 127 "Партнер Нефть" [03:41:50]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [03:41:50]line СНО: Общий режим [03:41:50]line Чек 26 28.07.2024 03:41 [03:41:50]line Смена: 13 ФФД: 1.0 [03:41:50]line ЗНМ: 0300000161 [03:41:50]OFD Sender: Processing packet 1975 [packets to send 1, broken 0] [03:41:50]ProducePacketName [03:41:50]name=ofd_packets/00001975 [03:41:50]OFD Sender: To server: pG, [03:41:50]CommunicateWithHost lk.salyk.kg:30040 [03:41:50]ConnectInit lk.salyk.kg [03:41:50]line РНМ: 0000000000189667 [03:41:50]line Версия ККМ: v1.0 [03:41:50]line Платежная система: O! деньги [03:41:50]line ФМ: 0000000002094248 [03:41:50]line ФД: 1975 [03:41:50]line ФПД: 7705146994883 [03:41:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T034152&type=1&operation_type=1&fn_number=0000000002094248&fd_number=1975&fm=7705146994883&tin=02508201610067®Number=0000000000189667&sum=57600 [03:41:50]line 0 [03:41:50]written 0, free lines is 4095 [03:41:51]Connected sock=10 [03:41:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2C 01 00 00 E4 0C 24 01 5C A9 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 30 35 36 36 34 30 31 32 31 32 31 06 04 26 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 B1 D1 83 D1 82 20 D0 90 D0 BC D1 81 D1 82 D0 B5 D1 80 D0 B4 D0 B0 D0 BC 20 30 2C 35 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 00 E1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 E1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 17 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 E1 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 00 BE A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 B7 07 00 00 35 04 06 00 07 01 FE 8C B0 C3 B4 F8 0F 46 F3 1B 2D DF [03:41:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 C0 0B 47 00 C7 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 B7 07 00 00 F4 03 04 00 71 69 A5 66 B6 04 01 00 00 97 4E 5B B4 79 E4 94 C6 [03:41:51]CommunicateWithHost err = 0 [03:41:51]CheckOFDResponse [03:41:51]1017 (14) - 77093643461234 [03:41:51]1041 (16) - 0000000002094248 [03:41:51]1040 (4) - 1975 [03:41:51]1012 (4) - 27.07.2024 21:41 [03:41:51]1206 (1) - 0 [03:41:51]OFD Sender: Remove packet 1975 [03:41:51]ProducePacketName [03:41:51]name=ofd_packets/00001975 [03:41:51]NVStorageDeleteData [03:41:51]Write to MH i2c: 01 00 00 94 34 C8 [03:41:51]Write i2c OK [03:41:51]MH_I2C_Read... [03:41:51]Read from MH i2c: 01 [03:41:51]MH_I2C_Read... [03:41:51]Read from MH i2c: 01 07 00 [03:41:51]MH_I2C_Read... [03:41:51]Read from MH i2c: 01 07 00 94 34 00 00 00 00 00 1E 0D FA [03:41:51]RasterBufferAndPrint [03:41:51]line [03:41:51]line [03:41:51]line [03:41:51]line [03:41:51]line [03:41:51]written 0, free lines is 3380 [03:41:51]MH_Cut [03:41:51]Write to MH i2c: D1 01 00 9B 34 01 A1 [03:41:51]Write i2c OK [03:41:51]MH_I2C_Read... [03:41:51]Read from MH i2c: D1 [03:41:51]MH_I2C_Read... [03:41:51]Read from MH i2c: D1 01 00 [03:41:51]MH_I2C_Read... [03:41:51]Read from MH i2c: D1 01 00 9B 34 00 A0 [03:41:51]Write to MH i2c: 01 00 00 9C 34 D0 [03:41:51]Write i2c OK [03:41:51]MH_I2C_Read... [03:41:51]OFD Sender: No OFD packet to send [03:41:52]*** Cut start [03:41:52]*** Partial cut [03:41:52]*** CUTSNS_PIN = 1 [03:41:52]*** CUTSNS_PIN = 0 [03:41:52]*** Brake cut motor [03:41:52]Read from MH i2c: 01 [03:41:52]MH_I2C_Read... [03:41:52]*** Stop cut motor [03:41:52]*** Cut end [03:41:52]Read from MH i2c: 01 07 00 [03:41:52]MH_I2C_Read... [03:41:52]Read from MH i2c: 01 07 00 9C 34 00 00 00 00 00 FF 0F E5 [03:41:52]process_action close_receipt done [03:41:52]requested_data is exist [03:41:52]produce_requested_data [03:41:52]requested_item fm.sn is exist - process it [03:41:52]wFMCommunicate request_size=4 [03:41:52]MH_SAM_APDU [03:41:52]CAPDU: 80 11 00 00 [03:41:52]Write to MH i2c: E2 08 00 9D 34 80 11 00 00 00 00 00 00 4B [03:41:52]Write i2c OK [03:41:52]MH_I2C_Read... [03:41:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:41:52]Read from MH i2c: E2 [03:41:52]MH_I2C_Read... [03:41:52]Read from MH i2c: E2 17 00 [03:41:52]MH_I2C_Read... [03:41:52]Read from MH i2c: E2 17 00 9D 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 9B [03:41:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [03:41:52]wFMCommunicate OK [03:41:52]requested_item fd.num is exist - process it [03:41:52]SAM_PROTO_GetFieldsCounters [03:41:52]wFMCommunicate request_size=4 [03:41:52]MH_SAM_APDU [03:41:52]CAPDU: 80 13 00 00 [03:41:52]Write to MH i2c: E2 08 00 9E 34 80 13 00 00 00 00 00 00 4E [03:41:52]Write i2c OK [03:41:52]MH_I2C_Read... [03:41:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:41:52]Read from MH i2c: E2 [03:41:52]MH_I2C_Read... [03:41:52]Read from MH i2c: E2 62 00 [03:41:52]MH_I2C_Read... [03:41:53]Read from MH i2c: E2 62 00 9E 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 B7 07 00 00 0E 04 04 00 0D 00 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 91 [03:41:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 B7 07 00 00 0E 04 04 00 0D 00 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 [03:41:53]wFMCommunicate OK [03:41:53]SAM_PROTO_GetFieldsCounters done [03:41:53]requested_item shift.num is exist - process it [03:41:53]requested_item shift.opened is exist - process it [03:41:53]req_shift_opened [03:41:53]FM_GetShiftState [03:41:53]SAM_PROTO_GetShiftState [03:41:53]wFMCommunicate request_size=4 [03:41:53]MH_SAM_APDU [03:41:53]CAPDU: 80 13 01 00 [03:41:53]Write to MH i2c: E2 08 00 9F 34 80 13 01 00 00 00 00 00 50 [03:41:53]Write i2c OK [03:41:53]MH_I2C_Read... [03:41:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:41:53]Read from MH i2c: E2 [03:41:53]MH_I2C_Read... [03:41:53]Read from MH i2c: E2 0E 00 [03:41:53]MH_I2C_Read... [03:41:53]Read from MH i2c: E2 0E 00 9F 34 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 44 [03:41:53]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [03:41:53]wFMCommunicate OK [03:41:53]SAM_PROTO_GetShiftState done [03:41:53]FM_GetShiftState done [03:41:53]req_shift_opened done [03:41:53]requested_item shift.open_date is exist - process it [03:41:53]req_shift_open_date [03:41:53]req_shift_open_date done [03:41:53]produce_requested_data done [03:41:53]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":1975,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [03:41:53]process_action_free close_receipt [03:41:53]json_value_free [03:41:53]json_value_free done [03:41:53]process_json_proto returns [03:41:53]Send response to host [03:41:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":1975,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [03:41:53]free response buf [03:41:53]execute_script done [03:41:53]execute_script returns [03:41:53]free content buf [03:41:53]Sock 9.Close socket [03:41:53]Sock 9.Thread stoped [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:02]OFD Sender: No OFD packet to send [03:43:07]OFD Sender: No OFD packet to send [03:43:12]OFD Sender: No OFD packet to send [03:43:17]OFD Sender: No OFD packet to send [03:43:22]OFD Sender: No OFD packet to send [03:43:27]OFD Sender: No OFD packet to send [03:43:32]OFD Sender: No OFD packet to send [03:43:37]OFD Sender: No OFD packet to send [03:43:42]OFD Sender: No OFD packet to send [03:43:47]OFD Sender: No OFD packet to send [03:43:52]OFD Sender: No OFD packet to send [03:43:57]OFD Sender: No OFD packet to send [03:44:02]OFD Sender: No OFD packet to send [03:44:07]OFD Sender: No OFD packet to send [03:44:12]OFD Sender: No OFD packet to send [03:44:17]OFD Sender: No OFD packet to send [03:44:22]OFD Sender: No OFD packet to send [03:44:27]OFD Sender: No OFD packet to send [03:44:32]OFD Sender: No OFD packet to send [03:44:37]OFD Sender: No OFD packet to send [03:44:42]OFD Sender: No OFD packet to send [03:44:47]OFD Sender: No OFD packet to send [03:44:52]OFD Sender: No OFD packet to send [03:44:57]OFD Sender: No OFD packet to send [03:45:02]OFD Sender: No OFD packet to send [03:45:07]OFD Sender: No OFD packet to send [03:45:12]OFD Sender: No OFD packet to send [03:45:17]OFD Sender: No OFD packet to send [03:45:22]OFD Sender: No OFD packet to send [03:45:27]OFD Sender: No OFD packet to send [03:45:32]OFD Sender: No OFD packet to send [03:45:37]OFD Sender: No OFD packet to send [03:45:42]OFD Sender: No OFD packet to send [03:45:47]OFD Sender: No OFD packet to send [03:45:52]OFD Sender: No OFD packet to send [03:45:57]OFD Sender: No OFD packet to send [03:46:02]OFD Sender: No OFD packet to send [03:46:07]OFD Sender: No OFD packet to send [03:46:12]OFD Sender: No OFD packet to send [03:46:17]OFD Sender: No OFD packet to send [03:46:22]OFD Sender: No OFD packet to send [03:46:27]OFD Sender: No OFD packet to send [03:46:32]OFD Sender: No OFD packet to send [03:46:37]OFD Sender: No OFD packet to send [03:46:42]OFD Sender: No OFD packet to send [03:46:45]accept exits with 8 [03:46:45]New connection [03:46:45]New thread 3067317604 created [03:46:45]Thread 3067460964 joined [03:46:45]Waiting for new connection... [03:46:45] Sock 8.Parse request [03:46:45]Sock 8.Check first char [03:46:45]Sock 8.First char is OK [03:46:45]request: POST /json_proto HTTP/1.0 [03:46:45]Method: POST [03:46:45]URL: /json_proto [03:46:45]Method is POST - this is cgi request [03:46:45]url: /json_proto [03:46:45]query_string will be loaded in cgi processing [03:46:45]execute_cgi json_proto POST (null) [03:46:45]execute_cgi path=json_proto method=POST [03:46:45]POST find Content-Length [03:46:45]Host: 172.17.45.132:8080 [03:46:45]Content-Length: 864 [03:46:45]Content-Type: application/json [03:46:45] [03:46:45]POST finish read [03:46:45]Found Content-Length = 864 [03:46:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126285", "tax_sys" : 0, "items" : [ { "code": "4700001060848", "name": "\u041D\u0430\u0441\u0442\u043E\u0439\u043A\u0430 \u0412\u0438\u0448\u043D\u044F \u043D\u0430 \u043A\u043E\u043D\u044C\u044F\u043A\u0435 0,2\u043B", "price" : 200.00, "quantity" : 1.000, "sum" : 200.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" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:46:45]execute_script... [03:46:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126285", "tax_sys" : 0, "items" : [ { "code": "4700001060848", "name": "\u041D\u0430\u0441\u0442\u043E\u0439\u043A\u0430 \u0412\u0438\u0448\u043D\u044F \u043D\u0430 \u043A\u043E\u043D\u044C\u044F\u043A\u0435 0,2\u043B", "price" : 200.00, "quantity" : 1.000, "sum" : 200.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" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:46:45]POST & json_proto [03:46:45]process_json_proto [03:46:45]json parsed OK: [03:46:45]protocol is kg_v1.0 [03:46:45]action value=close_receipt [03:46:45]process_action close_receipt [03:46:45]cmd_close_receipt [03:46:45]MH_GetDate [03:46:45]Write to MH i2c: F0 00 00 A0 34 C3 [03:46:45]Write i2c OK [03:46:45]MH_I2C_Read... [03:46:45]Read from MH i2c: F0 [03:46:45]MH_I2C_Read... [03:46:45]Read from MH i2c: F0 09 00 [03:46:45]MH_I2C_Read... [03:46:45]Read from MH i2c: F0 09 00 A0 34 00 29 BF A5 66 E3 0B 90 66 A3 [03:46:45]GetLastDocTimeStamp 1722138112 [03:46:45]current date 1722138409 [03:46:45]FM_GetShiftState [03:46:45]SAM_PROTO_GetShiftState [03:46:45]wFMCommunicate request_size=4 [03:46:45]MH_SAM_APDU [03:46:45]CAPDU: 80 13 01 00 [03:46:45]Write to MH i2c: E2 08 00 A1 34 80 13 01 00 00 00 00 00 52 [03:46:45]Write i2c OK [03:46:45]MH_I2C_Read... [03:46:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:46:45]Read from MH i2c: E2 [03:46:45]MH_I2C_Read... [03:46:45]Read from MH i2c: E2 0E 00 [03:46:45]MH_I2C_Read... [03:46:45]Read from MH i2c: E2 0E 00 A1 34 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 46 [03:46:45]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [03:46:45]wFMCommunicate OK [03:46:45]SAM_PROTO_GetShiftState done [03:46:45]FM_GetShiftState done [03:46:45]opened in 1722125648 [03:46:45]opened+sec_in_day 1722212048 [03:46:45]quantity*price = 20000 [03:46:45]sum+1 = 20001 [03:46:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 27 28.07.2024 03:46 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 1976 ФПД: 110427740946975 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T034649&type=1&operation_type=1&fn_number=0000000002094248&fd_number=1976&fm=110427740946975&tin=02508201610067®Number=0000000000189667&sum=20000 0 [03:46:46]StoreToDocumentArchive [03:46:46]shift 13 fd 1976 [03:46:46]save to /storage/0013/doc_00001976 [03:46:46]save last doc name /storage/0013/doc_00001976 to /storage/kkm_last_doc_name [03:46:46]save OK [03:46:46]Clear old archive folders... [03:46:46]ProcessDocumentItem done err = 0, tmpTLVsize=295 [03:46:46]tlvbuf is 01FD75F0 [03:46:46]SAM_PROTO_ClearQueue [03:46:46]wFMCommunicate request_size=4 [03:46:46]MH_SAM_APDU [03:46:46]CAPDU: 80 09 00 00 [03:46:46]Write to MH i2c: E2 08 00 AE 34 80 09 00 00 00 00 00 00 54 [03:46:46]Write i2c OK [03:46:46]MH_I2C_Read... [03:46:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:46:46]Read from MH i2c: E2 [03:46:46]MH_I2C_Read... [03:46:46]Read from MH i2c: E2 03 00 [03:46:46]MH_I2C_Read... [03:46:46]Read from MH i2c: E2 03 00 AE 34 00 90 00 56 [03:46:46]RAPDU: 90 00 [03:46:46]wFMCommunicate OK [03:46:46]SAM_PROTO_ClearQueue done [03:46:46]KKMCreateOFDPacket [03:46:46]OFDProtocolAddRootSTLVToBuf [03:46:46]FM_MakeSignedData [03:46:46]FM_MakeSignedData [03:46:46]SAM_PROTO_SignData [03:46:46]wFMCommunicate request_size=4 [03:46:46]MH_SAM_APDU [03:46:46]CAPDU: 80 0D 01 02 [03:46:46]Write to MH i2c: E2 08 00 AF 34 80 0D 01 02 00 00 00 00 5C [03:46:46]Write i2c OK [03:46:46]MH_I2C_Read... [03:46:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:46:47]Read from MH i2c: E2 [03:46:47]MH_I2C_Read... [03:46:47]Read from MH i2c: E2 03 00 [03:46:47]MH_I2C_Read... [03:46:47]Read from MH i2c: E2 03 00 AF 34 00 90 00 57 [03:46:47]RAPDU: 90 00 [03:46:47]wFMCommunicate OK [03:46:47]wFMCommunicate request_size=255 [03:46:47]MH_SAM_APDU [03:46:47]CAPDU: 80 0D 02 02 FA 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 38 34 38 06 04 35 00 D0 9D D0 B0 D1 81 D1 82 D0 BE D0 B9 D0 BA D0 B0 20 D0 92 D0 B8 D1 88 D0 BD D1 8F 20 D0 BD D0 B0 20 D0 BA D0 BE D0 BD D1 8C D1 8F D0 BA D0 B5 20 30 2C 32 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 00 00 00 00 00 00 39 04 06 00 20 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 29 BF A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 [03:46:47]Write to MH i2c: E2 02 01 B0 34 80 0D 02 02 FA 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 38 34 38 06 04 35 00 D0 9D D0 B0 D1 81 D1 82 D0 BE D0 B9 D0 BA D0 B0 20 D0 92 D0 B8 D1 88 D0 BD D1 8F 20 D0 BD D0 B0 20 D0 BA D0 BE D0 BD D1 8C D1 8F D0 BA D0 B5 20 30 2C 32 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 00 00 00 00 00 00 39 04 06 00 20 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 29 BF A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 00 00 0B [03:46:47]Write i2c OK [03:46:47]MH_I2C_Read... [03:46:47]OFD Sender: No OFD packet to send [03:46:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:46:47]Read from MH i2c: E2 [03:46:47]MH_I2C_Read... [03:46:47]Read from MH i2c: E2 03 00 [03:46:47]MH_I2C_Read... [03:46:47]Read from MH i2c: E2 03 00 B0 34 00 90 00 58 [03:46:47]RAPDU: 90 00 [03:46:47]wFMCommunicate OK [03:46:47]wFMCommunicate request_size=54 [03:46:47]MH_SAM_APDU [03:46:47]CAPDU: 80 0D 02 02 31 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 B8 07 00 00 35 04 06 00 64 6E F6 45 C2 1F [03:46:47]Write to MH i2c: E2 39 00 B1 34 80 0D 02 02 31 00 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 B8 07 00 00 35 04 06 00 64 6E F6 45 C2 1F 00 00 3C [03:46:47]Write i2c OK [03:46:47]MH_I2C_Read... [03:46:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:46:47]Read from MH i2c: E2 [03:46:47]MH_I2C_Read... [03:46:47]Read from MH i2c: E2 03 00 [03:46:47]MH_I2C_Read... [03:46:47]Read from MH i2c: E2 03 00 B1 34 00 90 00 59 [03:46:47]RAPDU: 90 00 [03:46:47]wFMCommunicate OK [03:46:47]wFMCommunicate request_size=4 [03:46:47]MH_SAM_APDU [03:46:47]CAPDU: 80 0D 03 02 [03:46:47]Write to MH i2c: E2 08 00 B2 34 80 0D 03 02 00 00 00 00 61 [03:46:47]Write i2c OK [03:46:47]MH_I2C_Read... [03:46:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:46:47]Read from MH i2c: E2 [03:46:47]MH_I2C_Read... [03:46:47]Read from MH i2c: E2 0B 00 [03:46:47]MH_I2C_Read... [03:46:47]Read from MH i2c: E2 0B 00 B2 34 00 F8 91 1C 96 BA 64 70 87 90 00 B2 [03:46:47]RAPDU: F8 91 1C 96 BA 64 70 87 90 00 [03:46:47]wFMCommunicate OK [03:46:47]SAM_PROTO_SignData done [03:46:47]FM_MakeSignedData done [03:46:47]CreateOFDProtocolMessage [03:46:47]wFMCommunicate request_size=4 [03:46:47]MH_SAM_APDU [03:46:47]CAPDU: 80 11 00 00 [03:46:47]Write to MH i2c: E2 08 00 B3 34 80 11 00 00 00 00 00 00 61 [03:46:47]Write i2c OK [03:46:47]MH_I2C_Read... [03:46:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:46:47]Read from MH i2c: E2 [03:46:47]MH_I2C_Read... [03:46:47]Read from MH i2c: E2 17 00 [03:46:47]MH_I2C_Read... [03:46:47]Read from MH i2c: E2 17 00 B3 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 B1 [03:46:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [03:46:47]wFMCommunicate OK [03:46:47]CreateOFDProtocolMessage done [03:46:47]OFDSenderStorePacket 1976 [03:46:47]StoreOFDPacket docnum=1976 [03:46:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 3B 01 00 00 25 B0 33 01 FB E1 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 38 34 38 06 04 35 00 D0 9D D0 B0 D1 81 D1 82 D0 BE D0 B9 D0 BA D0 B0 20 D0 92 D0 B8 D1 88 D0 BD D1 8F 20 D0 BD D0 B0 20 D0 BA D0 BE D0 BD D1 8C D1 8F D0 BA D0 B5 20 30 2C 32 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 00 00 00 00 00 00 39 04 06 00 20 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 29 BF A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 B8 07 00 00 35 04 06 00 64 6E F6 45 C2 1F F8 91 1C 96 BA 64 70 87 [03:46:47]CheckFolder [03:46:47]dirname=/storage/ofd_packets [03:46:47]CheckFolder done [03:46:47]ProducePacketName [03:46:47]name=ofd_packets/00001976 [03:46:47]NVStorageSaveData ofd_packets/00001976 [03:46:47]File name is /storage/ofd_packets/00001976 [03:46:47]Write 345 bytes [03:46:47]NVStorageSaveData done [03:46:47]OFDSenderStorePacket done [03:46:47]KKMCreateOFDPacket done [03:46:47]NVStorageSaveData kkm_last_timestamp [03:46:47]File name is /storage/kkm_last_timestamp [03:46:47]Write 4 bytes [03:46:47]NVStorageSaveData done [03:46:47]ExternCall_PrintAddStr [03:46:47]wPrintStart [03:46:47]Write to MH i2c: 01 00 00 B4 34 E8 [03:46:47]Write i2c OK [03:46:47]MH_I2C_Read... [03:46:47]Read from MH i2c: 01 [03:46:47]MH_I2C_Read... [03:46:47]Read from MH i2c: 01 07 00 [03:46:47]MH_I2C_Read... [03:46:47]Read from MH i2c: 01 07 00 B4 34 00 00 00 00 00 FF 0F FD [03:46:47]RasterBufferAndPrint [03:46:47]line Счет N : (3)126285 [03:46:47]line ИНН: 02508201610067 [03:46:47]line Контрольно-Кассовый Чек [03:46:47]line ПРОДАЖА [03:46:47]line Товар: 4700001060848 [03:46:47]line Настойка Вишня на коньяке 0,2л [03:46:47]line 1.000 * 200.00 [03:46:47]line = 200.00 [03:46:47]line НДС 12% НСП 1% [03:46:47]line > о реализуемом товаре [03:46:47]line ИТОГО: 200.00 [03:46:47]line НСП 1% : 1.77 [03:46:47]line НДС 12% : 21.24 [03:46:47]line Наличными: 0.00 [03:46:47]line Безнал.: 200.00 [03:46:47]line Место: АЗС № 127 "Партнер Нефть" [03:46:47]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [03:46:47]line СНО: Общий режим [03:46:47]line Чек 27 28.07.2024 03:46 [03:46:47]line Смена: 13 ФФД: 1.0 [03:46:47]line ЗНМ: 0300000161 [03:46:47]line РНМ: 0000000000189667 [03:46:47]line Версия ККМ: v1.0 [03:46:47]line Платежная система: O! деньги [03:46:47]line ФМ: 0000000002094248 [03:46:47]line ФД: 1976 [03:46:47]line ФПД: 110427740946975 [03:46:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T034649&type=1&operation_type=1&fn_number=0000000002094248&fd_number=1976&fm=110427740946975&tin=02508201610067®Number=0000000000189667&sum=20000 [03:46:47]line 0 [03:46:47]OFD Sender: Processing packet 1976 [packets to send 1, broken 0] [03:46:47]ProducePacketName [03:46:47]name=ofd_packets/00001976 [03:46:47]OFD Sender: To server: pG, [03:46:47]CommunicateWithHost lk.salyk.kg:30040 [03:46:47]ConnectInit lk.salyk.kg [03:46:47]written 0, free lines is 4095 [03:46:47]Connected sock=10 [03:46:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 3B 01 00 00 25 B0 33 01 FB E1 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 38 34 38 06 04 35 00 D0 9D D0 B0 D1 81 D1 82 D0 BE D0 B9 D0 BA D0 B0 20 D0 92 D0 B8 D1 88 D0 BD D1 8F 20 D0 BD D0 B0 20 D0 BA D0 BE D0 BD D1 8C D1 8F D0 BA D0 B5 20 30 2C 32 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 00 00 00 00 00 00 39 04 06 00 20 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 29 BF A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 B8 07 00 00 35 04 06 00 64 6E F6 45 C2 1F F8 91 1C 96 BA 64 70 87 [03:46:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 6A EC 47 00 B8 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 B8 07 00 00 F4 03 04 00 9A 6A A5 66 B6 04 01 00 00 58 3D 59 CC CE CE 5B EB [03:46:48]CommunicateWithHost err = 0 [03:46:48]CheckOFDResponse [03:46:48]1017 (14) - 77093643461234 [03:46:48]1041 (16) - 0000000002094248 [03:46:48]1040 (4) - 1976 [03:46:48]1012 (4) - 27.07.2024 21:46 [03:46:48]1206 (1) - 0 [03:46:48]OFD Sender: Remove packet 1976 [03:46:48]ProducePacketName [03:46:48]name=ofd_packets/00001976 [03:46:48]NVStorageDeleteData [03:46:48]Write to MH i2c: 01 00 00 DF 34 13 [03:46:48]Write i2c OK [03:46:48]MH_I2C_Read... [03:46:48]Read from MH i2c: 01 [03:46:48]MH_I2C_Read... [03:46:48]Read from MH i2c: 01 07 00 [03:46:48]MH_I2C_Read... [03:46:48]Read from MH i2c: 01 07 00 DF 34 00 00 00 00 00 EF 0C 15 [03:46:48]RasterBufferAndPrint [03:46:48]line [03:46:48]line [03:46:48]line [03:46:48]line [03:46:48]line [03:46:48]written 0, free lines is 3318 [03:46:48]MH_Cut [03:46:48]Write to MH i2c: D1 01 00 E6 34 01 EC [03:46:48]Write i2c OK [03:46:48]MH_I2C_Read... [03:46:48]Read from MH i2c: D1 [03:46:48]MH_I2C_Read... [03:46:48]Read from MH i2c: D1 01 00 [03:46:48]MH_I2C_Read... [03:46:48]Read from MH i2c: D1 01 00 E6 34 00 EB [03:46:48]Write to MH i2c: 01 00 00 E7 34 1B [03:46:48]Write i2c OK [03:46:48]MH_I2C_Read... [03:46:48]OFD Sender: No OFD packet to send [03:46:48]*** Cut start [03:46:48]*** Partial cut [03:46:48]*** CUTSNS_PIN = 1 [03:46:49]*** CUTSNS_PIN = 0 [03:46:49]*** Brake cut motor [03:46:49]Read from MH i2c: 01 [03:46:49]MH_I2C_Read... [03:46:49]*** Stop cut motor [03:46:49]*** Cut end [03:46:49]Read from MH i2c: 01 07 00 [03:46:49]MH_I2C_Read... [03:46:49]Read from MH i2c: 01 07 00 E7 34 00 00 00 00 00 FF 0F 30 [03:46:49]process_action close_receipt done [03:46:49]requested_data is exist [03:46:49]produce_requested_data [03:46:49]requested_item fm.sn is exist - process it [03:46:49]wFMCommunicate request_size=4 [03:46:49]MH_SAM_APDU [03:46:49]CAPDU: 80 11 00 00 [03:46:49]Write to MH i2c: E2 08 00 E8 34 80 11 00 00 00 00 00 00 96 [03:46:49]Write i2c OK [03:46:49]MH_I2C_Read... [03:46:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:46:49]Read from MH i2c: E2 [03:46:49]MH_I2C_Read... [03:46:49]Read from MH i2c: E2 17 00 [03:46:49]MH_I2C_Read... [03:46:49]Read from MH i2c: E2 17 00 E8 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 E6 [03:46:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [03:46:49]wFMCommunicate OK [03:46:49]requested_item fd.num is exist - process it [03:46:49]SAM_PROTO_GetFieldsCounters [03:46:49]wFMCommunicate request_size=4 [03:46:49]MH_SAM_APDU [03:46:49]CAPDU: 80 13 00 00 [03:46:49]Write to MH i2c: E2 08 00 E9 34 80 13 00 00 00 00 00 00 99 [03:46:49]Write i2c OK [03:46:49]MH_I2C_Read... [03:46:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:46:49]Read from MH i2c: E2 [03:46:49]MH_I2C_Read... [03:46:49]Read from MH i2c: E2 62 00 [03:46:49]MH_I2C_Read... [03:46:49]Read from MH i2c: E2 62 00 E9 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 B8 07 00 00 0E 04 04 00 0D 00 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 E0 [03:46:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 B8 07 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:46:49]wFMCommunicate OK [03:46:49]SAM_PROTO_GetFieldsCounters done [03:46:49]requested_item shift.num is exist - process it [03:46:49]requested_item shift.opened is exist - process it [03:46:49]req_shift_opened [03:46:49]FM_GetShiftState [03:46:49]SAM_PROTO_GetShiftState [03:46:49]wFMCommunicate request_size=4 [03:46:49]MH_SAM_APDU [03:46:49]CAPDU: 80 13 01 00 [03:46:49]Write to MH i2c: E2 08 00 EA 34 80 13 01 00 00 00 00 00 9B [03:46:49]Write i2c OK [03:46:49]MH_I2C_Read... [03:46:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:46:49]Read from MH i2c: E2 [03:46:49]MH_I2C_Read... [03:46:49]Read from MH i2c: E2 0E 00 [03:46:49]MH_I2C_Read... [03:46:49]Read from MH i2c: E2 0E 00 EA 34 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 8F [03:46:49]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [03:46:49]wFMCommunicate OK [03:46:49]SAM_PROTO_GetShiftState done [03:46:49]FM_GetShiftState done [03:46:49]req_shift_opened done [03:46:49]requested_item shift.open_date is exist - process it [03:46:49]req_shift_open_date [03:46:49]req_shift_open_date done [03:46:49]produce_requested_data done [03:46:49]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":1976,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [03:46:49]process_action_free close_receipt [03:46:49]json_value_free [03:46:49]json_value_free done [03:46:49]process_json_proto returns [03:46:49]Send response to host [03:46:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":1976,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [03:46:49]free response buf [03:46:49]execute_script done [03:46:49]execute_script returns [03:46:49]free content buf [03:46:49]Sock 8.Close socket [03:46:49]Sock 8.Thread stoped [03:46:53]OFD Sender: No OFD packet to send [03:46:58]OFD Sender: No OFD packet to send [03:47:03]OFD Sender: No OFD packet to send [03:47:08]OFD Sender: No OFD packet to send [03:47:13]OFD Sender: No OFD packet to send [03:47:18]OFD Sender: No OFD packet to send [03:47:23]OFD Sender: No OFD packet to send [03:47:28]OFD Sender: No OFD packet to send [03:47:33]OFD Sender: No OFD packet to send [03:47:38]OFD Sender: No OFD packet to send [03:47:43]OFD Sender: No OFD packet to send [03:47:48]OFD Sender: No OFD packet to send [03:47:53]OFD Sender: No OFD packet to send [03:47:58]OFD Sender: No OFD packet to send [03:48:03]OFD Sender: No OFD packet to send [03:48:08]OFD Sender: No OFD packet to send [03:48:13]OFD Sender: No OFD packet to send [03:48:18]OFD Sender: No OFD packet to send [03:48:23]OFD Sender: No OFD packet to send [03:48:28]OFD Sender: No OFD packet to send [03:48:33]OFD Sender: No OFD packet to send [03:48:38]OFD Sender: No OFD packet to send [03:48:43]OFD Sender: No OFD packet to send [03:48:48]OFD Sender: No OFD packet to send [03:48:53]OFD Sender: No OFD packet to send [03:48:58]OFD Sender: No OFD packet to send [03:49:03]OFD Sender: No OFD packet to send [03:49:05]accept exits with 9 [03:49:05]New connection [03:49:05]New thread 3067460964 created [03:49:05]Thread 3067317604 joined [03:49:05]Waiting for new connection... [03:49:05] Sock 9.Parse request [03:49:05]Sock 9.Check first char [03:49:05]Sock 9.First char is OK [03:49:05]request: POST /json_proto HTTP/1.0 [03:49:05]Method: POST [03:49:05]URL: /json_proto [03:49:05]Method is POST - this is cgi request [03:49:05]url: /json_proto [03:49:05]query_string will be loaded in cgi processing [03:49:05]execute_cgi json_proto POST (null) [03:49:05]execute_cgi path=json_proto method=POST [03:49:05]POST find Content-Length [03:49:05]Host: 172.17.45.132:8080 [03:49:05]Content-Length: 1473 [03:49:05]Content-Type: application/json [03:49:05] [03:49:05]POST finish read [03:49:05]Found Content-Length = 1473 [03:49:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126286", "tax_sys" : 0, "items" : [ { "code": "4700000480081", "name": "\u041F\u0418\u0412\u041E \u0421\u0412\u0415\u0422\u041B\u041E\u0415 \u0411\u0410\u0417\u0410\u041B\u041A\u041E\u0413\u041E\u041B\u042C\u041D\u041E\u0415 URBAN 312 0,", "price" : 107.00, "quantity" : 2.000, "sum" : 214.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870235681062", "name": "Grizzly \u0432\u043E\u043B\u043D\u0438\u0441\u0442\u044B\u0435 \u041A\u043E\u043B\u0431\u0430\u0441\u043A\u0438 \u0441 \u0433\u043E\u0440\u0447\u0438\u0446\u0435\u0439 55", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 354.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:49:05]execute_script... [03:49: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)126286", "tax_sys" : 0, "items" : [ { "code": "4700000480081", "name": "\u041F\u0418\u0412\u041E \u0421\u0412\u0415\u0422\u041B\u041E\u0415 \u0411\u0410\u0417\u0410\u041B\u041A\u041E\u0413\u041E\u041B\u042C\u041D\u041E\u0415 URBAN 312 0,", "price" : 107.00, "quantity" : 2.000, "sum" : 214.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870235681062", "name": "Grizzly \u0432\u043E\u043B\u043D\u0438\u0441\u0442\u044B\u0435 \u041A\u043E\u043B\u0431\u0430\u0441\u043A\u0438 \u0441 \u0433\u043E\u0440\u0447\u0438\u0446\u0435\u0439 55", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 354.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:49:05]POST & json_proto [03:49:05]process_json_proto [03:49:05]json parsed OK: [03:49:05]protocol is kg_v1.0 [03:49:05]action value=close_receipt [03:49:05]process_action close_receipt [03:49:05]cmd_close_receipt [03:49:05]MH_GetDate [03:49:05]Write to MH i2c: F0 00 00 EB 34 0E [03:49:05]Write i2c OK [03:49:05]MH_I2C_Read... [03:49:05]Read from MH i2c: F0 [03:49:05]MH_I2C_Read... [03:49:05]Read from MH i2c: F0 09 00 [03:49:05]MH_I2C_Read... [03:49:05]Read from MH i2c: F0 09 00 EB 34 00 B4 BF A5 66 E3 0B 90 66 79 [03:49:05]GetLastDocTimeStamp 1722138409 [03:49:05]current date 1722138548 [03:49:05]FM_GetShiftState [03:49:05]SAM_PROTO_GetShiftState [03:49:05]wFMCommunicate request_size=4 [03:49:05]MH_SAM_APDU [03:49:05]CAPDU: 80 13 01 00 [03:49:05]Write to MH i2c: E2 08 00 EC 34 80 13 01 00 00 00 00 00 9D [03:49:05]Write i2c OK [03:49:05]MH_I2C_Read... [03:49:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:49:05]Read from MH i2c: E2 [03:49:05]MH_I2C_Read... [03:49:05]Read from MH i2c: E2 0E 00 [03:49:05]MH_I2C_Read... [03:49:05]Read from MH i2c: E2 0E 00 EC 34 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 91 [03:49:05]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [03:49:05]wFMCommunicate OK [03:49:05]SAM_PROTO_GetShiftState done [03:49:05]FM_GetShiftState done [03:49:05]opened in 1722125648 [03:49:05]opened+sec_in_day 1722212048 [03:49:05]quantity*price = 21400 [03:49:05]sum+1 = 21401 [03:49:05]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870235681062 Grizzly волнистые Колбаски с горчицей 55 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 354.00 НСП 1% : 3.13 НДС 12% : 37.60 Наличными: 0.00 Безнал.: 354.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 28 28.07.2024 03:49 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 1977 ФПД: 105129218404888 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T034909&type=1&operation_type=1&fn_number=0000000002094248&fd_number=1977&fm=105129218404888&tin=02508201610067®Number=0000000000189667&sum=35400 0 [03:49:06]StoreToDocumentArchive [03:49:06]shift 13 fd 1977 [03:49:06]save to /storage/0013/doc_00001977 [03:49:06]save last doc name /storage/0013/doc_00001977 to /storage/kkm_last_doc_name [03:49:06]save OK [03:49:06]Clear old archive folders... [03:49:06]ProcessDocumentItem done err = 0, tmpTLVsize=544 [03:49:06]tlvbuf is 01F44D20 [03:49:06]SAM_PROTO_ClearQueue [03:49:06]wFMCommunicate request_size=4 [03:49:06]MH_SAM_APDU [03:49:06]CAPDU: 80 09 00 00 [03:49:06]Write to MH i2c: E2 08 00 F9 34 80 09 00 00 00 00 00 00 9F [03:49:06]Write i2c OK [03:49:06]MH_I2C_Read... [03:49:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:49:06]Read from MH i2c: E2 [03:49:06]MH_I2C_Read... [03:49:06]Read from MH i2c: E2 03 00 [03:49:06]MH_I2C_Read... [03:49:06]Read from MH i2c: E2 03 00 F9 34 00 90 00 A1 [03:49:06]RAPDU: 90 00 [03:49:06]wFMCommunicate OK [03:49:06]SAM_PROTO_ClearQueue done [03:49:06]KKMCreateOFDPacket [03:49:06]OFDProtocolAddRootSTLVToBuf [03:49:06]FM_MakeSignedData [03:49:06]FM_MakeSignedData [03:49:06]SAM_PROTO_SignData [03:49:06]wFMCommunicate request_size=4 [03:49:06]MH_SAM_APDU [03:49:06]CAPDU: 80 0D 01 02 [03:49:06]Write to MH i2c: E2 08 00 FA 34 80 0D 01 02 00 00 00 00 A7 [03:49:06]Write i2c OK [03:49:06]MH_I2C_Read... [03:49:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:49:06]Read from MH i2c: E2 [03:49:06]MH_I2C_Read... [03:49:06]Read from MH i2c: E2 03 00 [03:49:06]MH_I2C_Read... [03:49:06]Read from MH i2c: E2 03 00 FA 34 00 90 00 A2 [03:49:06]RAPDU: 90 00 [03:49:06]wFMCommunicate OK [03:49:06]wFMCommunicate request_size=255 [03:49:06]MH_SAM_APDU [03:49:06]CAPDU: 80 0D 02 02 FA 03 00 20 02 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 38 31 06 04 41 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 D0 91 D0 90 D0 97 D0 90 D0 9B D0 9A D0 9E D0 93 D0 9E D0 9B D0 AC D0 9D D0 9E D0 95 20 55 52 42 41 4E 20 33 31 32 20 30 2C FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 98 53 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 36 32 06 04 42 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 9A D0 BE D0 BB D0 B1 D0 B0 D1 81 D0 BA D0 B8 20 D1 81 20 D0 B3 D0 BE D1 80 D1 87 D0 B8 D1 86 D0 B5 D0 B9 20 35 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 [03:49:06]Write to MH i2c: E2 02 01 FB 34 80 0D 02 02 FA 00 03 00 20 02 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 38 31 06 04 41 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 D0 91 D0 90 D0 97 D0 90 D0 9B D0 9A D0 9E D0 93 D0 9E D0 9B D0 AC D0 9D D0 9E D0 95 20 55 52 42 41 4E 20 33 31 32 20 30 2C FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 98 53 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 36 32 06 04 42 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 9A D0 BE D0 BB D0 B1 D0 B0 D1 81 D0 BA D0 B8 20 D1 81 20 D0 B3 D0 BE D1 80 D1 87 D0 B8 D1 86 D0 B5 D0 B9 20 35 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 00 00 BE [03:49:06]Write i2c OK [03:49:06]MH_I2C_Read... [03:49:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:49:06]Read from MH i2c: E2 [03:49:06]MH_I2C_Read... [03:49:06]Read from MH i2c: E2 03 00 [03:49:06]MH_I2C_Read... [03:49:06]Read from MH i2c: E2 03 00 FB 34 00 90 00 A3 [03:49:06]RAPDU: 90 00 [03:49:06]wFMCommunicate OK [03:49:06]wFMCommunicate request_size=255 [03:49:06]MH_SAM_APDU [03:49:06]CAPDU: 80 0D 02 02 FA 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 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 8A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 48 8A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 B5 BF A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [03:49:06]Write to MH i2c: E2 02 01 FC 34 80 0D 02 02 FA 00 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 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 8A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 48 8A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 B5 BF A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 92 [03:49:06]Write i2c OK [03:49:06]MH_I2C_Read... [03:49:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:49:07]Read from MH i2c: E2 [03:49:07]MH_I2C_Read... [03:49:07]Read from MH i2c: E2 03 00 [03:49:07]MH_I2C_Read... [03:49:07]Read from MH i2c: E2 03 00 FC 34 00 90 00 A4 [03:49:07]RAPDU: 90 00 [03:49:07]wFMCommunicate OK [03:49:07]wFMCommunicate request_size=53 [03:49:07]MH_SAM_APDU [03:49:07]CAPDU: 80 0D 02 02 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 B9 07 00 00 35 04 06 00 5F 9D 4D B7 F2 18 [03:49:07]Write to MH i2c: E2 38 00 FD 34 80 0D 02 02 30 00 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 B9 07 00 00 35 04 06 00 5F 9D 4D B7 F2 18 00 00 73 [03:49:07]Write i2c OK [03:49:07]MH_I2C_Read... [03:49:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:49:07]Read from MH i2c: E2 [03:49:07]MH_I2C_Read... [03:49:07]Read from MH i2c: E2 03 00 [03:49:07]MH_I2C_Read... [03:49:07]Read from MH i2c: E2 03 00 FD 34 00 90 00 A5 [03:49:07]RAPDU: 90 00 [03:49:07]wFMCommunicate OK [03:49:07]wFMCommunicate request_size=4 [03:49:07]MH_SAM_APDU [03:49:07]CAPDU: 80 0D 03 02 [03:49:07]Write to MH i2c: E2 08 00 FE 34 80 0D 03 02 00 00 00 00 AD [03:49:07]Write i2c OK [03:49:07]MH_I2C_Read... [03:49:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:49:07]Read from MH i2c: E2 [03:49:07]MH_I2C_Read... [03:49:07]Read from MH i2c: E2 0B 00 [03:49:07]MH_I2C_Read... [03:49:07]Read from MH i2c: E2 0B 00 FE 34 00 7A 30 84 AC AC BC CB 09 90 00 C4 [03:49:07]RAPDU: 7A 30 84 AC AC BC CB 09 90 00 [03:49:07]wFMCommunicate OK [03:49:07]SAM_PROTO_SignData done [03:49:07]FM_MakeSignedData done [03:49:07]CreateOFDProtocolMessage [03:49:07]wFMCommunicate request_size=4 [03:49:07]MH_SAM_APDU [03:49:07]CAPDU: 80 11 00 00 [03:49:07]Write to MH i2c: E2 08 00 FF 34 80 11 00 00 00 00 00 00 AD [03:49:07]Write i2c OK [03:49:07]MH_I2C_Read... [03:49:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:49:07]Read from MH i2c: E2 [03:49:07]MH_I2C_Read... [03:49:07]Read from MH i2c: E2 17 00 [03:49:07]MH_I2C_Read... [03:49:07]Read from MH i2c: E2 17 00 FF 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 FD [03:49:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [03:49:07]wFMCommunicate OK [03:49:07]CreateOFDProtocolMessage done [03:49:07]OFDSenderStorePacket 1977 [03:49:07]StoreOFDPacket docnum=1977 [03:49:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 34 02 00 00 3F FF 2C 02 38 DA 5A 03 01 00 03 00 20 02 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 38 31 06 04 41 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 D0 91 D0 90 D0 97 D0 90 D0 9B D0 9A D0 9E D0 93 D0 9E D0 9B D0 AC D0 9D D0 9E D0 95 20 55 52 42 41 4E 20 33 31 32 20 30 2C FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 98 53 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 36 32 06 04 42 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 9A D0 BE D0 BB D0 B1 D0 B0 D1 81 D0 BA D0 B8 20 D1 81 20 D0 B3 D0 BE D1 80 D1 87 D0 B8 D1 86 D0 B5 D0 B9 20 35 35 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 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 8A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 48 8A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 B5 BF A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 B9 07 00 00 35 04 06 00 5F 9D 4D B7 F2 18 7A 30 84 AC AC BC CB 09 [03:49:07]CheckFolder [03:49:07]dirname=/storage/ofd_packets [03:49:07]CheckFolder done [03:49:07]ProducePacketName [03:49:07]name=ofd_packets/00001977 [03:49:07]NVStorageSaveData ofd_packets/00001977 [03:49:07]File name is /storage/ofd_packets/00001977 [03:49:07]Write 594 bytes [03:49:07]NVStorageSaveData done [03:49:07]OFDSenderStorePacket done [03:49:07]KKMCreateOFDPacket done [03:49:07]NVStorageSaveData kkm_last_timestamp [03:49:07]File name is /storage/kkm_last_timestamp [03:49:07]Write 4 bytes [03:49:07]NVStorageSaveData done [03:49:07]ExternCall_PrintAddStr [03:49:07]wPrintStart [03:49:07]Write to MH i2c: 01 00 00 00 35 35 [03:49:07]Write i2c OK [03:49:07]MH_I2C_Read... [03:49:07]Read from MH i2c: 01 [03:49:07]MH_I2C_Read... [03:49:07]Read from MH i2c: 01 07 00 [03:49:07]MH_I2C_Read... [03:49:07]Read from MH i2c: 01 07 00 00 35 00 00 00 00 00 FF 0F 4A [03:49:07]RasterBufferAndPrint [03:49:07]line Счет N : (3)126286 [03:49:07]line ИНН: 02508201610067 [03:49:07]line Контрольно-Кассовый Чек [03:49:07]line ПРОДАЖА [03:49:07]line Товар: 4700000480081 [03:49:07]line ПИВО СВЕТЛОЕ БАЗАЛКОГОЛЬНОЕ URBAN 312 0, [03:49:07]line 2.000 * 107.00 [03:49:07]line = 214.00 [03:49:07]line НДС 12% НСП 1% [03:49:07]line > о реализуемом товаре [03:49:07]line Товар: 4870235681062 [03:49:07]line Grizzly волнистые Колбаски с горчицей 55 [03:49:07]line 1.000 * 90.00 [03:49:07]line = 90.00 [03:49:07]line НДС 12% НСП 1% [03:49:07]line > о реализуемом товаре [03:49:07]line Товар: 4700000160358 [03:49:07]line Вода Легенда 1л [03:49:07]line 1.000 * 50.00 [03:49:07]line = 50.00 [03:49:07]line НДС 12% НСП 1% [03:49:07]line > о реализуемом товаре [03:49:07]line ИТОГО: 354.00 [03:49:07]line НСП 1% : 3.13 [03:49:07]line НДС 12% : 37.60 [03:49:07]line Наличными: 0.00 [03:49:07]line Безнал.: 354.00 [03:49:07]line Место: АЗС № 127 "Партнер Нефть" [03:49:07]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [03:49:07]line СНО: Общий режим [03:49:07]line Чек 28 28.07.2024 03:49 [03:49:07]line Смена: 13 ФФД: 1.0 [03:49:07]line ЗНМ: 0300000161 [03:49:07]line РНМ: 0000000000189667 [03:49:07]line Версия ККМ: v1.0 [03:49:07]line Платежная система: O! деньги [03:49:07]line ФМ: 0000000002094248 [03:49:07]line ФД: 1977 [03:49:07]line ФПД: 105129218404888 [03:49:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T034909&type=1&operation_type=1&fn_number=0000000002094248&fd_number=1977&fm=105129218404888&tin=02508201610067®Number=0000000000189667&sum=35400 [03:49:07]line 0 [03:49:07]OFD Sender: Processing packet 1977 [packets to send 1, broken 0] [03:49:07]ProducePacketName [03:49:07]name=ofd_packets/00001977 [03:49:07]OFD Sender: To server: pG, [03:49:07]CommunicateWithHost lk.salyk.kg:30040 [03:49:07]ConnectInit lk.salyk.kg [03:49:07]written 0, free lines is 4095 [03:49:07]Connected sock=10 [03:49:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 34 02 00 00 3F FF 2C 02 38 DA 5A 03 01 00 03 00 20 02 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 38 31 06 04 41 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 D0 91 D0 90 D0 97 D0 90 D0 9B D0 9A D0 9E D0 93 D0 9E D0 9B D0 AC D0 9D D0 9E D0 95 20 55 52 42 41 4E 20 33 31 32 20 30 2C FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 98 53 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 36 32 06 04 42 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 9A D0 BE D0 BB D0 B1 D0 B0 D1 81 D0 BA D0 B8 20 D1 81 20 D0 B3 D0 BE D1 80 D1 87 D0 B8 D1 86 D0 B5 D0 B9 20 35 35 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 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 8A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 48 8A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 B5 BF A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 B9 07 00 00 35 04 06 00 5F 9D 4D B7 F2 18 7A 30 84 AC AC BC CB 09 [03:49:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 37 4D 47 00 92 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 B9 07 00 00 F4 03 04 00 26 6B A5 66 B6 04 01 00 00 2F 6D FD A7 3E 64 C0 C8 [03:49:08]CommunicateWithHost err = 0 [03:49:08]CheckOFDResponse [03:49:08]1017 (14) - 77093643461234 [03:49:08]1041 (16) - 0000000002094248 [03:49:08]1040 (4) - 1977 [03:49:08]1012 (4) - 27.07.2024 21:48 [03:49:08]1206 (1) - 0 [03:49:08]OFD Sender: Remove packet 1977 [03:49:08]ProducePacketName [03:49:08]name=ofd_packets/00001977 [03:49:08]NVStorageDeleteData [03:49:08]Write to MH i2c: 01 00 00 38 35 6D [03:49:08]Write i2c OK [03:49:08]MH_I2C_Read... [03:49:08]Read from MH i2c: 01 [03:49:08]MH_I2C_Read... [03:49:08]Read from MH i2c: 01 07 00 [03:49:08]MH_I2C_Read... [03:49:08]Read from MH i2c: 01 07 00 38 35 00 00 00 00 00 3D 0C BD [03:49:08]RasterBufferAndPrint [03:49:08]line [03:49:08]line [03:49:08]line [03:49:08]line [03:49:08]line [03:49:08]written 0, free lines is 3145 [03:49:08]MH_Cut [03:49:08]Write to MH i2c: D1 01 00 3F 35 01 46 [03:49:08]Write i2c OK [03:49:08]MH_I2C_Read... [03:49:08]Read from MH i2c: D1 [03:49:08]MH_I2C_Read... [03:49:08]Read from MH i2c: D1 01 00 [03:49:08]MH_I2C_Read... [03:49:08]Read from MH i2c: D1 01 00 3F 35 00 45 [03:49:08]Write to MH i2c: 01 00 00 40 35 75 [03:49:08]Write i2c OK [03:49:08]MH_I2C_Read... [03:49:08]OFD Sender: No OFD packet to send [03:49:09]*** Cut start [03:49:09]*** Partial cut [03:49:09]*** CUTSNS_PIN = 1 [03:49:09]*** CUTSNS_PIN = 0 [03:49:09]*** Brake cut motor [03:49:09]Read from MH i2c: 01 [03:49:09]MH_I2C_Read... [03:49:09]*** Stop cut motor [03:49:09]*** Cut end [03:49:09]Read from MH i2c: 01 07 00 [03:49:09]MH_I2C_Read... [03:49:09]Read from MH i2c: 01 07 00 40 35 00 00 00 00 00 FF 0F 8A [03:49:09]process_action close_receipt done [03:49:09]requested_data is exist [03:49:09]produce_requested_data [03:49:09]requested_item fm.sn is exist - process it [03:49:09]wFMCommunicate request_size=4 [03:49:09]MH_SAM_APDU [03:49:09]CAPDU: 80 11 00 00 [03:49:09]Write to MH i2c: E2 08 00 41 35 80 11 00 00 00 00 00 00 F0 [03:49:09]Write i2c OK [03:49:09]MH_I2C_Read... [03:49:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:49:09]Read from MH i2c: E2 [03:49:09]MH_I2C_Read... [03:49:09]Read from MH i2c: E2 17 00 [03:49:09]MH_I2C_Read... [03:49:09]Read from MH i2c: E2 17 00 41 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 40 [03:49:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [03:49:09]wFMCommunicate OK [03:49:09]requested_item fd.num is exist - process it [03:49:09]SAM_PROTO_GetFieldsCounters [03:49:09]wFMCommunicate request_size=4 [03:49:09]MH_SAM_APDU [03:49:09]CAPDU: 80 13 00 00 [03:49:09]Write to MH i2c: E2 08 00 42 35 80 13 00 00 00 00 00 00 F3 [03:49:09]Write i2c OK [03:49:09]MH_I2C_Read... [03:49:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:49:10]Read from MH i2c: E2 [03:49:10]MH_I2C_Read... [03:49:10]Read from MH i2c: E2 62 00 [03:49:10]MH_I2C_Read... [03:49:10]Read from MH i2c: E2 62 00 42 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 B9 07 00 00 0E 04 04 00 0D 00 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 3E [03:49:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 B9 07 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:49:10]wFMCommunicate OK [03:49:10]SAM_PROTO_GetFieldsCounters done [03:49:10]requested_item shift.num is exist - process it [03:49:10]requested_item shift.opened is exist - process it [03:49:10]req_shift_opened [03:49:10]FM_GetShiftState [03:49:10]SAM_PROTO_GetShiftState [03:49:10]wFMCommunicate request_size=4 [03:49:10]MH_SAM_APDU [03:49:10]CAPDU: 80 13 01 00 [03:49:10]Write to MH i2c: E2 08 00 43 35 80 13 01 00 00 00 00 00 F5 [03:49:10]Write i2c OK [03:49:10]MH_I2C_Read... [03:49:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:49:10]Read from MH i2c: E2 [03:49:10]MH_I2C_Read... [03:49:10]Read from MH i2c: E2 0E 00 [03:49:10]MH_I2C_Read... [03:49:10]Read from MH i2c: E2 0E 00 43 35 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 E9 [03:49:10]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [03:49:10]wFMCommunicate OK [03:49:10]SAM_PROTO_GetShiftState done [03:49:10]FM_GetShiftState done [03:49:10]req_shift_opened done [03:49:10]requested_item shift.open_date is exist - process it [03:49:10]req_shift_open_date [03:49:10]req_shift_open_date done [03:49:10]produce_requested_data done [03:49:10]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":1977,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [03:49:10]process_action_free close_receipt [03:49:10]json_value_free [03:49:10]json_value_free done [03:49:10]process_json_proto returns [03:49:10]Send response to host [03:49:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":1977,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [03:49:10]free response buf [03:49:10]execute_script done [03:49:10]execute_script returns [03:49:10]free content buf [03:49:10]Sock 9.Close socket [03:49:10]Sock 9.Thread stoped [03:49:13]OFD Sender: No OFD packet to send [03:49:18]OFD Sender: No OFD packet to send [03:49:23]OFD Sender: No OFD packet to send [03:49:28]OFD Sender: No OFD packet to send [03:49:33]OFD Sender: No OFD packet to send [03:49:38]OFD Sender: No OFD packet to send [03:49:43]OFD Sender: No OFD packet to send [03:49:48]OFD Sender: No OFD packet to send [03:49:53]OFD Sender: No OFD packet to send [03:49:58]OFD Sender: No OFD packet to send [03:50:03]OFD Sender: No OFD packet to send [03:50:08]OFD Sender: No OFD packet to send [03:50:13]OFD Sender: No OFD packet to send [03:50:18]OFD Sender: No OFD packet to send [03:50:23]OFD Sender: No OFD packet to send [03:50:28]OFD Sender: No OFD packet to send [03:50:33]OFD Sender: No OFD packet to send [03:50:38]OFD Sender: No OFD packet to send [03:50:43]OFD Sender: No OFD packet to send [03:50:48]OFD Sender: No OFD packet to send [03:50:53]OFD Sender: No OFD packet to send [03:50:58]OFD Sender: No OFD packet to send [03:51:03]OFD Sender: No OFD packet to send [03:51:08]OFD Sender: No OFD packet to send [03:51:13]OFD Sender: No OFD packet to send [03:51:18]OFD Sender: No OFD packet to send [03:51:23]OFD Sender: No OFD packet to send [03:51:28]OFD Sender: No OFD packet to send [03:51:33]OFD Sender: No OFD packet to send [03:51:38]OFD Sender: No OFD packet to send [03:51:43]OFD Sender: No OFD packet to send [03:51:48]OFD Sender: No OFD packet to send [03:51:53]OFD Sender: No OFD packet to send [03:51:58]OFD Sender: No OFD packet to send [03:52:03]OFD Sender: No OFD packet to send [03:52:08]OFD Sender: No OFD packet to send [03:52:13]OFD Sender: No OFD packet to send [03:52:18]OFD Sender: No OFD packet to send [03:52:23]OFD Sender: No OFD packet to send [03:52:28]accept exits with 8 [03:52:28]New connection [03:52:28]New thread 3067317604 created [03:52:28]Thread 3067460964 joined [03:52:28]Waiting for new connection... [03:52:28] Sock 8.Parse request [03:52:28]Sock 8.Check first char [03:52:28]Sock 8.First char is OK [03:52:28]request: POST /json_proto HTTP/1.0 [03:52:28]Method: POST [03:52:28]URL: /json_proto [03:52:28]Method is POST - this is cgi request [03:52:28]url: /json_proto [03:52:28]query_string will be loaded in cgi processing [03:52:28]execute_cgi json_proto POST (null) [03:52:28]execute_cgi path=json_proto method=POST [03:52:28]POST find Content-Length [03:52:28]Host: 172.17.45.132:8080 [03:52:28]Content-Length: 872 [03:52:28]Content-Type: application/json [03:52:28] [03:52:28]POST finish read [03:52:28]Found Content-Length = 872 [03:52:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126287", "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 }]} ], "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" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:52:28]execute_script... [03:52: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)126287", "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 }]} ], "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" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:52:28]POST & json_proto [03:52:28]process_json_proto [03:52:28]json parsed OK: [03:52:28]protocol is kg_v1.0 [03:52:28]action value=close_receipt [03:52:28]process_action close_receipt [03:52:28]cmd_close_receipt [03:52:28]MH_GetDate [03:52:28]Write to MH i2c: F0 00 00 44 35 68 [03:52:28]Write i2c OK [03:52:28]MH_I2C_Read... [03:52:28]Read from MH i2c: F0 [03:52:28]MH_I2C_Read... [03:52:28]Read from MH i2c: F0 09 00 [03:52:28]MH_I2C_Read... [03:52:28]Read from MH i2c: F0 09 00 44 35 00 80 C0 A5 66 E3 0B 90 66 A0 [03:52:28]GetLastDocTimeStamp 1722138549 [03:52:28]current date 1722138752 [03:52:28]FM_GetShiftState [03:52:28]SAM_PROTO_GetShiftState [03:52:28]wFMCommunicate request_size=4 [03:52:28]MH_SAM_APDU [03:52:28]CAPDU: 80 13 01 00 [03:52:28]Write to MH i2c: E2 08 00 45 35 80 13 01 00 00 00 00 00 F7 [03:52:28]Write i2c OK [03:52:28]MH_I2C_Read... [03:52:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:52:28]Read from MH i2c: E2 [03:52:28]MH_I2C_Read... [03:52:28]Read from MH i2c: E2 0E 00 [03:52:28]MH_I2C_Read... [03:52:28]Read from MH i2c: E2 0E 00 45 35 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 EB [03:52:28]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [03:52:28]wFMCommunicate OK [03:52:28]SAM_PROTO_GetShiftState done [03:52:28]FM_GetShiftState done [03:52:28]opened in 1722125648 [03:52:28]opened+sec_in_day 1722212048 [03:52:28]quantity*price = 19000 [03:52:28]sum+1 = 19001 [03:52:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 190.00 НСП 1% : 1.68 НДС 12% : 20.18 Наличными: 0.00 Безнал.: 190.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 29 28.07.2024 03:52 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 1978 ФПД: 242110334525498 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T035232&type=1&operation_type=1&fn_number=0000000002094248&fd_number=1978&fm=242110334525498&tin=02508201610067®Number=0000000000189667&sum=19000 0 [03:52:29]StoreToDocumentArchive [03:52:29]shift 13 fd 1978 [03:52:29]save to /storage/0013/doc_00001978 [03:52:29]save last doc name /storage/0013/doc_00001978 to /storage/kkm_last_doc_name [03:52:29]save OK [03:52:29]Clear old archive folders... [03:52:29]ProcessDocumentItem done err = 0, tmpTLVsize=304 [03:52:29]tlvbuf is 01FA4E00 [03:52:29]SAM_PROTO_ClearQueue [03:52:29]wFMCommunicate request_size=4 [03:52:29]MH_SAM_APDU [03:52:29]CAPDU: 80 09 00 00 [03:52:29]Write to MH i2c: E2 08 00 52 35 80 09 00 00 00 00 00 00 F9 [03:52:29]Write i2c OK [03:52:29]MH_I2C_Read... [03:52:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:52:29]Read from MH i2c: E2 [03:52:29]MH_I2C_Read... [03:52:29]Read from MH i2c: E2 03 00 [03:52:29]MH_I2C_Read... [03:52:29]Read from MH i2c: E2 03 00 52 35 00 90 00 FB [03:52:29]RAPDU: 90 00 [03:52:29]wFMCommunicate OK [03:52:29]SAM_PROTO_ClearQueue done [03:52:29]KKMCreateOFDPacket [03:52:29]OFDProtocolAddRootSTLVToBuf [03:52:29]FM_MakeSignedData [03:52:29]FM_MakeSignedData [03:52:29]SAM_PROTO_SignData [03:52:29]wFMCommunicate request_size=4 [03:52:29]MH_SAM_APDU [03:52:29]CAPDU: 80 0D 01 02 [03:52:29]Write to MH i2c: E2 08 00 53 35 80 0D 01 02 00 00 00 00 01 [03:52:29]Write i2c OK [03:52:29]MH_I2C_Read... [03:52:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:52:29]Read from MH i2c: E2 [03:52:29]MH_I2C_Read... [03:52:29]Read from MH i2c: E2 03 00 [03:52:29]MH_I2C_Read... [03:52:29]Read from MH i2c: E2 03 00 53 35 00 90 00 FC [03:52:29]RAPDU: 90 00 [03:52:29]wFMCommunicate OK [03:52:29]wFMCommunicate request_size=255 [03:52:29]MH_SAM_APDU [03:52:29]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 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 4A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 80 C0 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 [03:52:29]Write to MH i2c: E2 02 01 54 35 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 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 4A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 80 C0 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 00 00 B4 [03:52:29]Write i2c OK [03:52:29]MH_I2C_Read... [03:52:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:52:30]Read from MH i2c: E2 [03:52:30]MH_I2C_Read... [03:52:30]Read from MH i2c: E2 03 00 [03:52:30]MH_I2C_Read... [03:52:30]Read from MH i2c: E2 03 00 54 35 00 90 00 FD [03:52:30]RAPDU: 90 00 [03:52:30]wFMCommunicate OK [03:52:30]wFMCommunicate request_size=63 [03:52:30]MH_SAM_APDU [03:52:30]CAPDU: 80 0D 02 02 3A 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 BA 07 00 00 35 04 06 00 DC 32 B4 7C 60 3A [03:52:30]Write to MH i2c: E2 42 00 55 35 80 0D 02 02 3A 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 BA 07 00 00 35 04 06 00 DC 32 B4 7C 60 3A 00 00 F0 [03:52:30]Write i2c OK [03:52:30]MH_I2C_Read... [03:52:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:52:30]Read from MH i2c: E2 [03:52:30]MH_I2C_Read... [03:52:30]Read from MH i2c: E2 03 00 [03:52:30]MH_I2C_Read... [03:52:30]Read from MH i2c: E2 03 00 55 35 00 90 00 FE [03:52:30]RAPDU: 90 00 [03:52:30]wFMCommunicate OK [03:52:30]wFMCommunicate request_size=4 [03:52:30]MH_SAM_APDU [03:52:30]CAPDU: 80 0D 03 02 [03:52:30]Write to MH i2c: E2 08 00 56 35 80 0D 03 02 00 00 00 00 06 [03:52:30]Write i2c OK [03:52:30]MH_I2C_Read... [03:52:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:52:30]Read from MH i2c: E2 [03:52:30]MH_I2C_Read... [03:52:30]Read from MH i2c: E2 0B 00 [03:52:30]MH_I2C_Read... [03:52:30]Read from MH i2c: E2 0B 00 56 35 00 C0 7E 2D 15 6B DC E0 BF 90 00 6D [03:52:30]RAPDU: C0 7E 2D 15 6B DC E0 BF 90 00 [03:52:30]wFMCommunicate OK [03:52:30]SAM_PROTO_SignData done [03:52:30]FM_MakeSignedData done [03:52:30]CreateOFDProtocolMessage [03:52:30]wFMCommunicate request_size=4 [03:52:30]MH_SAM_APDU [03:52:30]CAPDU: 80 11 00 00 [03:52:30]Write to MH i2c: E2 08 00 57 35 80 11 00 00 00 00 00 00 06 [03:52:30]Write i2c OK [03:52:30]MH_I2C_Read... [03:52:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:52:30]Read from MH i2c: E2 [03:52:30]MH_I2C_Read... [03:52:30]Read from MH i2c: E2 17 00 [03:52:30]MH_I2C_Read... [03:52:30]Read from MH i2c: E2 17 00 57 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 56 [03:52:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [03:52:30]wFMCommunicate OK [03:52:30]CreateOFDProtocolMessage done [03:52:30]OFDSenderStorePacket 1978 [03:52:30]StoreOFDPacket docnum=1978 [03:52:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 44 01 00 00 A3 A2 3C 01 76 6D 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 4A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 80 C0 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 BA 07 00 00 35 04 06 00 DC 32 B4 7C 60 3A C0 7E 2D 15 6B DC E0 BF [03:52:30]CheckFolder [03:52:30]dirname=/storage/ofd_packets [03:52:30]CheckFolder done [03:52:30]ProducePacketName [03:52:30]name=ofd_packets/00001978 [03:52:30]NVStorageSaveData ofd_packets/00001978 [03:52:30]File name is /storage/ofd_packets/00001978 [03:52:30]Write 354 bytes [03:52:30]NVStorageSaveData done [03:52:30]OFDSenderStorePacket done [03:52:30]KKMCreateOFDPacket done [03:52:30]NVStorageSaveData kkm_last_timestamp [03:52:30]File name is /storage/kkm_last_timestamp [03:52:30]Write 4 bytes [03:52:30]NVStorageSaveData done [03:52:30]ExternCall_PrintAddStr [03:52:30]wPrintStart [03:52:30]Write to MH i2c: 01 00 00 58 35 8D [03:52:30]Write i2c OK [03:52:30]MH_I2C_Read... [03:52:30]Read from MH i2c: 01 [03:52:30]MH_I2C_Read... [03:52:30]Read from MH i2c: 01 07 00 [03:52:30]MH_I2C_Read... [03:52:30]Read from MH i2c: 01 07 00 58 35 00 00 00 00 00 FF 0F A2 [03:52:30]RasterBufferAndPrint [03:52:30]line Счет N : (3)126287 [03:52:30]line ИНН: 02508201610067 [03:52:30]line Контрольно-Кассовый Чек [03:52:30]line ПРОДАЖА [03:52:30]line Товар: 4700000480302 [03:52:30]line Напиток энерг Nitro манго-клуб 0.45 ж/б [03:52:30]line 2.000 * 95.00 [03:52:30]line = 190.00 [03:52:30]line НДС 12% НСП 1% [03:52:30]line > о реализуемом товаре [03:52:30]line ИТОГО: 190.00 [03:52:30]line НСП 1% : 1.68 [03:52:30]line НДС 12% : 20.18 [03:52:30]line Наличными: 0.00 [03:52:30]line Безнал.: 190.00 [03:52:30]line Место: АЗС № 127 "Партнер Нефть" [03:52:30]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [03:52:30]line СНО: Общий режим [03:52:30]line Чек 29 28.07.2024 03:52 [03:52:30]line Смена: 13 ФФД: 1.0 [03:52:30]line ЗНМ: 0300000161 [03:52:30]line РНМ: 0000000000189667 [03:52:30]line Версия ККМ: v1.0 [03:52:30]line Платежная система: O! деньги [03:52:30]line ФМ: 0000000002094248 [03:52:30]line ФД: 1978 [03:52:30]line ФПД: 242110334525498 [03:52:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T035232&type=1&operation_type=1&fn_number=0000000002094248&fd_number=1978&fm=242110334525498&tin=02508201610067®Number=0000000000189667&sum=19000 [03:52:30]line 0 [03:52:30]OFD Sender: Processing packet 1978 [packets to send 1, broken 0] [03:52:30]ProducePacketName [03:52:30]name=ofd_packets/00001978 [03:52:30]OFD Sender: To server: pG, [03:52:30]CommunicateWithHost lk.salyk.kg:30040 [03:52:30]ConnectInit lk.salyk.kg [03:52:30]written 0, free lines is 4095 [03:52:30]Connected sock=10 [03:52:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 44 01 00 00 A3 A2 3C 01 76 6D 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 4A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 80 C0 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 BA 07 00 00 35 04 06 00 DC 32 B4 7C 60 3A C0 7E 2D 15 6B DC E0 BF [03:52:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 78 CB 47 00 58 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 BA 07 00 00 F4 03 04 00 F1 6B A5 66 B6 04 01 00 00 5D 9D 77 6A E7 D0 7B 78 [03:52:31]CommunicateWithHost err = 0 [03:52:31]CheckOFDResponse [03:52:31]1017 (14) - 77093643461234 [03:52:31]1041 (16) - 0000000002094248 [03:52:31]1040 (4) - 1978 [03:52:31]1012 (4) - 27.07.2024 21:51 [03:52:31]1206 (1) - 0 [03:52:31]OFD Sender: Remove packet 1978 [03:52:31]ProducePacketName [03:52:31]name=ofd_packets/00001978 [03:52:31]NVStorageDeleteData [03:52:31]Write to MH i2c: 01 00 00 83 35 B8 [03:52:31]Write i2c OK [03:52:31]MH_I2C_Read... [03:52:31]Read from MH i2c: 01 [03:52:31]MH_I2C_Read... [03:52:31]Read from MH i2c: 01 07 00 [03:52:31]MH_I2C_Read... [03:52:31]Read from MH i2c: 01 07 00 83 35 00 00 00 00 00 EF 0C BA [03:52:31]RasterBufferAndPrint [03:52:31]line [03:52:31]line [03:52:31]line [03:52:31]line [03:52:31]line [03:52:31]written 0, free lines is 3322 [03:52:31]MH_Cut [03:52:31]Write to MH i2c: D1 01 00 8A 35 01 91 [03:52:31]Write i2c OK [03:52:31]MH_I2C_Read... [03:52:31]Read from MH i2c: D1 [03:52:31]MH_I2C_Read... [03:52:31]Read from MH i2c: D1 01 00 [03:52:31]MH_I2C_Read... [03:52:31]Read from MH i2c: D1 01 00 8A 35 00 90 [03:52:31]Write to MH i2c: 01 00 00 8B 35 C0 [03:52:31]Write i2c OK [03:52:31]MH_I2C_Read... [03:52:31]OFD Sender: No OFD packet to send [03:52:31]*** Cut start [03:52:31]*** Partial cut [03:52:31]*** CUTSNS_PIN = 1 [03:52:31]*** CUTSNS_PIN = 0 [03:52:32]*** Brake cut motor [03:52:32]Read from MH i2c: 01 [03:52:32]MH_I2C_Read... [03:52:32]*** Stop cut motor [03:52:32]*** Cut end [03:52:32]Read from MH i2c: 01 07 00 [03:52:32]MH_I2C_Read... [03:52:32]Read from MH i2c: 01 07 00 8B 35 00 00 00 00 00 FF 0F D5 [03:52:32]process_action close_receipt done [03:52:32]requested_data is exist [03:52:32]produce_requested_data [03:52:32]requested_item fm.sn is exist - process it [03:52:32]wFMCommunicate request_size=4 [03:52:32]MH_SAM_APDU [03:52:32]CAPDU: 80 11 00 00 [03:52:32]Write to MH i2c: E2 08 00 8C 35 80 11 00 00 00 00 00 00 3B [03:52:32]Write i2c OK [03:52:32]MH_I2C_Read... [03:52:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:52:32]Read from MH i2c: E2 [03:52:32]MH_I2C_Read... [03:52:32]Read from MH i2c: E2 17 00 [03:52:32]MH_I2C_Read... [03:52:32]Read from MH i2c: E2 17 00 8C 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 8B [03:52:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [03:52:32]wFMCommunicate OK [03:52:32]requested_item fd.num is exist - process it [03:52:32]SAM_PROTO_GetFieldsCounters [03:52:32]wFMCommunicate request_size=4 [03:52:32]MH_SAM_APDU [03:52:32]CAPDU: 80 13 00 00 [03:52:32]Write to MH i2c: E2 08 00 8D 35 80 13 00 00 00 00 00 00 3E [03:52:32]Write i2c OK [03:52:32]MH_I2C_Read... [03:52:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:52:32]Read from MH i2c: E2 [03:52:32]MH_I2C_Read... [03:52:32]Read from MH i2c: E2 62 00 [03:52:32]MH_I2C_Read... [03:52:32]Read from MH i2c: E2 62 00 8D 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 BA 07 00 00 0E 04 04 00 0D 00 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 8D [03:52:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 BA 07 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:52:32]wFMCommunicate OK [03:52:32]SAM_PROTO_GetFieldsCounters done [03:52:32]requested_item shift.num is exist - process it [03:52:32]requested_item shift.opened is exist - process it [03:52:32]req_shift_opened [03:52:32]FM_GetShiftState [03:52:32]SAM_PROTO_GetShiftState [03:52:32]wFMCommunicate request_size=4 [03:52:32]MH_SAM_APDU [03:52:32]CAPDU: 80 13 01 00 [03:52:32]Write to MH i2c: E2 08 00 8E 35 80 13 01 00 00 00 00 00 40 [03:52:32]Write i2c OK [03:52:32]MH_I2C_Read... [03:52:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:52:32]Read from MH i2c: E2 [03:52:32]MH_I2C_Read... [03:52:32]Read from MH i2c: E2 0E 00 [03:52:32]MH_I2C_Read... [03:52:32]Read from MH i2c: E2 0E 00 8E 35 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 34 [03:52:32]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [03:52:32]wFMCommunicate OK [03:52:32]SAM_PROTO_GetShiftState done [03:52:32]FM_GetShiftState done [03:52:32]req_shift_opened done [03:52:32]requested_item shift.open_date is exist - process it [03:52:32]req_shift_open_date [03:52:32]req_shift_open_date done [03:52:32]produce_requested_data done [03:52:32]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":1978,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [03:52:32]process_action_free close_receipt [03:52:32]json_value_free [03:52:32]json_value_free done [03:52:32]process_json_proto returns [03:52:32]Send response to host [03:52:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":1978,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [03:52:32]free response buf [03:52:32]execute_script done [03:52:32]execute_script returns [03:52:32]free content buf [03:52:32]Sock 8.Close socket [03:52:32]Sock 8.Thread stoped [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:42]OFD Sender: No OFD packet to send [04:02:47]OFD Sender: No OFD packet to send [04:02:52]OFD Sender: No OFD packet to send [04:02:57]OFD Sender: No OFD packet to send [04:03:02]OFD Sender: No OFD packet to send [04:03:07]OFD Sender: No OFD packet to send [04:03:12]OFD Sender: No OFD packet to send [04:03:17]OFD Sender: No OFD packet to send [04:03:22]OFD Sender: No OFD packet to send [04:03:27]OFD Sender: No OFD packet to send [04:03:32]OFD Sender: No OFD packet to send [04:03:37]OFD Sender: No OFD packet to send [04:03:42]OFD Sender: No OFD packet to send [04:03:47]OFD Sender: No OFD packet to send [04:03:52]OFD Sender: No OFD packet to send [04:03:57]OFD Sender: No OFD packet to send [04:04:02]OFD Sender: No OFD packet to send [04:04:07]OFD Sender: No OFD packet to send [04:04:12]OFD Sender: No OFD packet to send [04:04:17]OFD Sender: No OFD packet to send [04:04:22]OFD Sender: No OFD packet to send [04:04:27]OFD Sender: No OFD packet to send [04:04: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:42]OFD Sender: No OFD packet to send [04:09:47]OFD Sender: No OFD packet to send [04:09:52]OFD Sender: No OFD packet to send [04:09:57]OFD Sender: No OFD packet to send [04:10:02]OFD Sender: No OFD packet to send [04:10:07]OFD Sender: No OFD packet to send [04:10:12]OFD Sender: No OFD packet to send [04:10:17]OFD Sender: No OFD packet to send [04:10:22]OFD Sender: No OFD packet to send [04:10:27]OFD Sender: No OFD packet to send [04:10:32]OFD Sender: No OFD packet to send [04:10:37]OFD Sender: No OFD packet to send [04:10:42]OFD Sender: No OFD packet to send [04:10:47]OFD Sender: No OFD packet to send [04:10:52]OFD Sender: No OFD packet to send [04:10:57]OFD Sender: No OFD packet to send [04:11:02]OFD Sender: No OFD packet to send [04:11:07]OFD Sender: No OFD packet to send [04:11:12]OFD Sender: No OFD packet to send [04:11:17]OFD Sender: No OFD packet to send [04:11:22]OFD Sender: No OFD packet to send [04:11:27]OFD Sender: No OFD packet to send [04:11:32]OFD Sender: No OFD packet to send [04:11:37]OFD Sender: No OFD packet to send [04:11:42]OFD Sender: No OFD packet to send [04:11:47]OFD Sender: No OFD packet to send [04:11:52]OFD Sender: No OFD packet to send [04:11:57]OFD Sender: No OFD packet to send [04:12:02]OFD Sender: No OFD packet to send [04:12:07]OFD Sender: No OFD packet to send [04:12:12]OFD Sender: No OFD packet to send [04:12:17]OFD Sender: No OFD packet to send [04:12:22]OFD Sender: No OFD packet to send [04:12:27]OFD Sender: No OFD packet to send [04:12:32]OFD Sender: No OFD packet to send [04:12:37]OFD Sender: No OFD packet to send [04:12:42]OFD Sender: No OFD packet to send [04:12:47]OFD Sender: No OFD packet to send [04:12:52]OFD Sender: No OFD packet to send [04:12:57]OFD Sender: No OFD packet to send [04:13:02]OFD Sender: No OFD packet to send [04:13:07]OFD Sender: No OFD packet to send [04:13:12]OFD Sender: No OFD packet to send [04:13:17]OFD Sender: No OFD packet to send [04:13:22]OFD Sender: No OFD packet to send [04:13:27]OFD Sender: No OFD packet to send [04:13:32]OFD Sender: No OFD packet to send [04:13:37]OFD Sender: No OFD packet to send [04:13:42]OFD Sender: No OFD packet to send [04:13:47]OFD Sender: No OFD packet to send [04:13:52]OFD Sender: No OFD packet to send [04:13:57]OFD Sender: No OFD packet to send [04:14:02]OFD Sender: No OFD packet to send [04:14:07]OFD Sender: No OFD packet to send [04:14:12]OFD Sender: No OFD packet to send [04:14:17]OFD Sender: No OFD packet to send [04:14:22]OFD Sender: No OFD packet to send [04:14:27]OFD Sender: No OFD packet to send [04:14:32]OFD Sender: No OFD packet to send [04:14:37]OFD Sender: No OFD packet to send [04:14:42]OFD Sender: No OFD packet to send [04:14:47]OFD Sender: No OFD packet to send [04:14:52]OFD Sender: No OFD packet to send [04:14:57]OFD Sender: No OFD packet to send [04:15:02]OFD Sender: No OFD packet to send [04:15:07]OFD Sender: No OFD packet to send [04:15:12]OFD Sender: No OFD packet to send [04:15:17]OFD Sender: No OFD packet to send [04:15:22]OFD Sender: No OFD packet to send [04:15:27]OFD Sender: No OFD packet to send [04:15:32]OFD Sender: No OFD packet to send [04:15:37]OFD Sender: No OFD packet to send [04:15:42]OFD Sender: No OFD packet to send [04:15:47]OFD Sender: No OFD packet to send [04:15:52]OFD Sender: No OFD packet to send [04:15:57]OFD Sender: No OFD packet to send [04:16:02]OFD Sender: No OFD packet to send [04:16:07]OFD Sender: No OFD packet to send [04:16:12]OFD Sender: No OFD packet to send [04:16:17]OFD Sender: No OFD packet to send [04:16:22]OFD Sender: No OFD packet to send [04:16:27]OFD Sender: No OFD packet to send [04:16:32]OFD Sender: No OFD packet to send [04:16:37]OFD Sender: No OFD packet to send [04:16:42]OFD Sender: No OFD packet to send [04:16:47]OFD Sender: No OFD packet to send [04:16:52]OFD Sender: No OFD packet to send [04:16:57]OFD Sender: No OFD packet to send [04:17:02]OFD Sender: No OFD packet to send [04:17:07]OFD Sender: No OFD packet to send [04:17:12]OFD Sender: No OFD packet to send [04:17:17]OFD Sender: No OFD packet to send [04:17:22]OFD Sender: No OFD packet to send [04:17:27]OFD Sender: No OFD packet to send [04:17:32]OFD Sender: No OFD packet to send [04:17:37]OFD Sender: No OFD packet to send [04:17:42]OFD Sender: No OFD packet to send [04:17:47]OFD Sender: No OFD packet to send [04:17:52]OFD Sender: No OFD packet to send [04:17:57]OFD Sender: No OFD packet to send [04:18:02]OFD Sender: No OFD packet to send [04:18:07]OFD Sender: No OFD packet to send [04:18:12]OFD Sender: No OFD packet to send [04:18:17]OFD Sender: No OFD packet to send [04:18:22]OFD Sender: No OFD packet to send [04:18:27]OFD Sender: No OFD packet to send [04:18:32]OFD Sender: No OFD packet to send [04:18:37]OFD Sender: No OFD packet to send [04:18:42]OFD Sender: No OFD packet to send [04:18:47]OFD Sender: No OFD packet to send [04:18:52]OFD Sender: No OFD packet to send [04:18:57]OFD Sender: No OFD packet to send [04:19:02]OFD Sender: No OFD packet to send [04:19:07]OFD Sender: No OFD packet to send [04:19:12]OFD Sender: No OFD packet to send [04:19:17]OFD Sender: No OFD packet to send [04:19:22]OFD Sender: No OFD packet to send [04:19:27]OFD Sender: No OFD packet to send [04:19:32]OFD Sender: No OFD packet to send [04:19:37]OFD Sender: No OFD packet to send [04:19:42]OFD Sender: No OFD packet to send [04:19:47]OFD Sender: No OFD packet to send [04:19:52]OFD Sender: No OFD packet to send [04:19:57]OFD Sender: No OFD packet to send [04:20:02]OFD Sender: No OFD packet to send [04:20:07]OFD Sender: No OFD packet to send [04:20:12]OFD Sender: No OFD packet to send [04:20:17]OFD Sender: No OFD packet to send [04:20:22]OFD Sender: No OFD packet to send [04:20:27]OFD Sender: No OFD packet to send [04:20:32]OFD Sender: No OFD packet to send [04:20:37]OFD Sender: No OFD packet to send [04:20:42]OFD Sender: No OFD packet to send [04:20:47]OFD Sender: No OFD packet to send [04:20:52]OFD Sender: No OFD packet to send [04:20:57]OFD Sender: No OFD packet to send [04:21:02]OFD Sender: No OFD packet to send [04:21:07]OFD Sender: No OFD packet to send [04:21:12]OFD Sender: No OFD packet to send [04:21:17]OFD Sender: No OFD packet to send [04:21:22]OFD Sender: No OFD packet to send [04:21:27]OFD Sender: No OFD packet to send [04:21:32]OFD Sender: No OFD packet to send [04:21:37]OFD Sender: No OFD packet to send [04:21:42]OFD Sender: No OFD packet to send [04:21:47]OFD Sender: No OFD packet to send [04:21:52]OFD Sender: No OFD packet to send [04:21:57]OFD Sender: No OFD packet to send [04:22:02]OFD Sender: No OFD packet to send [04:22:07]OFD Sender: No OFD packet to send [04:22:12]OFD Sender: No OFD packet to send [04:22:17]OFD Sender: No OFD packet to send [04:22:22]OFD Sender: No OFD packet to send [04:22:27]OFD Sender: No OFD packet to send [04:22:32]OFD Sender: No OFD packet to send [04:22:37]OFD Sender: No OFD packet to send [04:22:42]OFD Sender: No OFD packet to send [04:22:47]OFD Sender: No OFD packet to send [04:22:52]OFD Sender: No OFD packet to send [04:22:57]OFD Sender: No OFD packet to send [04:23:02]OFD Sender: No OFD packet to send [04:23:03]accept exits with 9 [04:23:03]New connection [04:23:03]New thread 3067460964 created [04:23:03]Thread 3067317604 joined [04:23:03]Waiting for new connection... [04:23:03] Sock 9.Parse request [04:23:03]Sock 9.Check first char [04:23:03]Sock 9.First char is OK [04:23:03]request: POST /json_proto HTTP/1.0 [04:23:03]Method: POST [04:23:03]URL: /json_proto [04:23:03]Method is POST - this is cgi request [04:23:03]url: /json_proto [04:23:03]query_string will be loaded in cgi processing [04:23:03]execute_cgi json_proto POST (null) [04:23:03]execute_cgi path=json_proto method=POST [04:23:03]POST find Content-Length [04:23:03]Host: 172.17.45.132:8080 [04:23:03]Content-Length: 670 [04:23:03]Content-Type: application/json [04:23:03] [04:23:03]POST finish read [04:23:03]Found Content-Length = 670 [04:23:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126288", "tax_sys" : 0, "items" : [ { "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:23:03]execute_script... [04:23: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)126288", "tax_sys" : 0, "items" : [ { "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:23:03]POST & json_proto [04:23:03]process_json_proto [04:23:03]json parsed OK: [04:23:03]protocol is kg_v1.0 [04:23:03]action value=close_receipt [04:23:03]process_action close_receipt [04:23:03]cmd_close_receipt [04:23:03]MH_GetDate [04:23:03]Write to MH i2c: F0 00 00 8F 35 B3 [04:23:03]Write i2c OK [04:23:03]MH_I2C_Read... [04:23:03]Read from MH i2c: F0 [04:23:03]MH_I2C_Read... [04:23:03]Read from MH i2c: F0 09 00 [04:23:03]MH_I2C_Read... [04:23:03]Read from MH i2c: F0 09 00 8F 35 00 AB C7 A5 66 E3 0B 90 66 1D [04:23:03]GetLastDocTimeStamp 1722138752 [04:23:03]current date 1722140587 [04:23:03]FM_GetShiftState [04:23:03]SAM_PROTO_GetShiftState [04:23:03]wFMCommunicate request_size=4 [04:23:03]MH_SAM_APDU [04:23:03]CAPDU: 80 13 01 00 [04:23:03]Write to MH i2c: E2 08 00 90 35 80 13 01 00 00 00 00 00 42 [04:23:03]Write i2c OK [04:23:03]MH_I2C_Read... [04:23:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:23:03]Read from MH i2c: E2 [04:23:03]MH_I2C_Read... [04:23:03]Read from MH i2c: E2 0E 00 [04:23:03]MH_I2C_Read... [04:23:03]Read from MH i2c: E2 0E 00 90 35 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 36 [04:23:03]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [04:23:03]wFMCommunicate OK [04:23:03]SAM_PROTO_GetShiftState done [04:23:03]FM_GetShiftState done [04:23:03]opened in 1722125648 [04:23:03]opened+sec_in_day 1722212048 [04:23:03]quantity*price = 17000 [04:23:03]sum+1 = 17001 [04:23:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 170.00 НСП 1% : 1.50 НДС 12% : 18.05 Наличными: 170.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 30 28.07.2024 04:23 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 1979 ФПД: 25684869954361 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T042307&type=1&operation_type=1&fn_number=0000000002094248&fd_number=1979&fm=25684869954361&tin=02508201610067®Number=0000000000189667&sum=17000 0 [04:23:04]StoreToDocumentArchive [04:23:04]shift 13 fd 1979 [04:23:04]save to /storage/0013/doc_00001979 [04:23:04]save last doc name /storage/0013/doc_00001979 to /storage/kkm_last_doc_name [04:23:04]save OK [04:23:04]Clear old archive folders... [04:23:04]ProcessDocumentItem done err = 0, tmpTLVsize=282 [04:23:04]tlvbuf is 01FD7490 [04:23:04]SAM_PROTO_ClearQueue [04:23:04]wFMCommunicate request_size=4 [04:23:04]MH_SAM_APDU [04:23:04]CAPDU: 80 09 00 00 [04:23:04]Write to MH i2c: E2 08 00 9D 35 80 09 00 00 00 00 00 00 44 [04:23:04]Write i2c OK [04:23:04]MH_I2C_Read... [04:23:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:23:04]Read from MH i2c: E2 [04:23:04]MH_I2C_Read... [04:23:04]Read from MH i2c: E2 03 00 [04:23:04]MH_I2C_Read... [04:23:04]Read from MH i2c: E2 03 00 9D 35 00 90 00 46 [04:23:04]RAPDU: 90 00 [04:23:04]wFMCommunicate OK [04:23:04]SAM_PROTO_ClearQueue done [04:23:04]KKMCreateOFDPacket [04:23:04]OFDProtocolAddRootSTLVToBuf [04:23:04]FM_MakeSignedData [04:23:04]FM_MakeSignedData [04:23:04]SAM_PROTO_SignData [04:23:04]wFMCommunicate request_size=4 [04:23:04]MH_SAM_APDU [04:23:04]CAPDU: 80 0D 01 02 [04:23:04]Write to MH i2c: E2 08 00 9E 35 80 0D 01 02 00 00 00 00 4C [04:23:04]Write i2c OK [04:23:04]MH_I2C_Read... [04:23:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:23:04]Read from MH i2c: E2 [04:23:04]MH_I2C_Read... [04:23:04]Read from MH i2c: E2 03 00 [04:23:04]MH_I2C_Read... [04:23:04]Read from MH i2c: E2 03 00 9E 35 00 90 00 47 [04:23:04]RAPDU: 90 00 [04:23:04]wFMCommunicate OK [04:23:04]wFMCommunicate request_size=255 [04:23:04]MH_SAM_APDU [04:23:04]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 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 AB C7 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 [04:23:04]Write to MH i2c: E2 02 01 9F 35 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 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 AB C7 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 00 00 0E [04:23:04]Write i2c OK [04:23:04]MH_I2C_Read... [04:23:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:23:05]Read from MH i2c: E2 [04:23:05]MH_I2C_Read... [04:23:05]Read from MH i2c: E2 03 00 [04:23:05]MH_I2C_Read... [04:23:05]Read from MH i2c: E2 03 00 9F 35 00 90 00 48 [04:23:05]RAPDU: 90 00 [04:23:05]wFMCommunicate OK [04:23:05]wFMCommunicate request_size=41 [04:23:05]MH_SAM_APDU [04:23:05]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 BB 07 00 00 35 04 06 00 17 5C 39 8C BB 39 [04:23:05]Write to MH i2c: E2 2C 00 A0 35 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 BB 07 00 00 35 04 06 00 17 5C 39 8C BB 39 00 00 09 [04:23:05]Write i2c OK [04:23:05]MH_I2C_Read... [04:23:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:23:05]Read from MH i2c: E2 [04:23:05]MH_I2C_Read... [04:23:05]Read from MH i2c: E2 03 00 [04:23:05]MH_I2C_Read... [04:23:05]Read from MH i2c: E2 03 00 A0 35 00 90 00 49 [04:23:05]RAPDU: 90 00 [04:23:05]wFMCommunicate OK [04:23:05]wFMCommunicate request_size=4 [04:23:05]MH_SAM_APDU [04:23:05]CAPDU: 80 0D 03 02 [04:23:05]Write to MH i2c: E2 08 00 A1 35 80 0D 03 02 00 00 00 00 51 [04:23:05]Write i2c OK [04:23:05]MH_I2C_Read... [04:23:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:23:05]Read from MH i2c: E2 [04:23:05]MH_I2C_Read... [04:23:05]Read from MH i2c: E2 0B 00 [04:23:05]MH_I2C_Read... [04:23:05]Read from MH i2c: E2 0B 00 A1 35 00 30 D7 56 4D 93 2A D4 CB 90 00 58 [04:23:05]RAPDU: 30 D7 56 4D 93 2A D4 CB 90 00 [04:23:05]wFMCommunicate OK [04:23:05]SAM_PROTO_SignData done [04:23:05]FM_MakeSignedData done [04:23:05]CreateOFDProtocolMessage [04:23:05]wFMCommunicate request_size=4 [04:23:05]MH_SAM_APDU [04:23:05]CAPDU: 80 11 00 00 [04:23:05]Write to MH i2c: E2 08 00 A2 35 80 11 00 00 00 00 00 00 51 [04:23:05]Write i2c OK [04:23:05]MH_I2C_Read... [04:23:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:23:05]Read from MH i2c: E2 [04:23:05]MH_I2C_Read... [04:23:05]Read from MH i2c: E2 17 00 [04:23:05]MH_I2C_Read... [04:23:05]Read from MH i2c: E2 17 00 A2 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 A1 [04:23:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [04:23:05]wFMCommunicate OK [04:23:05]CreateOFDProtocolMessage done [04:23:05]OFDSenderStorePacket 1979 [04:23:05]StoreOFDPacket docnum=1979 [04:23:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2E 01 00 00 39 F8 26 01 26 31 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 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 AB C7 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 BB 07 00 00 35 04 06 00 17 5C 39 8C BB 39 30 D7 56 4D 93 2A D4 CB [04:23:05]CheckFolder [04:23:05]dirname=/storage/ofd_packets [04:23:05]CheckFolder done [04:23:05]ProducePacketName [04:23:05]name=ofd_packets/00001979 [04:23:05]NVStorageSaveData ofd_packets/00001979 [04:23:05]File name is /storage/ofd_packets/00001979 [04:23:05]Write 332 bytes [04:23:05]NVStorageSaveData done [04:23:05]OFDSenderStorePacket done [04:23:05]KKMCreateOFDPacket done [04:23:05]NVStorageSaveData kkm_last_timestamp [04:23:05]File name is /storage/kkm_last_timestamp [04:23:05]Write 4 bytes [04:23:05]NVStorageSaveData done [04:23:05]ExternCall_PrintAddStr [04:23:05]wPrintStart [04:23:05]Write to MH i2c: 01 00 00 A3 35 D8 [04:23:05]Write i2c OK [04:23:05]MH_I2C_Read... [04:23:05]Read from MH i2c: 01 [04:23:05]MH_I2C_Read... [04:23:05]Read from MH i2c: 01 07 00 [04:23:05]MH_I2C_Read... [04:23:05]Read from MH i2c: 01 07 00 A3 35 00 00 00 00 00 FF 0F ED [04:23:05]RasterBufferAndPrint [04:23:05]line Счет N : (3)126288 [04:23:05]line ИНН: 02508201610067 [04:23:05]line Контрольно-Кассовый Чек [04:23:05]line ПРОДАЖА [04:23:05]line Товар: 4700000480357 [04:23:05]line Пиво шахтерское 1л ПЭТ [04:23:05]line 1.000 * 170.00 [04:23:05]line = 170.00 [04:23:05]line НДС 12% НСП 1% [04:23:05]line > о реализуемом товаре [04:23:05]line ИТОГО: 170.00 [04:23:05]line НСП 1% : 1.50 [04:23:05]line НДС 12% : 18.05 [04:23:05]line Наличными: 170.00 [04:23:05]line Безнал.: 0.00 [04:23:05]line Место: АЗС № 127 "Партнер Нефть" [04:23:05]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [04:23:05]line СНО: Общий режим [04:23:05]line Чек 30 28.07.2024 04:23 [04:23:05]line Смена: 13 ФФД: 1.0 [04:23:05]line ЗНМ: 0300000161 [04:23:05]line РНМ: 0000000000189667 [04:23:05]line Версия ККМ: v1.0 [04:23:05]line ФМ: 0000000002094248 [04:23:05]line ФД: 1979 [04:23:05]line ФПД: 25684869954361 [04:23:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T042307&type=1&operation_type=1&fn_number=0000000002094248&fd_number=1979&fm=25684869954361&tin=02508201610067®Number=0000000000189667&sum=17000 [04:23:05]line 0 [04:23:05]written 0, free lines is 4095 [04:23:05]OFD Sender: Processing packet 1979 [packets to send 1, broken 0] [04:23:05]ProducePacketName [04:23:05]name=ofd_packets/00001979 [04:23:05]OFD Sender: To server: pG, [04:23:05]CommunicateWithHost lk.salyk.kg:30040 [04:23:05]ConnectInit lk.salyk.kg [04:23:05]Connected sock=11 [04:23:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2E 01 00 00 39 F8 26 01 26 31 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 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 AB C7 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 BB 07 00 00 35 04 06 00 17 5C 39 8C BB 39 30 D7 56 4D 93 2A D4 CB [04:23:05]Write to MH i2c: 01 00 00 CB 35 00 [04:23:05]Write i2c OK [04:23:05]MH_I2C_Read... [04:23:05]Read from MH i2c: 01 [04:23:05]MH_I2C_Read... [04:23:05]Read from MH i2c: 01 07 00 [04:23:05]MH_I2C_Read... [04:23:05]Read from MH i2c: 01 07 00 CB 35 00 00 00 00 00 20 0D 34 [04:23:05]RasterBufferAndPrint [04:23:05]line [04:23:05]line [04:23:05]line [04:23:05]line [04:23:05]line [04:23:05]written 0, free lines is 3366 [04:23:05]MH_Cut [04:23:05]Write to MH i2c: D1 01 00 D2 35 01 D9 [04:23:05]Write i2c OK [04:23:05]MH_I2C_Read... [04:23:05]Read from MH i2c: D1 [04:23:05]MH_I2C_Read... [04:23:05]Read from MH i2c: D1 01 00 [04:23:05]MH_I2C_Read... [04:23:05]Read from MH i2c: D1 01 00 D2 35 00 D8 [04:23:05]Write to MH i2c: 01 00 00 D3 35 08 [04:23:05]Write i2c OK [04:23:05]MH_I2C_Read... [04:23:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 C5 BC 47 00 DC 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 BB 07 00 00 F4 03 04 00 1B 73 A5 66 B6 04 01 00 00 C2 D2 EB C6 E9 A6 36 20 [04:23:05]CommunicateWithHost err = 0 [04:23:05]CheckOFDResponse [04:23:05]1017 (14) - 77093643461234 [04:23:05]1041 (16) - 0000000002094248 [04:23:05]1040 (4) - 1979 [04:23:05]1012 (4) - 27.07.2024 22:22 [04:23:05]1206 (1) - 0 [04:23:05]OFD Sender: Remove packet 1979 [04:23:05]ProducePacketName [04:23:05]name=ofd_packets/00001979 [04:23:05]NVStorageDeleteData [04:23:06]OFD Sender: No OFD packet to send [04:23:06]*** Cut start [04:23:06]*** Partial cut [04:23:06]*** CUTSNS_PIN = 1 [04:23:06]*** CUTSNS_PIN = 0 [04:23:06]*** Brake cut motor [04:23:07]Read from MH i2c: 01 [04:23:07]MH_I2C_Read... [04:23:07]*** Stop cut motor [04:23:07]*** Cut end [04:23:07]Read from MH i2c: 01 07 00 [04:23:07]MH_I2C_Read... [04:23:07]Read from MH i2c: 01 07 00 D3 35 00 00 00 00 00 FF 0F 1D [04:23:07]process_action close_receipt done [04:23:07]requested_data is exist [04:23:07]produce_requested_data [04:23:07]requested_item fm.sn is exist - process it [04:23:07]wFMCommunicate request_size=4 [04:23:07]MH_SAM_APDU [04:23:07]CAPDU: 80 11 00 00 [04:23:07]Write to MH i2c: E2 08 00 D4 35 80 11 00 00 00 00 00 00 83 [04:23:07]Write i2c OK [04:23:07]MH_I2C_Read... [04:23:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:23:07]Read from MH i2c: E2 [04:23:07]MH_I2C_Read... [04:23:07]Read from MH i2c: E2 17 00 [04:23:07]MH_I2C_Read... [04:23:07]Read from MH i2c: E2 17 00 D4 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 D3 [04:23:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [04:23:07]wFMCommunicate OK [04:23:07]requested_item fd.num is exist - process it [04:23:07]SAM_PROTO_GetFieldsCounters [04:23:07]wFMCommunicate request_size=4 [04:23:07]MH_SAM_APDU [04:23:07]CAPDU: 80 13 00 00 [04:23:07]Write to MH i2c: E2 08 00 D5 35 80 13 00 00 00 00 00 00 86 [04:23:07]Write i2c OK [04:23:07]MH_I2C_Read... [04:23:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:23:07]Read from MH i2c: E2 [04:23:07]MH_I2C_Read... [04:23:07]Read from MH i2c: E2 62 00 [04:23:07]MH_I2C_Read... [04:23:07]Read from MH i2c: E2 62 00 D5 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 BB 07 00 00 0E 04 04 00 0D 00 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 D9 [04:23:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 BB 07 00 00 0E 04 04 00 0D 00 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 [04:23:07]wFMCommunicate OK [04:23:07]SAM_PROTO_GetFieldsCounters done [04:23:07]requested_item shift.num is exist - process it [04:23:07]requested_item shift.opened is exist - process it [04:23:07]req_shift_opened [04:23:07]FM_GetShiftState [04:23:07]SAM_PROTO_GetShiftState [04:23:07]wFMCommunicate request_size=4 [04:23:07]MH_SAM_APDU [04:23:07]CAPDU: 80 13 01 00 [04:23:07]Write to MH i2c: E2 08 00 D6 35 80 13 01 00 00 00 00 00 88 [04:23:07]Write i2c OK [04:23:07]MH_I2C_Read... [04:23:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:23:07]Read from MH i2c: E2 [04:23:07]MH_I2C_Read... [04:23:07]Read from MH i2c: E2 0E 00 [04:23:07]MH_I2C_Read... [04:23:07]Read from MH i2c: E2 0E 00 D6 35 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 7C [04:23:07]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [04:23:07]wFMCommunicate OK [04:23:07]SAM_PROTO_GetShiftState done [04:23:07]FM_GetShiftState done [04:23:07]req_shift_opened done [04:23:07]requested_item shift.open_date is exist - process it [04:23:07]req_shift_open_date [04:23:07]req_shift_open_date done [04:23:07]produce_requested_data done [04:23:07]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":1979,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [04:23:07]process_action_free close_receipt [04:23:07]json_value_free [04:23:07]json_value_free done [04:23:07]process_json_proto returns [04:23:07]Send response to host [04:23:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":1979,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [04:23:07]free response buf [04:23:07]execute_script done [04:23:07]execute_script returns [04:23:07]free content buf [04:23:07]Sock 9.Close socket [04:23:07]Sock 9.Thread stoped [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:46]OFD Sender: No OFD packet to send [04:23:51]OFD Sender: No OFD packet to send [04:23:56]OFD Sender: No OFD packet to send [04:24:01]OFD Sender: No OFD packet to send [04:24:06]OFD Sender: No OFD packet to send [04:24:11]OFD Sender: No OFD packet to send [04:24:16]OFD Sender: No OFD packet to send [04:24:21]OFD Sender: No OFD packet to send [04:24:26]OFD Sender: No OFD packet to send [04:24:31]OFD Sender: No OFD packet to send [04:24:36]OFD Sender: No OFD packet to send [04:24:41]OFD Sender: No OFD packet to send [04:24:46]OFD Sender: No OFD packet to send [04:24:51]OFD Sender: No OFD packet to send [04:24:56]OFD Sender: No OFD packet to send [04:25:01]OFD Sender: No OFD packet to send [04:25:06]OFD Sender: No OFD packet to send [04:25:11]OFD Sender: No OFD packet to send [04:25:16]OFD Sender: No OFD packet to send [04:25:21]OFD Sender: No OFD packet to send [04:25:26]OFD Sender: No OFD packet to send [04:25:31]OFD Sender: No OFD packet to send [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:31]OFD Sender: No OFD packet to send [04:28:33]accept exits with 8 [04:28:33]New connection [04:28:33]New thread 3067317604 created [04:28:33]Thread 3067460964 joined [04:28:33]Waiting for new connection... [04:28:33] Sock 8.Parse request [04:28:33]Sock 8.Check first char [04:28:33]Sock 8.First char is OK [04:28:33]request: POST /json_proto HTTP/1.0 [04:28:33]Method: POST [04:28:33]URL: /json_proto [04:28:33]Method is POST - this is cgi request [04:28:33]url: /json_proto [04:28:33]query_string will be loaded in cgi processing [04:28:33]execute_cgi json_proto POST (null) [04:28:33]execute_cgi path=json_proto method=POST [04:28:33]POST find Content-Length [04:28:33]Host: 172.17.45.132:8080 [04:28:33]Content-Length: 1478 [04:28:33]Content-Type: application/json [04:28:33] [04:28:33]POST finish read [04:28:33]Found Content-Length = 1478 [04:28:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126289", "tax_sys" : 0, "items" : [ { "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 170.00, "quantity" : 2.000, "sum" : 340.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 }]} ,{ "code": "4700003010476", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u044F\u0431\u043B\u043E\u043A\u043E \u041F\u042D\u0422 1\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 480.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:28:33]execute_script... [04:28:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126289", "tax_sys" : 0, "items" : [ { "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 170.00, "quantity" : 2.000, "sum" : 340.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 }]} ,{ "code": "4700003010476", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u044F\u0431\u043B\u043E\u043A\u043E \u041F\u042D\u0422 1\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 480.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:28:33]POST & json_proto [04:28:33]process_json_proto [04:28:33]json parsed OK: [04:28:33]protocol is kg_v1.0 [04:28:33]action value=close_receipt [04:28:33]process_action close_receipt [04:28:33]cmd_close_receipt [04:28:33]MH_GetDate [04:28:33]Write to MH i2c: F0 00 00 D7 35 FB [04:28:33]Write i2c OK [04:28:33]MH_I2C_Read... [04:28:33]Read from MH i2c: F0 [04:28:33]MH_I2C_Read... [04:28:33]Read from MH i2c: F0 09 00 [04:28:33]MH_I2C_Read... [04:28:33]Read from MH i2c: F0 09 00 D7 35 00 F4 C8 A5 66 E3 0B 90 66 AF [04:28:33]GetLastDocTimeStamp 1722140587 [04:28:33]current date 1722140916 [04:28:33]FM_GetShiftState [04:28:33]SAM_PROTO_GetShiftState [04:28:33]wFMCommunicate request_size=4 [04:28:33]MH_SAM_APDU [04:28:33]CAPDU: 80 13 01 00 [04:28:33]Write to MH i2c: E2 08 00 D8 35 80 13 01 00 00 00 00 00 8A [04:28:33]Write i2c OK [04:28:33]MH_I2C_Read... [04:28:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:28:33]Read from MH i2c: E2 [04:28:33]MH_I2C_Read... [04:28:33]Read from MH i2c: E2 0E 00 [04:28:33]MH_I2C_Read... [04:28:33]Read from MH i2c: E2 0E 00 D8 35 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 7E [04:28:33]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [04:28:33]wFMCommunicate OK [04:28:33]SAM_PROTO_GetShiftState done [04:28:33]FM_GetShiftState done [04:28:33]opened in 1722125648 [04:28:33]opened+sec_in_day 1722212048 [04:28:33]quantity*price = 34000 [04:28:33]sum+1 = 34001 [04:28:33]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160792 Снек Курут классический (круглый) 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700003010476 Напиток Let`s Go! с/с яблоко ПЭТ 1л 1.000 * 80.00 = 80.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 480.00 НСП 1% : 4.25 НДС 12% : 50.98 Наличными: 0.00 Безнал.: 480.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 31 28.07.2024 04:28 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 1980 ФПД: 58605646309604 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T042837&type=1&operation_type=1&fn_number=0000000002094248&fd_number=1980&fm=58605646309604&tin=02508201610067®Number=0000000000189667&sum=48000 0 [04:28:34]StoreToDocumentArchive [04:28:34]shift 13 fd 1980 [04:28:34]save to /storage/0013/doc_00001980 [04:28:34]save last doc name /storage/0013/doc_00001980 to /storage/kkm_last_doc_name [04:28:34]save OK [04:28:34]Clear old archive folders... [04:28:34]ProcessDocumentItem done err = 0, tmpTLVsize=541 [04:28:34]tlvbuf is 02033F10 [04:28:34]SAM_PROTO_ClearQueue [04:28:34]wFMCommunicate request_size=4 [04:28:34]MH_SAM_APDU [04:28:34]CAPDU: 80 09 00 00 [04:28:34]Write to MH i2c: E2 08 00 E5 35 80 09 00 00 00 00 00 00 8C [04:28:34]Write i2c OK [04:28:34]MH_I2C_Read... [04:28:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:28:34]Read from MH i2c: E2 [04:28:34]MH_I2C_Read... [04:28:34]Read from MH i2c: E2 03 00 [04:28:34]MH_I2C_Read... [04:28:34]Read from MH i2c: E2 03 00 E5 35 00 90 00 8E [04:28:34]RAPDU: 90 00 [04:28:34]wFMCommunicate OK [04:28:34]SAM_PROTO_ClearQueue done [04:28:34]KKMCreateOFDPacket [04:28:34]OFDProtocolAddRootSTLVToBuf [04:28:34]FM_MakeSignedData [04:28:34]FM_MakeSignedData [04:28:34]SAM_PROTO_SignData [04:28:34]wFMCommunicate request_size=4 [04:28:34]MH_SAM_APDU [04:28:34]CAPDU: 80 0D 01 02 [04:28:34]Write to MH i2c: E2 08 00 E6 35 80 0D 01 02 00 00 00 00 94 [04:28:34]Write i2c OK [04:28:34]MH_I2C_Read... [04:28:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:28:34]Read from MH i2c: E2 [04:28:34]MH_I2C_Read... [04:28:34]Read from MH i2c: E2 03 00 [04:28:34]MH_I2C_Read... [04:28:34]Read from MH i2c: E2 03 00 E6 35 00 90 00 8F [04:28:34]RAPDU: 90 00 [04:28:34]wFMCommunicate OK [04:28:34]wFMCommunicate request_size=255 [04:28:34]MH_SAM_APDU [04:28:34]CAPDU: 80 0D 02 02 FA 03 00 1D 02 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 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 68 42 00 00 00 00 13 04 06 00 D0 84 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:28:34]Write to MH i2c: E2 02 01 E7 35 80 0D 02 02 FA 00 03 00 1D 02 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 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 68 42 00 00 00 00 13 04 06 00 D0 84 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 00 00 D4 [04:28:34]Write i2c OK [04:28:34]MH_I2C_Read... [04:28:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:28:34]Read from MH i2c: E2 [04:28:34]MH_I2C_Read... [04:28:34]Read from MH i2c: E2 03 00 [04:28:34]MH_I2C_Read... [04:28:34]Read from MH i2c: E2 03 00 E7 35 00 90 00 90 [04:28:34]RAPDU: 90 00 [04:28:34]wFMCommunicate OK [04:28:34]wFMCommunicate request_size=255 [04:28:34]MH_SAM_APDU [04:28:34]CAPDU: 80 0D 02 02 FA 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 37 36 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 BB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 13 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 BB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 F5 C8 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 [04:28:34]Write to MH i2c: E2 02 01 E8 35 80 0D 02 02 FA 00 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 37 36 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 BB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 13 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 BB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 F5 C8 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 00 00 B1 [04:28:34]Write i2c OK [04:28:34]MH_I2C_Read... [04:28:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:28:35]Read from MH i2c: E2 [04:28:35]MH_I2C_Read... [04:28:35]Read from MH i2c: E2 03 00 [04:28:35]MH_I2C_Read... [04:28:35]Read from MH i2c: E2 03 00 E8 35 00 90 00 91 [04:28:35]RAPDU: 90 00 [04:28:35]wFMCommunicate OK [04:28:35]wFMCommunicate request_size=50 [04:28:35]MH_SAM_APDU [04:28:35]CAPDU: 80 0D 02 02 2D 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 BC 07 00 00 35 04 06 00 35 4D 30 BA E8 E4 [04:28:35]Write to MH i2c: E2 35 00 E9 35 80 0D 02 02 2D 00 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 BC 07 00 00 35 04 06 00 35 4D 30 BA E8 E4 00 00 FB [04:28:35]Write i2c OK [04:28:35]MH_I2C_Read... [04:28:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:28:35]Read from MH i2c: E2 [04:28:35]MH_I2C_Read... [04:28:35]Read from MH i2c: E2 03 00 [04:28:35]MH_I2C_Read... [04:28:35]Read from MH i2c: E2 03 00 E9 35 00 90 00 92 [04:28:35]RAPDU: 90 00 [04:28:35]wFMCommunicate OK [04:28:35]wFMCommunicate request_size=4 [04:28:35]MH_SAM_APDU [04:28:35]CAPDU: 80 0D 03 02 [04:28:35]Write to MH i2c: E2 08 00 EA 35 80 0D 03 02 00 00 00 00 9A [04:28:35]Write i2c OK [04:28:35]MH_I2C_Read... [04:28:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:28:35]Read from MH i2c: E2 [04:28:35]MH_I2C_Read... [04:28:35]Read from MH i2c: E2 0B 00 [04:28:35]MH_I2C_Read... [04:28:35]Read from MH i2c: E2 0B 00 EA 35 00 F3 6A D5 EC 47 03 4B B3 90 00 01 [04:28:35]RAPDU: F3 6A D5 EC 47 03 4B B3 90 00 [04:28:35]wFMCommunicate OK [04:28:35]SAM_PROTO_SignData done [04:28:35]FM_MakeSignedData done [04:28:35]CreateOFDProtocolMessage [04:28:35]wFMCommunicate request_size=4 [04:28:35]MH_SAM_APDU [04:28:35]CAPDU: 80 11 00 00 [04:28:35]Write to MH i2c: E2 08 00 EB 35 80 11 00 00 00 00 00 00 9A [04:28:35]Write i2c OK [04:28:35]MH_I2C_Read... [04:28:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:28:35]Read from MH i2c: E2 [04:28:35]MH_I2C_Read... [04:28:35]Read from MH i2c: E2 17 00 [04:28:35]MH_I2C_Read... [04:28:35]Read from MH i2c: E2 17 00 EB 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 EA [04:28:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [04:28:35]wFMCommunicate OK [04:28:35]CreateOFDProtocolMessage done [04:28:35]OFDSenderStorePacket 1980 [04:28:35]StoreOFDPacket docnum=1980 [04:28:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 31 02 00 00 05 59 29 02 48 78 5A 03 01 00 03 00 1D 02 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 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 68 42 00 00 00 00 13 04 06 00 D0 84 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 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 37 36 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 BB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 13 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 BB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 F5 C8 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 BC 07 00 00 35 04 06 00 35 4D 30 BA E8 E4 F3 6A D5 EC 47 03 4B B3 [04:28:35]CheckFolder [04:28:35]dirname=/storage/ofd_packets [04:28:35]CheckFolder done [04:28:35]ProducePacketName [04:28:35]name=ofd_packets/00001980 [04:28:35]NVStorageSaveData ofd_packets/00001980 [04:28:35]File name is /storage/ofd_packets/00001980 [04:28:35]Write 591 bytes [04:28:35]NVStorageSaveData done [04:28:35]OFDSenderStorePacket done [04:28:35]KKMCreateOFDPacket done [04:28:35]NVStorageSaveData kkm_last_timestamp [04:28:35]File name is /storage/kkm_last_timestamp [04:28:35]Write 4 bytes [04:28:35]NVStorageSaveData done [04:28:35]ExternCall_PrintAddStr [04:28:35]wPrintStart [04:28:35]Write to MH i2c: 01 00 00 EC 35 21 [04:28:35]Write i2c OK [04:28:35]MH_I2C_Read... [04:28:35]Read from MH i2c: 01 [04:28:35]MH_I2C_Read... [04:28:35]Read from MH i2c: 01 07 00 [04:28:35]MH_I2C_Read... [04:28:35]Read from MH i2c: 01 07 00 EC 35 00 00 00 00 00 FF 0F 36 [04:28:35]RasterBufferAndPrint [04:28:35]line Счет N : (3)126289 [04:28:35]line ИНН: 02508201610067 [04:28:35]line Контрольно-Кассовый Чек [04:28:35]line ПРОДАЖА [04:28:35]line Товар: 4700000480357 [04:28:35]line Пиво шахтерское 1л ПЭТ [04:28:35]line 2.000 * 170.00 [04:28:35]line = 340.00 [04:28:35]line НДС 12% НСП 1% [04:28:35]line > о реализуемом товаре [04:28:35]line Товар: 4700000160792 [04:28:35]line Снек Курут классический (круглый) [04:28:35]line 1.000 * 60.00 [04:28:35]line = 60.00 [04:28:35]line НДС 12% НСП 1% [04:28:35]line > о реализуемом товаре [04:28:35]line Товар: 4700003010476 [04:28:35]line Напиток Let`s Go! с/с яблоко ПЭТ 1л [04:28:35]line 1.000 * 80.00 [04:28:35]line = 80.00 [04:28:35]line НДС 12% НСП 1% [04:28:35]line > о реализуемом товаре [04:28:35]line ИТОГО: 480.00 [04:28:35]line НСП 1% : 4.25 [04:28:35]line НДС 12% : 50.98 [04:28:35]line Наличными: 0.00 [04:28:35]line Безнал.: 480.00 [04:28:35]line Место: АЗС № 127 "Партнер Нефть" [04:28:35]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [04:28:35]line СНО: Общий режим [04:28:35]line Чек 31 28.07.2024 04:28 [04:28:35]line Смена: 13 ФФД: 1.0 [04:28:35]line ЗНМ: 0300000161 [04:28:35]line РНМ: 0000000000189667 [04:28:35]line Версия ККМ: v1.0 [04:28:35]line Платежная система: O! деньги [04:28:35]line ФМ: 0000000002094248 [04:28:35]line ФД: 1980 [04:28:35]line ФПД: 58605646309604 [04:28:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T042837&type=1&operation_type=1&fn_number=0000000002094248&fd_number=1980&fm=58605646309604&tin=02508201610067®Number=0000000000189667&sum=48000 [04:28:35]line 0 [04:28:35]OFD Sender: Processing packet 1980 [packets to send 1, broken 0] [04:28:35]ProducePacketName [04:28:35]name=ofd_packets/00001980 [04:28:35]OFD Sender: To server: pG, [04:28:35]CommunicateWithHost lk.salyk.kg:30040 [04:28:35]ConnectInit lk.salyk.kg [04:28:35]written 0, free lines is 4095 [04:28:36]Connected sock=11 [04:28:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 31 02 00 00 05 59 29 02 48 78 5A 03 01 00 03 00 1D 02 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 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 68 42 00 00 00 00 13 04 06 00 D0 84 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 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 37 36 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 BB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 13 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 BB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 F5 C8 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 BC 07 00 00 35 04 06 00 35 4D 30 BA E8 E4 F3 6A D5 EC 47 03 4B B3 [04:28:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 C0 A2 47 00 8B 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 BC 07 00 00 F4 03 04 00 66 74 A5 66 B6 04 01 00 00 14 2D DF 2C 53 8B B0 D4 [04:28:36]CommunicateWithHost err = 0 [04:28:36]CheckOFDResponse [04:28:36]1017 (14) - 77093643461234 [04:28:36]1041 (16) - 0000000002094248 [04:28:36]1040 (4) - 1980 [04:28:36]1012 (4) - 27.07.2024 22:27 [04:28:36]1206 (1) - 0 [04:28:36]OFD Sender: Remove packet 1980 [04:28:36]ProducePacketName [04:28:36]name=ofd_packets/00001980 [04:28:36]NVStorageDeleteData [04:28:36]Write to MH i2c: 01 00 00 24 36 5A [04:28:36]Write i2c OK [04:28:36]MH_I2C_Read... [04:28:36]Read from MH i2c: 01 [04:28:36]MH_I2C_Read... [04:28:36]Read from MH i2c: 01 07 00 [04:28:36]MH_I2C_Read... [04:28:36]Read from MH i2c: 01 07 00 24 36 00 00 00 00 00 61 0C CE [04:28:36]RasterBufferAndPrint [04:28:36]line [04:28:36]line [04:28:36]line [04:28:36]line [04:28:36]line [04:28:36]written 0, free lines is 3176 [04:28:36]MH_Cut [04:28:36]Write to MH i2c: D1 01 00 2B 36 01 33 [04:28:36]Write i2c OK [04:28:36]MH_I2C_Read... [04:28:36]Read from MH i2c: D1 [04:28:36]MH_I2C_Read... [04:28:36]Read from MH i2c: D1 01 00 [04:28:36]MH_I2C_Read... [04:28:36]Read from MH i2c: D1 01 00 2B 36 00 32 [04:28:36]Write to MH i2c: 01 00 00 2C 36 62 [04:28:36]Write i2c OK [04:28:36]MH_I2C_Read... [04:28:36]OFD Sender: No OFD packet to send [04:28:37]*** Cut start [04:28:37]*** Partial cut [04:28:37]*** CUTSNS_PIN = 1 [04:28:37]*** CUTSNS_PIN = 0 [04:28:37]*** Brake cut motor [04:28:37]Read from MH i2c: 01 [04:28:37]MH_I2C_Read... [04:28:37]*** Stop cut motor [04:28:37]*** Cut end [04:28:37]Read from MH i2c: 01 07 00 [04:28:37]MH_I2C_Read... [04:28:37]Read from MH i2c: 01 07 00 2C 36 00 00 00 00 00 FF 0F 77 [04:28:37]process_action close_receipt done [04:28:37]requested_data is exist [04:28:37]produce_requested_data [04:28:37]requested_item fm.sn is exist - process it [04:28:37]wFMCommunicate request_size=4 [04:28:37]MH_SAM_APDU [04:28:37]CAPDU: 80 11 00 00 [04:28:37]Write to MH i2c: E2 08 00 2D 36 80 11 00 00 00 00 00 00 DD [04:28:37]Write i2c OK [04:28:37]MH_I2C_Read... [04:28:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:28:37]Read from MH i2c: E2 [04:28:37]MH_I2C_Read... [04:28:37]Read from MH i2c: E2 17 00 [04:28:37]MH_I2C_Read... [04:28:37]Read from MH i2c: E2 17 00 2D 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 2D [04:28:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [04:28:37]wFMCommunicate OK [04:28:37]requested_item fd.num is exist - process it [04:28:37]SAM_PROTO_GetFieldsCounters [04:28:37]wFMCommunicate request_size=4 [04:28:37]MH_SAM_APDU [04:28:37]CAPDU: 80 13 00 00 [04:28:37]Write to MH i2c: E2 08 00 2E 36 80 13 00 00 00 00 00 00 E0 [04:28:37]Write i2c OK [04:28:37]MH_I2C_Read... [04:28:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:28:38]Read from MH i2c: E2 [04:28:38]MH_I2C_Read... [04:28:38]Read from MH i2c: E2 62 00 [04:28:38]MH_I2C_Read... [04:28:38]Read from MH i2c: E2 62 00 2E 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 BC 07 00 00 0E 04 04 00 0D 00 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 37 [04:28:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 BC 07 00 00 0E 04 04 00 0D 00 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 [04:28:38]wFMCommunicate OK [04:28:38]SAM_PROTO_GetFieldsCounters done [04:28:38]requested_item shift.num is exist - process it [04:28:38]requested_item shift.opened is exist - process it [04:28:38]req_shift_opened [04:28:38]FM_GetShiftState [04:28:38]SAM_PROTO_GetShiftState [04:28:38]wFMCommunicate request_size=4 [04:28:38]MH_SAM_APDU [04:28:38]CAPDU: 80 13 01 00 [04:28:38]Write to MH i2c: E2 08 00 2F 36 80 13 01 00 00 00 00 00 E2 [04:28:38]Write i2c OK [04:28:38]MH_I2C_Read... [04:28:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:28:38]Read from MH i2c: E2 [04:28:38]MH_I2C_Read... [04:28:38]Read from MH i2c: E2 0E 00 [04:28:38]MH_I2C_Read... [04:28:38]Read from MH i2c: E2 0E 00 2F 36 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 D6 [04:28:38]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [04:28:38]wFMCommunicate OK [04:28:38]SAM_PROTO_GetShiftState done [04:28:38]FM_GetShiftState done [04:28:38]req_shift_opened done [04:28:38]requested_item shift.open_date is exist - process it [04:28:38]req_shift_open_date [04:28:38]req_shift_open_date done [04:28:38]produce_requested_data done [04:28:38]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":1980,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [04:28:38]process_action_free close_receipt [04:28:38]json_value_free [04:28:38]json_value_free done [04:28:38]process_json_proto returns [04:28:38]Send response to host [04:28:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":1980,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [04:28:38]free response buf [04:28:38]execute_script done [04:28:38]execute_script returns [04:28:38]free content buf [04:28:38]Sock 8.Close socket [04:28:38]Sock 8.Thread stoped [04:28:41]OFD Sender: No OFD packet to send [04:28:46]OFD Sender: No OFD packet to send [04:28:51]OFD Sender: No OFD packet to send [04:28:56]OFD Sender: No OFD packet to send [04:29:01]OFD Sender: No OFD packet to send [04:29:06]OFD Sender: No OFD packet to send [04:29:11]OFD Sender: No OFD packet to send [04:29:16]OFD Sender: No OFD packet to send [04:29:21]OFD Sender: No OFD packet to send [04:29:26]OFD Sender: No OFD packet to send [04:29:31]OFD Sender: No OFD packet to send [04:29:36]OFD Sender: No OFD packet to send [04:29:41]OFD Sender: No OFD packet to send [04:29:46]OFD Sender: No OFD packet to send [04:29:51]OFD Sender: No OFD packet to send [04:29:56]OFD Sender: No OFD packet to send [04:30:01]OFD Sender: No OFD packet to send [04:30:06]OFD Sender: No OFD packet to send [04:30:11]OFD Sender: No OFD packet to send [04:30:16]OFD Sender: No OFD packet to send [04:30:21]OFD Sender: No OFD packet to send [04:30:26]OFD Sender: No OFD packet to send [04:30:31]OFD Sender: No OFD packet to send [04:30:36]OFD Sender: No OFD packet to send [04:30:41]OFD Sender: No OFD packet to send [04:30:46]OFD Sender: No OFD packet to send [04:30:51]OFD Sender: No OFD packet to send [04:30:56]OFD Sender: No OFD packet to send [04:31:01]OFD Sender: No OFD packet to send [04:31:06]OFD Sender: No OFD packet to send [04:31:07]accept exits with 9 [04:31:07]New connection [04:31:07]New thread 3067460964 created [04:31:07]Thread 3067317604 joined [04:31:07]Waiting for new connection... [04:31:07] Sock 9.Parse request [04:31:07]Sock 9.Check first char [04:31:07]Sock 9.First char is OK [04:31:07]request: POST /json_proto HTTP/1.0 [04:31:07]Method: POST [04:31:07]URL: /json_proto [04:31:07]Method is POST - this is cgi request [04:31:07]url: /json_proto [04:31:07]query_string will be loaded in cgi processing [04:31:07]execute_cgi json_proto POST (null) [04:31:07]execute_cgi path=json_proto method=POST [04:31:07]POST find Content-Length [04:31:07]Host: 172.17.45.132:8080 [04:31:07]Content-Length: 728 [04:31:07]Content-Type: application/json [04:31:07] [04:31:07]POST finish read [04:31:07]Found Content-Length = 728 [04:31:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 1979, "base_FM": "0000000002094248", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126288", "tax_sys" : 0, "items" : [ { "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 170.00 } ], "post_footer_text": "1979" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:31:07]execute_script... [04:31:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 1979, "base_FM": "0000000002094248", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126288", "tax_sys" : 0, "items" : [ { "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 170.00 } ], "post_footer_text": "1979" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:31:07]POST & json_proto [04:31:07]process_json_proto [04:31:07]json parsed OK: [04:31:07]protocol is kg_v1.0 [04:31:07]action value=close_receipt [04:31:07]process_action close_receipt [04:31:07]cmd_close_receipt [04:31:07]MH_GetDate [04:31:07]Write to MH i2c: F0 00 00 30 36 55 [04:31:07]Write i2c OK [04:31:07]MH_I2C_Read... [04:31:07]Read from MH i2c: F0 [04:31:07]MH_I2C_Read... [04:31:07]Read from MH i2c: F0 09 00 [04:31:07]MH_I2C_Read... [04:31:07]Read from MH i2c: F0 09 00 30 36 00 8F C9 A5 66 E3 0B 90 66 A5 [04:31:07]GetLastDocTimeStamp 1722140917 [04:31:07]current date 1722141071 [04:31:07]FM_GetShiftState [04:31:07]SAM_PROTO_GetShiftState [04:31:07]wFMCommunicate request_size=4 [04:31:07]MH_SAM_APDU [04:31:07]CAPDU: 80 13 01 00 [04:31:07]Write to MH i2c: E2 08 00 31 36 80 13 01 00 00 00 00 00 E4 [04:31:07]Write i2c OK [04:31:07]MH_I2C_Read... [04:31:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:31:07]Read from MH i2c: E2 [04:31:07]MH_I2C_Read... [04:31:07]Read from MH i2c: E2 0E 00 [04:31:07]MH_I2C_Read... [04:31:07]Read from MH i2c: E2 0E 00 31 36 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 D8 [04:31:07]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [04:31:07]wFMCommunicate OK [04:31:07]SAM_PROTO_GetShiftState done [04:31:07]FM_GetShiftState done [04:31:07]opened in 1722125648 [04:31:07]opened+sec_in_day 1722212048 [04:31:07]quantity*price = 17000 [04:31:07]sum+1 = 17001 [04:31:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 170.00 НСП 1% : 1.50 НДС 12% : 18.05 Наличными: 170.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 32 28.07.2024 04:31 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФД осн.: 1979 ФМ осн.: 0000000002094248 ФМ: 0000000002094248 ФД: 1981 ФПД: 58662443444608 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T043111&type=2&operation_type=1&fn_number=0000000002094248&fd_number=1981&fm=58662443444608&tin=02508201610067®Number=0000000000189667&sum=17000 1979 [04:31:08]StoreToDocumentArchive [04:31:08]shift 13 fd 1981 [04:31:08]save to /storage/0013/doc_00001981 [04:31:08]save last doc name /storage/0013/doc_00001981 to /storage/kkm_last_doc_name [04:31:08]save OK [04:31:08]Clear old archive folders... [04:31:08]ProcessDocumentItem done err = 0, tmpTLVsize=310 [04:31:08]tlvbuf is 01F44B70 [04:31:08]SAM_PROTO_ClearQueue [04:31:08]wFMCommunicate request_size=4 [04:31:08]MH_SAM_APDU [04:31:08]CAPDU: 80 09 00 00 [04:31:08]Write to MH i2c: E2 08 00 40 36 80 09 00 00 00 00 00 00 E8 [04:31:08]Write i2c OK [04:31:08]MH_I2C_Read... [04:31:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:31:08]Read from MH i2c: E2 [04:31:08]MH_I2C_Read... [04:31:08]Read from MH i2c: E2 03 00 [04:31:08]MH_I2C_Read... [04:31:08]Read from MH i2c: E2 03 00 40 36 00 90 00 EA [04:31:08]RAPDU: 90 00 [04:31:08]wFMCommunicate OK [04:31:08]SAM_PROTO_ClearQueue done [04:31:08]KKMCreateOFDPacket [04:31:08]OFDProtocolAddRootSTLVToBuf [04:31:08]FM_MakeSignedData [04:31:08]FM_MakeSignedData [04:31:08]SAM_PROTO_SignData [04:31:08]wFMCommunicate request_size=4 [04:31:08]MH_SAM_APDU [04:31:08]CAPDU: 80 0D 01 02 [04:31:08]Write to MH i2c: E2 08 00 41 36 80 0D 01 02 00 00 00 00 F0 [04:31:08]Write i2c OK [04:31:08]MH_I2C_Read... [04:31:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:31:08]Read from MH i2c: E2 [04:31:08]MH_I2C_Read... [04:31:08]Read from MH i2c: E2 03 00 [04:31:08]MH_I2C_Read... [04:31:08]Read from MH i2c: E2 03 00 41 36 00 90 00 EB [04:31:08]RAPDU: 90 00 [04:31:08]wFMCommunicate OK [04:31:08]wFMCommunicate request_size=255 [04:31:08]MH_SAM_APDU [04:31:08]CAPDU: 80 0D 02 02 FA 03 00 36 01 1E 04 01 00 02 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 8F C9 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 27 04 [04:31:09]Write to MH i2c: E2 02 01 42 36 80 0D 02 02 FA 00 03 00 36 01 1E 04 01 00 02 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 8F C9 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 27 04 00 00 CD [04:31:09]Write i2c OK [04:31:09]MH_I2C_Read... [04:31:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:31:09]Read from MH i2c: E2 [04:31:09]MH_I2C_Read... [04:31:09]Read from MH i2c: E2 03 00 [04:31:09]MH_I2C_Read... [04:31:09]Read from MH i2c: E2 03 00 42 36 00 90 00 EC [04:31:09]RAPDU: 90 00 [04:31:09]wFMCommunicate OK [04:31:09]wFMCommunicate request_size=69 [04:31:09]MH_SAM_APDU [04:31:09]CAPDU: 80 0D 02 02 40 04 00 BB 07 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 BD 07 00 00 35 04 06 00 35 5A 6A 1A 69 80 [04:31:09]Write to MH i2c: E2 48 00 43 36 80 0D 02 02 40 00 04 00 BB 07 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 BD 07 00 00 35 04 06 00 35 5A 6A 1A 69 80 00 00 EB [04:31:09]Write i2c OK [04:31:09]MH_I2C_Read... [04:31:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:31:09]Read from MH i2c: E2 [04:31:09]MH_I2C_Read... [04:31:09]Read from MH i2c: E2 03 00 [04:31:09]MH_I2C_Read... [04:31:09]Read from MH i2c: E2 03 00 43 36 00 90 00 ED [04:31:09]RAPDU: 90 00 [04:31:09]wFMCommunicate OK [04:31:09]wFMCommunicate request_size=4 [04:31:09]MH_SAM_APDU [04:31:09]CAPDU: 80 0D 03 02 [04:31:09]Write to MH i2c: E2 08 00 44 36 80 0D 03 02 00 00 00 00 F5 [04:31:09]Write i2c OK [04:31:09]MH_I2C_Read... [04:31:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:31:09]Read from MH i2c: E2 [04:31:09]MH_I2C_Read... [04:31:09]Read from MH i2c: E2 0B 00 [04:31:09]MH_I2C_Read... [04:31:09]Read from MH i2c: E2 0B 00 44 36 00 49 E5 77 9B 58 2F 7E 39 90 00 74 [04:31:09]RAPDU: 49 E5 77 9B 58 2F 7E 39 90 00 [04:31:09]wFMCommunicate OK [04:31:09]SAM_PROTO_SignData done [04:31:09]FM_MakeSignedData done [04:31:09]CreateOFDProtocolMessage [04:31:09]wFMCommunicate request_size=4 [04:31:09]MH_SAM_APDU [04:31:09]CAPDU: 80 11 00 00 [04:31:09]Write to MH i2c: E2 08 00 45 36 80 11 00 00 00 00 00 00 F5 [04:31:09]Write i2c OK [04:31:09]MH_I2C_Read... [04:31:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:31:09]Read from MH i2c: E2 [04:31:09]MH_I2C_Read... [04:31:09]Read from MH i2c: E2 17 00 [04:31:09]MH_I2C_Read... [04:31:09]Read from MH i2c: E2 17 00 45 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 45 [04:31:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [04:31:09]wFMCommunicate OK [04:31:09]CreateOFDProtocolMessage done [04:31:09]OFDSenderStorePacket 1981 [04:31:09]StoreOFDPacket docnum=1981 [04:31:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4A 01 00 00 51 4C 42 01 4D 55 5A 03 01 00 03 00 36 01 1E 04 01 00 02 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 8F C9 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 27 04 04 00 BB 07 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 BD 07 00 00 35 04 06 00 35 5A 6A 1A 69 80 49 E5 77 9B 58 2F 7E 39 [04:31:09]CheckFolder [04:31:09]dirname=/storage/ofd_packets [04:31:09]CheckFolder done [04:31:09]ProducePacketName [04:31:09]name=ofd_packets/00001981 [04:31:09]NVStorageSaveData ofd_packets/00001981 [04:31:09]File name is /storage/ofd_packets/00001981 [04:31:09]Write 360 bytes [04:31:09]NVStorageSaveData done [04:31:09]OFDSenderStorePacket done [04:31:09]KKMCreateOFDPacket done [04:31:09]NVStorageSaveData kkm_last_timestamp [04:31:09]File name is /storage/kkm_last_timestamp [04:31:09]Write 4 bytes [04:31:09]NVStorageSaveData done [04:31:09]ExternCall_PrintAddStr [04:31:09]wPrintStart [04:31:09]Write to MH i2c: 01 00 00 46 36 7C [04:31:09]Write i2c OK [04:31:09]MH_I2C_Read... [04:31:09]Read from MH i2c: 01 [04:31:09]MH_I2C_Read... [04:31:09]Read from MH i2c: 01 07 00 [04:31:09]MH_I2C_Read... [04:31:09]Read from MH i2c: 01 07 00 46 36 00 00 00 00 00 FF 0F 91 [04:31:09]RasterBufferAndPrint [04:31:09]line Счет N : (3)126288 [04:31:09]line ИНН: 02508201610067 [04:31:09]line Контрольно-Кассовый Чек [04:31:09]line ВОЗВРАТ ПРОДАЖИ [04:31:09]line Товар: 4700000480357 [04:31:09]line Пиво шахтерское 1л ПЭТ [04:31:09]line 1.000 * 170.00 [04:31:09]line = 170.00 [04:31:09]line НДС 12% НСП 1% [04:31:09]line > о реализуемом товаре [04:31:09]line ИТОГО: 170.00 [04:31:09]line НСП 1% : 1.50 [04:31:09]line НДС 12% : 18.05 [04:31:09]line Наличными: 170.00 [04:31:09]line Безнал.: 0.00 [04:31:09]line Место: АЗС № 127 "Партнер Нефть" [04:31:09]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [04:31:09]line СНО: Общий режим [04:31:09]line Чек 32 28.07.2024 04:31 [04:31:09]line Смена: 13 ФФД: 1.0 [04:31:09]line ЗНМ: 0300000161 [04:31:09]line РНМ: 0000000000189667 [04:31:09]line Версия ККМ: v1.0 [04:31:09]line ФД осн.: 1979 [04:31:09]line ФМ осн.: 0000000002094248 [04:31:09]line ФМ: 0000000002094248 [04:31:09]line ФД: 1981 [04:31:09]line ФПД: 58662443444608 [04:31:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T043111&type=2&operation_type=1&fn_number=0000000002094248&fd_number=1981&fm=58662443444608&tin=02508201610067®Number=0000000000189667&sum=17000 [04:31:09]line 1979 [04:31:09]OFD Sender: Processing packet 1981 [packets to send 1, broken 0] [04:31:09]ProducePacketName [04:31:09]name=ofd_packets/00001981 [04:31:09]OFD Sender: To server: pG, [04:31:09]CommunicateWithHost lk.salyk.kg:30040 [04:31:09]ConnectInit lk.salyk.kg [04:31:09]written 0, free lines is 4095 [04:31:09]Connected sock=10 [04:31:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4A 01 00 00 51 4C 42 01 4D 55 5A 03 01 00 03 00 36 01 1E 04 01 00 02 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 8F C9 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 27 04 04 00 BB 07 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 BD 07 00 00 35 04 06 00 35 5A 6A 1A 69 80 49 E5 77 9B 58 2F 7E 39 [04:31:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 9E 77 47 00 F0 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 32 30 39 34 32 34 38 10 04 04 00 BD 07 00 00 F4 03 04 00 00 75 A5 66 B6 04 01 00 00 0B 90 E2 FC 2A 93 9A 99 [04:31:10]CommunicateWithHost err = 0 [04:31:10]CheckOFDResponse [04:31:10]1017 (14) - 77093643461234 [04:31:10]1041 (16) - 0000000002094248 [04:31:10]1040 (4) - 1981 [04:31:10]1012 (4) - 27.07.2024 22:30 [04:31:10]1206 (1) - 0 [04:31:10]OFD Sender: Remove packet 1981 [04:31:10]ProducePacketName [04:31:10]name=ofd_packets/00001981 [04:31:10]NVStorageDeleteData [04:31:10]Write to MH i2c: 01 00 00 70 36 A6 [04:31:10]Write i2c OK [04:31:10]MH_I2C_Read... [04:31:10]Read from MH i2c: 01 [04:31:10]MH_I2C_Read... [04:31:10]Read from MH i2c: 01 07 00 [04:31:10]MH_I2C_Read... [04:31:10]Read from MH i2c: 01 07 00 70 36 00 00 00 00 00 12 0D CC [04:31:10]RasterBufferAndPrint [04:31:10]line [04:31:10]line [04:31:10]line [04:31:10]line [04:31:10]line [04:31:10]written 0, free lines is 3356 [04:31:10]MH_Cut [04:31:10]Write to MH i2c: D1 01 00 77 36 01 7F [04:31:10]Write i2c OK [04:31:10]MH_I2C_Read... [04:31:10]Read from MH i2c: D1 [04:31:10]MH_I2C_Read... [04:31:10]Read from MH i2c: D1 01 00 [04:31:10]MH_I2C_Read... [04:31:10]Read from MH i2c: D1 01 00 77 36 00 7E [04:31:10]Write to MH i2c: 01 00 00 78 36 AE [04:31:10]Write i2c OK [04:31:10]MH_I2C_Read... [04:31:10]OFD Sender: No OFD packet to send [04:31:10]*** Cut start [04:31:10]*** Partial cut [04:31:10]*** CUTSNS_PIN = 1 [04:31:11]*** CUTSNS_PIN = 0 [04:31:11]*** Brake cut motor [04:31:11]Read from MH i2c: 01 [04:31:11]MH_I2C_Read... [04:31:11]*** Stop cut motor [04:31:11]*** Cut end [04:31:11]Read from MH i2c: 01 07 00 [04:31:11]MH_I2C_Read... [04:31:11]Read from MH i2c: 01 07 00 78 36 00 00 00 00 00 FF 0F C3 [04:31:11]process_action close_receipt done [04:31:11]requested_data is exist [04:31:11]produce_requested_data [04:31:11]requested_item fm.sn is exist - process it [04:31:11]wFMCommunicate request_size=4 [04:31:11]MH_SAM_APDU [04:31:11]CAPDU: 80 11 00 00 [04:31:11]Write to MH i2c: E2 08 00 79 36 80 11 00 00 00 00 00 00 29 [04:31:11]Write i2c OK [04:31:11]MH_I2C_Read... [04:31:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:31:11]Read from MH i2c: E2 [04:31:11]MH_I2C_Read... [04:31:11]Read from MH i2c: E2 17 00 [04:31:11]MH_I2C_Read... [04:31:11]Read from MH i2c: E2 17 00 79 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 79 [04:31:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [04:31:11]wFMCommunicate OK [04:31:11]requested_item fd.num is exist - process it [04:31:11]SAM_PROTO_GetFieldsCounters [04:31:11]wFMCommunicate request_size=4 [04:31:11]MH_SAM_APDU [04:31:11]CAPDU: 80 13 00 00 [04:31:11]Write to MH i2c: E2 08 00 7A 36 80 13 00 00 00 00 00 00 2C [04:31:11]Write i2c OK [04:31:11]MH_I2C_Read... [04:31:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:31:11]Read from MH i2c: E2 [04:31:11]MH_I2C_Read... [04:31:11]Read from MH i2c: E2 62 00 [04:31:11]MH_I2C_Read... [04:31:11]Read from MH i2c: E2 62 00 7A 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 BD 07 00 00 0E 04 04 00 0D 00 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 87 [04:31:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 BD 07 00 00 0E 04 04 00 0D 00 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 [04:31:11]wFMCommunicate OK [04:31:11]SAM_PROTO_GetFieldsCounters done [04:31:11]requested_item shift.num is exist - process it [04:31:11]requested_item shift.opened is exist - process it [04:31:11]req_shift_opened [04:31:11]FM_GetShiftState [04:31:11]SAM_PROTO_GetShiftState [04:31:11]wFMCommunicate request_size=4 [04:31:11]MH_SAM_APDU [04:31:11]CAPDU: 80 13 01 00 [04:31:11]Write to MH i2c: E2 08 00 7B 36 80 13 01 00 00 00 00 00 2E [04:31:11]Write i2c OK [04:31:11]MH_I2C_Read... [04:31:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:31:11]Read from MH i2c: E2 [04:31:11]MH_I2C_Read... [04:31:11]Read from MH i2c: E2 0E 00 [04:31:11]MH_I2C_Read... [04:31:11]Read from MH i2c: E2 0E 00 7B 36 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 22 [04:31:11]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [04:31:11]wFMCommunicate OK [04:31:11]SAM_PROTO_GetShiftState done [04:31:11]FM_GetShiftState done [04:31:11]req_shift_opened done [04:31:11]requested_item shift.open_date is exist - process it [04:31:11]req_shift_open_date [04:31:11]req_shift_open_date done [04:31:11]produce_requested_data done [04:31:11]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":1981,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [04:31:11]process_action_free close_receipt [04:31:11]json_value_free [04:31:11]json_value_free done [04:31:11]process_json_proto returns [04:31:11]Send response to host [04:31:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":1981,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [04:31:11]free response buf [04:31:11]execute_script done [04:31:11]execute_script returns [04:31:11]free content buf [04:31:11]Sock 9.Close socket [04:31:11]Sock 9.Thread stoped [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:26]accept exits with 8 [04:32:26]New connection [04:32:26]New thread 3067317604 created [04:32:26]Thread 3067460964 joined [04:32:26]Waiting for new connection... [04:32:26] Sock 8.Parse request [04:32:26]Sock 8.Check first char [04:32:26]Sock 8.First char is OK [04:32:26]request: POST /json_proto HTTP/1.0 [04:32:26]Method: POST [04:32:26]URL: /json_proto [04:32:26]Method is POST - this is cgi request [04:32:26]url: /json_proto [04:32:26]query_string will be loaded in cgi processing [04:32:26]execute_cgi json_proto POST (null) [04:32:26]execute_cgi path=json_proto method=POST [04:32:26]POST find Content-Length [04:32:26]Host: 172.17.45.132:8080 [04:32:26]Content-Length: 757 [04:32:26]Content-Type: application/json [04:32:26] [04:32:26]POST finish read [04:32:26]Found Content-Length = 757 [04:32:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 1966, "base_FM": "0000000002094248", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126276", "tax_sys" : 0, "items" : [ { "code": "4620016303269", "name": "\u0412\u043B\u0430\u0436\u043D\u0430\u044F \u0442\u0443\u0430\u043B\u0435\u0442\u043D\u0430\u044F \u0431\u0443\u043C\u0430\u0433\u0430 80 VOK", "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": "1966" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:32:26]execute_script... [04:32:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 1966, "base_FM": "0000000002094248", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126276", "tax_sys" : 0, "items" : [ { "code": "4620016303269", "name": "\u0412\u043B\u0430\u0436\u043D\u0430\u044F \u0442\u0443\u0430\u043B\u0435\u0442\u043D\u0430\u044F \u0431\u0443\u043C\u0430\u0433\u0430 80 VOK", "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": "1966" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:32:26]POST & json_proto [04:32:26]process_json_proto [04:32:26]json parsed OK: [04:32:26]protocol is kg_v1.0 [04:32:26]action value=close_receipt [04:32:26]process_action close_receipt [04:32:26]cmd_close_receipt [04:32:26]MH_GetDate [04:32:26]Write to MH i2c: F0 00 00 7C 36 A1 [04:32:26]Write i2c OK [04:32:26]MH_I2C_Read... [04:32:26]Read from MH i2c: F0 [04:32:26]MH_I2C_Read... [04:32:26]Read from MH i2c: F0 09 00 [04:32:26]MH_I2C_Read... [04:32:26]Read from MH i2c: F0 09 00 7C 36 00 DE C9 A5 66 E3 0B 90 66 40 [04:32:26]GetLastDocTimeStamp 1722141071 [04:32:26]current date 1722141150 [04:32:26]FM_GetShiftState [04:32:26]SAM_PROTO_GetShiftState [04:32:26]wFMCommunicate request_size=4 [04:32:26]MH_SAM_APDU [04:32:26]CAPDU: 80 13 01 00 [04:32:26]Write to MH i2c: E2 08 00 7D 36 80 13 01 00 00 00 00 00 30 [04:32:26]Write i2c OK [04:32:26]MH_I2C_Read... [04:32:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:32:26]Read from MH i2c: E2 [04:32:26]MH_I2C_Read... [04:32:26]Read from MH i2c: E2 0E 00 [04:32:26]MH_I2C_Read... [04:32:26]Read from MH i2c: E2 0E 00 7D 36 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 24 [04:32:26]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [04:32:26]wFMCommunicate OK [04:32:26]SAM_PROTO_GetShiftState done [04:32:26]FM_GetShiftState done [04:32:26]opened in 1722125648 [04:32:26]opened+sec_in_day 1722212048 [04:32:26]quantity*price = 14000 [04:32:26]sum+1 = 14001 [04:32:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 33 28.07.2024 04:32 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФД осн.: 1966 ФМ осн.: 0000000002094248 ФМ: 0000000002094248 ФД: 1982 ФПД: 59238345573852 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T043230&type=2&operation_type=1&fn_number=0000000002094248&fd_number=1982&fm=59238345573852&tin=02508201610067®Number=0000000000189667&sum=14000 1966 [04:32:27]StoreToDocumentArchive [04:32:27]shift 13 fd 1982 [04:32:27]save to /storage/0013/doc_00001982 [04:32:27]save last doc name /storage/0013/doc_00001982 to /storage/kkm_last_doc_name [04:32:27]save OK [04:32:27]Clear old archive folders... [04:32:27]ProcessDocumentItem done err = 0, tmpTLVsize=323 [04:32:27]tlvbuf is 01FD6FB0 [04:32:27]SAM_PROTO_ClearQueue [04:32:27]wFMCommunicate request_size=4 [04:32:27]MH_SAM_APDU [04:32:27]CAPDU: 80 09 00 00 [04:32:27]Write to MH i2c: E2 08 00 8C 36 80 09 00 00 00 00 00 00 34 [04:32:27]Write i2c OK [04:32:27]MH_I2C_Read... [04:32:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:32:27]Read from MH i2c: E2 [04:32:27]MH_I2C_Read... [04:32:27]Read from MH i2c: E2 03 00 [04:32:27]MH_I2C_Read... [04:32:27]Read from MH i2c: E2 03 00 8C 36 00 90 00 36 [04:32:27]RAPDU: 90 00 [04:32:27]wFMCommunicate OK [04:32:27]SAM_PROTO_ClearQueue done [04:32:27]KKMCreateOFDPacket [04:32:27]OFDProtocolAddRootSTLVToBuf [04:32:27]FM_MakeSignedData [04:32:27]FM_MakeSignedData [04:32:27]SAM_PROTO_SignData [04:32:27]wFMCommunicate request_size=4 [04:32:27]MH_SAM_APDU [04:32:27]CAPDU: 80 0D 01 02 [04:32:27]Write to MH i2c: E2 08 00 8D 36 80 0D 01 02 00 00 00 00 3C [04:32:27]Write i2c OK [04:32:27]MH_I2C_Read... [04:32:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:32:27]Read from MH i2c: E2 [04:32:27]MH_I2C_Read... [04:32:27]Read from MH i2c: E2 03 00 [04:32:27]MH_I2C_Read... [04:32:27]Read from MH i2c: E2 03 00 8D 36 00 90 00 37 [04:32:27]RAPDU: 90 00 [04:32:27]wFMCommunicate OK [04:32:27]wFMCommunicate request_size=255 [04:32:27]MH_SAM_APDU [04:32:27]CAPDU: 80 0D 02 02 FA 03 00 43 01 1E 04 01 00 02 23 04 79 00 8A 04 0D 00 34 36 32 30 30 31 36 33 30 33 32 36 39 06 04 35 00 D0 92 D0 BB D0 B0 D0 B6 D0 BD D0 B0 D1 8F 20 D1 82 D1 83 D0 B0 D0 BB D0 B5 D1 82 D0 BD D0 B0 D1 8F 20 D0 B1 D1 83 D0 BC D0 B0 D0 B3 D0 B0 20 38 30 20 56 4F 4B 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 21 00 00 00 F4 03 04 00 DE C9 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 [04:32:27]Write to MH i2c: E2 02 01 8E 36 80 0D 02 02 FA 00 03 00 43 01 1E 04 01 00 02 23 04 79 00 8A 04 0D 00 34 36 32 30 30 31 36 33 30 33 32 36 39 06 04 35 00 D0 92 D0 BB D0 B0 D0 B6 D0 BD D0 B0 D1 8F 20 D1 82 D1 83 D0 B0 D0 BB D0 B5 D1 82 D0 BD D0 B0 D1 8F 20 D0 B1 D1 83 D0 BC D0 B0 D0 B3 D0 B0 20 38 30 20 56 4F 4B 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 21 00 00 00 F4 03 04 00 DE C9 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 00 00 15 [04:32:28]Write i2c OK [04:32:28]MH_I2C_Read... [04:32:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:32:28]Read from MH i2c: E2 [04:32:28]MH_I2C_Read... [04:32:28]Read from MH i2c: E2 03 00 [04:32:28]MH_I2C_Read... [04:32:28]Read from MH i2c: E2 03 00 8E 36 00 90 00 38 [04:32:28]RAPDU: 90 00 [04:32:28]wFMCommunicate OK [04:32:28]wFMCommunicate request_size=82 [04:32:28]MH_SAM_APDU [04:32:28]CAPDU: 80 0D 02 02 4D 30 30 30 30 30 31 38 39 36 36 37 27 04 04 00 AE 07 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 BE 07 00 00 35 04 06 00 35 E0 80 8B 85 DC [04:32:28]Write to MH i2c: E2 55 00 8F 36 80 0D 02 02 4D 00 30 30 30 30 30 31 38 39 36 36 37 27 04 04 00 AE 07 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 BE 07 00 00 35 04 06 00 35 E0 80 8B 85 DC 00 00 2A [04:32:28]Write i2c OK [04:32:28]MH_I2C_Read... [04:32:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:32:28]Read from MH i2c: E2 [04:32:28]MH_I2C_Read... [04:32:28]Read from MH i2c: E2 03 00 [04:32:28]MH_I2C_Read... [04:32:28]Read from MH i2c: E2 03 00 8F 36 00 90 00 39 [04:32:28]RAPDU: 90 00 [04:32:28]wFMCommunicate OK [04:32:28]wFMCommunicate request_size=4 [04:32:28]MH_SAM_APDU [04:32:28]CAPDU: 80 0D 03 02 [04:32:28]Write to MH i2c: E2 08 00 90 36 80 0D 03 02 00 00 00 00 41 [04:32:28]Write i2c OK [04:32:28]MH_I2C_Read... [04:32:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:32:28]Read from MH i2c: E2 [04:32:28]MH_I2C_Read... [04:32:28]Read from MH i2c: E2 0B 00 [04:32:28]MH_I2C_Read... [04:32:28]Read from MH i2c: E2 0B 00 90 36 00 A1 6E 53 E0 12 C8 7B CF 90 00 A8 [04:32:28]RAPDU: A1 6E 53 E0 12 C8 7B CF 90 00 [04:32:28]wFMCommunicate OK [04:32:28]SAM_PROTO_SignData done [04:32:28]FM_MakeSignedData done [04:32:28]CreateOFDProtocolMessage [04:32:28]wFMCommunicate request_size=4 [04:32:28]MH_SAM_APDU [04:32:28]CAPDU: 80 11 00 00 [04:32:28]Write to MH i2c: E2 08 00 91 36 80 11 00 00 00 00 00 00 41 [04:32:28]Write i2c OK [04:32:28]MH_I2C_Read... [04:32:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:32:28]Read from MH i2c: E2 [04:32:28]MH_I2C_Read... [04:32:28]Read from MH i2c: E2 17 00 [04:32:28]MH_I2C_Read... [04:32:28]Read from MH i2c: E2 17 00 91 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 91 [04:32:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [04:32:28]wFMCommunicate OK [04:32:28]CreateOFDProtocolMessage done [04:32:28]OFDSenderStorePacket 1982 [04:32:28]StoreOFDPacket docnum=1982 [04:32:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 57 01 00 00 75 EA 4F 01 1A C9 5A 03 01 00 03 00 43 01 1E 04 01 00 02 23 04 79 00 8A 04 0D 00 34 36 32 30 30 31 36 33 30 33 32 36 39 06 04 35 00 D0 92 D0 BB D0 B0 D0 B6 D0 BD D0 B0 D1 8F 20 D1 82 D1 83 D0 B0 D0 BB D0 B5 D1 82 D0 BD D0 B0 D1 8F 20 D0 B1 D1 83 D0 BC D0 B0 D0 B3 D0 B0 20 38 30 20 56 4F 4B 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 21 00 00 00 F4 03 04 00 DE C9 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 27 04 04 00 AE 07 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 BE 07 00 00 35 04 06 00 35 E0 80 8B 85 DC A1 6E 53 E0 12 C8 7B CF [04:32:28]CheckFolder [04:32:28]dirname=/storage/ofd_packets [04:32:28]CheckFolder done [04:32:28]ProducePacketName [04:32:28]name=ofd_packets/00001982 [04:32:28]NVStorageSaveData ofd_packets/00001982 [04:32:28]File name is /storage/ofd_packets/00001982 [04:32:28]Write 373 bytes [04:32:28]NVStorageSaveData done [04:32:28]OFDSenderStorePacket done [04:32:28]KKMCreateOFDPacket done [04:32:28]NVStorageSaveData kkm_last_timestamp [04:32:28]File name is /storage/kkm_last_timestamp [04:32:28]Write 4 bytes [04:32:28]NVStorageSaveData done [04:32:28]ExternCall_PrintAddStr [04:32:28]wPrintStart [04:32:28]Write to MH i2c: 01 00 00 92 36 C8 [04:32:28]Write i2c OK [04:32:28]MH_I2C_Read... [04:32:28]Read from MH i2c: 01 [04:32:28]MH_I2C_Read... [04:32:28]Read from MH i2c: 01 07 00 [04:32:28]MH_I2C_Read... [04:32:28]Read from MH i2c: 01 07 00 92 36 00 00 00 00 00 FF 0F DD [04:32:28]RasterBufferAndPrint [04:32:28]line Счет N : (3)126276 [04:32:28]line ИНН: 02508201610067 [04:32:28]line Контрольно-Кассовый Чек [04:32:28]line ВОЗВРАТ ПРОДАЖИ [04:32:28]line Товар: 4620016303269 [04:32:28]line Влажная туалетная бумага 80 VOK [04:32:28]line 1.000 * 140.00 [04:32:28]line = 140.00 [04:32:28]line НДС 12% НСП 1% [04:32:28]line > о реализуемом товаре [04:32:28]line ИТОГО: 140.00 [04:32:28]line НСП 1% : 1.24 [04:32:28]line НДС 12% : 14.87 [04:32:28]line Наличными: 140.00 [04:32:28]line Безнал.: 0.00 [04:32:28]line Место: АЗС № 127 "Партнер Нефть" [04:32:28]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [04:32:28]line СНО: Общий режим [04:32:28]line Чек 33 28.07.2024 04:32 [04:32:28]line Смена: 13 ФФД: 1.0 [04:32:28]line ЗНМ: 0300000161 [04:32:28]line РНМ: 0000000000189667 [04:32:28]line Версия ККМ: v1.0 [04:32:28]line ФД осн.: 1966 [04:32:28]line ФМ осн.: 0000000002094248 [04:32:28]line ФМ: 0000000002094248 [04:32:28]line ФД: 1982 [04:32:28]line ФПД: 59238345573852 [04:32:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T043230&type=2&operation_type=1&fn_number=0000000002094248&fd_number=1982&fm=59238345573852&tin=02508201610067®Number=0000000000189667&sum=14000 [04:32:28]line 1966 [04:32:28]OFD Sender: Processing packet 1982 [packets to send 1, broken 0] [04:32:28]ProducePacketName [04:32:28]name=ofd_packets/00001982 [04:32:28]OFD Sender: To server: pG, [04:32:28]CommunicateWithHost lk.salyk.kg:30040 [04:32:28]ConnectInit lk.salyk.kg [04:32:28]written 0, free lines is 4095 [04:32:28]Connected sock=10 [04:32:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 57 01 00 00 75 EA 4F 01 1A C9 5A 03 01 00 03 00 43 01 1E 04 01 00 02 23 04 79 00 8A 04 0D 00 34 36 32 30 30 31 36 33 30 33 32 36 39 06 04 35 00 D0 92 D0 BB D0 B0 D0 B6 D0 BD D0 B0 D1 8F 20 D1 82 D1 83 D0 B0 D0 BB D0 B5 D1 82 D0 BD D0 B0 D1 8F 20 D0 B1 D1 83 D0 BC D0 B0 D0 B3 D0 B0 20 38 30 20 56 4F 4B 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 21 00 00 00 F4 03 04 00 DE C9 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 27 04 04 00 AE 07 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 BE 07 00 00 35 04 06 00 35 E0 80 8B 85 DC A1 6E 53 E0 12 C8 7B CF [04:32:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 05 A4 47 00 B2 C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 BE 07 00 00 F4 03 04 00 4F 75 A5 66 B6 04 01 00 00 85 79 7E FB 79 5A B5 EF [04:32:29]CommunicateWithHost err = 0 [04:32:29]CheckOFDResponse [04:32:29]1017 (14) - 77093643461234 [04:32:29]1041 (16) - 0000000002094248 [04:32:29]1040 (4) - 1982 [04:32:29]1012 (4) - 27.07.2024 22:31 [04:32:29]1206 (1) - 0 [04:32:29]OFD Sender: Remove packet 1982 [04:32:29]ProducePacketName [04:32:29]name=ofd_packets/00001982 [04:32:29]NVStorageDeleteData [04:32:29]Write to MH i2c: 01 00 00 BD 36 F3 [04:32:29]Write i2c OK [04:32:29]MH_I2C_Read... [04:32:29]Read from MH i2c: 01 [04:32:29]MH_I2C_Read... [04:32:29]Read from MH i2c: 01 07 00 [04:32:29]MH_I2C_Read... [04:32:29]Read from MH i2c: 01 07 00 BD 36 00 00 00 00 00 08 0D 0F [04:32:29]RasterBufferAndPrint [04:32:29]line [04:32:29]line [04:32:29]line [04:32:29]line [04:32:29]line [04:32:29]written 0, free lines is 3346 [04:32:29]MH_Cut [04:32:29]Write to MH i2c: D1 01 00 C4 36 01 CC [04:32:29]Write i2c OK [04:32:29]MH_I2C_Read... [04:32:29]Read from MH i2c: D1 [04:32:29]MH_I2C_Read... [04:32:29]Read from MH i2c: D1 01 00 [04:32:29]MH_I2C_Read... [04:32:29]Read from MH i2c: D1 01 00 C4 36 00 CB [04:32:29]Write to MH i2c: 01 00 00 C5 36 FB [04:32:29]Write i2c OK [04:32:29]MH_I2C_Read... [04:32:29]OFD Sender: No OFD packet to send [04:32:29]*** Cut start [04:32:29]*** Partial cut [04:32:29]*** CUTSNS_PIN = 1 [04:32:30]*** CUTSNS_PIN = 0 [04:32:30]*** Brake cut motor [04:32:30]Read from MH i2c: 01 [04:32:30]MH_I2C_Read... [04:32:30]*** Stop cut motor [04:32:30]*** Cut end [04:32:30]Read from MH i2c: 01 07 00 [04:32:30]MH_I2C_Read... [04:32:30]Read from MH i2c: 01 07 00 C5 36 00 00 00 00 00 FF 0F 10 [04:32:30]process_action close_receipt done [04:32:30]requested_data is exist [04:32:30]produce_requested_data [04:32:30]requested_item fm.sn is exist - process it [04:32:30]wFMCommunicate request_size=4 [04:32:30]MH_SAM_APDU [04:32:30]CAPDU: 80 11 00 00 [04:32:30]Write to MH i2c: E2 08 00 C6 36 80 11 00 00 00 00 00 00 76 [04:32:30]Write i2c OK [04:32:30]MH_I2C_Read... [04:32:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:32:30]Read from MH i2c: E2 [04:32:30]MH_I2C_Read... [04:32:30]Read from MH i2c: E2 17 00 [04:32:30]MH_I2C_Read... [04:32:30]Read from MH i2c: E2 17 00 C6 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 C6 [04:32:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [04:32:30]wFMCommunicate OK [04:32:30]requested_item fd.num is exist - process it [04:32:30]SAM_PROTO_GetFieldsCounters [04:32:30]wFMCommunicate request_size=4 [04:32:30]MH_SAM_APDU [04:32:30]CAPDU: 80 13 00 00 [04:32:30]Write to MH i2c: E2 08 00 C7 36 80 13 00 00 00 00 00 00 79 [04:32:30]Write i2c OK [04:32:30]MH_I2C_Read... [04:32:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:32:30]Read from MH i2c: E2 [04:32:30]MH_I2C_Read... [04:32:30]Read from MH i2c: E2 62 00 [04:32:30]MH_I2C_Read... [04:32:30]Read from MH i2c: E2 62 00 C7 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 BE 07 00 00 0E 04 04 00 0D 00 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 D8 [04:32:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 BE 07 00 00 0E 04 04 00 0D 00 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 [04:32:30]wFMCommunicate OK [04:32:30]SAM_PROTO_GetFieldsCounters done [04:32:30]requested_item shift.num is exist - process it [04:32:30]requested_item shift.opened is exist - process it [04:32:30]req_shift_opened [04:32:30]FM_GetShiftState [04:32:30]SAM_PROTO_GetShiftState [04:32:30]wFMCommunicate request_size=4 [04:32:30]MH_SAM_APDU [04:32:30]CAPDU: 80 13 01 00 [04:32:30]Write to MH i2c: E2 08 00 C8 36 80 13 01 00 00 00 00 00 7B [04:32:30]Write i2c OK [04:32:30]MH_I2C_Read... [04:32:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:32:30]Read from MH i2c: E2 [04:32:30]MH_I2C_Read... [04:32:30]Read from MH i2c: E2 0E 00 [04:32:30]MH_I2C_Read... [04:32:30]Read from MH i2c: E2 0E 00 C8 36 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 6F [04:32:30]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [04:32:30]wFMCommunicate OK [04:32:30]SAM_PROTO_GetShiftState done [04:32:30]FM_GetShiftState done [04:32:30]req_shift_opened done [04:32:30]requested_item shift.open_date is exist - process it [04:32:30]req_shift_open_date [04:32:30]req_shift_open_date done [04:32:30]produce_requested_data done [04:32:30]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":1982,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [04:32:30]process_action_free close_receipt [04:32:30]json_value_free [04:32:30]json_value_free done [04:32:30]process_json_proto returns [04:32:30]Send response to host [04:32:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":1982,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [04:32:30]free response buf [04:32:30]execute_script done [04:32:30]execute_script returns [04:32:30]free content buf [04:32:30]Sock 8.Close socket [04:32:30]Sock 8.Thread stoped [04:32:34]OFD Sender: No OFD packet to send [04:32:39]OFD Sender: No OFD packet to send [04:32:44]OFD Sender: No OFD packet to send [04:32:49]OFD Sender: No OFD packet to send [04:32:54]OFD Sender: No OFD packet to send [04:32:59]OFD Sender: No OFD packet to send [04:33:04]OFD Sender: No OFD packet to send [04:33:09]OFD Sender: No OFD packet to send [04:33:14]OFD Sender: No OFD packet to send [04:33:19]OFD Sender: No OFD packet to send [04:33:24]OFD Sender: No OFD packet to send [04:33:29]OFD Sender: No OFD packet to send [04:33:34]OFD Sender: No OFD packet to send [04:33:39]OFD Sender: No OFD packet to send [04:33:44]OFD Sender: No OFD packet to send [04:33:49]OFD Sender: No OFD packet to send [04:33:54]OFD Sender: No OFD packet to send [04:33:59]OFD Sender: No OFD packet to send [04:34:04]OFD Sender: No OFD packet to send [04:34:09]OFD Sender: No OFD packet to send [04:34:14]OFD Sender: No OFD packet to send [04:34:19]OFD Sender: No OFD packet to send [04:34:24]OFD Sender: No OFD packet to send [04:34:29]OFD Sender: No OFD packet to send [04:34:34]OFD Sender: No OFD packet to send [04:34:39]OFD Sender: No OFD packet to send [04:34:44]OFD Sender: No OFD packet to send [04:34:49]OFD Sender: No OFD packet to send [04:34:54]OFD Sender: No OFD packet to send [04:34:59]OFD Sender: No OFD packet to send [04:35:04]OFD Sender: No OFD packet to send [04:35:09]OFD Sender: No OFD packet to send [04:35:14]OFD Sender: No OFD packet to send [04:35:19]OFD Sender: No OFD packet to send [04:35:24]OFD Sender: No OFD packet to send [04:35:29]OFD Sender: No OFD packet to send [04:35:34]OFD Sender: No OFD packet to send [04:35:39]OFD Sender: No OFD packet to send [04:35:44]OFD Sender: No OFD packet to send [04:35:49]OFD Sender: No OFD packet to send [04:35:54]OFD Sender: No OFD packet to send [04:35:59]OFD Sender: No OFD packet to send [04:36:04]OFD Sender: No OFD packet to send [04:36:09]OFD Sender: No OFD packet to send [04:36:14]OFD Sender: No OFD packet to send [04:36:19]OFD Sender: No OFD packet to send [04:36:24]OFD Sender: No OFD packet to send [04:36:29]OFD Sender: No OFD packet to send [04:36:34]OFD Sender: No OFD packet to send [04:36:39]OFD Sender: No OFD packet to send [04:36:44]OFD Sender: No OFD packet to send [04:36:49]OFD Sender: No OFD packet to send [04:36:54]OFD Sender: No OFD packet to send [04:36:59]OFD Sender: No OFD packet to send [04:37:04]OFD Sender: No OFD packet to send [04:37:09]OFD Sender: No OFD packet to send [04:37:14]OFD Sender: No OFD packet to send [04:37:19]OFD Sender: No OFD packet to send [04:37:24]OFD Sender: No OFD packet to send [04:37:29]OFD Sender: No OFD packet to send [04:37:34]OFD Sender: No OFD packet to send [04:37:39]OFD Sender: No OFD packet to send [04:37:44]OFD Sender: No OFD packet to send [04:37:49]OFD Sender: No OFD packet to send [04:37:54]OFD Sender: No OFD packet to send [04:37:59]OFD Sender: No OFD packet to send [04:38:04]OFD Sender: No OFD packet to send [04:38:09]OFD Sender: No OFD packet to send [04:38:14]OFD Sender: No OFD packet to send [04:38:19]OFD Sender: No OFD packet to send [04:38:24]OFD Sender: No OFD packet to send [04:38:29]OFD Sender: No OFD packet to send [04:38:34]OFD Sender: No OFD packet to send [04:38:39]OFD Sender: No OFD packet to send [04:38:44]OFD Sender: No OFD packet to send [04:38:49]OFD Sender: No OFD packet to send [04:38:55]OFD Sender: No OFD packet to send [04:39:00]OFD Sender: No OFD packet to send [04:39:05]OFD Sender: No OFD packet to send [04:39:10]OFD Sender: No OFD packet to send [04:39:15]OFD Sender: No OFD packet to send [04:39:20]OFD Sender: No OFD packet to send [04:39:25]OFD Sender: No OFD packet to send [04:39:30]OFD Sender: No OFD packet to send [04:39:35]OFD Sender: No OFD packet to send [04:39:40]OFD Sender: No OFD packet to send [04:39:45]OFD Sender: No OFD packet to send [04:39:50]OFD Sender: No OFD packet to send [04:39:55]OFD Sender: No OFD packet to send [04:40:00]OFD Sender: No OFD packet to send [04:40:05]OFD Sender: No OFD packet to send [04:40:10]OFD Sender: No OFD packet to send [04:40:15]OFD Sender: No OFD packet to send [04:40:20]OFD Sender: No OFD packet to send [04:40:25]OFD Sender: No OFD packet to send [04:40:30]OFD Sender: No OFD packet to send [04:40:35]OFD Sender: No OFD packet to send [04:40:40]OFD Sender: No OFD packet to send [04:40:45]OFD Sender: No OFD packet to send [04:40:50]OFD Sender: No OFD packet to send [04:40:55]OFD Sender: No OFD packet to send [04:41:00]OFD Sender: No OFD packet to send [04:41:05]OFD Sender: No OFD packet to send [04:41:10]OFD Sender: No OFD packet to send [04:41:15]OFD Sender: No OFD packet to send [04:41:20]OFD Sender: No OFD packet to send [04:41:25]OFD Sender: No OFD packet to send [04:41:30]OFD Sender: No OFD packet to send [04:41:35]OFD Sender: No OFD packet to send [04:41:40]OFD Sender: No OFD packet to send [04:41:45]OFD Sender: No OFD packet to send [04:41:50]OFD Sender: No OFD packet to send [04:41:55]OFD Sender: No OFD packet to send [04:42:00]OFD Sender: No OFD packet to send [04:42:05]OFD Sender: No OFD packet to send [04:42:10]OFD Sender: No OFD packet to send [04:42:15]OFD Sender: No OFD packet to send [04:42:20]OFD Sender: No OFD packet to send [04:42:25]OFD Sender: No OFD packet to send [04:42:30]OFD Sender: No OFD packet to send [04:42:35]OFD Sender: No OFD packet to send [04:42:40]OFD Sender: No OFD packet to send [04:42:45]OFD Sender: No OFD packet to send [04:42:50]OFD Sender: No OFD packet to send [04:42:55]OFD Sender: No OFD packet to send [04:43:00]OFD Sender: No OFD packet to send [04:43:05]OFD Sender: No OFD packet to send [04:43:10]OFD Sender: No OFD packet to send [04:43:15]OFD Sender: No OFD packet to send [04:43:20]OFD Sender: No OFD packet to send [04:43:25]OFD Sender: No OFD packet to send [04:43:30]OFD Sender: No OFD packet to send [04:43:35]OFD Sender: No OFD packet to send [04:43:40]OFD Sender: No OFD packet to send [04:43:45]OFD Sender: No OFD packet to send [04:43:50]OFD Sender: No OFD packet to send [04:43:55]OFD Sender: No OFD packet to send [04:44:00]OFD Sender: No OFD packet to send [04:44:05]OFD Sender: No OFD packet to send [04:44:10]OFD Sender: No OFD packet to send [04:44:15]OFD Sender: No OFD packet to send [04:44:20]OFD Sender: No OFD packet to send [04:44:25]OFD Sender: No OFD packet to send [04:44:30]OFD Sender: No OFD packet to send [04:44:35]OFD Sender: No OFD packet to send [04:44:40]OFD Sender: No OFD packet to send [04:44:45]OFD Sender: No OFD packet to send [04:44:50]OFD Sender: No OFD packet to send [04:44:55]OFD Sender: No OFD packet to send [04:45:00]OFD Sender: No OFD packet to send [04:45:05]OFD Sender: No OFD packet to send [04:45:10]OFD Sender: No OFD packet to send [04:45:15]OFD Sender: No OFD packet to send [04:45:20]OFD Sender: No OFD packet to send [04:45:25]OFD Sender: No OFD packet to send [04:45:30]OFD Sender: No OFD packet to send [04:45:35]OFD Sender: No OFD packet to send [04:45:40]OFD Sender: No OFD packet to send [04:45:45]OFD Sender: No OFD packet to send [04:45:50]OFD Sender: No OFD packet to send [04:45:55]OFD Sender: No OFD packet to send [04:46:00]OFD Sender: No OFD packet to send [04:46:05]OFD Sender: No OFD packet to send [04:46:10]OFD Sender: No OFD packet to send [04:46:15]OFD Sender: No OFD packet to send [04:46:20]OFD Sender: No OFD packet to send [04:46:25]OFD Sender: No OFD packet to send [04:46:30]OFD Sender: No OFD packet to send [04:46:35]OFD Sender: No OFD packet to send [04:46:40]OFD Sender: No OFD packet to send [04:46:45]OFD Sender: No OFD packet to send [04:46:50]OFD Sender: No OFD packet to send [04:46:55]OFD Sender: No OFD packet to send [04:47:00]OFD Sender: No OFD packet to send [04:47:05]OFD Sender: No OFD packet to send [04:47:10]OFD Sender: No OFD packet to send [04:47:15]OFD Sender: No OFD packet to send [04:47:20]OFD Sender: No OFD packet to send [04:47:25]OFD Sender: No OFD packet to send [04:47:30]OFD Sender: No OFD packet to send [04:47:35]OFD Sender: No OFD packet to send [04:47:40]OFD Sender: No OFD packet to send [04:47:45]OFD Sender: No OFD packet to send [04:47:50]OFD Sender: No OFD packet to send [04:47:55]OFD Sender: No OFD packet to send [04:48:00]OFD Sender: No OFD packet to send [04:48:05]OFD Sender: No OFD packet to send [04:48:10]OFD Sender: No OFD packet to send [04:48:15]OFD Sender: No OFD packet to send [04:48:20]OFD Sender: No OFD packet to send [04:48:25]OFD Sender: No OFD packet to send [04:48:30]OFD Sender: No OFD packet to send [04:48:35]OFD Sender: No OFD packet to send [04:48:40]OFD Sender: No OFD packet to send [04:48:45]OFD Sender: No OFD packet to send [04:48:50]OFD Sender: No OFD packet to send [04:48:55]OFD Sender: No OFD packet to send [04:49:00]OFD Sender: No OFD packet to send [04:49:05]OFD Sender: No OFD packet to send [04:49:10]OFD Sender: No OFD packet to send [04:49:15]OFD Sender: No OFD packet to send [04:49:20]OFD Sender: No OFD packet to send [04:49:25]OFD Sender: No OFD packet to send [04:49:30]OFD Sender: No OFD packet to send [04:49:35]OFD Sender: No OFD packet to send [04:49:40]OFD Sender: No OFD packet to send [04:49:45]OFD Sender: No OFD packet to send [04:49:50]OFD Sender: No OFD packet to send [04:49:55]OFD Sender: No OFD packet to send [04:50:00]OFD Sender: No OFD packet to send [04:50:05]OFD Sender: No OFD packet to send [04:50:10]OFD Sender: No OFD packet to send [04:50:15]OFD Sender: No OFD packet to send [04:50:20]OFD Sender: No OFD packet to send [04:50:25]OFD Sender: No OFD packet to send [04:50:30]OFD Sender: No OFD packet to send [04:50:35]OFD Sender: No OFD packet to send [04:50:40]OFD Sender: No OFD packet to send [04:50:45]OFD Sender: No OFD packet to send [04:50:50]OFD Sender: No OFD packet to send [04:50:55]OFD Sender: No OFD packet to send [04:51:00]OFD Sender: No OFD packet to send [04:51:05]OFD Sender: No OFD packet to send [04:51:10]OFD Sender: No OFD packet to send [04:51:15]OFD Sender: No OFD packet to send [04:51:20]OFD Sender: No OFD packet to send [04:51:25]OFD Sender: No OFD packet to send [04:51:30]OFD Sender: No OFD packet to send [04:51:35]OFD Sender: No OFD packet to send [04:51:40]OFD Sender: No OFD packet to send [04:51:45]OFD Sender: No OFD packet to send [04:51:50]OFD Sender: No OFD packet to send [04:51:55]OFD Sender: No OFD packet to send [04:52:00]OFD Sender: No OFD packet to send [04:52:05]OFD Sender: No OFD packet to send [04:52:10]OFD Sender: No OFD packet to send [04:52:15]OFD Sender: No OFD packet to send [04:52:20]OFD Sender: No OFD packet to send [04:52:25]OFD Sender: No OFD packet to send [04:52:30]OFD Sender: No OFD packet to send [04:52:35]OFD Sender: No OFD packet to send [04:52:40]OFD Sender: No OFD packet to send [04:52:45]OFD Sender: No OFD packet to send [04:52:50]OFD Sender: No OFD packet to send [04:52:55]OFD Sender: No OFD packet to send [04:53:00]OFD Sender: No OFD packet to send [04:53:05]OFD Sender: No OFD packet to send [04:53:10]OFD Sender: No OFD packet to send [04:53:15]OFD Sender: No OFD packet to send [04:53:20]OFD Sender: No OFD packet to send [04:53:25]OFD Sender: No OFD packet to send [04:53:30]OFD Sender: No OFD packet to send [04:53:35]OFD Sender: No OFD packet to send [04:53:40]OFD Sender: No OFD packet to send [04:53:45]OFD Sender: No OFD packet to send [04:53:50]OFD Sender: No OFD packet to send [04:53:55]OFD Sender: No OFD packet to send [04:54:00]OFD Sender: No OFD packet to send [04:54:05]OFD Sender: No OFD packet to send [04:54:10]OFD Sender: No OFD packet to send [04:54:15]OFD Sender: No OFD packet to send [04:54:20]OFD Sender: No OFD packet to send [04:54:25]OFD Sender: No OFD packet to send [04:54:30]OFD Sender: No OFD packet to send [04:54:35]OFD Sender: No OFD packet to send [04:54:40]OFD Sender: No OFD packet to send [04:54:45]OFD Sender: No OFD packet to send [04:54:50]OFD Sender: No OFD packet to send [04:54:55]OFD Sender: No OFD packet to send [04:55:00]OFD Sender: No OFD packet to send [04:55:05]OFD Sender: No OFD packet to send [04:55:10]OFD Sender: No OFD packet to send [04:55:15]OFD Sender: No OFD packet to send [04:55:20]OFD Sender: No OFD packet to send [04:55:25]OFD Sender: No OFD packet to send [04:55:30]OFD Sender: No OFD packet to send [04:55:35]OFD Sender: No OFD packet to send [04:55:40]OFD Sender: No OFD packet to send [04:55:45]OFD Sender: No OFD packet to send [04:55:50]OFD Sender: No OFD packet to send [04:55:55]OFD Sender: No OFD packet to send [04:56:00]OFD Sender: No OFD packet to send [04:56:05]OFD Sender: No OFD packet to send [04:56:10]OFD Sender: No OFD packet to send [04:56:15]OFD Sender: No OFD packet to send [04:56:20]OFD Sender: No OFD packet to send [04:56:25]OFD Sender: No OFD packet to send [04:56:30]OFD Sender: No OFD packet to send [04:56:35]OFD Sender: No OFD packet to send [04:56:40]OFD Sender: No OFD packet to send [04:56:45]OFD Sender: No OFD packet to send [04:56:50]OFD Sender: No OFD packet to send [04:56:55]OFD Sender: No OFD packet to send [04:57:00]OFD Sender: No OFD packet to send [04:57:05]OFD Sender: No OFD packet to send [04:57:10]OFD Sender: No OFD packet to send [04:57:15]OFD Sender: No OFD packet to send [04:57:20]OFD Sender: No OFD packet to send [04:57:25]OFD Sender: No OFD packet to send [04:57:30]OFD Sender: No OFD packet to send [04:57:35]OFD Sender: No OFD packet to send [04:57:40]OFD Sender: No OFD packet to send [04:57:45]OFD Sender: No OFD packet to send [04:57:50]OFD Sender: No OFD packet to send [04:57:55]OFD Sender: No OFD packet to send [04:58:00]OFD Sender: No OFD packet to send [04:58:05]OFD Sender: No OFD packet to send [04:58:10]OFD Sender: No OFD packet to send [04:58:15]OFD Sender: No OFD packet to send [04:58:20]OFD Sender: No OFD packet to send [04:58:25]OFD Sender: No OFD packet to send [04:58:30]OFD Sender: No OFD packet to send [04:58:35]OFD Sender: No OFD packet to send [04:58:40]OFD Sender: No OFD packet to send [04:58:45]OFD Sender: No OFD packet to send [04:58:50]OFD Sender: No OFD packet to send [04:58:55]OFD Sender: No OFD packet to send [04:59:00]OFD Sender: No OFD packet to send [04:59:05]OFD Sender: No OFD packet to send [04:59:10]OFD Sender: No OFD packet to send [04:59:15]OFD Sender: No OFD packet to send [04:59:20]OFD Sender: No OFD packet to send [04:59:25]OFD Sender: No OFD packet to send [04:59:30]OFD Sender: No OFD packet to send [04:59:35]OFD Sender: No OFD packet to send [04:59:40]OFD Sender: No OFD packet to send [04:59:45]OFD Sender: No OFD packet to send [04:59:50]OFD Sender: No OFD packet to send [04:59:55]OFD Sender: No OFD packet to send [05:00:00]OFD Sender: No OFD packet to send [05:00:05]OFD Sender: No OFD packet to send [05:00:10]OFD Sender: No OFD packet to send [05:00:15]OFD Sender: No OFD packet to send [05:00:20]OFD Sender: No OFD packet to send [05:00:25]OFD Sender: No OFD packet to send [05:00:30]OFD Sender: No OFD packet to send [05:00:35]OFD Sender: No OFD packet to send [05:00:40]OFD Sender: No OFD packet to send [05:00:45]OFD Sender: No OFD packet to send [05:00:50]OFD Sender: No OFD packet to send [05:00:55]OFD Sender: No OFD packet to send [05:01:01]OFD Sender: No OFD packet to send [05:01:06]OFD Sender: No OFD packet to send [05:01:11]OFD Sender: No OFD packet to send [05:01:16]OFD Sender: No OFD packet to send [05:01:21]OFD Sender: No OFD packet to send [05:01:26]OFD Sender: No OFD packet to send [05:01:31]OFD Sender: No OFD packet to send [05:01:36]OFD Sender: No OFD packet to send [05:01:41]OFD Sender: No OFD packet to send [05:01:46]OFD Sender: No OFD packet to send [05:01:51]OFD Sender: No OFD packet to send [05:01:56]OFD Sender: No OFD packet to send [05:02:01]OFD Sender: No OFD packet to send [05:02:06]OFD Sender: No OFD packet to send [05:02:11]OFD Sender: No OFD packet to send [05:02:16]OFD Sender: No OFD packet to send [05:02:21]OFD Sender: No OFD packet to send [05:02:26]OFD Sender: No OFD packet to send [05:02:31]OFD Sender: No OFD packet to send [05:02:36]OFD Sender: No OFD packet to send [05:02:41]OFD Sender: No OFD packet to send [05:02:46]OFD Sender: No OFD packet to send [05:02:51]OFD Sender: No OFD packet to send [05:02:56]OFD Sender: No OFD packet to send [05:03:01]OFD Sender: No OFD packet to send [05:03:06]OFD Sender: No OFD packet to send [05:03:11]OFD Sender: No OFD packet to send [05:03:16]OFD Sender: No OFD packet to send [05:03:21]OFD Sender: No OFD packet to send [05:03:26]OFD Sender: No OFD packet to send [05:03:31]OFD Sender: No OFD packet to send [05:03:36]OFD Sender: No OFD packet to send [05:03:41]OFD Sender: No OFD packet to send [05:03:46]OFD Sender: No OFD packet to send [05:03:51]OFD Sender: No OFD packet to send [05:03:56]OFD Sender: No OFD packet to send [05:04:01]OFD Sender: No OFD packet to send [05:04:06]OFD Sender: No OFD packet to send [05:04:11]OFD Sender: No OFD packet to send [05:04:16]OFD Sender: No OFD packet to send [05:04:21]OFD Sender: No OFD packet to send [05:04:21]accept exits with 9 [05:04:21]New connection [05:04:21]New thread 3067460964 created [05:04:21]Thread 3067317604 joined [05:04:21]Waiting for new connection... [05:04:21] Sock 9.Parse request [05:04:21]Sock 9.Check first char [05:04:21]Sock 9.First char is OK [05:04:21]request: POST /json_proto HTTP/1.0 [05:04:21]Method: POST [05:04:21]URL: /json_proto [05:04:21]Method is POST - this is cgi request [05:04:21]url: /json_proto [05:04:21]query_string will be loaded in cgi processing [05:04:21]execute_cgi json_proto POST (null) [05:04:21]execute_cgi path=json_proto method=POST [05:04:21]POST find Content-Length [05:04:21]Host: 172.17.45.132:8080 [05:04:21]Content-Length: 1576 [05:04:21]Content-Type: application/json [05:04:21] [05:04:21]POST finish read [05:04:21]Found Content-Length = 1576 [05:04:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126290", "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 }]} ,{ "code": "4700000480081", "name": "\u041F\u0418\u0412\u041E \u0421\u0412\u0415\u0422\u041B\u041E\u0415 \u0411\u0410\u0417\u0410\u041B\u041A\u041E\u0413\u041E\u041B\u042C\u041D\u041E\u0415 URBAN 312 0,", "price" : 107.00, "quantity" : 3.000, "sum" : 321.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4860111651159", "name": "\u041F\u0438\u0432\u043E \u0425\u0430\u0439\u043D\u0435\u043A\u0435\u043D 0,33\u043B \u0441\u0442", "price" : 175.00, "quantity" : 2.000, "sum" : 350.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" : 871.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:04:21]execute_script... [05:04:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126290", "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 }]} ,{ "code": "4700000480081", "name": "\u041F\u0418\u0412\u041E \u0421\u0412\u0415\u0422\u041B\u041E\u0415 \u0411\u0410\u0417\u0410\u041B\u041A\u041E\u0413\u041E\u041B\u042C\u041D\u041E\u0415 URBAN 312 0,", "price" : 107.00, "quantity" : 3.000, "sum" : 321.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4860111651159", "name": "\u041F\u0438\u0432\u043E \u0425\u0430\u0439\u043D\u0435\u043A\u0435\u043D 0,33\u043B \u0441\u0442", "price" : 175.00, "quantity" : 2.000, "sum" : 350.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" : 871.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:04:21]POST & json_proto [05:04:21]process_json_proto [05:04:21]json parsed OK: [05:04:21]protocol is kg_v1.0 [05:04:21]action value=close_receipt [05:04:21]process_action close_receipt [05:04:21]cmd_close_receipt [05:04:21]MH_GetDate [05:04:21]Write to MH i2c: F0 00 00 C9 36 EE [05:04:21]Write i2c OK [05:04:21]MH_I2C_Read... [05:04:21]Read from MH i2c: F0 [05:04:21]MH_I2C_Read... [05:04:21]Read from MH i2c: F0 09 00 [05:04:21]MH_I2C_Read... [05:04:21]Read from MH i2c: F0 09 00 C9 36 00 59 D1 A5 66 E3 0B 90 66 10 [05:04:21]GetLastDocTimeStamp 1722141150 [05:04:21]current date 1722143065 [05:04:21]FM_GetShiftState [05:04:21]SAM_PROTO_GetShiftState [05:04:21]wFMCommunicate request_size=4 [05:04:21]MH_SAM_APDU [05:04:21]CAPDU: 80 13 01 00 [05:04:21]Write to MH i2c: E2 08 00 CA 36 80 13 01 00 00 00 00 00 7D [05:04:21]Write i2c OK [05:04:21]MH_I2C_Read... [05:04:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:04:21]Read from MH i2c: E2 [05:04:21]MH_I2C_Read... [05:04:21]Read from MH i2c: E2 0E 00 [05:04:21]MH_I2C_Read... [05:04:21]Read from MH i2c: E2 0E 00 CA 36 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 71 [05:04:21]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [05:04:21]wFMCommunicate OK [05:04:21]SAM_PROTO_GetShiftState done [05:04:21]FM_GetShiftState done [05:04:21]opened in 1722125648 [05:04:21]opened+sec_in_day 1722212048 [05:04:21]quantity*price = 14000 [05:04:21]sum+1 = 14001 [05:04:21]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000480081 ПИВО СВЕТЛОЕ БАЗАЛКОГОЛЬНОЕ URBAN 312 0, 3.000 * 107.00 = 321.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4860111651159 Пиво Хайнекен 0,33л ст 2.000 * 175.00 = 350.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160792 Снек Курут классический (круглый) 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 871.00 НСП 1% : 7.71 НДС 12% : 92.50 Наличными: 871.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 34 28.07.2024 05:04 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 1983 ФПД: 104931596452754 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T050425&type=1&operation_type=1&fn_number=0000000002094248&fd_number=1983&fm=104931596452754&tin=02508201610067®Number=0000000000189667&sum=87100 0 [05:04:22]StoreToDocumentArchive [05:04:22]shift 13 fd 1983 [05:04:22]save to /storage/0013/doc_00001983 [05:04:22]save last doc name /storage/0013/doc_00001983 to /storage/kkm_last_doc_name [05:04:22]save OK [05:04:22]Clear old archive folders... [05:04:22]ProcessDocumentItem done err = 0, tmpTLVsize=652 [05:04:22]tlvbuf is 01F75CD0 [05:04:22]SAM_PROTO_ClearQueue [05:04:22]wFMCommunicate request_size=4 [05:04:22]MH_SAM_APDU [05:04:22]CAPDU: 80 09 00 00 [05:04:22]Write to MH i2c: E2 08 00 D7 36 80 09 00 00 00 00 00 00 7F [05:04:22]Write i2c OK [05:04:22]MH_I2C_Read... [05:04:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:04:22]Read from MH i2c: E2 [05:04:22]MH_I2C_Read... [05:04:22]Read from MH i2c: E2 03 00 [05:04:22]MH_I2C_Read... [05:04:22]Read from MH i2c: E2 03 00 D7 36 00 90 00 81 [05:04:22]RAPDU: 90 00 [05:04:22]wFMCommunicate OK [05:04:22]SAM_PROTO_ClearQueue done [05:04:22]KKMCreateOFDPacket [05:04:22]OFDProtocolAddRootSTLVToBuf [05:04:22]FM_MakeSignedData [05:04:22]FM_MakeSignedData [05:04:22]SAM_PROTO_SignData [05:04:22]wFMCommunicate request_size=4 [05:04:22]MH_SAM_APDU [05:04:22]CAPDU: 80 0D 01 02 [05:04:22]Write to MH i2c: E2 08 00 D8 36 80 0D 01 02 00 00 00 00 87 [05:04:22]Write i2c OK [05:04:22]MH_I2C_Read... [05:04:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:04:22]Read from MH i2c: E2 [05:04:22]MH_I2C_Read... [05:04:22]Read from MH i2c: E2 03 00 [05:04:22]MH_I2C_Read... [05:04:22]Read from MH i2c: E2 03 00 D8 36 00 90 00 82 [05:04:22]RAPDU: 90 00 [05:04:22]wFMCommunicate OK [05:04:22]wFMCommunicate request_size=255 [05:04:22]MH_SAM_APDU [05:04:22]CAPDU: 80 0D 02 02 FA 03 00 8C 02 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 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 38 31 06 04 41 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 D0 91 D0 90 D0 97 D0 90 D0 9B D0 9A D0 9E D0 93 D0 9E D0 9B D0 AC D0 9D D0 9E D0 95 20 55 52 42 41 4E 20 33 31 32 20 30 2C FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 64 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 [05:04:22]Write to MH i2c: E2 02 01 D9 36 80 0D 02 02 FA 00 03 00 8C 02 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 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 38 31 06 04 41 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 D0 91 D0 90 D0 97 D0 90 D0 9B D0 9A D0 9E D0 93 D0 9E D0 9B D0 AC D0 9D D0 9E D0 95 20 55 52 42 41 4E 20 33 31 32 20 30 2C FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 64 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 00 00 1A [05:04:22]Write i2c OK [05:04:22]MH_I2C_Read... [05:04:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:04:23]Read from MH i2c: E2 [05:04:23]MH_I2C_Read... [05:04:23]Read from MH i2c: E2 03 00 [05:04:23]MH_I2C_Read... [05:04:23]Read from MH i2c: E2 03 00 D9 36 00 90 00 83 [05:04:23]RAPDU: 90 00 [05:04:23]wFMCommunicate OK [05:04:23]wFMCommunicate request_size=255 [05:04:23]MH_SAM_APDU [05:04:23]CAPDU: 80 0D 02 02 FA 04 69 00 8A 04 0D 00 34 38 36 30 31 31 31 36 35 31 31 35 39 06 04 25 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 A5 D0 B0 D0 B9 D0 BD D0 B5 D0 BA D0 B5 D0 BD 20 30 2C 33 33 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 B8 88 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 3C 54 01 00 00 [05:04:23]Write to MH i2c: E2 02 01 DA 36 80 0D 02 02 FA 00 04 69 00 8A 04 0D 00 34 38 36 30 31 31 31 36 35 31 31 35 39 06 04 25 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 A5 D0 B0 D0 B9 D0 BD D0 B5 D0 BA D0 B5 D0 BD 20 30 2C 33 33 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 B8 88 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 3C 54 01 00 00 00 00 9E [05:04:23]Write i2c OK [05:04:23]MH_I2C_Read... [05:04:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:04:23]Read from MH i2c: E2 [05:04:23]MH_I2C_Read... [05:04:23]Read from MH i2c: E2 03 00 [05:04:23]MH_I2C_Read... [05:04:23]Read from MH i2c: E2 03 00 DA 36 00 90 00 84 [05:04:23]RAPDU: 90 00 [05:04:23]wFMCommunicate OK [05:04:23]wFMCommunicate request_size=161 [05:04:23]MH_SAM_APDU [05:04:23]CAPDU: 80 0D 02 02 9C 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 24 00 00 00 00 07 04 06 00 3C 54 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 59 D1 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 BF 07 00 00 35 04 06 00 5F 6F 4A 88 43 92 [05:04:23]Write to MH i2c: E2 A4 00 DB 36 80 0D 02 02 9C 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 24 00 00 00 00 07 04 06 00 3C 54 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 59 D1 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 BF 07 00 00 35 04 06 00 5F 6F 4A 88 43 92 00 00 85 [05:04:23]Write i2c OK [05:04:23]MH_I2C_Read... [05:04:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:04:23]Read from MH i2c: E2 [05:04:23]MH_I2C_Read... [05:04:23]Read from MH i2c: E2 03 00 [05:04:23]MH_I2C_Read... [05:04:23]Read from MH i2c: E2 03 00 DB 36 00 90 00 85 [05:04:23]RAPDU: 90 00 [05:04:23]wFMCommunicate OK [05:04:23]wFMCommunicate request_size=4 [05:04:23]MH_SAM_APDU [05:04:23]CAPDU: 80 0D 03 02 [05:04:23]Write to MH i2c: E2 08 00 DC 36 80 0D 03 02 00 00 00 00 8D [05:04:23]Write i2c OK [05:04:23]MH_I2C_Read... [05:04:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:04:23]Read from MH i2c: E2 [05:04:23]MH_I2C_Read... [05:04:23]Read from MH i2c: E2 0B 00 [05:04:23]MH_I2C_Read... [05:04:23]Read from MH i2c: E2 0B 00 DC 36 00 3D 82 49 E5 1F 8F 68 39 90 00 CA [05:04:23]RAPDU: 3D 82 49 E5 1F 8F 68 39 90 00 [05:04:23]wFMCommunicate OK [05:04:23]SAM_PROTO_SignData done [05:04:23]FM_MakeSignedData done [05:04:23]CreateOFDProtocolMessage [05:04:23]wFMCommunicate request_size=4 [05:04:23]MH_SAM_APDU [05:04:23]CAPDU: 80 11 00 00 [05:04:23]Write to MH i2c: E2 08 00 DD 36 80 11 00 00 00 00 00 00 8D [05:04:23]Write i2c OK [05:04:23]MH_I2C_Read... [05:04:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:04:23]Read from MH i2c: E2 [05:04:23]MH_I2C_Read... [05:04:23]Read from MH i2c: E2 17 00 [05:04:23]MH_I2C_Read... [05:04:23]Read from MH i2c: E2 17 00 DD 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 DD [05:04:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [05:04:23]wFMCommunicate OK [05:04:23]CreateOFDProtocolMessage done [05:04:23]OFDSenderStorePacket 1983 [05:04:23]StoreOFDPacket docnum=1983 [05:04:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 A0 02 00 00 FE 9C 98 02 B6 B2 5A 03 01 00 03 00 8C 02 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 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 38 31 06 04 41 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 D0 91 D0 90 D0 97 D0 90 D0 9B D0 9A D0 9E D0 93 D0 9E D0 9B D0 AC D0 9D D0 9E D0 95 20 55 52 42 41 4E 20 33 31 32 20 30 2C FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 64 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 38 36 30 31 31 31 36 35 31 31 35 39 06 04 25 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 A5 D0 B0 D0 B9 D0 BD D0 B5 D0 BA D0 B5 D0 BD 20 30 2C 33 33 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 B8 88 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 3C 54 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 24 00 00 00 00 07 04 06 00 3C 54 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 59 D1 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 BF 07 00 00 35 04 06 00 5F 6F 4A 88 43 92 3D 82 49 E5 1F 8F 68 39 [05:04:23]CheckFolder [05:04:23]dirname=/storage/ofd_packets [05:04:23]CheckFolder done [05:04:23]ProducePacketName [05:04:23]name=ofd_packets/00001983 [05:04:23]NVStorageSaveData ofd_packets/00001983 [05:04:23]File name is /storage/ofd_packets/00001983 [05:04:23]Write 702 bytes [05:04:23]NVStorageSaveData done [05:04:23]OFDSenderStorePacket done [05:04:23]KKMCreateOFDPacket done [05:04:23]NVStorageSaveData kkm_last_timestamp [05:04:23]File name is /storage/kkm_last_timestamp [05:04:23]Write 4 bytes [05:04:23]NVStorageSaveData done [05:04:23]ExternCall_PrintAddStr [05:04:23]wPrintStart [05:04:23]Write to MH i2c: 01 00 00 DE 36 14 [05:04:23]Write i2c OK [05:04:23]MH_I2C_Read... [05:04:23]Read from MH i2c: 01 [05:04:23]MH_I2C_Read... [05:04:23]Read from MH i2c: 01 07 00 [05:04:23]MH_I2C_Read... [05:04:23]Read from MH i2c: 01 07 00 DE 36 00 00 00 00 00 FF 0F 29 [05:04:23]RasterBufferAndPrint [05:04:23]line Счет N : (3)126290 [05:04:23]line ИНН: 02508201610067 [05:04:23]line Контрольно-Кассовый Чек [05:04:23]line ПРОДАЖА [05:04:23]line Товар: 48743570 [05:04:23]line Сигареты Winston XStyle Blue [05:04:23]line 1.000 * 140.00 [05:04:23]line = 140.00 [05:04:23]line НДС 12% НСП 1% [05:04:23]line > о реализуемом товаре [05:04:23]line Товар: 4700000480081 [05:04:23]line ПИВО СВЕТЛОЕ БАЗАЛКОГОЛЬНОЕ URBAN 312 0, [05:04:23]line 3.000 * 107.00 [05:04:23]line = 321.00 [05:04:23]line НДС 12% НСП 1% [05:04:23]line > о реализуемом товаре [05:04:23]line Товар: 4860111651159 [05:04:23]line Пиво Хайнекен 0,33л ст [05:04:23]line 2.000 * 175.00 [05:04:23]line = 350.00 [05:04:23]line НДС 12% НСП 1% [05:04:23]line > о реализуемом товаре [05:04:23]line Товар: 4700000160792 [05:04:23]line Снек Курут классический (круглый) [05:04:23]line 1.000 * 60.00 [05:04:23]line = 60.00 [05:04:23]line НДС 12% НСП 1% [05:04:23]line > о реализуемом товаре [05:04:23]line ИТОГО: 871.00 [05:04:23]line НСП 1% : 7.71 [05:04:23]line НДС 12% : 92.50 [05:04:23]line Наличными: 871.00 [05:04:23]line Безнал.: 0.00 [05:04:23]line Место: АЗС № 127 "Партнер Нефть" [05:04:23]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [05:04:23]line СНО: Общий режим [05:04:23]line Чек 34 28.07.2024 05:04 [05:04:23]line Смена: 13 ФФД: 1.0 [05:04:23]line ЗНМ: 0300000161 [05:04:23]line РНМ: 0000000000189667 [05:04:23]line Версия ККМ: v1.0 [05:04:23]line ФМ: 0000000002094248 [05:04:23]line ФД: 1983 [05:04:23]line ФПД: 104931596452754 [05:04:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T050425&type=1&operation_type=1&fn_number=0000000002094248&fd_number=1983&fm=104931596452754&tin=02508201610067®Number=0000000000189667&sum=87100 [05:04:23]line 0 [05:04:23]OFD Sender: Processing packet 1983 [packets to send 1, broken 0] [05:04:23]ProducePacketName [05:04:23]name=ofd_packets/00001983 [05:04:23]OFD Sender: To server: pG, [05:04:23]CommunicateWithHost lk.salyk.kg:30040 [05:04:23]ConnectInit lk.salyk.kg [05:04:23]written 0, free lines is 4095 [05:04:24]Connected sock=10 [05:04:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 A0 02 00 00 FE 9C 98 02 B6 B2 5A 03 01 00 03 00 8C 02 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 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 38 31 06 04 41 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 D0 91 D0 90 D0 97 D0 90 D0 9B D0 9A D0 9E D0 93 D0 9E D0 9B D0 AC D0 9D D0 9E D0 95 20 55 52 42 41 4E 20 33 31 32 20 30 2C FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 64 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 38 36 30 31 31 31 36 35 31 31 35 39 06 04 25 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 A5 D0 B0 D0 B9 D0 BD D0 B5 D0 BA D0 B5 D0 BD 20 30 2C 33 33 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 B8 88 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 3C 54 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 24 00 00 00 00 07 04 06 00 3C 54 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 59 D1 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 BF 07 00 00 35 04 06 00 5F 6F 4A 88 43 92 3D 82 49 E5 1F 8F 68 39 [05:04:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 4B 2C 47 00 84 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 32 30 39 34 32 34 38 10 04 04 00 BF 07 00 00 F4 03 04 00 CA 7C A5 66 B6 04 01 00 00 9F BD D9 D8 0D 86 F4 19 [05:04:24]CommunicateWithHost err = 0 [05:04:24]CheckOFDResponse [05:04:24]1017 (14) - 77093643461234 [05:04:24]1041 (16) - 0000000002094248 [05:04:24]1040 (4) - 1983 [05:04:24]1012 (4) - 27.07.2024 23:03 [05:04:24]1206 (1) - 0 [05:04:24]OFD Sender: Remove packet 1983 [05:04:24]ProducePacketName [05:04:24]name=ofd_packets/00001983 [05:04:24]NVStorageDeleteData [05:04:24]Write to MH i2c: 01 00 00 1A 37 51 [05:04:24]Write i2c OK [05:04:24]MH_I2C_Read... [05:04:24]Read from MH i2c: 01 [05:04:24]MH_I2C_Read... [05:04:24]Read from MH i2c: 01 07 00 [05:04:24]MH_I2C_Read... [05:04:24]Read from MH i2c: 01 07 00 1A 37 00 00 00 00 00 34 0C 98 [05:04:24]RasterBufferAndPrint [05:04:24]line [05:04:24]line [05:04:24]line [05:04:24]line [05:04:24]line [05:04:24]written 0, free lines is 3133 [05:04:24]MH_Cut [05:04:24]Write to MH i2c: D1 01 00 21 37 01 2A [05:04:24]Write i2c OK [05:04:24]MH_I2C_Read... [05:04:24]Read from MH i2c: D1 [05:04:24]MH_I2C_Read... [05:04:24]Read from MH i2c: D1 01 00 [05:04:24]MH_I2C_Read... [05:04:24]Read from MH i2c: D1 01 00 21 37 00 29 [05:04:24]Write to MH i2c: 01 00 00 22 37 59 [05:04:24]Write i2c OK [05:04:24]MH_I2C_Read... [05:04:24]OFD Sender: No OFD packet to send [05:04:25]*** Cut start [05:04:25]*** Partial cut [05:04:25]*** CUTSNS_PIN = 1 [05:04:25]*** CUTSNS_PIN = 0 [05:04:25]*** Brake cut motor [05:04:26]Read from MH i2c: 01 [05:04:26]MH_I2C_Read... [05:04:26]*** Stop cut motor [05:04:26]*** Cut end [05:04:26]Read from MH i2c: 01 07 00 [05:04:26]MH_I2C_Read... [05:04:26]Read from MH i2c: 01 07 00 22 37 00 00 00 00 00 FF 0F 6E [05:04:26]process_action close_receipt done [05:04:26]requested_data is exist [05:04:26]produce_requested_data [05:04:26]requested_item fm.sn is exist - process it [05:04:26]wFMCommunicate request_size=4 [05:04:26]MH_SAM_APDU [05:04:26]CAPDU: 80 11 00 00 [05:04:26]Write to MH i2c: E2 08 00 23 37 80 11 00 00 00 00 00 00 D4 [05:04:26]Write i2c OK [05:04:26]MH_I2C_Read... [05:04:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:04:26]Read from MH i2c: E2 [05:04:26]MH_I2C_Read... [05:04:26]Read from MH i2c: E2 17 00 [05:04:26]MH_I2C_Read... [05:04:26]Read from MH i2c: E2 17 00 23 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 24 [05:04:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [05:04:26]wFMCommunicate OK [05:04:26]requested_item fd.num is exist - process it [05:04:26]SAM_PROTO_GetFieldsCounters [05:04:26]wFMCommunicate request_size=4 [05:04:26]MH_SAM_APDU [05:04:26]CAPDU: 80 13 00 00 [05:04:26]Write to MH i2c: E2 08 00 24 37 80 13 00 00 00 00 00 00 D7 [05:04:26]Write i2c OK [05:04:26]MH_I2C_Read... [05:04:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:04:26]Read from MH i2c: E2 [05:04:26]MH_I2C_Read... [05:04:26]Read from MH i2c: E2 62 00 [05:04:26]MH_I2C_Read... [05:04:26]Read from MH i2c: E2 62 00 24 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 BF 07 00 00 0E 04 04 00 0D 00 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 3A [05:04:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 BF 07 00 00 0E 04 04 00 0D 00 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 [05:04:26]wFMCommunicate OK [05:04:26]SAM_PROTO_GetFieldsCounters done [05:04:26]requested_item shift.num is exist - process it [05:04:26]requested_item shift.opened is exist - process it [05:04:26]req_shift_opened [05:04:26]FM_GetShiftState [05:04:26]SAM_PROTO_GetShiftState [05:04:26]wFMCommunicate request_size=4 [05:04:26]MH_SAM_APDU [05:04:26]CAPDU: 80 13 01 00 [05:04:26]Write to MH i2c: E2 08 00 25 37 80 13 01 00 00 00 00 00 D9 [05:04:26]Write i2c OK [05:04:26]MH_I2C_Read... [05:04:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:04:26]Read from MH i2c: E2 [05:04:26]MH_I2C_Read... [05:04:26]Read from MH i2c: E2 0E 00 [05:04:26]MH_I2C_Read... [05:04:26]Read from MH i2c: E2 0E 00 25 37 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 CD [05:04:26]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [05:04:26]wFMCommunicate OK [05:04:26]SAM_PROTO_GetShiftState done [05:04:26]FM_GetShiftState done [05:04:26]req_shift_opened done [05:04:26]requested_item shift.open_date is exist - process it [05:04:26]req_shift_open_date [05:04:26]req_shift_open_date done [05:04:26]produce_requested_data done [05:04:26]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":1983,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [05:04:26]process_action_free close_receipt [05:04:26]json_value_free [05:04:26]json_value_free done [05:04:26]process_json_proto returns [05:04:26]Send response to host [05:04:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":1983,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [05:04:26]free response buf [05:04:26]execute_script done [05:04:26]execute_script returns [05:04:26]free content buf [05:04:26]Sock 9.Close socket [05:04:26]Sock 9.Thread stoped [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:55]OFD Sender: No OFD packet to send [05:08:00]OFD Sender: No OFD packet to send [05:08:05]OFD Sender: No OFD packet to send [05:08:10]OFD Sender: No OFD packet to send [05:08:15]OFD Sender: No OFD packet to send [05:08:20]OFD Sender: No OFD packet to send [05:08:25]OFD Sender: No OFD packet to send [05:08:30]OFD Sender: No OFD packet to send [05:08:35]OFD Sender: No OFD packet to send [05:08:40]OFD Sender: No OFD packet to send [05:08:45]OFD Sender: No OFD packet to send [05:08:50]OFD Sender: No OFD packet to send [05:08:55]OFD Sender: No OFD packet to send [05:09:00]OFD Sender: No OFD packet to send [05:09:05]OFD Sender: No OFD packet to send [05:09:10]OFD Sender: No OFD packet to send [05:09:15]OFD Sender: No OFD packet to send [05:09:20]OFD Sender: No OFD packet to send [05:09:25]OFD Sender: No OFD packet to send [05:09:30]OFD Sender: No OFD packet to send [05:09:35]OFD Sender: No OFD packet to send [05:09:40]OFD Sender: No OFD packet to send [05:09:45]OFD Sender: No OFD packet to send [05:09:50]OFD Sender: No OFD packet to send [05:09:55]accept exits with 8 [05:09:55]New connection [05:09:55]New thread 3067317604 created [05:09:55]Thread 3067460964 joined [05:09:55]Waiting for new connection... [05:09:55] Sock 8.Parse request [05:09:55]Sock 8.Check first char [05:09:55]Sock 8.First char is OK [05:09:55]request: POST /json_proto HTTP/1.0 [05:09:55]Method: POST [05:09:55]URL: /json_proto [05:09:55]Method is POST - this is cgi request [05:09:55]url: /json_proto [05:09:55]query_string will be loaded in cgi processing [05:09:55]execute_cgi json_proto POST (null) [05:09:55]execute_cgi path=json_proto method=POST [05:09:55]POST find Content-Length [05:09:55]Host: 172.17.45.132:8080 [05:09:55]Content-Length: 1327 [05:09:55]Content-Type: application/json [05:09:55] [05:09:55]POST finish read [05:09:55]Found Content-Length = 1327 [05:09:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126291", "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" : 3.000, "sum" : 975.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" : 4.000, "sum" : 28.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ], "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" : 1143.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:09:55]execute_script... [05:09:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126291", "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" : 3.000, "sum" : 975.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" : 4.000, "sum" : 28.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ], "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" : 1143.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:09:55]POST & json_proto [05:09:55]process_json_proto [05:09:55]json parsed OK: [05:09:55]protocol is kg_v1.0 [05:09:55]action value=close_receipt [05:09:55]process_action close_receipt [05:09:55]cmd_close_receipt [05:09:55]MH_GetDate [05:09:55]Write to MH i2c: F0 00 00 26 37 4C [05:09:55]Write i2c OK [05:09:55]MH_I2C_Read... [05:09:55]Read from MH i2c: F0 [05:09:55]MH_I2C_Read... [05:09:55]Read from MH i2c: F0 09 00 [05:09:55]MH_I2C_Read... [05:09:55]Read from MH i2c: F0 09 00 26 37 00 A6 D2 A5 66 E3 0B 90 66 BC [05:09:55]GetLastDocTimeStamp 1722143065 [05:09:55]current date 1722143398 [05:09:55]FM_GetShiftState [05:09:55]SAM_PROTO_GetShiftState [05:09:55]wFMCommunicate request_size=4 [05:09:55]MH_SAM_APDU [05:09:55]CAPDU: 80 13 01 00 [05:09:55]Write to MH i2c: E2 08 00 27 37 80 13 01 00 00 00 00 00 DB [05:09:55]Write i2c OK [05:09:55]MH_I2C_Read... [05:09:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:09:55]Read from MH i2c: E2 [05:09:55]MH_I2C_Read... [05:09:55]Read from MH i2c: E2 0E 00 [05:09:55]MH_I2C_Read... [05:09:55]Read from MH i2c: E2 0E 00 27 37 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 CF [05:09:55]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [05:09:55]wFMCommunicate OK [05:09:55]SAM_PROTO_GetShiftState done [05:09:55]FM_GetShiftState done [05:09:55]opened in 1722125648 [05:09:55]opened+sec_in_day 1722212048 [05:09:55]quantity*price = 97500 [05:09:55]sum+1 = 97501 [05:09:55]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000053020015 Бумажные стаканы 250мл 1шт 4.000 * 7.00 = 28.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48747059 Сигареты Winston Legend Blue 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 1143.00 НСП 1% : 10.12 НДС 12% : 121.38 Наличными: 0.00 Безнал.: 1143.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 35 28.07.2024 05:09 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 1984 ФПД: 61444871025980 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T050959&type=1&operation_type=1&fn_number=0000000002094248&fd_number=1984&fm=61444871025980&tin=02508201610067®Number=0000000000189667&sum=114300 0 [05:09:56]StoreToDocumentArchive [05:09:56]shift 13 fd 1984 [05:09:56]save to /storage/0013/doc_00001984 [05:09:56]save last doc name /storage/0013/doc_00001984 to /storage/kkm_last_doc_name [05:09:56]save OK [05:09:56]Clear old archive folders... [05:09:56]ProcessDocumentItem done err = 0, tmpTLVsize=492 [05:09:56]tlvbuf is B6FD1A30 [05:09:56]SAM_PROTO_ClearQueue [05:09:56]wFMCommunicate request_size=4 [05:09:56]MH_SAM_APDU [05:09:56]CAPDU: 80 09 00 00 [05:09:56]Write to MH i2c: E2 08 00 34 37 80 09 00 00 00 00 00 00 DD [05:09:56]Write i2c OK [05:09:56]MH_I2C_Read... [05:09:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:09:56]Read from MH i2c: E2 [05:09:56]MH_I2C_Read... [05:09:56]Read from MH i2c: E2 03 00 [05:09:56]MH_I2C_Read... [05:09:56]Read from MH i2c: E2 03 00 34 37 00 90 00 DF [05:09:56]RAPDU: 90 00 [05:09:56]wFMCommunicate OK [05:09:56]SAM_PROTO_ClearQueue done [05:09:56]KKMCreateOFDPacket [05:09:56]OFDProtocolAddRootSTLVToBuf [05:09:56]FM_MakeSignedData [05:09:56]FM_MakeSignedData [05:09:56]SAM_PROTO_SignData [05:09:56]wFMCommunicate request_size=4 [05:09:56]MH_SAM_APDU [05:09:56]CAPDU: 80 0D 01 02 [05:09:56]Write to MH i2c: E2 08 00 35 37 80 0D 01 02 00 00 00 00 E5 [05:09:56]Write i2c OK [05:09:56]MH_I2C_Read... [05:09:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:09:56]Read from MH i2c: E2 [05:09:56]MH_I2C_Read... [05:09:56]Read from MH i2c: E2 03 00 [05:09:56]MH_I2C_Read... [05:09:56]Read from MH i2c: E2 03 00 35 37 00 90 00 E0 [05:09:56]RAPDU: 90 00 [05:09:56]wFMCommunicate OK [05:09:56]wFMCommunicate request_size=255 [05:09:56]MH_SAM_APDU [05:09:56]CAPDU: 80 0D 02 02 FA 03 00 EC 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 B8 0B 00 00 00 00 00 37 04 06 00 F4 7E 00 00 00 00 13 04 06 00 DC 7C 01 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 A0 0F 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 F0 0A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 [05:09:56]Write to MH i2c: E2 02 01 36 37 80 0D 02 02 FA 00 03 00 EC 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 B8 0B 00 00 00 00 00 37 04 06 00 F4 7E 00 00 00 00 13 04 06 00 DC 7C 01 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 A0 0F 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 F0 0A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 00 00 AA [05:09:56]Write i2c OK [05:09:56]MH_I2C_Read... [05:09:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:09:56]Read from MH i2c: E2 [05:09:56]MH_I2C_Read... [05:09:56]Read from MH i2c: E2 03 00 [05:09:56]MH_I2C_Read... [05:09:56]Read from MH i2c: E2 03 00 36 37 00 90 00 E1 [05:09:56]RAPDU: 90 00 [05:09:56]wFMCommunicate OK [05:09:56]wFMCommunicate request_size=251 [05:09:56]MH_SAM_APDU [05:09:56]CAPDU: 80 0D 02 02 F6 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 7C BE 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 2F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C BE 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 A7 D2 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C0 07 00 00 35 04 06 00 37 E2 3F B5 F5 3C [05:09:56]Write to MH i2c: E2 FE 00 37 37 80 0D 02 02 F6 00 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 7C BE 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 2F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C BE 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 A7 D2 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C0 07 00 00 35 04 06 00 37 E2 3F B5 F5 3C 00 00 ED [05:09:56]Write i2c OK [05:09:56]MH_I2C_Read... [05:09:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:09:57]Read from MH i2c: E2 [05:09:57]MH_I2C_Read... [05:09:57]Read from MH i2c: E2 03 00 [05:09:57]MH_I2C_Read... [05:09:57]Read from MH i2c: E2 03 00 37 37 00 90 00 E2 [05:09:57]RAPDU: 90 00 [05:09:57]wFMCommunicate OK [05:09:57]wFMCommunicate request_size=4 [05:09:57]MH_SAM_APDU [05:09:57]CAPDU: 80 0D 03 02 [05:09:57]Write to MH i2c: E2 08 00 38 37 80 0D 03 02 00 00 00 00 EA [05:09:57]Write i2c OK [05:09:57]MH_I2C_Read... [05:09:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:09:57]Read from MH i2c: E2 [05:09:57]MH_I2C_Read... [05:09:57]Read from MH i2c: E2 0B 00 [05:09:57]MH_I2C_Read... [05:09:57]Read from MH i2c: E2 0B 00 38 37 00 F0 07 AC 22 44 81 C2 0C 90 00 43 [05:09:57]RAPDU: F0 07 AC 22 44 81 C2 0C 90 00 [05:09:57]wFMCommunicate OK [05:09:57]SAM_PROTO_SignData done [05:09:57]FM_MakeSignedData done [05:09:57]CreateOFDProtocolMessage [05:09:57]wFMCommunicate request_size=4 [05:09:57]MH_SAM_APDU [05:09:57]CAPDU: 80 11 00 00 [05:09:57]Write to MH i2c: E2 08 00 39 37 80 11 00 00 00 00 00 00 EA [05:09:57]Write i2c OK [05:09:57]MH_I2C_Read... [05:09:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:09:57]Read from MH i2c: E2 [05:09:57]MH_I2C_Read... [05:09:57]Read from MH i2c: E2 17 00 [05:09:57]MH_I2C_Read... [05:09:57]Read from MH i2c: E2 17 00 39 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 3A [05:09:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [05:09:57]wFMCommunicate OK [05:09:57]CreateOFDProtocolMessage done [05:09:57]OFDSenderStorePacket 1984 [05:09:57]StoreOFDPacket docnum=1984 [05:09:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 00 02 00 00 90 0E F8 01 60 24 5A 03 01 00 03 00 EC 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 B8 0B 00 00 00 00 00 37 04 06 00 F4 7E 00 00 00 00 13 04 06 00 DC 7C 01 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 A0 0F 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 F0 0A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 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 7C BE 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 2F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C BE 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 A7 D2 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C0 07 00 00 35 04 06 00 37 E2 3F B5 F5 3C F0 07 AC 22 44 81 C2 0C [05:09:57]CheckFolder [05:09:57]dirname=/storage/ofd_packets [05:09:57]CheckFolder done [05:09:57]ProducePacketName [05:09:57]name=ofd_packets/00001984 [05:09:57]NVStorageSaveData ofd_packets/00001984 [05:09:57]File name is /storage/ofd_packets/00001984 [05:09:57]Write 542 bytes [05:09:57]NVStorageSaveData done [05:09:57]OFDSenderStorePacket done [05:09:57]KKMCreateOFDPacket done [05:09:57]NVStorageSaveData kkm_last_timestamp [05:09:57]File name is /storage/kkm_last_timestamp [05:09:57]Write 4 bytes [05:09:57]NVStorageSaveData done [05:09:57]ExternCall_PrintAddStr [05:09:57]wPrintStart [05:09:57]Write to MH i2c: 01 00 00 3A 37 71 [05:09:57]Write i2c OK [05:09:57]MH_I2C_Read... [05:09:57]Read from MH i2c: 01 [05:09:57]MH_I2C_Read... [05:09:57]Read from MH i2c: 01 07 00 [05:09:57]MH_I2C_Read... [05:09:57]Read from MH i2c: 01 07 00 3A 37 00 00 00 00 00 FF 0F 86 [05:09:57]RasterBufferAndPrint [05:09:57]line Счет N : (3)126291 [05:09:57]line ИНН: 02508201610067 [05:09:57]line Контрольно-Кассовый Чек [05:09:57]line ПРОДАЖА [05:09:57]line Товар: 4700001610043 [05:09:57]line Пиво Арпа 1,5л ПЭТ [05:09:57]line 3.000 * 325.00 [05:09:57]line = 975.00 [05:09:57]line НДС 12% НСП 1% [05:09:57]line > о реализуемом товаре [05:09:57]line Товар: 2000053020015 [05:09:57]line Бумажные стаканы 250мл 1шт [05:09:57]line 4.000 * 7.00 [05:09:57]line = 28.00 [05:09:57]line НДС 12% НСП 1% [05:09:57]line > о реализуемом товаре [05:09:57]line Товар: 48747059 [05:09:57]line Сигареты Winston Legend Blue [05:09:57]line 1.000 * 140.00 [05:09:57]line = 140.00 [05:09:57]line НДС 12% НСП 1% [05:09:57]line > о реализуемом товаре [05:09:57]line ИТОГО: 1143.00 [05:09:57]line НСП 1% : 10.12 [05:09:57]line НДС 12% : 121.38 [05:09:57]line Наличными: 0.00 [05:09:57]line Безнал.: 1143.00 [05:09:57]line Место: АЗС № 127 "Партнер Нефть" [05:09:57]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [05:09:57]line СНО: Общий режим [05:09:57]line Чек 35 28.07.2024 05:09 [05:09:57]line Смена: 13 ФФД: 1.0 [05:09:57]line ЗНМ: 0300000161 [05:09:57]line РНМ: 0000000000189667 [05:09:57]line Версия ККМ: v1.0 [05:09:57]line Платежная система: O! деньги [05:09:57]line ФМ: 0000000002094248 [05:09:57]line ФД: 1984 [05:09:57]line ФПД: 61444871025980 [05:09:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T050959&type=1&operation_type=1&fn_number=0000000002094248&fd_number=1984&fm=61444871025980&tin=02508201610067®Number=0000000000189667&sum=114300 [05:09:57]line 0 [05:09:57]written 0, free lines is 4095 [05:09:57]OFD Sender: Processing packet 1984 [packets to send 1, broken 0] [05:09:57]ProducePacketName [05:09:57]name=ofd_packets/00001984 [05:09:57]OFD Sender: To server: pG, [05:09:57]CommunicateWithHost lk.salyk.kg:30040 [05:09:57]ConnectInit lk.salyk.kg [05:09:57]Connected sock=10 [05:09:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 00 02 00 00 90 0E F8 01 60 24 5A 03 01 00 03 00 EC 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 B8 0B 00 00 00 00 00 37 04 06 00 F4 7E 00 00 00 00 13 04 06 00 DC 7C 01 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 A0 0F 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 F0 0A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 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 7C BE 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 2F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C BE 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 A7 D2 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C0 07 00 00 35 04 06 00 37 E2 3F B5 F5 3C F0 07 AC 22 44 81 C2 0C [05:09:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 68 53 47 00 B9 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C0 07 00 00 F4 03 04 00 17 7E A5 66 B6 04 01 00 00 69 E0 6F A8 C5 27 71 D3 [05:09:57]CommunicateWithHost err = 0 [05:09:57]CheckOFDResponse [05:09:57]1017 (14) - 77093643461234 [05:09:57]1041 (16) - 0000000002094248 [05:09:57]1040 (4) - 1984 [05:09:57]1012 (4) - 27.07.2024 23:09 [05:09:57]1206 (1) - 0 [05:09:57]OFD Sender: Remove packet 1984 [05:09:57]ProducePacketName [05:09:57]name=ofd_packets/00001984 [05:09:57]NVStorageDeleteData [05:09:57]Write to MH i2c: 01 00 00 72 37 A9 [05:09:57]Write i2c OK [05:09:57]MH_I2C_Read... [05:09:57]Read from MH i2c: 01 [05:09:57]MH_I2C_Read... [05:09:57]Read from MH i2c: 01 07 00 [05:09:57]MH_I2C_Read... [05:09:57]Read from MH i2c: 01 07 00 72 37 00 00 00 00 00 30 0C EC [05:09:57]RasterBufferAndPrint [05:09:57]line [05:09:57]line [05:09:57]line [05:09:57]line [05:09:57]line [05:09:57]written 0, free lines is 3129 [05:09:57]MH_Cut [05:09:57]Write to MH i2c: D1 01 00 79 37 01 82 [05:09:57]Write i2c OK [05:09:57]MH_I2C_Read... [05:09:57]Read from MH i2c: D1 [05:09:57]MH_I2C_Read... [05:09:57]Read from MH i2c: D1 01 00 [05:09:57]MH_I2C_Read... [05:09:57]Read from MH i2c: D1 01 00 79 37 00 81 [05:09:57]Write to MH i2c: 01 00 00 7A 37 B1 [05:09:57]Write i2c OK [05:09:57]MH_I2C_Read... [05:09:58]OFD Sender: No OFD packet to send [05:09:58]*** Cut start [05:09:58]*** Partial cut [05:09:58]*** CUTSNS_PIN = 1 [05:09:58]*** CUTSNS_PIN = 0 [05:09:58]*** Brake cut motor [05:09:59]Read from MH i2c: 01 [05:09:59]MH_I2C_Read... [05:09:59]*** Stop cut motor [05:09:59]*** Cut end [05:09:59]Read from MH i2c: 01 07 00 [05:09:59]MH_I2C_Read... [05:09:59]Read from MH i2c: 01 07 00 7A 37 00 00 00 00 00 FF 0F C6 [05:09:59]process_action close_receipt done [05:09:59]requested_data is exist [05:09:59]produce_requested_data [05:09:59]requested_item fm.sn is exist - process it [05:09:59]wFMCommunicate request_size=4 [05:09:59]MH_SAM_APDU [05:09:59]CAPDU: 80 11 00 00 [05:09:59]Write to MH i2c: E2 08 00 7B 37 80 11 00 00 00 00 00 00 2C [05:09:59]Write i2c OK [05:09:59]MH_I2C_Read... [05:09:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:09:59]Read from MH i2c: E2 [05:09:59]MH_I2C_Read... [05:09:59]Read from MH i2c: E2 17 00 [05:09:59]MH_I2C_Read... [05:09:59]Read from MH i2c: E2 17 00 7B 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 7C [05:09:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [05:09:59]wFMCommunicate OK [05:09:59]requested_item fd.num is exist - process it [05:09:59]SAM_PROTO_GetFieldsCounters [05:09:59]wFMCommunicate request_size=4 [05:09:59]MH_SAM_APDU [05:09:59]CAPDU: 80 13 00 00 [05:09:59]Write to MH i2c: E2 08 00 7C 37 80 13 00 00 00 00 00 00 2F [05:09:59]Write i2c OK [05:09:59]MH_I2C_Read... [05:09:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:09:59]Read from MH i2c: E2 [05:09:59]MH_I2C_Read... [05:09:59]Read from MH i2c: E2 62 00 [05:09:59]MH_I2C_Read... [05:09:59]Read from MH i2c: E2 62 00 7C 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 C0 07 00 00 0E 04 04 00 0D 00 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 96 [05:09:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 C0 07 00 00 0E 04 04 00 0D 00 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 [05:09:59]wFMCommunicate OK [05:09:59]SAM_PROTO_GetFieldsCounters done [05:09:59]requested_item shift.num is exist - process it [05:09:59]requested_item shift.opened is exist - process it [05:09:59]req_shift_opened [05:09:59]FM_GetShiftState [05:09:59]SAM_PROTO_GetShiftState [05:09:59]wFMCommunicate request_size=4 [05:09:59]MH_SAM_APDU [05:09:59]CAPDU: 80 13 01 00 [05:09:59]Write to MH i2c: E2 08 00 7D 37 80 13 01 00 00 00 00 00 31 [05:09:59]Write i2c OK [05:09:59]MH_I2C_Read... [05:09:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:09:59]Read from MH i2c: E2 [05:09:59]MH_I2C_Read... [05:09:59]Read from MH i2c: E2 0E 00 [05:09:59]MH_I2C_Read... [05:09:59]Read from MH i2c: E2 0E 00 7D 37 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 25 [05:09:59]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [05:09:59]wFMCommunicate OK [05:09:59]SAM_PROTO_GetShiftState done [05:09:59]FM_GetShiftState done [05:09:59]req_shift_opened done [05:09:59]requested_item shift.open_date is exist - process it [05:09:59]req_shift_open_date [05:09:59]req_shift_open_date done [05:09:59]produce_requested_data done [05:09:59]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":1984,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [05:09:59]process_action_free close_receipt [05:09:59]json_value_free [05:09:59]json_value_free done [05:09:59]process_json_proto returns [05:09:59]Send response to host [05:09:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":1984,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [05:09:59]free response buf [05:09:59]execute_script done [05:09:59]execute_script returns [05:09:59]free content buf [05:09:59]Sock 8.Close socket [05:09:59]Sock 8.Thread stoped [05:10:03]OFD Sender: No OFD packet to send [05:10:08]OFD Sender: No OFD packet to send [05:10:13]OFD Sender: No OFD packet to send [05:10:18]OFD Sender: No OFD packet to send [05:10:23]OFD Sender: No OFD packet to send [05:10:28]OFD Sender: No OFD packet to send [05:10:33]OFD Sender: No OFD packet to send [05:10:38]OFD Sender: No OFD packet to send [05:10:43]OFD Sender: No OFD packet to send [05:10:48]OFD Sender: No OFD packet to send [05:10:53]OFD Sender: No OFD packet to send [05:10:58]OFD Sender: No OFD packet to send [05:11:03]OFD Sender: No OFD packet to send [05:11:08]OFD Sender: No OFD packet to send [05:11:13]OFD Sender: No OFD packet to send [05:11:18]OFD Sender: No OFD packet to send [05:11:23]OFD Sender: No OFD packet to send [05:11:28]OFD Sender: No OFD packet to send [05:11:33]OFD Sender: No OFD packet to send [05:11:38]OFD Sender: No OFD packet to send [05:11:43]OFD Sender: No OFD packet to send [05:11:48]OFD Sender: No OFD packet to send [05:11:53]OFD Sender: No OFD packet to send [05:11:58]OFD Sender: No OFD packet to send [05:12:03]OFD Sender: No OFD packet to send [05:12:08]OFD Sender: No OFD packet to send [05:12:13]OFD Sender: No OFD packet to send [05:12:18]OFD Sender: No OFD packet to send [05:12:23]OFD Sender: No OFD packet to send [05:12:28]OFD Sender: No OFD packet to send [05:12:33]OFD Sender: No OFD packet to send [05:12:38]OFD Sender: No OFD packet to send [05:12:43]OFD Sender: No OFD packet to send [05:12:48]OFD Sender: No OFD packet to send [05:12:53]OFD Sender: No OFD packet to send [05:12:58]OFD Sender: No OFD packet to send [05:13:03]OFD Sender: No OFD packet to send [05:13:08]OFD Sender: No OFD packet to send [05:13:13]OFD Sender: No OFD packet to send [05:13:18]OFD Sender: No OFD packet to send [05:13:23]OFD Sender: No OFD packet to send [05:13:28]OFD Sender: No OFD packet to send [05:13:33]OFD Sender: No OFD packet to send [05:13:38]OFD Sender: No OFD packet to send [05:13:43]OFD Sender: No OFD packet to send [05:13:48]OFD Sender: No OFD packet to send [05:13:53]OFD Sender: No OFD packet to send [05:13:58]OFD Sender: No OFD packet to send [05:14:03]OFD Sender: No OFD packet to send [05:14:08]OFD Sender: No OFD packet to send [05:14:13]OFD Sender: No OFD packet to send [05:14:18]OFD Sender: No OFD packet to send [05:14:23]OFD Sender: No OFD packet to send [05:14:28]OFD Sender: No OFD packet to send [05:14:33]OFD Sender: No OFD packet to send [05:14:38]OFD Sender: No OFD packet to send [05:14:43]OFD Sender: No OFD packet to send [05:14:48]OFD Sender: No OFD packet to send [05:14:53]OFD Sender: No OFD packet to send [05:14:58]OFD Sender: No OFD packet to send [05:15:03]OFD Sender: No OFD packet to send [05:15:08]OFD Sender: No OFD packet to send [05:15:13]OFD Sender: No OFD packet to send [05:15:18]OFD Sender: No OFD packet to send [05:15:23]OFD Sender: No OFD packet to send [05:15:28]OFD Sender: No OFD packet to send [05:15:30]accept exits with 9 [05:15:30]New connection [05:15:30]New thread 3067460964 created [05:15:30]Thread 3067317604 joined [05:15:30]Waiting for new connection... [05:15:30] Sock 9.Parse request [05:15:30]Sock 9.Check first char [05:15:30]Sock 9.First char is OK [05:15:30]request: POST /json_proto HTTP/1.0 [05:15:30]Method: POST [05:15:30]URL: /json_proto [05:15:30]Method is POST - this is cgi request [05:15:30]url: /json_proto [05:15:30]query_string will be loaded in cgi processing [05:15:30]execute_cgi json_proto POST (null) [05:15:30]execute_cgi path=json_proto method=POST [05:15:30]POST find Content-Length [05:15:30]Host: 172.17.45.132:8080 [05:15:30]Content-Length: 939 [05:15:30]Content-Type: application/json [05:15:30] [05:15:30]POST finish read [05:15:30]Found Content-Length = 939 [05:15:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126292", "tax_sys" : 0, "items" : [ { "code": "4700002082191", "name": "\u0412\u043E\u0434\u043A\u0430 \u0411\u0435\u043B\u043E\u0435 \u0437\u043E\u043B\u043E\u0442\u043E 0,46\u043B", "price" : 350.00, "quantity" : 1.000, "sum" : 350.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" : 435.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:15:30]execute_script... [05:15: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)126292", "tax_sys" : 0, "items" : [ { "code": "4700002082191", "name": "\u0412\u043E\u0434\u043A\u0430 \u0411\u0435\u043B\u043E\u0435 \u0437\u043E\u043B\u043E\u0442\u043E 0,46\u043B", "price" : 350.00, "quantity" : 1.000, "sum" : 350.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" : 435.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:15:30]POST & json_proto [05:15:30]process_json_proto [05:15:30]json parsed OK: [05:15:30]protocol is kg_v1.0 [05:15:30]action value=close_receipt [05:15:30]process_action close_receipt [05:15:30]cmd_close_receipt [05:15:30]MH_GetDate [05:15:30]Write to MH i2c: F0 00 00 7E 37 A4 [05:15:30]Write i2c OK [05:15:30]MH_I2C_Read... [05:15:30]Read from MH i2c: F0 [05:15:30]MH_I2C_Read... [05:15:30]Read from MH i2c: F0 09 00 [05:15:30]MH_I2C_Read... [05:15:30]Read from MH i2c: F0 09 00 7E 37 00 F6 D3 A5 66 E3 0B 90 66 65 [05:15:30]GetLastDocTimeStamp 1722143399 [05:15:30]current date 1722143734 [05:15:30]FM_GetShiftState [05:15:30]SAM_PROTO_GetShiftState [05:15:30]wFMCommunicate request_size=4 [05:15:30]MH_SAM_APDU [05:15:30]CAPDU: 80 13 01 00 [05:15:30]Write to MH i2c: E2 08 00 7F 37 80 13 01 00 00 00 00 00 33 [05:15:30]Write i2c OK [05:15:30]MH_I2C_Read... [05:15:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:15:30]Read from MH i2c: E2 [05:15:30]MH_I2C_Read... [05:15:30]Read from MH i2c: E2 0E 00 [05:15:30]MH_I2C_Read... [05:15:30]Read from MH i2c: E2 0E 00 7F 37 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 27 [05:15:30]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [05:15:30]wFMCommunicate OK [05:15:30]SAM_PROTO_GetShiftState done [05:15:30]FM_GetShiftState done [05:15:30]opened in 1722125648 [05:15:30]opened+sec_in_day 1722212048 [05:15:30]quantity*price = 35000 [05:15:30]sum+1 = 35001 [05:15:30]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% > о реализуемом товаре ИТОГО: 435.00 НСП 1% : 3.85 НДС 12% : 46.20 Наличными: 435.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 36 28.07.2024 05:15 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 1985 ФПД: 217719801219054 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T051534&type=1&operation_type=1&fn_number=0000000002094248&fd_number=1985&fm=217719801219054&tin=02508201610067®Number=0000000000189667&sum=43500 0 [05:15:31]StoreToDocumentArchive [05:15:31]shift 13 fd 1985 [05:15:31]save to /storage/0013/doc_00001985 [05:15:31]save last doc name /storage/0013/doc_00001985 to /storage/kkm_last_doc_name [05:15:31]save OK [05:15:31]Clear old archive folders... [05:15:31]ProcessDocumentItem done err = 0, tmpTLVsize=407 [05:15:31]tlvbuf is 01F98BD0 [05:15:31]SAM_PROTO_ClearQueue [05:15:31]wFMCommunicate request_size=4 [05:15:31]MH_SAM_APDU [05:15:31]CAPDU: 80 09 00 00 [05:15:31]Write to MH i2c: E2 08 00 8C 37 80 09 00 00 00 00 00 00 35 [05:15:31]Write i2c OK [05:15:31]MH_I2C_Read... [05:15:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:15:31]Read from MH i2c: E2 [05:15:31]MH_I2C_Read... [05:15:31]Read from MH i2c: E2 03 00 [05:15:31]MH_I2C_Read... [05:15:31]Read from MH i2c: E2 03 00 8C 37 00 90 00 37 [05:15:31]RAPDU: 90 00 [05:15:31]wFMCommunicate OK [05:15:31]SAM_PROTO_ClearQueue done [05:15:31]KKMCreateOFDPacket [05:15:31]OFDProtocolAddRootSTLVToBuf [05:15:31]FM_MakeSignedData [05:15:31]FM_MakeSignedData [05:15:31]SAM_PROTO_SignData [05:15:31]wFMCommunicate request_size=4 [05:15:31]MH_SAM_APDU [05:15:31]CAPDU: 80 0D 01 02 [05:15:31]Write to MH i2c: E2 08 00 8D 37 80 0D 01 02 00 00 00 00 3D [05:15:31]Write i2c OK [05:15:31]MH_I2C_Read... [05:15:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:15:32]Read from MH i2c: E2 [05:15:32]MH_I2C_Read... [05:15:32]Read from MH i2c: E2 03 00 [05:15:32]MH_I2C_Read... [05:15:32]Read from MH i2c: E2 03 00 8D 37 00 90 00 38 [05:15:32]RAPDU: 90 00 [05:15:32]wFMCommunicate OK [05:15:32]wFMCommunicate request_size=255 [05:15:32]MH_SAM_APDU [05:15:32]CAPDU: 80 0D 02 02 FA 03 00 97 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 31 39 31 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 34 36 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 88 00 00 00 00 13 04 06 00 B8 88 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 [05:15:32]Write to MH i2c: E2 02 01 8E 37 80 0D 02 02 FA 00 03 00 97 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 31 39 31 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 34 36 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 88 00 00 00 00 13 04 06 00 B8 88 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 00 00 AB [05:15:32]Write i2c OK [05:15:32]MH_I2C_Read... [05:15:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:15:32]Read from MH i2c: E2 [05:15:32]MH_I2C_Read... [05:15:32]Read from MH i2c: E2 03 00 [05:15:32]MH_I2C_Read... [05:15:32]Read from MH i2c: E2 03 00 8E 37 00 90 00 39 [05:15:32]RAPDU: 90 00 [05:15:32]wFMCommunicate OK [05:15:32]wFMCommunicate request_size=166 [05:15:32]MH_SAM_APDU [05:15:32]CAPDU: 80 0D 02 02 A1 EC A9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 81 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 12 00 00 00 00 07 04 06 00 EC A9 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 F6 D3 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C1 07 00 00 35 04 06 00 C6 03 D7 69 87 EE [05:15:32]Write to MH i2c: E2 A9 00 8F 37 80 0D 02 02 A1 00 EC A9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 81 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 12 00 00 00 00 07 04 06 00 EC A9 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 F6 D3 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C1 07 00 00 35 04 06 00 C6 03 D7 69 87 EE 00 00 DD [05:15:32]Write i2c OK [05:15:32]MH_I2C_Read... [05:15:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:15:32]Read from MH i2c: E2 [05:15:32]MH_I2C_Read... [05:15:32]Read from MH i2c: E2 03 00 [05:15:32]MH_I2C_Read... [05:15:32]Read from MH i2c: E2 03 00 8F 37 00 90 00 3A [05:15:32]RAPDU: 90 00 [05:15:32]wFMCommunicate OK [05:15:32]wFMCommunicate request_size=4 [05:15:32]MH_SAM_APDU [05:15:32]CAPDU: 80 0D 03 02 [05:15:32]Write to MH i2c: E2 08 00 90 37 80 0D 03 02 00 00 00 00 42 [05:15:32]Write i2c OK [05:15:32]MH_I2C_Read... [05:15:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:15:32]Read from MH i2c: E2 [05:15:32]MH_I2C_Read... [05:15:32]Read from MH i2c: E2 0B 00 [05:15:32]MH_I2C_Read... [05:15:32]Read from MH i2c: E2 0B 00 90 37 00 16 2D 8D D3 70 49 51 B6 90 00 A6 [05:15:32]RAPDU: 16 2D 8D D3 70 49 51 B6 90 00 [05:15:32]wFMCommunicate OK [05:15:32]SAM_PROTO_SignData done [05:15:32]FM_MakeSignedData done [05:15:32]CreateOFDProtocolMessage [05:15:32]wFMCommunicate request_size=4 [05:15:32]MH_SAM_APDU [05:15:32]CAPDU: 80 11 00 00 [05:15:32]Write to MH i2c: E2 08 00 91 37 80 11 00 00 00 00 00 00 42 [05:15:32]Write i2c OK [05:15:32]MH_I2C_Read... [05:15:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:15:32]Read from MH i2c: E2 [05:15:32]MH_I2C_Read... [05:15:32]Read from MH i2c: E2 17 00 [05:15:32]MH_I2C_Read... [05:15:32]Read from MH i2c: E2 17 00 91 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 92 [05:15:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [05:15:32]wFMCommunicate OK [05:15:32]CreateOFDProtocolMessage done [05:15:32]OFDSenderStorePacket 1985 [05:15:32]StoreOFDPacket docnum=1985 [05:15:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 AB 01 00 00 5F 3F A3 01 AF 7F 5A 03 01 00 03 00 97 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 31 39 31 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 34 36 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 88 00 00 00 00 13 04 06 00 B8 88 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 EC A9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 81 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 12 00 00 00 00 07 04 06 00 EC A9 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 F6 D3 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C1 07 00 00 35 04 06 00 C6 03 D7 69 87 EE 16 2D 8D D3 70 49 51 B6 [05:15:32]CheckFolder [05:15:32]dirname=/storage/ofd_packets [05:15:32]CheckFolder done [05:15:32]ProducePacketName [05:15:32]name=ofd_packets/00001985 [05:15:32]NVStorageSaveData ofd_packets/00001985 [05:15:32]File name is /storage/ofd_packets/00001985 [05:15:32]Write 457 bytes [05:15:32]NVStorageSaveData done [05:15:32]OFDSenderStorePacket done [05:15:32]KKMCreateOFDPacket done [05:15:32]NVStorageSaveData kkm_last_timestamp [05:15:32]File name is /storage/kkm_last_timestamp [05:15:32]Write 4 bytes [05:15:32]NVStorageSaveData done [05:15:32]ExternCall_PrintAddStr [05:15:32]wPrintStart [05:15:32]Write to MH i2c: 01 00 00 92 37 C9 [05:15:32]Write i2c OK [05:15:32]MH_I2C_Read... [05:15:32]Read from MH i2c: 01 [05:15:32]MH_I2C_Read... [05:15:32]Read from MH i2c: 01 07 00 [05:15:32]MH_I2C_Read... [05:15:32]OFD Sender: Processing packet 1985 [packets to send 1, broken 0] [05:15:32]ProducePacketName [05:15:32]name=ofd_packets/00001985 [05:15:32]OFD Sender: To server: pG, [05:15:32]CommunicateWithHost lk.salyk.kg:30040 [05:15:32]ConnectInit lk.salyk.kg [05:15:32]Read from MH i2c: 01 07 00 92 37 00 00 00 00 00 FF 0F DE [05:15:32]RasterBufferAndPrint [05:15:32]line Счет N : (3)126292 [05:15:32]line ИНН: 02508201610067 [05:15:32]line Контрольно-Кассовый Чек [05:15:32]line ПРОДАЖА [05:15:32]line Товар: 4700002082191 [05:15:32]line Водка Белое золото 0,46л [05:15:32]line 1.000 * 350.00 [05:15:32]line = 350.00 [05:15:32]line НДС 12% НСП 1% [05:15:32]line > о реализуемом товаре [05:15:32]line Товар: 4600682557456 [05:15:32]line Напиток FLash up energy эн ж/б 0,5/0,45л [05:15:32]line 1.000 * 85.00 [05:15:32]line = 85.00 [05:15:32]line НДС 12% НСП 1% [05:15:32]line > о реализуемом товаре [05:15:32]line ИТОГО: 435.00 [05:15:32]line НСП 1% : 3.85 [05:15:32]line НДС 12% : 46.20 [05:15:32]line Наличными: 435.00 [05:15:32]line Безнал.: 0.00 [05:15:32]line Место: АЗС № 127 "Партнер Нефть" [05:15:32]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [05:15:32]line СНО: Общий режим [05:15:32]line Чек 36 28.07.2024 05:15 [05:15:32]line Смена: 13 ФФД: 1.0 [05:15:32]line ЗНМ: 0300000161 [05:15:32]line РНМ: 0000000000189667 [05:15:32]line Версия ККМ: v1.0 [05:15:32]line ФМ: 0000000002094248 [05:15:32]line ФД: 1985 [05:15:32]line ФПД: 217719801219054 [05:15:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T051534&type=1&operation_type=1&fn_number=0000000002094248&fd_number=1985&fm=217719801219054&tin=02508201610067®Number=0000000000189667&sum=43500 [05:15:32]line 0 [05:15:32]written 0, free lines is 4095 [05:15:33]Connected sock=10 [05:15:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 AB 01 00 00 5F 3F A3 01 AF 7F 5A 03 01 00 03 00 97 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 31 39 31 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 34 36 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 88 00 00 00 00 13 04 06 00 B8 88 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 EC A9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 81 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 12 00 00 00 00 07 04 06 00 EC A9 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 F6 D3 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C1 07 00 00 35 04 06 00 C6 03 D7 69 87 EE 16 2D 8D D3 70 49 51 B6 [05:15:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 33 51 47 00 47 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 32 30 39 34 32 34 38 10 04 04 00 C1 07 00 00 F4 03 04 00 67 7F A5 66 B6 04 01 00 00 84 96 06 5E 30 99 2D 03 [05:15:33]CommunicateWithHost err = 0 [05:15:33]CheckOFDResponse [05:15:33]1017 (14) - 77093643461234 [05:15:33]1041 (16) - 0000000002094248 [05:15:33]1040 (4) - 1985 [05:15:33]1012 (4) - 27.07.2024 23:14 [05:15:33]1206 (1) - 0 [05:15:33]OFD Sender: Remove packet 1985 [05:15:33]ProducePacketName [05:15:33]name=ofd_packets/00001985 [05:15:33]NVStorageDeleteData [05:15:33]Write to MH i2c: 01 00 00 C1 37 F8 [05:15:33]Write i2c OK [05:15:33]MH_I2C_Read... [05:15:33]Read from MH i2c: 01 [05:15:33]MH_I2C_Read... [05:15:33]Read from MH i2c: 01 07 00 [05:15:33]MH_I2C_Read... [05:15:33]Read from MH i2c: 01 07 00 C1 37 00 00 00 00 00 D2 0C DD [05:15:33]RasterBufferAndPrint [05:15:33]line [05:15:33]line [05:15:33]line [05:15:33]line [05:15:33]line [05:15:33]written 0, free lines is 3292 [05:15:33]MH_Cut [05:15:33]Write to MH i2c: D1 01 00 C8 37 01 D1 [05:15:33]Write i2c OK [05:15:33]MH_I2C_Read... [05:15:33]Read from MH i2c: D1 [05:15:33]MH_I2C_Read... [05:15:33]Read from MH i2c: D1 01 00 [05:15:33]MH_I2C_Read... [05:15:33]Read from MH i2c: D1 01 00 C8 37 00 D0 [05:15:33]Write to MH i2c: 01 00 00 C9 37 00 [05:15:33]Write i2c OK [05:15:33]MH_I2C_Read... [05:15:33]OFD Sender: No OFD packet to send [05:15:34]*** Cut start [05:15:34]*** Partial cut [05:15:34]*** CUTSNS_PIN = 1 [05:15:34]*** CUTSNS_PIN = 0 [05:15:34]*** Brake cut motor [05:15:34]Read from MH i2c: 01 [05:15:34]MH_I2C_Read... [05:15:34]*** Stop cut motor [05:15:34]*** Cut end [05:15:34]Read from MH i2c: 01 07 00 [05:15:34]MH_I2C_Read... [05:15:34]Read from MH i2c: 01 07 00 C9 37 00 00 00 00 00 FF 0F 15 [05:15:34]process_action close_receipt done [05:15:34]requested_data is exist [05:15:34]produce_requested_data [05:15:34]requested_item fm.sn is exist - process it [05:15:34]wFMCommunicate request_size=4 [05:15:34]MH_SAM_APDU [05:15:34]CAPDU: 80 11 00 00 [05:15:34]Write to MH i2c: E2 08 00 CA 37 80 11 00 00 00 00 00 00 7B [05:15:34]Write i2c OK [05:15:34]MH_I2C_Read... [05:15:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:15:34]Read from MH i2c: E2 [05:15:34]MH_I2C_Read... [05:15:34]Read from MH i2c: E2 17 00 [05:15:34]MH_I2C_Read... [05:15:34]Read from MH i2c: E2 17 00 CA 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 CB [05:15:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [05:15:34]wFMCommunicate OK [05:15:34]requested_item fd.num is exist - process it [05:15:34]SAM_PROTO_GetFieldsCounters [05:15:34]wFMCommunicate request_size=4 [05:15:34]MH_SAM_APDU [05:15:34]CAPDU: 80 13 00 00 [05:15:34]Write to MH i2c: E2 08 00 CB 37 80 13 00 00 00 00 00 00 7E [05:15:34]Write i2c OK [05:15:34]MH_I2C_Read... [05:15:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:15:35]Read from MH i2c: E2 [05:15:35]MH_I2C_Read... [05:15:35]Read from MH i2c: E2 62 00 [05:15:35]MH_I2C_Read... [05:15:35]Read from MH i2c: E2 62 00 CB 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 C1 07 00 00 0E 04 04 00 0D 00 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 E9 [05:15:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 C1 07 00 00 0E 04 04 00 0D 00 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 [05:15:35]wFMCommunicate OK [05:15:35]SAM_PROTO_GetFieldsCounters done [05:15:35]requested_item shift.num is exist - process it [05:15:35]requested_item shift.opened is exist - process it [05:15:35]req_shift_opened [05:15:35]FM_GetShiftState [05:15:35]SAM_PROTO_GetShiftState [05:15:35]wFMCommunicate request_size=4 [05:15:35]MH_SAM_APDU [05:15:35]CAPDU: 80 13 01 00 [05:15:35]Write to MH i2c: E2 08 00 CC 37 80 13 01 00 00 00 00 00 80 [05:15:35]Write i2c OK [05:15:35]MH_I2C_Read... [05:15:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:15:35]Read from MH i2c: E2 [05:15:35]MH_I2C_Read... [05:15:35]Read from MH i2c: E2 0E 00 [05:15:35]MH_I2C_Read... [05:15:35]Read from MH i2c: E2 0E 00 CC 37 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 74 [05:15:35]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [05:15:35]wFMCommunicate OK [05:15:35]SAM_PROTO_GetShiftState done [05:15:35]FM_GetShiftState done [05:15:35]req_shift_opened done [05:15:35]requested_item shift.open_date is exist - process it [05:15:35]req_shift_open_date [05:15:35]req_shift_open_date done [05:15:35]produce_requested_data done [05:15:35]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":1985,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [05:15:35]process_action_free close_receipt [05:15:35]json_value_free [05:15:35]json_value_free done [05:15:35]process_json_proto returns [05:15:35]Send response to host [05:15:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":1985,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [05:15:35]free response buf [05:15:35]execute_script done [05:15:35]execute_script returns [05:15:35]free content buf [05:15:35]Sock 9.Close socket [05:15:35]Sock 9.Thread stoped [05:15:38]OFD Sender: No OFD packet to send [05:15:43]OFD Sender: No OFD packet to send [05:15:48]OFD Sender: No OFD packet to send [05:15:53]OFD Sender: No OFD packet to send [05:15:58]OFD Sender: No OFD packet to send [05:16:03]OFD Sender: No OFD packet to send [05:16:08]OFD Sender: No OFD packet to send [05:16:13]OFD Sender: No OFD packet to send [05:16:18]OFD Sender: No OFD packet to send [05:16:23]OFD Sender: No OFD packet to send [05:16:28]OFD Sender: No OFD packet to send [05:16:33]OFD Sender: No OFD packet to send [05:16:38]OFD Sender: No OFD packet to send [05:16:43]OFD Sender: No OFD packet to send [05:16:48]OFD Sender: No OFD packet to send [05:16:53]OFD Sender: No OFD packet to send [05:16:58]OFD Sender: No OFD packet to send [05:17:03]OFD Sender: No OFD packet to send [05:17:08]OFD Sender: No OFD packet to send [05:17:13]OFD Sender: No OFD packet to send [05:17:18]OFD Sender: No OFD packet to send [05:17:23]OFD Sender: No OFD packet to send [05:17:28]OFD Sender: No OFD packet to send [05:17:33]OFD Sender: No OFD packet to send [05:17:38]OFD Sender: No OFD packet to send [05:17:43]OFD Sender: No OFD packet to send [05:17:48]OFD Sender: No OFD packet to send [05:17:53]OFD Sender: No OFD packet to send [05:17:58]OFD Sender: No OFD packet to send [05:18:03]OFD Sender: No OFD packet to send [05:18:08]OFD Sender: No OFD packet to send [05:18:13]OFD Sender: No OFD packet to send [05:18:18]OFD Sender: No OFD packet to send [05:18:23]OFD Sender: No OFD packet to send [05:18:28]OFD Sender: No OFD packet to send [05:18:33]OFD Sender: No OFD packet to send [05:18:38]OFD Sender: No OFD packet to send [05:18:43]OFD Sender: No OFD packet to send [05:18:48]OFD Sender: No OFD packet to send [05:18:53]OFD Sender: No OFD packet to send [05:18:58]OFD Sender: No OFD packet to send [05:19:03]OFD Sender: No OFD packet to send [05:19:08]OFD Sender: No OFD packet to send [05:19:13]OFD Sender: No OFD packet to send [05:19:18]OFD Sender: No OFD packet to send [05:19:23]OFD Sender: No OFD packet to send [05:19:29]OFD Sender: No OFD packet to send [05:19:34]OFD Sender: No OFD packet to send [05:19:39]OFD Sender: No OFD packet to send [05:19:44]OFD Sender: No OFD packet to send [05:19:49]OFD Sender: No OFD packet to send [05:19:54]OFD Sender: No OFD packet to send [05:19:59]OFD Sender: No OFD packet to send [05:20:04]OFD Sender: No OFD packet to send [05:20:09]OFD Sender: No OFD packet to send [05:20:14]OFD Sender: No OFD packet to send [05:20:19]OFD Sender: No OFD packet to send [05:20:24]OFD Sender: No OFD packet to send [05:20:29]OFD Sender: No OFD packet to send [05:20:34]OFD Sender: No OFD packet to send [05:20:39]OFD Sender: No OFD packet to send [05:20:44]OFD Sender: No OFD packet to send [05:20:49]OFD Sender: No OFD packet to send [05:20:54]OFD Sender: No OFD packet to send [05:20:59]OFD Sender: No OFD packet to send [05:21:04]OFD Sender: No OFD packet to send [05:21:09]OFD Sender: No OFD packet to send [05:21:14]OFD Sender: No OFD packet to send [05:21:19]OFD Sender: No OFD packet to send [05:21:24]OFD Sender: No OFD packet to send [05:21:29]OFD Sender: No OFD packet to send [05:21:34]OFD Sender: No OFD packet to send [05:21:39]OFD Sender: No OFD packet to send [05:21:44]OFD Sender: No OFD packet to send [05:21:49]OFD Sender: No OFD packet to send [05:21:54]OFD Sender: No OFD packet to send [05:21:59]OFD Sender: No OFD packet to send [05:22:04]OFD Sender: No OFD packet to send [05:22:09]OFD Sender: No OFD packet to send [05:22:14]OFD Sender: No OFD packet to send [05:22:19]OFD Sender: No OFD packet to send [05:22:24]OFD Sender: No OFD packet to send [05:22:29]OFD Sender: No OFD packet to send [05:22:34]OFD Sender: No OFD packet to send [05:22:39]OFD Sender: No OFD packet to send [05:22:44]OFD Sender: No OFD packet to send [05:22:49]OFD Sender: No OFD packet to send [05:22:54]OFD Sender: No OFD packet to send [05:22:59]OFD Sender: No OFD packet to send [05:23:04]OFD Sender: No OFD packet to send [05:23:09]OFD Sender: No OFD packet to send [05:23:14]OFD Sender: No OFD packet to send [05:27:03]ConnectInit Can't connect to host [05:27:04]OFD Sender: No OFD packet to send [05:27:09]OFD Sender: No OFD packet to send [05:27:14]OFD Sender: No OFD packet to send [05:27:19]OFD Sender: No OFD packet to send [05:27:24]OFD Sender: No OFD packet to send [05:27:29]OFD Sender: No OFD packet to send [05:27:34]OFD Sender: No OFD packet to send [05:27:39]OFD Sender: No OFD packet to send [05:27:44]OFD Sender: No OFD packet to send [05:27:49]OFD Sender: No OFD packet to send [05:27:54]OFD Sender: No OFD packet to send [05:27:59]OFD Sender: No OFD packet to send [05:28:04]OFD Sender: No OFD packet to send [05:28:09]OFD Sender: No OFD packet to send [05:28:14]OFD Sender: No OFD packet to send [05:28:19]OFD Sender: No OFD packet to send [05:28:24]OFD Sender: No OFD packet to send [05:28:29]OFD Sender: No OFD packet to send [05:28:34]OFD Sender: No OFD packet to send [05:28:39]OFD Sender: No OFD packet to send [05:28:44]OFD Sender: No OFD packet to send [05:28:49]OFD Sender: No OFD packet to send [05:28:54]OFD Sender: No OFD packet to send [05:28:59]OFD Sender: No OFD packet to send [05:29:04]OFD Sender: No OFD packet to send [05:29:09]OFD Sender: No OFD packet to send [05:29:14]OFD Sender: No OFD packet to send [05:29:19]OFD Sender: No OFD packet to send [05:29:24]OFD Sender: No OFD packet to send [05:29:29]OFD Sender: No OFD packet to send [05:29:34]OFD Sender: No OFD packet to send [05:29:39]OFD Sender: No OFD packet to send [05:29:44]OFD Sender: No OFD packet to send [05:29:49]OFD Sender: No OFD packet to send [05:29:54]OFD Sender: No OFD packet to send [05:29:59]OFD Sender: No OFD packet to send [05:30:04]OFD Sender: No OFD packet to send [05:30:09]OFD Sender: No OFD packet to send [05:30:14]OFD Sender: No OFD packet to send [05:30:19]OFD Sender: No OFD packet to send [05:30:24]OFD Sender: No OFD packet to send [05:30:29]OFD Sender: No OFD packet to send [05:30:34]OFD Sender: No OFD packet to send [05:30:39]OFD Sender: No OFD packet to send [05:30:44]OFD Sender: No OFD packet to send [05:30:49]OFD Sender: No OFD packet to send [05:30:54]OFD Sender: No OFD packet to send [05:30:59]OFD Sender: No OFD packet to send [05:31:04]OFD Sender: No OFD packet to send [05:31:09]OFD Sender: No OFD packet to send [05:31:14]OFD Sender: No OFD packet to send [05:31:19]OFD Sender: No OFD packet to send [05:31:24]OFD Sender: No OFD packet to send [05:31:29]OFD Sender: No OFD packet to send [05:31:34]OFD Sender: No OFD packet to send [05:31:39]OFD Sender: No OFD packet to send [05:31:44]OFD Sender: No OFD packet to send [05:31:49]OFD Sender: No OFD packet to send [05:31:54]OFD Sender: No OFD packet to send [05:31:59]OFD Sender: No OFD packet to send [05:32:04]OFD Sender: No OFD packet to send [05:32:09]OFD Sender: No OFD packet to send [05:32:14]OFD Sender: No OFD packet to send [05:32:19]OFD Sender: No OFD packet to send [05:32:24]OFD Sender: No OFD packet to send [05:32:29]OFD Sender: No OFD packet to send [05:32:34]OFD Sender: No OFD packet to send [05:32:39]OFD Sender: No OFD packet to send [05:32:44]OFD Sender: No OFD packet to send [05:32:49]OFD Sender: No OFD packet to send [05:32:54]OFD Sender: No OFD packet to send [05:32:59]OFD Sender: No OFD packet to send [05:33:04]OFD Sender: No OFD packet to send [05:33:09]OFD Sender: No OFD packet to send [05:33:14]OFD Sender: No OFD packet to send [05:33:19]OFD Sender: No OFD packet to send [05:33:24]OFD Sender: No OFD packet to send [05:33:29]OFD Sender: No OFD packet to send [05:33:34]OFD Sender: No OFD packet to send [05:33:39]OFD Sender: No OFD packet to send [05:33:44]OFD Sender: No OFD packet to send [05:33:49]OFD Sender: No OFD packet to send [05:33:54]OFD Sender: No OFD packet to send [05:33:59]OFD Sender: No OFD packet to send [05:34:04]OFD Sender: No OFD packet to send [05:34:09]OFD Sender: No OFD packet to send [05:34:14]OFD Sender: No OFD packet to send [05:34:19]OFD Sender: No OFD packet to send [05:34:24]OFD Sender: No OFD packet to send [05:34:29]OFD Sender: No OFD packet to send [05:34:34]OFD Sender: No OFD packet to send [05:34:39]OFD Sender: No OFD packet to send [05:34:44]OFD Sender: No OFD packet to send [05:34:49]OFD Sender: No OFD packet to send [05:34:54]OFD Sender: No OFD packet to send [05:34:59]OFD Sender: No OFD packet to send [05:35:04]OFD Sender: No OFD packet to send [05:35:09]OFD Sender: No OFD packet to send [05:35:14]OFD Sender: No OFD packet to send [05:35:19]OFD Sender: No OFD packet to send [05:35:24]OFD Sender: No OFD packet to send [05:35:29]OFD Sender: No OFD packet to send [05:35:34]OFD Sender: No OFD packet to send [05:35:39]OFD Sender: No OFD packet to send [05:35:44]OFD Sender: No OFD packet to send [05:35:49]OFD Sender: No OFD packet to send [05:35:54]OFD Sender: No OFD packet to send [05:35:59]OFD Sender: No OFD packet to send [05:36:04]OFD Sender: No OFD packet to send [05:36:09]OFD Sender: No OFD packet to send [05:36:14]OFD Sender: No OFD packet to send [05:36:19]OFD Sender: No OFD packet to send [05:36:24]OFD Sender: No OFD packet to send [05:36:29]OFD Sender: No OFD packet to send [05:36:34]OFD Sender: No OFD packet to send [05:36:39]OFD Sender: No OFD packet to send [05:36:44]OFD Sender: No OFD packet to send [05:36:49]OFD Sender: No OFD packet to send [05:36:54]OFD Sender: No OFD packet to send [05:36:59]OFD Sender: No OFD packet to send [05:37:04]OFD Sender: No OFD packet to send [05:37:09]OFD Sender: No OFD packet to send [05:37:14]OFD Sender: No OFD packet to send [05:37:19]OFD Sender: No OFD packet to send [05:37:24]OFD Sender: No OFD packet to send [05:37:29]OFD Sender: No OFD packet to send [05:37:34]OFD Sender: No OFD packet to send [05:37:39]OFD Sender: No OFD packet to send [05:37:44]OFD Sender: No OFD packet to send [05:37:49]OFD Sender: No OFD packet to send [05:37:54]OFD Sender: No OFD packet to send [05:37:59]OFD Sender: No OFD packet to send [05:38:04]OFD Sender: No OFD packet to send [05:38:09]OFD Sender: No OFD packet to send [05:38:14]OFD Sender: No OFD packet to send [05:38:19]OFD Sender: No OFD packet to send [05:38:24]OFD Sender: No OFD packet to send [05:38:29]OFD Sender: No OFD packet to send [05:38:34]OFD Sender: No OFD packet to send [05:38:39]OFD Sender: No OFD packet to send [05:38:44]OFD Sender: No OFD packet to send [05:38:49]OFD Sender: No OFD packet to send [05:38:54]OFD Sender: No OFD packet to send [05:38:59]OFD Sender: No OFD packet to send [05:39:04]OFD Sender: No OFD packet to send [05:39:09]OFD Sender: No OFD packet to send [05:39:14]OFD Sender: No OFD packet to send [05:39:19]OFD Sender: No OFD packet to send [05:39:24]OFD Sender: No OFD packet to send [05:39:29]OFD Sender: No OFD packet to send [05:39:34]OFD Sender: No OFD packet to send [05:39:39]OFD Sender: No OFD packet to send [05:39:44]OFD Sender: No OFD packet to send [05:39:49]OFD Sender: No OFD packet to send [05:39:54]OFD Sender: No OFD packet to send [05:39:59]OFD Sender: No OFD packet to send [05:40:04]OFD Sender: No OFD packet to send [05:40:09]OFD Sender: No OFD packet to send [05:40:14]OFD Sender: No OFD packet to send [05:40:19]OFD Sender: No OFD packet to send [05:40:24]OFD Sender: No OFD packet to send [05:40:29]OFD Sender: No OFD packet to send [05:40:34]OFD Sender: No OFD packet to send [05:40:39]OFD Sender: No OFD packet to send [05:40:44]OFD Sender: No OFD packet to send [05:40:49]OFD Sender: No OFD packet to send [05:40:54]OFD Sender: No OFD packet to send [05:40:59]OFD Sender: No OFD packet to send [05:41:04]OFD Sender: No OFD packet to send [05:41:09]OFD Sender: No OFD packet to send [05:41:14]OFD Sender: No OFD packet to send [05:41:19]OFD Sender: No OFD packet to send [05:41:24]OFD Sender: No OFD packet to send [05:41:30]OFD Sender: No OFD packet to send [05:41:35]OFD Sender: No OFD packet to send [05:41:40]OFD Sender: No OFD packet to send [05:41:45]OFD Sender: No OFD packet to send [05:41:50]OFD Sender: No OFD packet to send [05:41:55]OFD Sender: No OFD packet to send [05:42:00]OFD Sender: No OFD packet to send [05:42:05]OFD Sender: No OFD packet to send [05:42:10]OFD Sender: No OFD packet to send [05:42:15]OFD Sender: No OFD packet to send [05:42:20]OFD Sender: No OFD packet to send [05:42:25]OFD Sender: No OFD packet to send [05:42:30]OFD Sender: No OFD packet to send [05:42:35]OFD Sender: No OFD packet to send [05:42:40]OFD Sender: No OFD packet to send [05:42:45]OFD Sender: No OFD packet to send [05:42:50]OFD Sender: No OFD packet to send [05:42:55]OFD Sender: No OFD packet to send [05:43:00]OFD Sender: No OFD packet to send [05:43:05]OFD Sender: No OFD packet to send [05:43:10]OFD Sender: No OFD packet to send [05:43:15]OFD Sender: No OFD packet to send [05:43:20]OFD Sender: No OFD packet to send [05:43:25]OFD Sender: No OFD packet to send [05:43:30]OFD Sender: No OFD packet to send [05:43:35]OFD Sender: No OFD packet to send [05:43:40]OFD Sender: No OFD packet to send [05:43:45]OFD Sender: No OFD packet to send [05:43:50]OFD Sender: No OFD packet to send [05:43:55]OFD Sender: No OFD packet to send [05:44:00]OFD Sender: No OFD packet to send [05:44:05]OFD Sender: No OFD packet to send [05:44:10]OFD Sender: No OFD packet to send [05:44:15]OFD Sender: No OFD packet to send [05:44:20]OFD Sender: No OFD packet to send [05:44:25]OFD Sender: No OFD packet to send [05:44:30]OFD Sender: No OFD packet to send [05:44:35]OFD Sender: No OFD packet to send [05:44:40]OFD Sender: No OFD packet to send [05:44:45]OFD Sender: No OFD packet to send [05:44:50]OFD Sender: No OFD packet to send [05:44:55]OFD Sender: No OFD packet to send [05:45:00]OFD Sender: No OFD packet to send [05:45:05]OFD Sender: No OFD packet to send [05:45:10]OFD Sender: No OFD packet to send [05:45:15]OFD Sender: No OFD packet to send [05:45:20]OFD Sender: No OFD packet to send [05:45:25]OFD Sender: No OFD packet to send [05:45:30]OFD Sender: No OFD packet to send [05:45:35]OFD Sender: No OFD packet to send [05:45:40]OFD Sender: No OFD packet to send [05:45:45]OFD Sender: No OFD packet to send [05:45:50]OFD Sender: No OFD packet to send [05:45:55]OFD Sender: No OFD packet to send [05:46:00]OFD Sender: No OFD packet to send [05:46:05]OFD Sender: No OFD packet to send [05:46:10]OFD Sender: No OFD packet to send [05:46:15]OFD Sender: No OFD packet to send [05:46:20]OFD Sender: No OFD packet to send [05:46:25]OFD Sender: No OFD packet to send [05:46:30]OFD Sender: No OFD packet to send [05:46:35]OFD Sender: No OFD packet to send [05:46:40]OFD Sender: No OFD packet to send [05:46:45]OFD Sender: No OFD packet to send [05:46:50]OFD Sender: No OFD packet to send [05:46:55]OFD Sender: No OFD packet to send [05:47:00]OFD Sender: No OFD packet to send [05:47:05]OFD Sender: No OFD packet to send [05:47:10]OFD Sender: No OFD packet to send [05:47:15]OFD Sender: No OFD packet to send [05:47:20]OFD Sender: No OFD packet to send [05:47:25]OFD Sender: No OFD packet to send [05:47:30]OFD Sender: No OFD packet to send [05:47:35]OFD Sender: No OFD packet to send [05:47:40]OFD Sender: No OFD packet to send [05:47:40]accept exits with 8 [05:47:40]New connection [05:47:40]New thread 3067317604 created [05:47:40]Thread 3067460964 joined [05:47:40]Waiting for new connection... [05:47:40] Sock 8.Parse request [05:47:40]Sock 8.Check first char [05:47:40]Sock 8.First char is OK [05:47:40]request: POST /json_proto HTTP/1.0 [05:47:40]Method: POST [05:47:40]URL: /json_proto [05:47:40]Method is POST - this is cgi request [05:47:40]url: /json_proto [05:47:40]query_string will be loaded in cgi processing [05:47:40]execute_cgi json_proto POST (null) [05:47:40]execute_cgi path=json_proto method=POST [05:47:40]POST find Content-Length [05:47:40]Host: 172.17.45.132:8080 [05:47:40]Content-Length: 662 [05:47:40]Content-Type: application/json [05:47:40] [05:47:40]POST finish read [05:47:40]Found Content-Length = 662 [05:47:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126293", "tax_sys" : 0, "items" : [ { "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" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:47:40]execute_script... [05:47:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126293", "tax_sys" : 0, "items" : [ { "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" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:47:40]POST & json_proto [05:47:40]process_json_proto [05:47:40]json parsed OK: [05:47:40]protocol is kg_v1.0 [05:47:40]action value=close_receipt [05:47:40]process_action close_receipt [05:47:40]cmd_close_receipt [05:47:40]MH_GetDate [05:47:40]Write to MH i2c: F0 00 00 CD 37 F3 [05:47:40]Write i2c OK [05:47:40]MH_I2C_Read... [05:47:40]Read from MH i2c: F0 [05:47:40]MH_I2C_Read... [05:47:40]Read from MH i2c: F0 09 00 [05:47:40]MH_I2C_Read... [05:47:40]Read from MH i2c: F0 09 00 CD 37 00 80 DB A5 66 E3 0B 90 66 46 [05:47:40]GetLastDocTimeStamp 1722143734 [05:47:40]current date 1722145664 [05:47:40]FM_GetShiftState [05:47:40]SAM_PROTO_GetShiftState [05:47:40]wFMCommunicate request_size=4 [05:47:40]MH_SAM_APDU [05:47:40]CAPDU: 80 13 01 00 [05:47:40]Write to MH i2c: E2 08 00 CE 37 80 13 01 00 00 00 00 00 82 [05:47:40]Write i2c OK [05:47:40]MH_I2C_Read... [05:47:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:47:40]Read from MH i2c: E2 [05:47:40]MH_I2C_Read... [05:47:40]Read from MH i2c: E2 0E 00 [05:47:40]MH_I2C_Read... [05:47:40]Read from MH i2c: E2 0E 00 CE 37 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 76 [05:47:40]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [05:47:40]wFMCommunicate OK [05:47:40]SAM_PROTO_GetShiftState done [05:47:40]FM_GetShiftState done [05:47:40]opened in 1722125648 [05:47:40]opened+sec_in_day 1722212048 [05:47:40]quantity*price = 6000 [05:47:40]sum+1 = 6001 [05:47:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 37 28.07.2024 05:47 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 1986 ФПД: 268491962042436 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T054744&type=1&operation_type=1&fn_number=0000000002094248&fd_number=1986&fm=268491962042436&tin=02508201610067®Number=0000000000189667&sum=6000 0 [05:47:41]StoreToDocumentArchive [05:47:41]shift 13 fd 1986 [05:47:41]save to /storage/0013/doc_00001986 [05:47:41]save last doc name /storage/0013/doc_00001986 to /storage/kkm_last_doc_name [05:47:41]save OK [05:47:41]Clear old archive folders... [05:47:41]ProcessDocumentItem done err = 0, tmpTLVsize=281 [05:47:41]tlvbuf is 02001D60 [05:47:41]SAM_PROTO_ClearQueue [05:47:41]wFMCommunicate request_size=4 [05:47:41]MH_SAM_APDU [05:47:41]CAPDU: 80 09 00 00 [05:47:41]Write to MH i2c: E2 08 00 DB 37 80 09 00 00 00 00 00 00 84 [05:47:41]Write i2c OK [05:47:41]MH_I2C_Read... [05:47:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:47:41]Read from MH i2c: E2 [05:47:41]MH_I2C_Read... [05:47:41]Read from MH i2c: E2 03 00 [05:47:41]MH_I2C_Read... [05:47:41]Read from MH i2c: E2 03 00 DB 37 00 90 00 86 [05:47:41]RAPDU: 90 00 [05:47:41]wFMCommunicate OK [05:47:41]SAM_PROTO_ClearQueue done [05:47:41]KKMCreateOFDPacket [05:47:41]OFDProtocolAddRootSTLVToBuf [05:47:41]FM_MakeSignedData [05:47:41]FM_MakeSignedData [05:47:41]SAM_PROTO_SignData [05:47:41]wFMCommunicate request_size=4 [05:47:41]MH_SAM_APDU [05:47:41]CAPDU: 80 0D 01 02 [05:47:41]Write to MH i2c: E2 08 00 DC 37 80 0D 01 02 00 00 00 00 8C [05:47:41]Write i2c OK [05:47:41]MH_I2C_Read... [05:47:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:47:41]Read from MH i2c: E2 [05:47:41]MH_I2C_Read... [05:47:41]Read from MH i2c: E2 03 00 [05:47:41]MH_I2C_Read... [05:47:41]Read from MH i2c: E2 03 00 DC 37 00 90 00 87 [05:47:41]RAPDU: 90 00 [05:47:41]wFMCommunicate OK [05:47:41]wFMCommunicate request_size=255 [05:47:41]MH_SAM_APDU [05:47:41]CAPDU: 80 0D 02 02 FA 03 00 19 01 1E 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 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 80 DB A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 [05:47:41]Write to MH i2c: E2 02 01 DD 37 80 0D 02 02 FA 00 03 00 19 01 1E 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 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 80 DB A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 00 F7 [05:47:41]Write i2c OK [05:47:41]MH_I2C_Read... [05:47:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:47:42]Read from MH i2c: E2 [05:47:42]MH_I2C_Read... [05:47:42]Read from MH i2c: E2 03 00 [05:47:42]MH_I2C_Read... [05:47:42]Read from MH i2c: E2 03 00 DD 37 00 90 00 88 [05:47:42]RAPDU: 90 00 [05:47:42]wFMCommunicate OK [05:47:42]wFMCommunicate request_size=40 [05:47:42]MH_SAM_APDU [05:47:42]CAPDU: 80 0D 02 02 23 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C2 07 00 00 35 04 06 00 F4 31 28 05 C8 44 [05:47:42]Write to MH i2c: E2 2B 00 DE 37 80 0D 02 02 23 00 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C2 07 00 00 35 04 06 00 F4 31 28 05 C8 44 00 00 70 [05:47:42]Write i2c OK [05:47:42]MH_I2C_Read... [05:47:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:47:42]Read from MH i2c: E2 [05:47:42]MH_I2C_Read... [05:47:42]Read from MH i2c: E2 03 00 [05:47:42]MH_I2C_Read... [05:47:42]Read from MH i2c: E2 03 00 DE 37 00 90 00 89 [05:47:42]RAPDU: 90 00 [05:47:42]wFMCommunicate OK [05:47:42]wFMCommunicate request_size=4 [05:47:42]MH_SAM_APDU [05:47:42]CAPDU: 80 0D 03 02 [05:47:42]Write to MH i2c: E2 08 00 DF 37 80 0D 03 02 00 00 00 00 91 [05:47:42]Write i2c OK [05:47:42]MH_I2C_Read... [05:47:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:47:42]Read from MH i2c: E2 [05:47:42]MH_I2C_Read... [05:47:42]Read from MH i2c: E2 0B 00 [05:47:42]MH_I2C_Read... [05:47:42]Read from MH i2c: E2 0B 00 DF 37 00 C9 07 EF 9C B1 9E 11 47 90 00 94 [05:47:42]RAPDU: C9 07 EF 9C B1 9E 11 47 90 00 [05:47:42]wFMCommunicate OK [05:47:42]SAM_PROTO_SignData done [05:47:42]FM_MakeSignedData done [05:47:42]CreateOFDProtocolMessage [05:47:42]wFMCommunicate request_size=4 [05:47:42]MH_SAM_APDU [05:47:42]CAPDU: 80 11 00 00 [05:47:42]Write to MH i2c: E2 08 00 E0 37 80 11 00 00 00 00 00 00 91 [05:47:42]Write i2c OK [05:47:42]MH_I2C_Read... [05:47:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:47:42]Read from MH i2c: E2 [05:47:42]MH_I2C_Read... [05:47:42]Read from MH i2c: E2 17 00 [05:47:42]MH_I2C_Read... [05:47:42]Read from MH i2c: E2 17 00 E0 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 E1 [05:47:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [05:47:42]wFMCommunicate OK [05:47:42]CreateOFDProtocolMessage done [05:47:42]OFDSenderStorePacket 1986 [05:47:42]StoreOFDPacket docnum=1986 [05:47:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2D 01 00 00 A5 31 25 01 F2 31 5A 03 01 00 03 00 19 01 1E 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 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 80 DB A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C2 07 00 00 35 04 06 00 F4 31 28 05 C8 44 C9 07 EF 9C B1 9E 11 47 [05:47:42]CheckFolder [05:47:42]dirname=/storage/ofd_packets [05:47:42]CheckFolder done [05:47:42]ProducePacketName [05:47:42]name=ofd_packets/00001986 [05:47:42]NVStorageSaveData ofd_packets/00001986 [05:47:42]File name is /storage/ofd_packets/00001986 [05:47:42]Write 331 bytes [05:47:42]NVStorageSaveData done [05:47:42]OFDSenderStorePacket done [05:47:42]KKMCreateOFDPacket done [05:47:42]NVStorageSaveData kkm_last_timestamp [05:47:42]File name is /storage/kkm_last_timestamp [05:47:42]Write 4 bytes [05:47:42]NVStorageSaveData done [05:47:42]ExternCall_PrintAddStr [05:47:42]wPrintStart [05:47:42]Write to MH i2c: 01 00 00 E1 37 18 [05:47:42]Write i2c OK [05:47:42]MH_I2C_Read... [05:47:42]Read from MH i2c: 01 [05:47:42]MH_I2C_Read... [05:47:42]Read from MH i2c: 01 07 00 [05:47:42]MH_I2C_Read... [05:47:42]Read from MH i2c: 01 07 00 E1 37 00 00 00 00 00 FF 0F 2D [05:47:42]RasterBufferAndPrint [05:47:42]line Счет N : (3)126293 [05:47:42]line ИНН: 02508201610067 [05:47:42]line Контрольно-Кассовый Чек [05:47:42]line ПРОДАЖА [05:47:42]line Товар: 4011100977952 [05:47:42]line Шок Батончик Твикс 55г [05:47:42]line 1.000 * 60.00 [05:47:42]line = 60.00 [05:47:42]line НДС 12% НСП 1% [05:47:42]line > о реализуемом товаре [05:47:42]line ИТОГО: 60.00 [05:47:42]line НСП 1% : 0.53 [05:47:42]line НДС 12% : 6.37 [05:47:42]line Наличными: 60.00 [05:47:42]line Безнал.: 0.00 [05:47:42]line Место: АЗС № 127 "Партнер Нефть" [05:47:42]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [05:47:42]line СНО: Общий режим [05:47:42]line Чек 37 28.07.2024 05:47 [05:47:42]line Смена: 13 ФФД: 1.0 [05:47:42]line ЗНМ: 0300000161 [05:47:42]line РНМ: 0000000000189667 [05:47:42]line Версия ККМ: v1.0 [05:47:42]line ФМ: 0000000002094248 [05:47:42]line ФД: 1986 [05:47:42]line ФПД: 268491962042436 [05:47:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T054744&type=1&operation_type=1&fn_number=0000000002094248&fd_number=1986&fm=268491962042436&tin=02508201610067®Number=0000000000189667&sum=6000 [05:47:42]line 0 [05:47:42]OFD Sender: Processing packet 1986 [packets to send 1, broken 0] [05:47:42]ProducePacketName [05:47:42]name=ofd_packets/00001986 [05:47:42]OFD Sender: To server: pG, [05:47:42]CommunicateWithHost lk.salyk.kg:30040 [05:47:42]ConnectInit lk.salyk.kg [05:47:42]written 0, free lines is 4095 [05:47:42]Connected sock=10 [05:47:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2D 01 00 00 A5 31 25 01 F2 31 5A 03 01 00 03 00 19 01 1E 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 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 80 DB A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C2 07 00 00 35 04 06 00 F4 31 28 05 C8 44 C9 07 EF 9C B1 9E 11 47 [05:47:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 36 0B 47 00 EC 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C2 07 00 00 F4 03 04 00 F1 86 A5 66 B6 04 01 00 00 D7 D7 9F 5D 8B 56 09 36 [05:47:42]CommunicateWithHost err = 0 [05:47:42]CheckOFDResponse [05:47:42]1017 (14) - 77093643461234 [05:47:42]1041 (16) - 0000000002094248 [05:47:42]1040 (4) - 1986 [05:47:42]1012 (4) - 27.07.2024 23:46 [05:47:42]1206 (1) - 0 [05:47:42]OFD Sender: Remove packet 1986 [05:47:42]ProducePacketName [05:47:42]name=ofd_packets/00001986 [05:47:42]NVStorageDeleteData [05:47:43]Write to MH i2c: 01 00 00 09 38 41 [05:47:43]Write i2c OK [05:47:43]MH_I2C_Read... [05:47:43]Read from MH i2c: 01 [05:47:43]MH_I2C_Read... [05:47:43]Read from MH i2c: 01 07 00 [05:47:43]MH_I2C_Read... [05:47:43]Read from MH i2c: 01 07 00 09 38 00 00 00 00 00 21 0D 76 [05:47:43]RasterBufferAndPrint [05:47:43]line [05:47:43]line [05:47:43]line [05:47:43]line [05:47:43]line [05:47:43]written 0, free lines is 3367 [05:47:43]MH_Cut [05:47:43]Write to MH i2c: D1 01 00 10 38 01 1A [05:47:43]Write i2c OK [05:47:43]MH_I2C_Read... [05:47:43]Read from MH i2c: D1 [05:47:43]MH_I2C_Read... [05:47:43]Read from MH i2c: D1 01 00 [05:47:43]MH_I2C_Read... [05:47:43]Read from MH i2c: D1 01 00 10 38 00 19 [05:47:43]Write to MH i2c: 01 00 00 11 38 49 [05:47:43]Write i2c OK [05:47:43]MH_I2C_Read... [05:47:43]OFD Sender: No OFD packet to send [05:47:43]*** Cut start [05:47:43]*** Partial cut [05:47:43]*** CUTSNS_PIN = 1 [05:47:43]*** CUTSNS_PIN = 0 [05:47:43]*** Brake cut motor [05:47:44]Read from MH i2c: 01 [05:47:44]MH_I2C_Read... [05:47:44]*** Stop cut motor [05:47:44]*** Cut end [05:47:44]Read from MH i2c: 01 07 00 [05:47:44]MH_I2C_Read... [05:47:44]Read from MH i2c: 01 07 00 11 38 00 00 00 00 00 FF 0F 5E [05:47:44]process_action close_receipt done [05:47:44]requested_data is exist [05:47:44]produce_requested_data [05:47:44]requested_item fm.sn is exist - process it [05:47:44]wFMCommunicate request_size=4 [05:47:44]MH_SAM_APDU [05:47:44]CAPDU: 80 11 00 00 [05:47:44]Write to MH i2c: E2 08 00 12 38 80 11 00 00 00 00 00 00 C4 [05:47:44]Write i2c OK [05:47:44]MH_I2C_Read... [05:47:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:47:44]Read from MH i2c: E2 [05:47:44]MH_I2C_Read... [05:47:44]Read from MH i2c: E2 17 00 [05:47:44]MH_I2C_Read... [05:47:44]Read from MH i2c: E2 17 00 12 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 14 [05:47:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [05:47:44]wFMCommunicate OK [05:47:44]requested_item fd.num is exist - process it [05:47:44]SAM_PROTO_GetFieldsCounters [05:47:44]wFMCommunicate request_size=4 [05:47:44]MH_SAM_APDU [05:47:44]CAPDU: 80 13 00 00 [05:47:44]Write to MH i2c: E2 08 00 13 38 80 13 00 00 00 00 00 00 C7 [05:47:44]Write i2c OK [05:47:44]MH_I2C_Read... [05:47:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:47:44]Read from MH i2c: E2 [05:47:44]MH_I2C_Read... [05:47:44]Read from MH i2c: E2 62 00 [05:47:44]MH_I2C_Read... [05:47:44]Read from MH i2c: E2 62 00 13 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 C2 07 00 00 0E 04 04 00 0D 00 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 36 [05:47:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 C2 07 00 00 0E 04 04 00 0D 00 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 [05:47:44]wFMCommunicate OK [05:47:44]SAM_PROTO_GetFieldsCounters done [05:47:44]requested_item shift.num is exist - process it [05:47:44]requested_item shift.opened is exist - process it [05:47:44]req_shift_opened [05:47:44]FM_GetShiftState [05:47:44]SAM_PROTO_GetShiftState [05:47:44]wFMCommunicate request_size=4 [05:47:44]MH_SAM_APDU [05:47:44]CAPDU: 80 13 01 00 [05:47:44]Write to MH i2c: E2 08 00 14 38 80 13 01 00 00 00 00 00 C9 [05:47:44]Write i2c OK [05:47:44]MH_I2C_Read... [05:47:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:47:44]Read from MH i2c: E2 [05:47:44]MH_I2C_Read... [05:47:44]Read from MH i2c: E2 0E 00 [05:47:44]MH_I2C_Read... [05:47:44]Read from MH i2c: E2 0E 00 14 38 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 BD [05:47:44]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [05:47:44]wFMCommunicate OK [05:47:44]SAM_PROTO_GetShiftState done [05:47:44]FM_GetShiftState done [05:47:44]req_shift_opened done [05:47:44]requested_item shift.open_date is exist - process it [05:47:44]req_shift_open_date [05:47:44]req_shift_open_date done [05:47:44]produce_requested_data done [05:47:44]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":1986,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [05:47:44]process_action_free close_receipt [05:47:44]json_value_free [05:47:44]json_value_free done [05:47:44]process_json_proto returns [05:47:44]Send response to host [05:47:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":1986,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [05:47:44]free response buf [05:47:44]execute_script done [05:47:44]execute_script returns [05:47:44]free content buf [05:47:44]Sock 8.Close socket [05:47:44]Sock 8.Thread stoped [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:48]OFD Sender: No OFD packet to send [05:48:53]OFD Sender: No OFD packet to send [05:48:58]OFD Sender: No OFD packet to send [05:49:03]OFD Sender: No OFD packet to send [05:49:08]OFD Sender: No OFD packet to send [05:49:13]OFD Sender: No OFD packet to send [05:49:18]OFD Sender: No OFD packet to send [05:49:23]OFD Sender: No OFD packet to send [05:49:28]OFD Sender: No OFD packet to send [05:49:33]OFD Sender: No OFD packet to send [05:49:38]OFD Sender: No OFD packet to send [05:49:43]OFD Sender: No OFD packet to send [05:49:48]OFD Sender: No OFD packet to send [05:49:53]OFD Sender: No OFD packet to send [05:49:58]OFD Sender: No OFD packet to send [05:50:03]OFD Sender: No OFD packet to send [05:50:08]OFD Sender: No OFD packet to send [05:50:13]OFD Sender: No OFD packet to send [05:50:18]OFD Sender: No OFD packet to send [05:50:23]OFD Sender: No OFD packet to send [05:50:28]OFD Sender: No OFD packet to send [05:50:33]OFD Sender: No OFD packet to send [05:50:38]OFD Sender: No OFD packet to send [05:50:43]OFD Sender: No OFD packet to send [05:50:48]OFD Sender: No OFD packet to send [05:50:53]OFD Sender: No OFD packet to send [05:50:58]OFD Sender: No OFD packet to send [05:51:03]OFD Sender: No OFD packet to send [05:51:08]OFD Sender: No OFD packet to send [05:51:13]OFD Sender: No OFD packet to send [05:51:18]OFD Sender: No OFD packet to send [05:51:23]OFD Sender: No OFD packet to send [05:51:28]OFD Sender: No OFD packet to send [05:51:33]OFD Sender: No OFD packet to send [05:51:38]OFD Sender: No OFD packet to send [05:51:43]OFD Sender: No OFD packet to send [05:51:48]OFD Sender: No OFD packet to send [05:51:53]OFD Sender: No OFD packet to send [05:51:58]OFD Sender: No OFD packet to send [05:52:03]OFD Sender: No OFD packet to send [05:52:08]OFD Sender: No OFD packet to send [05:52:13]OFD Sender: No OFD packet to send [05:52:18]OFD Sender: No OFD packet to send [05:52:23]OFD Sender: No OFD packet to send [05:52:28]OFD Sender: No OFD packet to send [05:52:33]OFD Sender: No OFD packet to send [05:52:38]OFD Sender: No OFD packet to send [05:52:43]OFD Sender: No OFD packet to send [05:52:48]OFD Sender: No OFD packet to send [05:52:53]OFD Sender: No OFD packet to send [05:52:58]OFD Sender: No OFD packet to send [05:53:03]OFD Sender: No OFD packet to send [05:53:08]OFD Sender: No OFD packet to send [05:53:13]OFD Sender: No OFD packet to send [05:53:18]OFD Sender: No OFD packet to send [05:53:23]OFD Sender: No OFD packet to send [05:53:28]OFD Sender: No OFD packet to send [05:53:33]OFD Sender: No OFD packet to send [05:53:38]OFD Sender: No OFD packet to send [05:53:43]OFD Sender: No OFD packet to send [05:53:48]OFD Sender: No OFD packet to send [05:53:53]OFD Sender: No OFD packet to send [05:53:58]OFD Sender: No OFD packet to send [05:54:03]OFD Sender: No OFD packet to send [05:54:08]OFD Sender: No OFD packet to send [05:54:13]OFD Sender: No OFD packet to send [05:54:18]OFD Sender: No OFD packet to send [05:54:23]OFD Sender: No OFD packet to send [05:54:28]OFD Sender: No OFD packet to send [05:54:33]OFD Sender: No OFD packet to send [05:54:38]OFD Sender: No OFD packet to send [05:54:43]OFD Sender: No OFD packet to send [05:54:48]OFD Sender: No OFD packet to send [05:54:53]OFD Sender: No OFD packet to send [05:54:58]OFD Sender: No OFD packet to send [05:55:03]OFD Sender: No OFD packet to send [05:55:08]OFD Sender: No OFD packet to send [05:55:13]OFD Sender: No OFD packet to send [05:55:18]OFD Sender: No OFD packet to send [05:55:23]OFD Sender: No OFD packet to send [05:55:28]OFD Sender: No OFD packet to send [05:55:33]OFD Sender: No OFD packet to send [05:55:38]OFD Sender: No OFD packet to send [05:55:43]OFD Sender: No OFD packet to send [05:55:48]OFD Sender: No OFD packet to send [05:55:53]OFD Sender: No OFD packet to send [05:55:58]OFD Sender: No OFD packet to send [05:56:03]OFD Sender: No OFD packet to send [05:56:08]OFD Sender: No OFD packet to send [05:56:13]OFD Sender: No OFD packet to send [05:56:18]OFD Sender: No OFD packet to send [05:56:23]OFD Sender: No OFD packet to send [05:56:28]OFD Sender: No OFD packet to send [05:56:33]OFD Sender: No OFD packet to send [05:56:38]OFD Sender: No OFD packet to send [05:56:43]OFD Sender: No OFD packet to send [05:56:48]OFD Sender: No OFD packet to send [05:56:53]OFD Sender: No OFD packet to send [05:56:58]OFD Sender: No OFD packet to send [05:57:03]OFD Sender: No OFD packet to send [05:57:08]OFD Sender: No OFD packet to send [05:57:13]OFD Sender: No OFD packet to send [05:57:18]OFD Sender: No OFD packet to send [05:57:23]OFD Sender: No OFD packet to send [05:57:28]OFD Sender: No OFD packet to send [05:57:33]OFD Sender: No OFD packet to send [05:57:38]OFD Sender: No OFD packet to send [05:57:43]OFD Sender: No OFD packet to send [05:57:48]OFD Sender: No OFD packet to send [05:57:53]OFD Sender: No OFD packet to send [05:57:58]OFD Sender: No OFD packet to send [05:58:03]OFD Sender: No OFD packet to send [05:58:08]OFD Sender: No OFD packet to send [05:58:13]OFD Sender: No OFD packet to send [05:58:18]OFD Sender: No OFD packet to send [05:58:23]OFD Sender: No OFD packet to send [05:58:28]OFD Sender: No OFD packet to send [05:58:33]OFD Sender: No OFD packet to send [05:58:38]OFD Sender: No OFD packet to send [05:58:43]OFD Sender: No OFD packet to send [05:58:48]OFD Sender: No OFD packet to send [05:58:53]OFD Sender: No OFD packet to send [05:58:58]OFD Sender: No OFD packet to send [05:59:03]OFD Sender: No OFD packet to send [05:59:08]OFD Sender: No OFD packet to send [05:59:13]OFD Sender: No OFD packet to send [05:59:18]OFD Sender: No OFD packet to send [05:59:23]OFD Sender: No OFD packet to send [05:59:28]OFD Sender: No OFD packet to send [05:59: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:39]OFD Sender: No OFD packet to send [06:10:44]OFD Sender: No OFD packet to send [06:10:49]OFD Sender: No OFD packet to send [06:10:54]OFD Sender: No OFD packet to send [06:10:59]OFD Sender: No OFD packet to send [06:11:04]OFD Sender: No OFD packet to send [06:11:09]OFD Sender: No OFD packet to send [06:11:14]OFD Sender: No OFD packet to send [06:11:19]OFD Sender: No OFD packet to send [06:11:24]OFD Sender: No OFD packet to send [06:11:29]OFD Sender: No OFD packet to send [06:11:34]OFD Sender: No OFD packet to send [06:11:39]OFD Sender: No OFD packet to send [06:11:44]OFD Sender: No OFD packet to send [06:11:49]OFD Sender: No OFD packet to send [06:11:54]OFD Sender: No OFD packet to send [06:11:59]accept exits with 9 [06:11:59]New connection [06:11:59]New thread 3067460964 created [06:11:59]Thread 3067317604 joined [06:11:59]Waiting for new connection... [06:11:59] Sock 9.Parse request [06:11:59]Sock 9.Check first char [06:11:59]Sock 9.First char is OK [06:11:59]request: POST /json_proto HTTP/1.0 [06:11:59]Method: POST [06:11:59]URL: /json_proto [06:11:59]Method is POST - this is cgi request [06:11:59]url: /json_proto [06:11:59]query_string will be loaded in cgi processing [06:11:59]execute_cgi json_proto POST (null) [06:11:59]execute_cgi path=json_proto method=POST [06:11:59]POST find Content-Length [06:11:59]Host: 172.17.45.132:8080 [06:11:59]Content-Length: 646 [06:11:59]Content-Type: application/json [06:11:59] [06:11:59]POST finish read [06:11:59]Found Content-Length = 646 [06:11:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126294", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:11:59]execute_script... [06:11: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)126294", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:11:59]POST & json_proto [06:11:59]process_json_proto [06:11:59]json parsed OK: [06:11:59]protocol is kg_v1.0 [06:11:59]action value=close_receipt [06:11:59]process_action close_receipt [06:11:59]cmd_close_receipt [06:11:59]MH_GetDate [06:11:59]Write to MH i2c: F0 00 00 15 38 3C [06:11:59]Write i2c OK [06:11:59]MH_I2C_Read... [06:11:59]Read from MH i2c: F0 [06:11:59]MH_I2C_Read... [06:11:59]Read from MH i2c: F0 09 00 [06:11:59]MH_I2C_Read... [06:11:59]Read from MH i2c: F0 09 00 15 38 00 33 E1 A5 66 E3 0B 90 66 48 [06:11:59]GetLastDocTimeStamp 1722145664 [06:11:59]current date 1722147123 [06:11:59]FM_GetShiftState [06:11:59]SAM_PROTO_GetShiftState [06:11:59]wFMCommunicate request_size=4 [06:11:59]MH_SAM_APDU [06:11:59]CAPDU: 80 13 01 00 [06:11:59]Write to MH i2c: E2 08 00 16 38 80 13 01 00 00 00 00 00 CB [06:11:59]Write i2c OK [06:11:59]MH_I2C_Read... [06:11:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:11:59]Read from MH i2c: E2 [06:11:59]MH_I2C_Read... [06:11:59]Read from MH i2c: E2 0E 00 [06:11:59]MH_I2C_Read... [06:11:59]Read from MH i2c: E2 0E 00 16 38 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 BF [06:11:59]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [06:11:59]wFMCommunicate OK [06:11:59]SAM_PROTO_GetShiftState done [06:11:59]FM_GetShiftState done [06:11:59]opened in 1722125648 [06:11:59]opened+sec_in_day 1722212048 [06:11:59]quantity*price = 13000 [06:11:59]sum+1 = 13001 [06:11:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 38 28.07.2024 06:12 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 1987 ФПД: 254459656174081 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T061203&type=1&operation_type=1&fn_number=0000000002094248&fd_number=1987&fm=254459656174081&tin=02508201610067®Number=0000000000189667&sum=13000 0 [06:12:00]StoreToDocumentArchive [06:12:00]shift 13 fd 1987 [06:12:00]save to /storage/0013/doc_00001987 [06:12:00]save last doc name /storage/0013/doc_00001987 to /storage/kkm_last_doc_name [06:12:00]save OK [06:12:00]Clear old archive folders... [06:12:00]ProcessDocumentItem done err = 0, tmpTLVsize=282 [06:12:00]tlvbuf is 01F989B0 [06:12:00]SAM_PROTO_ClearQueue [06:12:00]wFMCommunicate request_size=4 [06:12:00]MH_SAM_APDU [06:12:00]CAPDU: 80 09 00 00 [06:12:00]Write to MH i2c: E2 08 00 23 38 80 09 00 00 00 00 00 00 CD [06:12:00]Write i2c OK [06:12:00]MH_I2C_Read... [06:12:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:12:00]Read from MH i2c: E2 [06:12:00]MH_I2C_Read... [06:12:00]Read from MH i2c: E2 03 00 [06:12:00]MH_I2C_Read... [06:12:00]Read from MH i2c: E2 03 00 23 38 00 90 00 CF [06:12:00]RAPDU: 90 00 [06:12:00]wFMCommunicate OK [06:12:00]SAM_PROTO_ClearQueue done [06:12:00]KKMCreateOFDPacket [06:12:00]OFDProtocolAddRootSTLVToBuf [06:12:00]FM_MakeSignedData [06:12:00]FM_MakeSignedData [06:12:00]SAM_PROTO_SignData [06:12:00]wFMCommunicate request_size=4 [06:12:00]MH_SAM_APDU [06:12:00]CAPDU: 80 0D 01 02 [06:12:00]Write to MH i2c: E2 08 00 24 38 80 0D 01 02 00 00 00 00 D5 [06:12:00]Write i2c OK [06:12:00]MH_I2C_Read... [06:12:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:12:00]Read from MH i2c: E2 [06:12:00]MH_I2C_Read... [06:12:00]Read from MH i2c: E2 03 00 [06:12:00]MH_I2C_Read... [06:12:00]Read from MH i2c: E2 03 00 24 38 00 90 00 D0 [06:12:00]RAPDU: 90 00 [06:12:00]wFMCommunicate OK [06:12:00]wFMCommunicate request_size=255 [06:12:00]MH_SAM_APDU [06:12:00]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 33 E1 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 [06:12:00]Write to MH i2c: E2 02 01 25 38 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 33 E1 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 00 00 42 [06:12:00]Write i2c OK [06:12:00]MH_I2C_Read... [06:12:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:12:00]Read from MH i2c: E2 [06:12:00]MH_I2C_Read... [06:12:00]Read from MH i2c: E2 03 00 [06:12:00]MH_I2C_Read... [06:12:00]Read from MH i2c: E2 03 00 25 38 00 90 00 D1 [06:12:00]RAPDU: 90 00 [06:12:00]wFMCommunicate OK [06:12:00]wFMCommunicate request_size=41 [06:12:00]MH_SAM_APDU [06:12:00]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C3 07 00 00 35 04 06 00 E7 6E 01 6A 7A 01 [06:12:00]Write to MH i2c: E2 2C 00 26 38 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C3 07 00 00 35 04 06 00 E7 6E 01 6A 7A 01 00 00 A9 [06:12:00]Write i2c OK [06:12:00]MH_I2C_Read... [06:12:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:12:01]Read from MH i2c: E2 [06:12:01]MH_I2C_Read... [06:12:01]Read from MH i2c: E2 03 00 [06:12:01]MH_I2C_Read... [06:12:01]Read from MH i2c: E2 03 00 26 38 00 90 00 D2 [06:12:01]RAPDU: 90 00 [06:12:01]wFMCommunicate OK [06:12:01]wFMCommunicate request_size=4 [06:12:01]MH_SAM_APDU [06:12:01]CAPDU: 80 0D 03 02 [06:12:01]Write to MH i2c: E2 08 00 27 38 80 0D 03 02 00 00 00 00 DA [06:12:01]Write i2c OK [06:12:01]MH_I2C_Read... [06:12:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:12:01]Read from MH i2c: E2 [06:12:01]MH_I2C_Read... [06:12:01]Read from MH i2c: E2 0B 00 [06:12:01]MH_I2C_Read... [06:12:01]Read from MH i2c: E2 0B 00 27 38 00 FA AC D7 B1 FD 5B CC 1E 90 00 4B [06:12:01]RAPDU: FA AC D7 B1 FD 5B CC 1E 90 00 [06:12:01]wFMCommunicate OK [06:12:01]SAM_PROTO_SignData done [06:12:01]FM_MakeSignedData done [06:12:01]CreateOFDProtocolMessage [06:12:01]wFMCommunicate request_size=4 [06:12:01]MH_SAM_APDU [06:12:01]CAPDU: 80 11 00 00 [06:12:01]Write to MH i2c: E2 08 00 28 38 80 11 00 00 00 00 00 00 DA [06:12:01]Write i2c OK [06:12:01]MH_I2C_Read... [06:12:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:12:01]Read from MH i2c: E2 [06:12:01]MH_I2C_Read... [06:12:01]Read from MH i2c: E2 17 00 [06:12:01]MH_I2C_Read... [06:12:01]Read from MH i2c: E2 17 00 28 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 2A [06:12:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [06:12:01]wFMCommunicate OK [06:12:01]CreateOFDProtocolMessage done [06:12:01]OFDSenderStorePacket 1987 [06:12:01]StoreOFDPacket docnum=1987 [06:12:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2E 01 00 00 92 44 26 01 29 60 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 33 E1 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C3 07 00 00 35 04 06 00 E7 6E 01 6A 7A 01 FA AC D7 B1 FD 5B CC 1E [06:12:01]CheckFolder [06:12:01]dirname=/storage/ofd_packets [06:12:01]CheckFolder done [06:12:01]ProducePacketName [06:12:01]name=ofd_packets/00001987 [06:12:01]NVStorageSaveData ofd_packets/00001987 [06:12:01]File name is /storage/ofd_packets/00001987 [06:12:01]Write 332 bytes [06:12:01]NVStorageSaveData done [06:12:01]OFDSenderStorePacket done [06:12:01]KKMCreateOFDPacket done [06:12:01]NVStorageSaveData kkm_last_timestamp [06:12:01]File name is /storage/kkm_last_timestamp [06:12:01]Write 4 bytes [06:12:01]NVStorageSaveData done [06:12:01]ExternCall_PrintAddStr [06:12:01]wPrintStart [06:12:01]Write to MH i2c: 01 00 00 29 38 61 [06:12:01]Write i2c OK [06:12:01]MH_I2C_Read... [06:12:01]Read from MH i2c: 01 [06:12:01]MH_I2C_Read... [06:12:01]Read from MH i2c: 01 07 00 [06:12:01]MH_I2C_Read... [06:12:01]Read from MH i2c: 01 07 00 29 38 00 00 00 00 00 FF 0F 76 [06:12:01]RasterBufferAndPrint [06:12:01]line Счет N : (3)126294 [06:12:01]line ИНН: 02508201610067 [06:12:01]line Контрольно-Кассовый Чек [06:12:01]line ПРОДАЖА [06:12:01]line Товар: 2000036220012 [06:12:01]line Кофе Капучино XL(GABB TRADE) [06:12:01]line 1.000 * 130.00 [06:12:01]line = 130.00 [06:12:01]line НДС 12% НСП 1% [06:12:01]line > о реализуемом товаре [06:12:01]line ИТОГО: 130.00 [06:12:01]line НСП 1% : 1.15 [06:12:01]line НДС 12% : 13.80 [06:12:01]line Наличными: 130.00 [06:12:01]line Безнал.: 0.00 [06:12:01]line Место: АЗС № 127 "Партнер Нефть" [06:12:01]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [06:12:01]line СНО: Общий режим [06:12:01]line Чек 38 28.07.2024 06:12 [06:12:01]line Смена: 13 ФФД: 1.0 [06:12:01]line ЗНМ: 0300000161 [06:12:01]line РНМ: 0000000000189667 [06:12:01]line Версия ККМ: v1.0 [06:12:01]line ФМ: 0000000002094248 [06:12:01]line ФД: 1987 [06:12:01]line ФПД: 254459656174081 [06:12:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T061203&type=1&operation_type=1&fn_number=0000000002094248&fd_number=1987&fm=254459656174081&tin=02508201610067®Number=0000000000189667&sum=13000 [06:12:01]line 0 [06:12:01]OFD Sender: Processing packet 1987 [packets to send 1, broken 0] [06:12:01]ProducePacketName [06:12:01]name=ofd_packets/00001987 [06:12:01]OFD Sender: To server: pG, [06:12:01]CommunicateWithHost lk.salyk.kg:30040 [06:12:01]ConnectInit lk.salyk.kg [06:12:01]written 0, free lines is 4095 [06:12:01]Connected sock=8 [06:12:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2E 01 00 00 92 44 26 01 29 60 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 33 E1 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C3 07 00 00 35 04 06 00 E7 6E 01 6A 7A 01 FA AC D7 B1 FD 5B CC 1E [06:12:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 2D 6B 47 00 79 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C3 07 00 00 F4 03 04 00 A4 8C A5 66 B6 04 01 00 00 BD 71 7A 04 C3 4E CB AF [06:12:01]CommunicateWithHost err = 0 [06:12:01]CheckOFDResponse [06:12:01]1017 (14) - 77093643461234 [06:12:01]1041 (16) - 0000000002094248 [06:12:01]1040 (4) - 1987 [06:12:01]1012 (4) - 28.07.2024 00:11 [06:12:01]1206 (1) - 0 [06:12:01]OFD Sender: Remove packet 1987 [06:12:01]ProducePacketName [06:12:01]name=ofd_packets/00001987 [06:12:01]NVStorageDeleteData [06:12:01]Write to MH i2c: 01 00 00 52 38 8A [06:12:01]Write i2c OK [06:12:01]MH_I2C_Read... [06:12:01]Read from MH i2c: 01 [06:12:01]MH_I2C_Read... [06:12:01]Read from MH i2c: 01 07 00 [06:12:01]MH_I2C_Read... [06:12:01]Read from MH i2c: 01 07 00 52 38 00 00 00 00 00 1A 0D B8 [06:12:01]RasterBufferAndPrint [06:12:01]line [06:12:01]line [06:12:01]line [06:12:01]line [06:12:01]line [06:12:01]written 0, free lines is 3364 [06:12:01]MH_Cut [06:12:01]Write to MH i2c: D1 01 00 59 38 01 63 [06:12:01]Write i2c OK [06:12:01]MH_I2C_Read... [06:12:01]Read from MH i2c: D1 [06:12:01]MH_I2C_Read... [06:12:01]Read from MH i2c: D1 01 00 [06:12:01]MH_I2C_Read... [06:12:01]Read from MH i2c: D1 01 00 59 38 00 62 [06:12:01]Write to MH i2c: 01 00 00 5A 38 92 [06:12:01]Write i2c OK [06:12:01]MH_I2C_Read... [06:12:02]OFD Sender: No OFD packet to send [06:12:02]*** Cut start [06:12:02]*** Partial cut [06:12:02]*** CUTSNS_PIN = 1 [06:12:02]*** CUTSNS_PIN = 0 [06:12:02]*** Brake cut motor [06:12:03]Read from MH i2c: 01 [06:12:03]MH_I2C_Read... [06:12:03]*** Stop cut motor [06:12:03]*** Cut end [06:12:03]Read from MH i2c: 01 07 00 [06:12:03]MH_I2C_Read... [06:12:03]Read from MH i2c: 01 07 00 5A 38 00 00 00 00 00 FF 0F A7 [06:12:03]process_action close_receipt done [06:12:03]requested_data is exist [06:12:03]produce_requested_data [06:12:03]requested_item fm.sn is exist - process it [06:12:03]wFMCommunicate request_size=4 [06:12:03]MH_SAM_APDU [06:12:03]CAPDU: 80 11 00 00 [06:12:03]Write to MH i2c: E2 08 00 5B 38 80 11 00 00 00 00 00 00 0D [06:12:03]Write i2c OK [06:12:03]MH_I2C_Read... [06:12:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:12:03]Read from MH i2c: E2 [06:12:03]MH_I2C_Read... [06:12:03]Read from MH i2c: E2 17 00 [06:12:03]MH_I2C_Read... [06:12:03]Read from MH i2c: E2 17 00 5B 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 5D [06:12:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [06:12:03]wFMCommunicate OK [06:12:03]requested_item fd.num is exist - process it [06:12:03]SAM_PROTO_GetFieldsCounters [06:12:03]wFMCommunicate request_size=4 [06:12:03]MH_SAM_APDU [06:12:03]CAPDU: 80 13 00 00 [06:12:03]Write to MH i2c: E2 08 00 5C 38 80 13 00 00 00 00 00 00 10 [06:12:03]Write i2c OK [06:12:03]MH_I2C_Read... [06:12:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:12:03]Read from MH i2c: E2 [06:12:03]MH_I2C_Read... [06:12:03]Read from MH i2c: E2 62 00 [06:12:03]MH_I2C_Read... [06:12:03]Read from MH i2c: E2 62 00 5C 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 C3 07 00 00 0E 04 04 00 0D 00 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 83 [06:12:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 C3 07 00 00 0E 04 04 00 0D 00 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 [06:12:03]wFMCommunicate OK [06:12:03]SAM_PROTO_GetFieldsCounters done [06:12:03]requested_item shift.num is exist - process it [06:12:03]requested_item shift.opened is exist - process it [06:12:03]req_shift_opened [06:12:03]FM_GetShiftState [06:12:03]SAM_PROTO_GetShiftState [06:12:03]wFMCommunicate request_size=4 [06:12:03]MH_SAM_APDU [06:12:03]CAPDU: 80 13 01 00 [06:12:03]Write to MH i2c: E2 08 00 5D 38 80 13 01 00 00 00 00 00 12 [06:12:03]Write i2c OK [06:12:03]MH_I2C_Read... [06:12:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:12:03]Read from MH i2c: E2 [06:12:03]MH_I2C_Read... [06:12:03]Read from MH i2c: E2 0E 00 [06:12:03]MH_I2C_Read... [06:12:03]Read from MH i2c: E2 0E 00 5D 38 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 06 [06:12:03]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [06:12:03]wFMCommunicate OK [06:12:03]SAM_PROTO_GetShiftState done [06:12:03]FM_GetShiftState done [06:12:03]req_shift_opened done [06:12:03]requested_item shift.open_date is exist - process it [06:12:03]req_shift_open_date [06:12:03]req_shift_open_date done [06:12:03]produce_requested_data done [06:12:03]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":1987,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [06:12:03]process_action_free close_receipt [06:12:03]json_value_free [06:12:03]json_value_free done [06:12:03]process_json_proto returns [06:12:03]Send response to host [06:12:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":1987,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [06:12:03]free response buf [06:12:03]execute_script done [06:12:03]execute_script returns [06:12:03]free content buf [06:12:03]Sock 9.Close socket [06:12:03]Sock 9.Thread stoped [06:12:07]OFD Sender: No OFD packet to send [06:12:12]OFD Sender: No OFD packet to send [06:12:17]OFD Sender: No OFD packet to send [06:12:22]OFD Sender: No OFD packet to send [06:12:27]OFD Sender: No OFD packet to send [06:12:32]OFD Sender: No OFD packet to send [06:12:37]OFD Sender: No OFD packet to send [06:12:42]OFD Sender: No OFD packet to send [06:12:47]OFD Sender: No OFD packet to send [06:12:52]OFD Sender: No OFD packet to send [06:12:57]OFD Sender: No OFD packet to send [06:13:02]OFD Sender: No OFD packet to send [06:13:07]OFD Sender: No OFD packet to send [06:13:12]OFD Sender: No OFD packet to send [06:13:17]OFD Sender: No OFD packet to send [06:13:22]OFD Sender: No OFD packet to send [06:13:27]OFD Sender: No OFD packet to send [06:13:32]OFD Sender: No OFD packet to send [06:13:37]OFD Sender: No OFD packet to send [06:13:42]OFD Sender: No OFD packet to send [06:13:47]OFD Sender: No OFD packet to send [06:13:52]OFD Sender: No OFD packet to send [06:13:57]OFD Sender: No OFD packet to send [06:14:02]OFD Sender: No OFD packet to send [06:14:07]OFD Sender: No OFD packet to send [06:14:12]OFD Sender: No OFD packet to send [06:14:17]OFD Sender: No OFD packet to send [06:14:22]OFD Sender: No OFD packet to send [06:14:27]OFD Sender: No OFD packet to send [06:14:32]OFD Sender: No OFD packet to send [06:14:37]OFD Sender: No OFD packet to send [06:14:40]accept exits with 10 [06:14:40]New connection [06:14:40]New thread 3067317604 created [06:14:40]Thread 3067460964 joined [06:14:40]Waiting for new connection... [06:14:40] Sock 10.Parse request [06:14:40]Sock 10.Check first char [06:14:40]Sock 10.First char is OK [06:14:40]request: POST /json_proto HTTP/1.0 [06:14:40]Method: POST [06:14:40]URL: /json_proto [06:14:40]Method is POST - this is cgi request [06:14:40]url: /json_proto [06:14:40]query_string will be loaded in cgi processing [06:14:40]execute_cgi json_proto POST (null) [06:14:40]execute_cgi path=json_proto method=POST [06:14:40]POST find Content-Length [06:14:40]Host: 172.17.45.132:8080 [06:14:40]Content-Length: 1166 [06:14:40]Content-Type: application/json [06:14:40] [06:14:40]POST finish read [06:14:40]Found Content-Length = 1166 [06:14:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126295", "tax_sys" : 0, "items" : [ { "code": "4630002599859", "name": "\u041C\u0430\u0441\u043B\u043E Gazpromneft Standart 15w40 1\u043B", "price" : 405.00, "quantity" : 1.000, "sum" : 405.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ], "payments": [ { "type": 0, "sum" : 670.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:14:40]execute_script... [06:14: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)126295", "tax_sys" : 0, "items" : [ { "code": "4630002599859", "name": "\u041C\u0430\u0441\u043B\u043E Gazpromneft Standart 15w40 1\u043B", "price" : 405.00, "quantity" : 1.000, "sum" : 405.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ], "payments": [ { "type": 0, "sum" : 670.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:14:40]POST & json_proto [06:14:40]process_json_proto [06:14:40]json parsed OK: [06:14:40]protocol is kg_v1.0 [06:14:40]action value=close_receipt [06:14:40]process_action close_receipt [06:14:40]cmd_close_receipt [06:14:40]MH_GetDate [06:14:40]Write to MH i2c: F0 00 00 5E 38 85 [06:14:40]Write i2c OK [06:14:40]MH_I2C_Read... [06:14:40]Read from MH i2c: F0 [06:14:40]MH_I2C_Read... [06:14:40]Read from MH i2c: F0 09 00 [06:14:40]MH_I2C_Read... [06:14:40]Read from MH i2c: F0 09 00 5E 38 00 D5 E1 A5 66 E3 0B 90 66 33 [06:14:40]GetLastDocTimeStamp 1722147123 [06:14:40]current date 1722147285 [06:14:40]FM_GetShiftState [06:14:40]SAM_PROTO_GetShiftState [06:14:40]wFMCommunicate request_size=4 [06:14:40]MH_SAM_APDU [06:14:40]CAPDU: 80 13 01 00 [06:14:40]Write to MH i2c: E2 08 00 5F 38 80 13 01 00 00 00 00 00 14 [06:14:40]Write i2c OK [06:14:40]MH_I2C_Read... [06:14:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:14:40]Read from MH i2c: E2 [06:14:40]MH_I2C_Read... [06:14:40]Read from MH i2c: E2 0E 00 [06:14:40]MH_I2C_Read... [06:14:40]Read from MH i2c: E2 0E 00 5F 38 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 08 [06:14:40]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [06:14:40]wFMCommunicate OK [06:14:40]SAM_PROTO_GetShiftState done [06:14:40]FM_GetShiftState done [06:14:40]opened in 1722125648 [06:14:40]opened+sec_in_day 1722212048 [06:14:40]quantity*price = 40500 [06:14:40]sum+1 = 40501 [06:14:40]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48743570 Сигареты Winston XStyle Blue 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870202521247 Напиток MAXI чай 1,2 черн.персик 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 670.00 НСП 1% : 5.93 НДС 12% : 71.15 Наличными: 670.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 39 28.07.2024 06:14 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 1988 ФПД: 208672302305325 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T061445&type=1&operation_type=1&fn_number=0000000002094248&fd_number=1988&fm=208672302305325&tin=02508201610067®Number=0000000000189667&sum=67000 0 [06:14:42]StoreToDocumentArchive [06:14:42]shift 13 fd 1988 [06:14:42]save to /storage/0013/doc_00001988 [06:14:42]save last doc name /storage/0013/doc_00001988 to /storage/kkm_last_doc_name [06:14:42]save OK [06:14:42]Clear old archive folders... [06:14:42]ProcessDocumentItem done err = 0, tmpTLVsize=510 [06:14:42]tlvbuf is 01F986D0 [06:14:42]SAM_PROTO_ClearQueue [06:14:42]wFMCommunicate request_size=4 [06:14:42]MH_SAM_APDU [06:14:42]CAPDU: 80 09 00 00 [06:14:42]Write to MH i2c: E2 08 00 6C 38 80 09 00 00 00 00 00 00 16 [06:14:42]Write i2c OK [06:14:42]MH_I2C_Read... [06:14:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:14:42]Read from MH i2c: E2 [06:14:42]MH_I2C_Read... [06:14:42]Read from MH i2c: E2 03 00 [06:14:42]MH_I2C_Read... [06:14:42]Read from MH i2c: E2 03 00 6C 38 00 90 00 18 [06:14:42]RAPDU: 90 00 [06:14:42]wFMCommunicate OK [06:14:42]SAM_PROTO_ClearQueue done [06:14:42]KKMCreateOFDPacket [06:14:42]OFDProtocolAddRootSTLVToBuf [06:14:42]FM_MakeSignedData [06:14:42]FM_MakeSignedData [06:14:42]SAM_PROTO_SignData [06:14:42]wFMCommunicate request_size=4 [06:14:42]MH_SAM_APDU [06:14:42]CAPDU: 80 0D 01 02 [06:14:42]Write to MH i2c: E2 08 00 6D 38 80 0D 01 02 00 00 00 00 1E [06:14:42]Write i2c OK [06:14:42]MH_I2C_Read... [06:14:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:14:42]Read from MH i2c: E2 [06:14:42]MH_I2C_Read... [06:14:42]Read from MH i2c: E2 03 00 [06:14:42]MH_I2C_Read... [06:14:42]Read from MH i2c: E2 03 00 6D 38 00 90 00 19 [06:14:42]RAPDU: 90 00 [06:14:42]wFMCommunicate OK [06:14:42]wFMCommunicate request_size=255 [06:14:42]MH_SAM_APDU [06:14:42]CAPDU: 80 0D 02 02 FA 03 00 FE 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 32 35 39 39 38 35 39 06 04 29 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 74 61 6E 64 61 72 74 20 31 35 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 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 [06:14:42]Write to MH i2c: E2 02 01 6E 38 80 0D 02 02 FA 00 03 00 FE 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 32 35 39 39 38 35 39 06 04 29 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 74 61 6E 64 61 72 74 20 31 35 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 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 00 00 3B [06:14:42]Write i2c OK [06:14:42]MH_I2C_Read... [06:14:42]OFD Sender: No OFD packet to send [06:14:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:14:42]Read from MH i2c: E2 [06:14:42]MH_I2C_Read... [06:14:42]Read from MH i2c: E2 03 00 [06:14:42]MH_I2C_Read... [06:14:42]Read from MH i2c: E2 03 00 6E 38 00 90 00 1A [06:14:42]RAPDU: 90 00 [06:14:42]wFMCommunicate OK [06:14:42]wFMCommunicate request_size=255 [06:14:42]MH_SAM_APDU [06:14:42]CAPDU: 80 0D 02 02 FA 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 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 1B 00 00 00 00 07 04 06 00 B8 05 01 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 D5 E1 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 [06:14:42]Write to MH i2c: E2 02 01 6F 38 80 0D 02 02 FA 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 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 1B 00 00 00 00 07 04 06 00 B8 05 01 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 D5 E1 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 00 00 9E [06:14:42]Write i2c OK [06:14:42]MH_I2C_Read... [06:14:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:14:43]Read from MH i2c: E2 [06:14:43]MH_I2C_Read... [06:14:43]Read from MH i2c: E2 03 00 [06:14:43]MH_I2C_Read... [06:14:43]Read from MH i2c: E2 03 00 6F 38 00 90 00 1B [06:14:43]RAPDU: 90 00 [06:14:43]wFMCommunicate OK [06:14:43]wFMCommunicate request_size=19 [06:14:43]MH_SAM_APDU [06:14:43]CAPDU: 80 0D 02 02 0E C4 07 00 00 35 04 06 00 BD C9 4E 74 10 2D [06:14:43]Write to MH i2c: E2 16 00 70 38 80 0D 02 02 0E 00 C4 07 00 00 35 04 06 00 BD C9 4E 74 10 2D 00 00 CD [06:14:43]Write i2c OK [06:14:43]MH_I2C_Read... [06:14:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:14:43]Read from MH i2c: E2 [06:14:43]MH_I2C_Read... [06:14:43]Read from MH i2c: E2 03 00 [06:14:43]MH_I2C_Read... [06:14:43]Read from MH i2c: E2 03 00 70 38 00 90 00 1C [06:14:43]RAPDU: 90 00 [06:14:43]wFMCommunicate OK [06:14:43]wFMCommunicate request_size=4 [06:14:43]MH_SAM_APDU [06:14:43]CAPDU: 80 0D 03 02 [06:14:43]Write to MH i2c: E2 08 00 71 38 80 0D 03 02 00 00 00 00 24 [06:14:43]Write i2c OK [06:14:43]MH_I2C_Read... [06:14:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:14:43]Read from MH i2c: E2 [06:14:43]MH_I2C_Read... [06:14:43]Read from MH i2c: E2 0B 00 [06:14:43]MH_I2C_Read... [06:14:43]Read from MH i2c: E2 0B 00 71 38 00 0C 26 7A CA AB E9 4F D0 90 00 4E [06:14:43]RAPDU: 0C 26 7A CA AB E9 4F D0 90 00 [06:14:43]wFMCommunicate OK [06:14:43]SAM_PROTO_SignData done [06:14:43]FM_MakeSignedData done [06:14:43]CreateOFDProtocolMessage [06:14:43]wFMCommunicate request_size=4 [06:14:43]MH_SAM_APDU [06:14:43]CAPDU: 80 11 00 00 [06:14:43]Write to MH i2c: E2 08 00 72 38 80 11 00 00 00 00 00 00 24 [06:14:43]Write i2c OK [06:14:43]MH_I2C_Read... [06:14:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:14:43]Read from MH i2c: E2 [06:14:43]MH_I2C_Read... [06:14:43]Read from MH i2c: E2 17 00 [06:14:43]MH_I2C_Read... [06:14:43]Read from MH i2c: E2 17 00 72 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 74 [06:14:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [06:14:43]wFMCommunicate OK [06:14:43]CreateOFDProtocolMessage done [06:14:43]OFDSenderStorePacket 1988 [06:14:43]StoreOFDPacket docnum=1988 [06:14:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 12 02 00 00 C5 EC 0A 02 BF 57 5A 03 01 00 03 00 FE 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 32 35 39 39 38 35 39 06 04 29 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 74 61 6E 64 61 72 74 20 31 35 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 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 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 1B 00 00 00 00 07 04 06 00 B8 05 01 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 D5 E1 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C4 07 00 00 35 04 06 00 BD C9 4E 74 10 2D 0C 26 7A CA AB E9 4F D0 [06:14:43]CheckFolder [06:14:43]dirname=/storage/ofd_packets [06:14:43]CheckFolder done [06:14:43]ProducePacketName [06:14:43]name=ofd_packets/00001988 [06:14:43]NVStorageSaveData ofd_packets/00001988 [06:14:43]File name is /storage/ofd_packets/00001988 [06:14:43]Write 560 bytes [06:14:43]NVStorageSaveData done [06:14:43]OFDSenderStorePacket done [06:14:43]KKMCreateOFDPacket done [06:14:43]NVStorageSaveData kkm_last_timestamp [06:14:43]File name is /storage/kkm_last_timestamp [06:14:43]Write 4 bytes [06:14:43]NVStorageSaveData done [06:14:43]ExternCall_PrintAddStr [06:14:43]wPrintStart [06:14:43]Write to MH i2c: 01 00 00 73 38 AB [06:14:43]Write i2c OK [06:14:43]MH_I2C_Read... [06:14:43]Read from MH i2c: 01 [06:14:43]MH_I2C_Read... [06:14:43]Read from MH i2c: 01 07 00 [06:14:43]MH_I2C_Read... [06:14:43]Read from MH i2c: 01 07 00 73 38 00 00 00 00 00 FF 0F C0 [06:14:43]RasterBufferAndPrint [06:14:43]line Счет N : (3)126295 [06:14:43]line ИНН: 02508201610067 [06:14:43]line Контрольно-Кассовый Чек [06:14:43]line ПРОДАЖА [06:14:43]line Товар: 4630002599859 [06:14:43]line Масло Gazpromneft Standart 15w40 1л [06:14:43]line 1.000 * 405.00 [06:14:43]line = 405.00 [06:14:43]line НДС 12% НСП 1% [06:14:43]line > о реализуемом товаре [06:14:43]line Товар: 48743570 [06:14:43]line Сигареты Winston XStyle Blue [06:14:43]line 1.000 * 140.00 [06:14:43]line = 140.00 [06:14:43]line НДС 12% НСП 1% [06:14:43]line > о реализуемом товаре [06:14:43]line Товар: 4870202521247 [06:14:43]line Напиток MAXI чай 1,2 черн.персик [06:14:43]line 1.000 * 125.00 [06:14:43]line = 125.00 [06:14:43]line НДС 12% НСП 1% [06:14:43]line > о реализуемом товаре [06:14:43]line ИТОГО: 670.00 [06:14:43]line НСП 1% : 5.93 [06:14:43]line НДС 12% : 71.15 [06:14:43]line Наличными: 670.00 [06:14:43]line Безнал.: 0.00 [06:14:43]line Место: АЗС № 127 "Партнер Нефть" [06:14:43]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [06:14:43]line СНО: Общий режим [06:14:43]line Чек 39 28.07.2024 06:14 [06:14:43]line Смена: 13 ФФД: 1.0 [06:14:43]line ЗНМ: 0300000161 [06:14:43]line РНМ: 0000000000189667 [06:14:43]line Версия ККМ: v1.0 [06:14:43]line ФМ: 0000000002094248 [06:14:43]line ФД: 1988 [06:14:43]line ФПД: 208672302305325 [06:14:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T061445&type=1&operation_type=1&fn_number=0000000002094248&fd_number=1988&fm=208672302305325&tin=02508201610067®Number=0000000000189667&sum=67000 [06:14:43]line 0 [06:14:43]written 0, free lines is 4095 [06:14:43]OFD Sender: Processing packet 1988 [packets to send 1, broken 0] [06:14:43]ProducePacketName [06:14:43]name=ofd_packets/00001988 [06:14:43]OFD Sender: To server: pG, [06:14:43]CommunicateWithHost lk.salyk.kg:30040 [06:14:43]ConnectInit lk.salyk.kg [06:14:43]Connected sock=9 [06:14:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 12 02 00 00 C5 EC 0A 02 BF 57 5A 03 01 00 03 00 FE 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 32 35 39 39 38 35 39 06 04 29 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 74 61 6E 64 61 72 74 20 31 35 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 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 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 1B 00 00 00 00 07 04 06 00 B8 05 01 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 D5 E1 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C4 07 00 00 35 04 06 00 BD C9 4E 74 10 2D 0C 26 7A CA AB E9 4F D0 [06:14:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 F2 81 47 00 AE 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 32 30 39 34 32 34 38 10 04 04 00 C4 07 00 00 F4 03 04 00 45 8D A5 66 B6 04 01 00 00 35 13 01 6F 03 1B 2E FA [06:14:43]CommunicateWithHost err = 0 [06:14:43]CheckOFDResponse [06:14:43]1017 (14) - 77093643461234 [06:14:43]1041 (16) - 0000000002094248 [06:14:43]1040 (4) - 1988 [06:14:43]1012 (4) - 28.07.2024 00:13 [06:14:43]1206 (1) - 0 [06:14:43]OFD Sender: Remove packet 1988 [06:14:43]ProducePacketName [06:14:43]name=ofd_packets/00001988 [06:14:43]NVStorageDeleteData [06:14:43]Write to MH i2c: 01 00 00 A9 38 E1 [06:14:43]Write i2c OK [06:14:43]MH_I2C_Read... [06:14:43]Read from MH i2c: 01 [06:14:43]MH_I2C_Read... [06:14:43]Read from MH i2c: 01 07 00 [06:14:43]MH_I2C_Read... [06:14:43]Read from MH i2c: 01 07 00 A9 38 00 00 00 00 00 6F 0C 63 [06:14:43]RasterBufferAndPrint [06:14:43]line [06:14:43]line [06:14:43]line [06:14:43]line [06:14:43]line [06:14:43]written 0, free lines is 3192 [06:14:43]MH_Cut [06:14:43]Write to MH i2c: D1 01 00 B0 38 01 BA [06:14:43]Write i2c OK [06:14:43]MH_I2C_Read... [06:14:43]Read from MH i2c: D1 [06:14:43]MH_I2C_Read... [06:14:43]Read from MH i2c: D1 01 00 [06:14:43]MH_I2C_Read... [06:14:43]Read from MH i2c: D1 01 00 B0 38 00 B9 [06:14:43]Write to MH i2c: 01 00 00 B1 38 E9 [06:14:43]Write i2c OK [06:14:43]MH_I2C_Read... [06:14:44]OFD Sender: No OFD packet to send [06:14:44]*** Cut start [06:14:44]*** Partial cut [06:14:44]*** CUTSNS_PIN = 1 [06:14:44]*** CUTSNS_PIN = 0 [06:14:44]*** Brake cut motor [06:14:45]Read from MH i2c: 01 [06:14:45]MH_I2C_Read... [06:14:45]*** Stop cut motor [06:14:45]*** Cut end [06:14:45]Read from MH i2c: 01 07 00 [06:14:45]MH_I2C_Read... [06:14:45]Read from MH i2c: 01 07 00 B1 38 00 00 00 00 00 FF 0F FE [06:14:45]process_action close_receipt done [06:14:45]requested_data is exist [06:14:45]produce_requested_data [06:14:45]requested_item fm.sn is exist - process it [06:14:45]wFMCommunicate request_size=4 [06:14:45]MH_SAM_APDU [06:14:45]CAPDU: 80 11 00 00 [06:14:45]Write to MH i2c: E2 08 00 B2 38 80 11 00 00 00 00 00 00 64 [06:14:45]Write i2c OK [06:14:45]MH_I2C_Read... [06:14:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:14:45]Read from MH i2c: E2 [06:14:45]MH_I2C_Read... [06:14:45]Read from MH i2c: E2 17 00 [06:14:45]MH_I2C_Read... [06:14:45]Read from MH i2c: E2 17 00 B2 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 B4 [06:14:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [06:14:45]wFMCommunicate OK [06:14:45]requested_item fd.num is exist - process it [06:14:45]SAM_PROTO_GetFieldsCounters [06:14:45]wFMCommunicate request_size=4 [06:14:45]MH_SAM_APDU [06:14:45]CAPDU: 80 13 00 00 [06:14:45]Write to MH i2c: E2 08 00 B3 38 80 13 00 00 00 00 00 00 67 [06:14:45]Write i2c OK [06:14:45]MH_I2C_Read... [06:14:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:14:45]Read from MH i2c: E2 [06:14:45]MH_I2C_Read... [06:14:45]Read from MH i2c: E2 62 00 [06:14:45]MH_I2C_Read... [06:14:45]Read from MH i2c: E2 62 00 B3 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 C4 07 00 00 0E 04 04 00 0D 00 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 DE [06:14:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 C4 07 00 00 0E 04 04 00 0D 00 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 [06:14:45]wFMCommunicate OK [06:14:45]SAM_PROTO_GetFieldsCounters done [06:14:45]requested_item shift.num is exist - process it [06:14:45]requested_item shift.opened is exist - process it [06:14:45]req_shift_opened [06:14:45]FM_GetShiftState [06:14:45]SAM_PROTO_GetShiftState [06:14:45]wFMCommunicate request_size=4 [06:14:45]MH_SAM_APDU [06:14:45]CAPDU: 80 13 01 00 [06:14:45]Write to MH i2c: E2 08 00 B4 38 80 13 01 00 00 00 00 00 69 [06:14:45]Write i2c OK [06:14:45]MH_I2C_Read... [06:14:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:14:45]Read from MH i2c: E2 [06:14:45]MH_I2C_Read... [06:14:45]Read from MH i2c: E2 0E 00 [06:14:45]MH_I2C_Read... [06:14:45]Read from MH i2c: E2 0E 00 B4 38 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 5D [06:14:45]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [06:14:45]wFMCommunicate OK [06:14:45]SAM_PROTO_GetShiftState done [06:14:45]FM_GetShiftState done [06:14:45]req_shift_opened done [06:14:45]requested_item shift.open_date is exist - process it [06:14:45]req_shift_open_date [06:14:45]req_shift_open_date done [06:14:45]produce_requested_data done [06:14:45]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":1988,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [06:14:45]process_action_free close_receipt [06:14:45]json_value_free [06:14:45]json_value_free done [06:14:45]process_json_proto returns [06:14:45]Send response to host [06:14:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":1988,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [06:14:45]free response buf [06:14:45]execute_script done [06:14:45]execute_script returns [06:14:45]free content buf [06:14:45]Sock 10.Close socket [06:14:45]Sock 10.Thread stoped [06:14:49]OFD Sender: No OFD packet to send [06:14:54]OFD Sender: No OFD packet to send [06:14:59]OFD Sender: No OFD packet to send [06:15:04]OFD Sender: No OFD packet to send [06:15:09]OFD Sender: No OFD packet to send [06:15:14]OFD Sender: No OFD packet to send [06:15:19]OFD Sender: No OFD packet to send [06:15:24]OFD Sender: No OFD packet to send [06:15:29]OFD Sender: No OFD packet to send [06:15:34]OFD Sender: No OFD packet to send [06:15:39]OFD Sender: No OFD packet to send [06:15:44]OFD Sender: No OFD packet to send [06:15:49]OFD Sender: No OFD packet to send [06:15:54]OFD Sender: No OFD packet to send [06:15:59]OFD Sender: No OFD packet to send [06:16:04]OFD Sender: No OFD packet to send [06:16:09]OFD Sender: No OFD packet to send [06:16:14]OFD Sender: No OFD packet to send [06:16:19]OFD Sender: No OFD packet to send [06:16:24]OFD Sender: No OFD packet to send [06:16:29]OFD Sender: No OFD packet to send [06:16:34]OFD Sender: No OFD packet to send [06:16:39]OFD Sender: No OFD packet to send [06:16:44]OFD Sender: No OFD packet to send [06:16:49]OFD Sender: No OFD packet to send [06:16:54]OFD Sender: No OFD packet to send [06:16:59]OFD Sender: No OFD packet to send [06:17:04]OFD Sender: No OFD packet to send [06:17:09]OFD Sender: No OFD packet to send [06:17:14]OFD Sender: No OFD packet to send [06:17:19]OFD Sender: No OFD packet to send [06:17:24]OFD Sender: No OFD packet to send [06:17:29]OFD Sender: No OFD packet to send [06:17:34]OFD Sender: No OFD packet to send [06:17:39]OFD Sender: No OFD packet to send [06:17:44]OFD Sender: No OFD packet to send [06:17:49]OFD Sender: No OFD packet to send [06:17:54]OFD Sender: No OFD packet to send [06:17:59]OFD Sender: No OFD packet to send [06:18:04]OFD Sender: No OFD packet to send [06:18:09]OFD Sender: No OFD packet to send [06:18:14]OFD Sender: No OFD packet to send [06:18:19]OFD Sender: No OFD packet to send [06:18:24]OFD Sender: No OFD packet to send [06:18:29]OFD Sender: No OFD packet to send [06:18:34]OFD Sender: No OFD packet to send [06:18:39]OFD Sender: No OFD packet to send [06:18:44]OFD Sender: No OFD packet to send [06:18:49]OFD Sender: No OFD packet to send [06:18:54]OFD Sender: No OFD packet to send [06:18:59]OFD Sender: No OFD packet to send [06:19:04]OFD Sender: No OFD packet to send [06:19:09]OFD Sender: No OFD packet to send [06:19:14]OFD Sender: No OFD packet to send [06:19:19]OFD Sender: No OFD packet to send [06:19:24]OFD Sender: No OFD packet to send [06:19:29]OFD Sender: No OFD packet to send [06:19:34]OFD Sender: No OFD packet to send [06:19:39]OFD Sender: No OFD packet to send [06:19:44]OFD Sender: No OFD packet to send [06:19:49]OFD Sender: No OFD packet to send [06:19:54]OFD Sender: No OFD packet to send [06:19:59]OFD Sender: No OFD packet to send [06:20:04]OFD Sender: No OFD packet to send [06:20:09]OFD Sender: No OFD packet to send [06:20:14]OFD Sender: No OFD packet to send [06:20:19]OFD Sender: No OFD packet to send [06:20:24]OFD Sender: No OFD packet to send [06:20:29]OFD Sender: No OFD packet to send [06:20:34]OFD Sender: No OFD packet to send [06:20:39]OFD Sender: No OFD packet to send [06:20:44]OFD Sender: No OFD packet to send [06:20:49]OFD Sender: No OFD packet to send [06:20:54]OFD Sender: No OFD packet to send [06:20:59]OFD Sender: No OFD packet to send [06:21:04]OFD Sender: No OFD packet to send [06:21:09]OFD Sender: No OFD packet to send [06:21:14]OFD Sender: No OFD packet to send [06:21:19]OFD Sender: No OFD packet to send [06:21:24]OFD Sender: No OFD packet to send [06:21:29]OFD Sender: No OFD packet to send [06:21:34]OFD Sender: No OFD packet to send [06:21:39]OFD Sender: No OFD packet to send [06:21:44]OFD Sender: No OFD packet to send [06:21:49]OFD Sender: No OFD packet to send [06:21:54]OFD Sender: No OFD packet to send [06:21:59]OFD Sender: No OFD packet to send [06:22:04]OFD Sender: No OFD packet to send [06:22:09]OFD Sender: No OFD packet to send [06:22:14]OFD Sender: No OFD packet to send [06:22:19]OFD Sender: No OFD packet to send [06:22:24]OFD Sender: No OFD packet to send [06:22:29]OFD Sender: No OFD packet to send [06:22:34]OFD Sender: No OFD packet to send [06:22:39]OFD Sender: No OFD packet to send [06:22:44]OFD Sender: No OFD packet to send [06:22:49]OFD Sender: No OFD packet to send [06:22:54]OFD Sender: No OFD packet to send [06:22:59]OFD Sender: No OFD packet to send [06:23:04]OFD Sender: No OFD packet to send [06:23:09]OFD Sender: No OFD packet to send [06:23:14]OFD Sender: No OFD packet to send [06:23:19]OFD Sender: No OFD packet to send [06:23:24]OFD Sender: No OFD packet to send [06:23:29]OFD Sender: No OFD packet to send [06:23:34]OFD Sender: No OFD packet to send [06:23:39]OFD Sender: No OFD packet to send [06:23:44]OFD Sender: No OFD packet to send [06:23:49]OFD Sender: No OFD packet to send [06:23:54]OFD Sender: No OFD packet to send [06:23:59]OFD Sender: No OFD packet to send [06:24:04]OFD Sender: No OFD packet to send [06:24:09]OFD Sender: No OFD packet to send [06:24:14]OFD Sender: No OFD packet to send [06:24:19]OFD Sender: No OFD packet to send [06:24:24]OFD Sender: No OFD packet to send [06:24:29]OFD Sender: No OFD packet to send [06:24:34]OFD Sender: No OFD packet to send [06:24:39]OFD Sender: No OFD packet to send [06:24:44]OFD Sender: No OFD packet to send [06:24:49]OFD Sender: No OFD packet to send [06:24:54]OFD Sender: No OFD packet to send [06:24:59]OFD Sender: No OFD packet to send [06:25:04]OFD Sender: No OFD packet to send [06:25:09]OFD Sender: No OFD packet to send [06:25:14]OFD Sender: No OFD packet to send [06:25:19]OFD Sender: No OFD packet to send [06:25:24]OFD Sender: No OFD packet to send [06:25:29]OFD Sender: No OFD packet to send [06:25:34]OFD Sender: No OFD packet to send [06:25:39]OFD Sender: No OFD packet to send [06:25:44]OFD Sender: No OFD packet to send [06:25:49]OFD Sender: No OFD packet to send [06:25:54]OFD Sender: No OFD packet to send [06:25:59]OFD Sender: No OFD packet to send [06:26:04]OFD Sender: No OFD packet to send [06:26:09]OFD Sender: No OFD packet to send [06:26:14]OFD Sender: No OFD packet to send [06:26:19]OFD Sender: No OFD packet to send [06:26:24]OFD Sender: No OFD packet to send [06:26:29]OFD Sender: No OFD packet to send [06:26:34]OFD Sender: No OFD packet to send [06:26:39]OFD Sender: No OFD packet to send [06:26:44]OFD Sender: No OFD packet to send [06:26:49]OFD Sender: No OFD packet to send [06:26:54]OFD Sender: No OFD packet to send [06:26:59]OFD Sender: No OFD packet to send [06:27:04]OFD Sender: No OFD packet to send [06:27:09]OFD Sender: No OFD packet to send [06:27:14]OFD Sender: No OFD packet to send [06:27:19]OFD Sender: No OFD packet to send [06:27:24]OFD Sender: No OFD packet to send [06:27:29]OFD Sender: No OFD packet to send [06:27:34]OFD Sender: No OFD packet to send [06:27:39]OFD Sender: No OFD packet to send [06:27:44]OFD Sender: No OFD packet to send [06:27:49]OFD Sender: No OFD packet to send [06:27:54]OFD Sender: No OFD packet to send [06:27:59]OFD Sender: No OFD packet to send [06:28:04]OFD Sender: No OFD packet to send [06:28:09]OFD Sender: No OFD packet to send [06:28:14]OFD Sender: No OFD packet to send [06:28:19]OFD Sender: No OFD packet to send [06:28:24]OFD Sender: No OFD packet to send [06:28:29]OFD Sender: No OFD packet to send [06:28:34]OFD Sender: No OFD packet to send [06:28:39]OFD Sender: No OFD packet to send [06:28:44]OFD Sender: No OFD packet to send [06:28:49]OFD Sender: No OFD packet to send [06:28:54]OFD Sender: No OFD packet to send [06:28:59]OFD Sender: No OFD packet to send [06:29:04]OFD Sender: No OFD packet to send [06:29:09]OFD Sender: No OFD packet to send [06:29:14]OFD Sender: No OFD packet to send [06:29:19]OFD Sender: No OFD packet to send [06:29:24]OFD Sender: No OFD packet to send [06:29:29]OFD Sender: No OFD packet to send [06:29:34]OFD Sender: No OFD packet to send [06:29:39]OFD Sender: No OFD packet to send [06:29:44]OFD Sender: No OFD packet to send [06:29:49]OFD Sender: No OFD packet to send [06:29:54]OFD Sender: No OFD packet to send [06:29:59]OFD Sender: No OFD packet to send [06:30:04]OFD Sender: No OFD packet to send [06:30:09]OFD Sender: No OFD packet to send [06:30:14]OFD Sender: No OFD packet to send [06:30:19]OFD Sender: No OFD packet to send [06:30:24]OFD Sender: No OFD packet to send [06:30:29]OFD Sender: No OFD packet to send [06:30:34]OFD Sender: No OFD packet to send [06:30:39]OFD Sender: No OFD packet to send [06:30:44]OFD Sender: No OFD packet to send [06:30:49]OFD Sender: No OFD packet to send [06:30:54]OFD Sender: No OFD packet to send [06:30:59]OFD Sender: No OFD packet to send [06:31:04]OFD Sender: No OFD packet to send [06:31:09]OFD Sender: No OFD packet to send [06:31:14]OFD Sender: No OFD packet to send [06:31:19]OFD Sender: No OFD packet to send [06:31:24]OFD Sender: No OFD packet to send [06:31:29]OFD Sender: No OFD packet to send [06:31:34]OFD Sender: No OFD packet to send [06:31:39]OFD Sender: No OFD packet to send [06:31:44]OFD Sender: No OFD packet to send [06:31:49]OFD Sender: No OFD packet to send [06:31:54]OFD Sender: No OFD packet to send [06:31:59]OFD Sender: No OFD packet to send [06:32:04]OFD Sender: No OFD packet to send [06:32:09]OFD Sender: No OFD packet to send [06:32:14]OFD Sender: No OFD packet to send [06:32:19]OFD Sender: No OFD packet to send [06:32:24]OFD Sender: No OFD packet to send [06:32:29]OFD Sender: No OFD packet to send [06:32:34]OFD Sender: No OFD packet to send [06:32:39]OFD Sender: No OFD packet to send [06:32:45]OFD Sender: No OFD packet to send [06:32:50]OFD Sender: No OFD packet to send [06:32:55]OFD Sender: No OFD packet to send [06:33:00]OFD Sender: No OFD packet to send [06:33:05]OFD Sender: No OFD packet to send [06:33:10]OFD Sender: No OFD packet to send [06:33:15]OFD Sender: No OFD packet to send [06:33:20]OFD Sender: No OFD packet to send [06:33:25]OFD Sender: No OFD packet to send [06:33:30]OFD Sender: No OFD packet to send [06:33:35]OFD Sender: No OFD packet to send [06:33:40]OFD Sender: No OFD packet to send [06:33:45]OFD Sender: No OFD packet to send [06:33:50]OFD Sender: No OFD packet to send [06:33:55]OFD Sender: No OFD packet to send [06:34:00]OFD Sender: No OFD packet to send [06:34:05]OFD Sender: No OFD packet to send [06:34:10]OFD Sender: No OFD packet to send [06:34:15]OFD Sender: No OFD packet to send [06:34:20]OFD Sender: No OFD packet to send [06:34:25]OFD Sender: No OFD packet to send [06:34:30]OFD Sender: No OFD packet to send [06:34:35]OFD Sender: No OFD packet to send [06:34:40]OFD Sender: No OFD packet to send [06:34:45]OFD Sender: No OFD packet to send [06:34:50]OFD Sender: No OFD packet to send [06:34:55]OFD Sender: No OFD packet to send [06:35:00]OFD Sender: No OFD packet to send [06:35:05]OFD Sender: No OFD packet to send [06:35:10]OFD Sender: No OFD packet to send [06:35:15]OFD Sender: No OFD packet to send [06:35:20]OFD Sender: No OFD packet to send [06:35:25]OFD Sender: No OFD packet to send [06:35:30]OFD Sender: No OFD packet to send [06:35:35]OFD Sender: No OFD packet to send [06:35:40]OFD Sender: No OFD packet to send [06:35:45]OFD Sender: No OFD packet to send [06:35:50]OFD Sender: No OFD packet to send [06:35:55]OFD Sender: No OFD packet to send [06:36:00]OFD Sender: No OFD packet to send [06:36:05]OFD Sender: No OFD packet to send [06:36:10]OFD Sender: No OFD packet to send [06:36:15]OFD Sender: No OFD packet to send [06:36:20]OFD Sender: No OFD packet to send [06:36:25]OFD Sender: No OFD packet to send [06:36:30]OFD Sender: No OFD packet to send [06:36:35]OFD Sender: No OFD packet to send [06:36:40]OFD Sender: No OFD packet to send [06:36:45]OFD Sender: No OFD packet to send [06:36:50]OFD Sender: No OFD packet to send [06:36:55]OFD Sender: No OFD packet to send [06:37:00]OFD Sender: No OFD packet to send [06:37:05]OFD Sender: No OFD packet to send [06:37:10]OFD Sender: No OFD packet to send [06:37:15]OFD Sender: No OFD packet to send [06:37:20]OFD Sender: No OFD packet to send [06:37:25]OFD Sender: No OFD packet to send [06:37:30]OFD Sender: No OFD packet to send [06:37:35]OFD Sender: No OFD packet to send [06:37:40]OFD Sender: No OFD packet to send [06:37:45]OFD Sender: No OFD packet to send [06:37:50]OFD Sender: No OFD packet to send [06:37:55]OFD Sender: No OFD packet to send [06:38:00]OFD Sender: No OFD packet to send [06:38:05]OFD Sender: No OFD packet to send [06:38:10]OFD Sender: No OFD packet to send [06:38:15]OFD Sender: No OFD packet to send [06:38:20]OFD Sender: No OFD packet to send [06:38:25]OFD Sender: No OFD packet to send [06:38:30]OFD Sender: No OFD packet to send [06:38:35]OFD Sender: No OFD packet to send [06:38:40]OFD Sender: No OFD packet to send [06:38:45]OFD Sender: No OFD packet to send [06:38:50]OFD Sender: No OFD packet to send [06:38:55]OFD Sender: No OFD packet to send [06:39:00]OFD Sender: No OFD packet to send [06:39:05]OFD Sender: No OFD packet to send [06:39:10]OFD Sender: No OFD packet to send [06:39:15]OFD Sender: No OFD packet to send [06:39:20]OFD Sender: No OFD packet to send [06:39:25]OFD Sender: No OFD packet to send [06:39:30]OFD Sender: No OFD packet to send [06:39:35]OFD Sender: No OFD packet to send [06:39:40]OFD Sender: No OFD packet to send [06:39:45]OFD Sender: No OFD packet to send [06:39:50]OFD Sender: No OFD packet to send [06:39:55]OFD Sender: No OFD packet to send [06:40:00]OFD Sender: No OFD packet to send [06:40:05]OFD Sender: No OFD packet to send [06:40:10]OFD Sender: No OFD packet to send [06:40:15]OFD Sender: No OFD packet to send [06:40:20]OFD Sender: No OFD packet to send [06:40:25]OFD Sender: No OFD packet to send [06:40:30]OFD Sender: No OFD packet to send [06:40:35]OFD Sender: No OFD packet to send [06:40:40]OFD Sender: No OFD packet to send [06:40:45]OFD Sender: No OFD packet to send [06:40:50]OFD Sender: No OFD packet to send [06:40:55]OFD Sender: No OFD packet to send [06:41:00]OFD Sender: No OFD packet to send [06:41:05]OFD Sender: No OFD packet to send [06:41:10]OFD Sender: No OFD packet to send [06:41:15]OFD Sender: No OFD packet to send [06:41:20]OFD Sender: No OFD packet to send [06:41:25]OFD Sender: No OFD packet to send [06:41:30]OFD Sender: No OFD packet to send [06:41:35]OFD Sender: No OFD packet to send [06:41:40]OFD Sender: No OFD packet to send [06:41:45]OFD Sender: No OFD packet to send [06:41:50]OFD Sender: No OFD packet to send [06:41:55]OFD Sender: No OFD packet to send [06:42:00]OFD Sender: No OFD packet to send [06:42:05]OFD Sender: No OFD packet to send [06:42:10]OFD Sender: No OFD packet to send [06:42:15]OFD Sender: No OFD packet to send [06:42:20]OFD Sender: No OFD packet to send [06:42:25]OFD Sender: No OFD packet to send [06:42:30]OFD Sender: No OFD packet to send [06:42:35]OFD Sender: No OFD packet to send [06:42:40]OFD Sender: No OFD packet to send [06:42:45]OFD Sender: No OFD packet to send [06:42:50]OFD Sender: No OFD packet to send [06:42:55]OFD Sender: No OFD packet to send [06:43:00]OFD Sender: No OFD packet to send [06:43:05]OFD Sender: No OFD packet to send [06:43:10]OFD Sender: No OFD packet to send [06:43:15]OFD Sender: No OFD packet to send [06:43:20]OFD Sender: No OFD packet to send [06:43:25]OFD Sender: No OFD packet to send [06:43:30]OFD Sender: No OFD packet to send [06:43:35]OFD Sender: No OFD packet to send [06:43:40]OFD Sender: No OFD packet to send [06:43:45]OFD Sender: No OFD packet to send [06:43:50]OFD Sender: No OFD packet to send [06:43:55]OFD Sender: No OFD packet to send [06:44:00]OFD Sender: No OFD packet to send [06:44:05]OFD Sender: No OFD packet to send [06:44:10]OFD Sender: No OFD packet to send [06:44:15]OFD Sender: No OFD packet to send [06:44:20]OFD Sender: No OFD packet to send [06:44:25]OFD Sender: No OFD packet to send [06:44:30]OFD Sender: No OFD packet to send [06:44:35]OFD Sender: No OFD packet to send [06:44:40]OFD Sender: No OFD packet to send [06:44:45]OFD Sender: No OFD packet to send [06:44:50]OFD Sender: No OFD packet to send [06:44:55]OFD Sender: No OFD packet to send [06:45:00]OFD Sender: No OFD packet to send [06:45:05]OFD Sender: No OFD packet to send [06:45:10]OFD Sender: No OFD packet to send [06:45:15]OFD Sender: No OFD packet to send [06:45:20]OFD Sender: No OFD packet to send [06:45:25]OFD Sender: No OFD packet to send [06:45:30]OFD Sender: No OFD packet to send [06:45:35]OFD Sender: No OFD packet to send [06:45:40]OFD Sender: No OFD packet to send [06:45:45]OFD Sender: No OFD packet to send [06:45:50]OFD Sender: No OFD packet to send [06:45:55]OFD Sender: No OFD packet to send [06:46:00]OFD Sender: No OFD packet to send [06:46:05]OFD Sender: No OFD packet to send [06:46:10]OFD Sender: No OFD packet to send [06:46:15]OFD Sender: No OFD packet to send [06:46:20]OFD Sender: No OFD packet to send [06:46:25]OFD Sender: No OFD packet to send [06:46:30]OFD Sender: No OFD packet to send [06:46:35]OFD Sender: No OFD packet to send [06:46:40]OFD Sender: No OFD packet to send [06:46:45]OFD Sender: No OFD packet to send [06:46:50]OFD Sender: No OFD packet to send [06:46:55]OFD Sender: No OFD packet to send [06:47:00]OFD Sender: No OFD packet to send [06:47:05]OFD Sender: No OFD packet to send [06:47:10]OFD Sender: No OFD packet to send [06:47:15]OFD Sender: No OFD packet to send [06:47:20]OFD Sender: No OFD packet to send [06:47:25]OFD Sender: No OFD packet to send [06:47:30]OFD Sender: No OFD packet to send [06:47:35]OFD Sender: No OFD packet to send [06:47:40]OFD Sender: No OFD packet to send [06:47:45]OFD Sender: No OFD packet to send [06:47:50]OFD Sender: No OFD packet to send [06:47:55]OFD Sender: No OFD packet to send [06:48:00]OFD Sender: No OFD packet to send [06:48:05]OFD Sender: No OFD packet to send [06:48:10]OFD Sender: No OFD packet to send [06:48:15]OFD Sender: No OFD packet to send [06:48:20]OFD Sender: No OFD packet to send [06:48:25]OFD Sender: No OFD packet to send [06:48:28]accept exits with 8 [06:48:28]New connection [06:48:28]New thread 3067460964 created [06:48:28]Thread 3067317604 joined [06:48:28]Waiting for new connection... [06:48:28] Sock 8.Parse request [06:48:28]Sock 8.Check first char [06:48:28]Sock 8.First char is OK [06:48:28]request: POST /json_proto HTTP/1.0 [06:48:28]Method: POST [06:48:28]URL: /json_proto [06:48:28]Method is POST - this is cgi request [06:48:28]url: /json_proto [06:48:28]query_string will be loaded in cgi processing [06:48:28]execute_cgi json_proto POST (null) [06:48:28]execute_cgi path=json_proto method=POST [06:48:28]POST find Content-Length [06:48:28]Host: 172.17.45.132:8080 [06:48:28]Content-Length: 630 [06:48:28]Content-Type: application/json [06:48:28] [06:48:28]POST finish read [06:48:28]Found Content-Length = 630 [06:48:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126296", "tax_sys" : 0, "items" : [ { "code": "5449000066473", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:48:28]execute_script... [06:48: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)126296", "tax_sys" : 0, "items" : [ { "code": "5449000066473", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:48:28]POST & json_proto [06:48:28]process_json_proto [06:48:28]json parsed OK: [06:48:28]protocol is kg_v1.0 [06:48:28]action value=close_receipt [06:48:28]process_action close_receipt [06:48:28]cmd_close_receipt [06:48:28]MH_GetDate [06:48:28]Write to MH i2c: F0 00 00 B5 38 DC [06:48:28]Write i2c OK [06:48:28]MH_I2C_Read... [06:48:28]Read from MH i2c: F0 [06:48:28]MH_I2C_Read... [06:48:28]Read from MH i2c: F0 09 00 [06:48:28]MH_I2C_Read... [06:48:28]Read from MH i2c: F0 09 00 B5 38 00 C0 E9 A5 66 E3 0B 90 66 7D [06:48:28]GetLastDocTimeStamp 1722147285 [06:48:28]current date 1722149312 [06:48:28]FM_GetShiftState [06:48:28]SAM_PROTO_GetShiftState [06:48:28]wFMCommunicate request_size=4 [06:48:28]MH_SAM_APDU [06:48:28]CAPDU: 80 13 01 00 [06:48:28]Write to MH i2c: E2 08 00 B6 38 80 13 01 00 00 00 00 00 6B [06:48:28]Write i2c OK [06:48:28]MH_I2C_Read... [06:48:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:48:28]Read from MH i2c: E2 [06:48:28]MH_I2C_Read... [06:48:28]Read from MH i2c: E2 0E 00 [06:48:28]MH_I2C_Read... [06:48:28]Read from MH i2c: E2 0E 00 B6 38 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 5F [06:48:28]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [06:48:28]wFMCommunicate OK [06:48:28]SAM_PROTO_GetShiftState done [06:48:28]FM_GetShiftState done [06:48:28]opened in 1722125648 [06:48:28]opened+sec_in_day 1722212048 [06:48:28]quantity*price = 5000 [06:48:28]sum+1 = 5001 [06:48:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 40 28.07.2024 06:48 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 1989 ФПД: 107089225660952 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T064832&type=1&operation_type=1&fn_number=0000000002094248&fd_number=1989&fm=107089225660952&tin=02508201610067®Number=0000000000189667&sum=5000 0 [06:48:29]StoreToDocumentArchive [06:48:29]shift 13 fd 1989 [06:48:29]save to /storage/0013/doc_00001989 [06:48:29]save last doc name /storage/0013/doc_00001989 to /storage/kkm_last_doc_name [06:48:29]save OK [06:48:29]Clear old archive folders... [06:48:29]ProcessDocumentItem done err = 0, tmpTLVsize=269 [06:48:29]tlvbuf is 0207BF80 [06:48:29]SAM_PROTO_ClearQueue [06:48:29]wFMCommunicate request_size=4 [06:48:29]MH_SAM_APDU [06:48:29]CAPDU: 80 09 00 00 [06:48:29]Write to MH i2c: E2 08 00 C3 38 80 09 00 00 00 00 00 00 6D [06:48:29]Write i2c OK [06:48:29]MH_I2C_Read... [06:48:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:48:29]Read from MH i2c: E2 [06:48:29]MH_I2C_Read... [06:48:29]Read from MH i2c: E2 03 00 [06:48:29]MH_I2C_Read... [06:48:29]Read from MH i2c: E2 03 00 C3 38 00 90 00 6F [06:48:29]RAPDU: 90 00 [06:48:29]wFMCommunicate OK [06:48:29]SAM_PROTO_ClearQueue done [06:48:29]KKMCreateOFDPacket [06:48:29]OFDProtocolAddRootSTLVToBuf [06:48:29]FM_MakeSignedData [06:48:29]FM_MakeSignedData [06:48:29]SAM_PROTO_SignData [06:48:29]wFMCommunicate request_size=4 [06:48:29]MH_SAM_APDU [06:48:29]CAPDU: 80 0D 01 02 [06:48:29]Write to MH i2c: E2 08 00 C4 38 80 0D 01 02 00 00 00 00 75 [06:48:29]Write i2c OK [06:48:29]MH_I2C_Read... [06:48:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:48:29]Read from MH i2c: E2 [06:48:29]MH_I2C_Read... [06:48:29]Read from MH i2c: E2 03 00 [06:48:29]MH_I2C_Read... [06:48:29]Read from MH i2c: E2 03 00 C4 38 00 90 00 70 [06:48:29]RAPDU: 90 00 [06:48:29]wFMCommunicate OK [06:48:29]wFMCommunicate request_size=255 [06:48:29]MH_SAM_APDU [06:48:29]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 35 34 34 39 30 30 30 30 36 36 34 37 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 C0 E9 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 [06:48:29]Write to MH i2c: E2 02 01 C5 38 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 35 34 34 39 30 30 30 30 36 36 34 37 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 C0 E9 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 00 00 88 [06:48:29]Write i2c OK [06:48:29]MH_I2C_Read... [06:48:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:48:29]Read from MH i2c: E2 [06:48:29]MH_I2C_Read... [06:48:29]Read from MH i2c: E2 03 00 [06:48:29]MH_I2C_Read... [06:48:29]Read from MH i2c: E2 03 00 C5 38 00 90 00 71 [06:48:29]RAPDU: 90 00 [06:48:29]wFMCommunicate OK [06:48:29]wFMCommunicate request_size=28 [06:48:29]MH_SAM_APDU [06:48:29]CAPDU: 80 0D 02 02 17 39 34 32 34 38 10 04 04 00 C5 07 00 00 35 04 06 00 61 65 A7 41 3A 18 [06:48:29]Write to MH i2c: E2 1F 00 C6 38 80 0D 02 02 17 00 39 34 32 34 38 10 04 04 00 C5 07 00 00 35 04 06 00 61 65 A7 41 3A 18 00 00 D4 [06:48:29]Write i2c OK [06:48:29]MH_I2C_Read... [06:48:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:48:29]Read from MH i2c: E2 [06:48:29]MH_I2C_Read... [06:48:29]Read from MH i2c: E2 03 00 [06:48:29]MH_I2C_Read... [06:48:29]Read from MH i2c: E2 03 00 C6 38 00 90 00 72 [06:48:29]RAPDU: 90 00 [06:48:29]wFMCommunicate OK [06:48:29]wFMCommunicate request_size=4 [06:48:29]MH_SAM_APDU [06:48:29]CAPDU: 80 0D 03 02 [06:48:29]Write to MH i2c: E2 08 00 C7 38 80 0D 03 02 00 00 00 00 7A [06:48:29]Write i2c OK [06:48:29]MH_I2C_Read... [06:48:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:48:29]Read from MH i2c: E2 [06:48:29]MH_I2C_Read... [06:48:29]Read from MH i2c: E2 0B 00 [06:48:29]MH_I2C_Read... [06:48:29]Read from MH i2c: E2 0B 00 C7 38 00 32 A4 81 05 49 AF 9A BF 90 00 28 [06:48:29]RAPDU: 32 A4 81 05 49 AF 9A BF 90 00 [06:48:29]wFMCommunicate OK [06:48:29]SAM_PROTO_SignData done [06:48:29]FM_MakeSignedData done [06:48:29]CreateOFDProtocolMessage [06:48:29]wFMCommunicate request_size=4 [06:48:29]MH_SAM_APDU [06:48:29]CAPDU: 80 11 00 00 [06:48:29]Write to MH i2c: E2 08 00 C8 38 80 11 00 00 00 00 00 00 7A [06:48:29]Write i2c OK [06:48:29]MH_I2C_Read... [06:48:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:48:29]Read from MH i2c: E2 [06:48:29]MH_I2C_Read... [06:48:29]Read from MH i2c: E2 17 00 [06:48:29]MH_I2C_Read... [06:48:29]Read from MH i2c: E2 17 00 C8 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 CA [06:48:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [06:48:29]wFMCommunicate OK [06:48:29]CreateOFDProtocolMessage done [06:48:29]OFDSenderStorePacket 1989 [06:48:29]StoreOFDPacket docnum=1989 [06:48:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 21 01 00 00 C9 0E 19 01 CE 19 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 35 34 34 39 30 30 30 30 36 36 34 37 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 C0 E9 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C5 07 00 00 35 04 06 00 61 65 A7 41 3A 18 32 A4 81 05 49 AF 9A BF [06:48:29]CheckFolder [06:48:29]dirname=/storage/ofd_packets [06:48:29]CheckFolder done [06:48:29]ProducePacketName [06:48:29]name=ofd_packets/00001989 [06:48:29]NVStorageSaveData ofd_packets/00001989 [06:48:29]File name is /storage/ofd_packets/00001989 [06:48:29]Write 319 bytes [06:48:29]NVStorageSaveData done [06:48:29]OFDSenderStorePacket done [06:48:29]KKMCreateOFDPacket done [06:48:29]NVStorageSaveData kkm_last_timestamp [06:48:29]File name is /storage/kkm_last_timestamp [06:48:29]Write 4 bytes [06:48:29]NVStorageSaveData done [06:48:29]ExternCall_PrintAddStr [06:48:29]wPrintStart [06:48:29]Write to MH i2c: 01 00 00 C9 38 01 [06:48:29]Write i2c OK [06:48:29]MH_I2C_Read... [06:48:29]Read from MH i2c: 01 [06:48:29]MH_I2C_Read... [06:48:29]Read from MH i2c: 01 07 00 [06:48:29]MH_I2C_Read... [06:48:29]Read from MH i2c: 01 07 00 C9 38 00 00 00 00 00 FF 0F 16 [06:48:29]RasterBufferAndPrint [06:48:29]line Счет N : (3)126296 [06:48:29]line ИНН: 02508201610067 [06:48:29]line Контрольно-Кассовый Чек [06:48:29]line ПРОДАЖА [06:48:29]line Товар: 5449000066473 [06:48:29]line Вода Бонаква 1л [06:48:29]line 1.000 * 50.00 [06:48:29]line = 50.00 [06:48:29]line НДС 12% НСП 1% [06:48:29]line > о реализуемом товаре [06:48:29]line ИТОГО: 50.00 [06:48:29]line НСП 1% : 0.44 [06:48:29]line НДС 12% : 5.31 [06:48:29]line Наличными: 50.00 [06:48:29]line Безнал.: 0.00 [06:48:29]line Место: АЗС № 127 "Партнер Нефть" [06:48:29]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [06:48:29]line СНО: Общий режим [06:48:30]line Чек 40 28.07.2024 06:48 [06:48:30]line Смена: 13 ФФД: 1.0 [06:48:30]line ЗНМ: 0300000161 [06:48:30]line РНМ: 0000000000189667 [06:48:30]line Версия ККМ: v1.0 [06:48:30]line ФМ: 0000000002094248 [06:48:30]line ФД: 1989 [06:48:30]line ФПД: 107089225660952 [06:48:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T064832&type=1&operation_type=1&fn_number=0000000002094248&fd_number=1989&fm=107089225660952&tin=02508201610067®Number=0000000000189667&sum=5000 [06:48:30]line 0 [06:48:30]OFD Sender: Processing packet 1989 [packets to send 1, broken 0] [06:48:30]ProducePacketName [06:48:30]name=ofd_packets/00001989 [06:48:30]OFD Sender: To server: pG, [06:48:30]CommunicateWithHost lk.salyk.kg:30040 [06:48:30]ConnectInit lk.salyk.kg [06:48:30]written 0, free lines is 4095 [06:48:30]Connected sock=10 [06:48:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 21 01 00 00 C9 0E 19 01 CE 19 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 35 34 34 39 30 30 30 30 36 36 34 37 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 C0 E9 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C5 07 00 00 35 04 06 00 61 65 A7 41 3A 18 32 A4 81 05 49 AF 9A BF [06:48:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 45 C9 47 00 70 D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C5 07 00 00 F4 03 04 00 30 95 A5 66 B6 04 01 00 00 60 3A FA CD 07 A8 03 22 [06:48:30]CommunicateWithHost err = 0 [06:48:30]CheckOFDResponse [06:48:30]1017 (14) - 77093643461234 [06:48:30]1041 (16) - 0000000002094248 [06:48:30]1040 (4) - 1989 [06:48:30]1012 (4) - 28.07.2024 00:47 [06:48:30]1206 (1) - 0 [06:48:30]OFD Sender: Remove packet 1989 [06:48:30]ProducePacketName [06:48:30]name=ofd_packets/00001989 [06:48:30]NVStorageDeleteData [06:48:30]Write to MH i2c: 01 00 00 F1 38 29 [06:48:30]Write i2c OK [06:48:30]MH_I2C_Read... [06:48:30]Read from MH i2c: 01 [06:48:30]MH_I2C_Read... [06:48:30]Read from MH i2c: 01 07 00 [06:48:30]MH_I2C_Read... [06:48:30]Read from MH i2c: 01 07 00 F1 38 00 00 00 00 00 19 0D 56 [06:48:30]RasterBufferAndPrint [06:48:30]line [06:48:30]line [06:48:30]line [06:48:30]line [06:48:30]line [06:48:30]written 0, free lines is 3359 [06:48:30]MH_Cut [06:48:30]Write to MH i2c: D1 01 00 F8 38 01 02 [06:48:30]Write i2c OK [06:48:30]MH_I2C_Read... [06:48:30]Read from MH i2c: D1 [06:48:30]MH_I2C_Read... [06:48:30]Read from MH i2c: D1 01 00 [06:48:30]MH_I2C_Read... [06:48:30]Read from MH i2c: D1 01 00 F8 38 00 01 [06:48:30]Write to MH i2c: 01 00 00 F9 38 31 [06:48:30]Write i2c OK [06:48:30]MH_I2C_Read... [06:48:31]OFD Sender: No OFD packet to send [06:48:31]*** Cut start [06:48:31]*** Partial cut [06:48:31]*** CUTSNS_PIN = 1 [06:48:31]*** CUTSNS_PIN = 0 [06:48:31]*** Brake cut motor [06:48:32]Read from MH i2c: 01 [06:48:32]MH_I2C_Read... [06:48:32]*** Stop cut motor [06:48:32]*** Cut end [06:48:32]Read from MH i2c: 01 07 00 [06:48:32]MH_I2C_Read... [06:48:32]Read from MH i2c: 01 07 00 F9 38 00 00 00 00 00 FF 0F 46 [06:48:32]process_action close_receipt done [06:48:32]requested_data is exist [06:48:32]produce_requested_data [06:48:32]requested_item fm.sn is exist - process it [06:48:32]wFMCommunicate request_size=4 [06:48:32]MH_SAM_APDU [06:48:32]CAPDU: 80 11 00 00 [06:48:32]Write to MH i2c: E2 08 00 FA 38 80 11 00 00 00 00 00 00 AC [06:48:32]Write i2c OK [06:48:32]MH_I2C_Read... [06:48:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:48:32]Read from MH i2c: E2 [06:48:32]MH_I2C_Read... [06:48:32]Read from MH i2c: E2 17 00 [06:48:32]MH_I2C_Read... [06:48:32]Read from MH i2c: E2 17 00 FA 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 FC [06:48:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [06:48:32]wFMCommunicate OK [06:48:32]requested_item fd.num is exist - process it [06:48:32]SAM_PROTO_GetFieldsCounters [06:48:32]wFMCommunicate request_size=4 [06:48:32]MH_SAM_APDU [06:48:32]CAPDU: 80 13 00 00 [06:48:32]Write to MH i2c: E2 08 00 FB 38 80 13 00 00 00 00 00 00 AF [06:48:32]Write i2c OK [06:48:32]MH_I2C_Read... [06:48:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:48:32]Read from MH i2c: E2 [06:48:32]MH_I2C_Read... [06:48:32]Read from MH i2c: E2 62 00 [06:48:32]MH_I2C_Read... [06:48:32]Read from MH i2c: E2 62 00 FB 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 C5 07 00 00 0E 04 04 00 0D 00 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 2A [06:48:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 C5 07 00 00 0E 04 04 00 0D 00 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 [06:48:32]wFMCommunicate OK [06:48:32]SAM_PROTO_GetFieldsCounters done [06:48:32]requested_item shift.num is exist - process it [06:48:32]requested_item shift.opened is exist - process it [06:48:32]req_shift_opened [06:48:32]FM_GetShiftState [06:48:32]SAM_PROTO_GetShiftState [06:48:32]wFMCommunicate request_size=4 [06:48:32]MH_SAM_APDU [06:48:32]CAPDU: 80 13 01 00 [06:48:32]Write to MH i2c: E2 08 00 FC 38 80 13 01 00 00 00 00 00 B1 [06:48:32]Write i2c OK [06:48:32]MH_I2C_Read... [06:48:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:48:32]Read from MH i2c: E2 [06:48:32]MH_I2C_Read... [06:48:32]Read from MH i2c: E2 0E 00 [06:48:32]MH_I2C_Read... [06:48:32]Read from MH i2c: E2 0E 00 FC 38 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 A5 [06:48:32]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [06:48:32]wFMCommunicate OK [06:48:32]SAM_PROTO_GetShiftState done [06:48:32]FM_GetShiftState done [06:48:32]req_shift_opened done [06:48:32]requested_item shift.open_date is exist - process it [06:48:32]req_shift_open_date [06:48:32]req_shift_open_date done [06:48:32]produce_requested_data done [06:48:32]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":1989,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [06:48:32]process_action_free close_receipt [06:48:32]json_value_free [06:48:32]json_value_free done [06:48:32]process_json_proto returns [06:48:32]Send response to host [06:48:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":1989,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [06:48:32]free response buf [06:48:32]execute_script done [06:48:32]execute_script returns [06:48:32]free content buf [06:48:32]Sock 8.Close socket [06:48:32]Sock 8.Thread stoped [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:41]accept exits with 9 [06:49:41]New connection [06:49:41]New thread 3067317604 created [06:49:41]Thread 3067460964 joined [06:49:41]Waiting for new connection... [06:49:41] Sock 9.Parse request [06:49:41]Sock 9.Check first char [06:49:41]Sock 9.First char is OK [06:49:41]request: POST /json_proto HTTP/1.0 [06:49:41]Method: POST [06:49:41]URL: /json_proto [06:49:41]Method is POST - this is cgi request [06:49:41]url: /json_proto [06:49:41]query_string will be loaded in cgi processing [06:49:41]execute_cgi json_proto POST (null) [06:49:41]execute_cgi path=json_proto method=POST [06:49:41]POST find Content-Length [06:49:41]Host: 172.17.45.132:8080 [06:49:41]Content-Length: 678 [06:49:41]Content-Type: application/json [06:49:41] [06:49:41]POST finish read [06:49:41]Found Content-Length = 678 [06:49:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126297", "tax_sys" : 0, "items" : [ { "code": "4650243871828", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "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" ] } } [06:49:41]execute_script... [06:49: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)126297", "tax_sys" : 0, "items" : [ { "code": "4650243871828", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "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" ] } } [06:49:41]POST & json_proto [06:49:41]process_json_proto [06:49:41]json parsed OK: [06:49:41]protocol is kg_v1.0 [06:49:41]action value=close_receipt [06:49:41]process_action close_receipt [06:49:41]cmd_close_receipt [06:49:41]MH_GetDate [06:49:41]Write to MH i2c: F0 00 00 FD 38 24 [06:49:41]Write i2c OK [06:49:41]MH_I2C_Read... [06:49:41]Read from MH i2c: F0 [06:49:41]MH_I2C_Read... [06:49:41]Read from MH i2c: F0 09 00 [06:49:41]MH_I2C_Read... [06:49:41]Read from MH i2c: F0 09 00 FD 38 00 09 EA A5 66 E3 0B 90 66 0F [06:49:41]GetLastDocTimeStamp 1722149312 [06:49:41]current date 1722149385 [06:49:41]FM_GetShiftState [06:49:41]SAM_PROTO_GetShiftState [06:49:41]wFMCommunicate request_size=4 [06:49:41]MH_SAM_APDU [06:49:41]CAPDU: 80 13 01 00 [06:49:41]Write to MH i2c: E2 08 00 FE 38 80 13 01 00 00 00 00 00 B3 [06:49:41]Write i2c OK [06:49:41]MH_I2C_Read... [06:49:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:49:41]Read from MH i2c: E2 [06:49:41]MH_I2C_Read... [06:49:41]Read from MH i2c: E2 0E 00 [06:49:41]MH_I2C_Read... [06:49:41]Read from MH i2c: E2 0E 00 FE 38 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 A7 [06:49:41]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [06:49:41]wFMCommunicate OK [06:49:41]SAM_PROTO_GetShiftState done [06:49:41]FM_GetShiftState done [06:49:41]opened in 1722125648 [06:49:41]opened+sec_in_day 1722212048 [06:49:41]quantity*price = 11000 [06:49:41]sum+1 = 11001 [06:49:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 41 28.07.2024 06:49 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 1990 ФПД: 76432926519677 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T064945&type=1&operation_type=1&fn_number=0000000002094248&fd_number=1990&fm=76432926519677&tin=02508201610067®Number=0000000000189667&sum=11000 0 [06:49:42]StoreToDocumentArchive [06:49:42]shift 13 fd 1990 [06:49:42]save to /storage/0013/doc_00001990 [06:49:42]save last doc name /storage/0013/doc_00001990 to /storage/kkm_last_doc_name [06:49:42]save OK [06:49:42]Clear old archive folders... [06:49:42]ProcessDocumentItem done err = 0, tmpTLVsize=294 [06:49:42]tlvbuf is 01F75FF0 [06:49:42]SAM_PROTO_ClearQueue [06:49:42]wFMCommunicate request_size=4 [06:49:42]MH_SAM_APDU [06:49:42]CAPDU: 80 09 00 00 [06:49:42]Write to MH i2c: E2 08 00 0B 39 80 09 00 00 00 00 00 00 B6 [06:49:42]Write i2c OK [06:49:42]MH_I2C_Read... [06:49:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:49:42]Read from MH i2c: E2 [06:49:42]MH_I2C_Read... [06:49:42]Read from MH i2c: E2 03 00 [06:49:42]MH_I2C_Read... [06:49:42]Read from MH i2c: E2 03 00 0B 39 00 90 00 B8 [06:49:42]RAPDU: 90 00 [06:49:42]wFMCommunicate OK [06:49:42]SAM_PROTO_ClearQueue done [06:49:42]KKMCreateOFDPacket [06:49:42]OFDProtocolAddRootSTLVToBuf [06:49:42]FM_MakeSignedData [06:49:42]FM_MakeSignedData [06:49:42]SAM_PROTO_SignData [06:49:42]wFMCommunicate request_size=4 [06:49:42]MH_SAM_APDU [06:49:42]CAPDU: 80 0D 01 02 [06:49:42]Write to MH i2c: E2 08 00 0C 39 80 0D 01 02 00 00 00 00 BE [06:49:42]Write i2c OK [06:49:42]MH_I2C_Read... [06:49:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:49:42]Read from MH i2c: E2 [06:49:42]MH_I2C_Read... [06:49:42]Read from MH i2c: E2 03 00 [06:49:42]MH_I2C_Read... [06:49:42]Read from MH i2c: E2 03 00 0C 39 00 90 00 B9 [06:49:42]RAPDU: 90 00 [06:49:42]wFMCommunicate OK [06:49:42]wFMCommunicate request_size=255 [06:49:42]MH_SAM_APDU [06:49:42]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 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 29 00 00 00 F4 03 04 00 09 EA A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [06:49:42]Write to MH i2c: E2 02 01 0D 39 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 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 29 00 00 00 F4 03 04 00 09 EA A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 D2 [06:49:42]Write i2c OK [06:49:42]MH_I2C_Read... [06:49:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:49:42]Read from MH i2c: E2 [06:49:42]MH_I2C_Read... [06:49:42]Read from MH i2c: E2 03 00 [06:49:42]MH_I2C_Read... [06:49:42]Read from MH i2c: E2 03 00 0D 39 00 90 00 BA [06:49:42]RAPDU: 90 00 [06:49:42]wFMCommunicate OK [06:49:42]wFMCommunicate request_size=53 [06:49:42]MH_SAM_APDU [06:49:42]CAPDU: 80 0D 02 02 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C6 07 00 00 35 04 06 00 45 83 ED 6F 31 7D [06:49:42]Write to MH i2c: E2 38 00 0E 39 80 0D 02 02 30 00 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C6 07 00 00 35 04 06 00 45 83 ED 6F 31 7D 00 00 5E [06:49:42]Write i2c OK [06:49:42]MH_I2C_Read... [06:49:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:49:42]Read from MH i2c: E2 [06:49:42]MH_I2C_Read... [06:49:42]Read from MH i2c: E2 03 00 [06:49:42]MH_I2C_Read... [06:49:42]Read from MH i2c: E2 03 00 0E 39 00 90 00 BB [06:49:42]RAPDU: 90 00 [06:49:42]wFMCommunicate OK [06:49:42]wFMCommunicate request_size=4 [06:49:42]MH_SAM_APDU [06:49:42]CAPDU: 80 0D 03 02 [06:49:42]Write to MH i2c: E2 08 00 0F 39 80 0D 03 02 00 00 00 00 C3 [06:49:42]Write i2c OK [06:49:42]MH_I2C_Read... [06:49:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:49:43]Read from MH i2c: E2 [06:49:43]MH_I2C_Read... [06:49:43]Read from MH i2c: E2 0B 00 [06:49:43]MH_I2C_Read... [06:49:43]Read from MH i2c: E2 0B 00 0F 39 00 CC EA 5B 56 92 87 1A 8B 90 00 E9 [06:49:43]RAPDU: CC EA 5B 56 92 87 1A 8B 90 00 [06:49:43]wFMCommunicate OK [06:49:43]SAM_PROTO_SignData done [06:49:43]FM_MakeSignedData done [06:49:43]CreateOFDProtocolMessage [06:49:43]wFMCommunicate request_size=4 [06:49:43]MH_SAM_APDU [06:49:43]CAPDU: 80 11 00 00 [06:49:43]Write to MH i2c: E2 08 00 10 39 80 11 00 00 00 00 00 00 C3 [06:49:43]Write i2c OK [06:49:43]MH_I2C_Read... [06:49:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:49:43]Read from MH i2c: E2 [06:49:43]MH_I2C_Read... [06:49:43]Read from MH i2c: E2 17 00 [06:49:43]MH_I2C_Read... [06:49:43]Read from MH i2c: E2 17 00 10 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 13 [06:49:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [06:49:43]wFMCommunicate OK [06:49:43]CreateOFDProtocolMessage done [06:49:43]OFDSenderStorePacket 1990 [06:49:43]StoreOFDPacket docnum=1990 [06:49:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 3A 01 00 00 AD 53 32 01 BF 15 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 29 00 00 00 F4 03 04 00 09 EA A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C6 07 00 00 35 04 06 00 45 83 ED 6F 31 7D CC EA 5B 56 92 87 1A 8B [06:49:43]CheckFolder [06:49:43]dirname=/storage/ofd_packets [06:49:43]CheckFolder done [06:49:43]ProducePacketName [06:49:43]name=ofd_packets/00001990 [06:49:43]NVStorageSaveData ofd_packets/00001990 [06:49:43]File name is /storage/ofd_packets/00001990 [06:49:43]Write 344 bytes [06:49:43]NVStorageSaveData done [06:49:43]OFDSenderStorePacket done [06:49:43]KKMCreateOFDPacket done [06:49:43]NVStorageSaveData kkm_last_timestamp [06:49:43]File name is /storage/kkm_last_timestamp [06:49:43]Write 4 bytes [06:49:43]NVStorageSaveData done [06:49:43]ExternCall_PrintAddStr [06:49:43]wPrintStart [06:49:43]Write to MH i2c: 01 00 00 11 39 4A [06:49:43]Write i2c OK [06:49:43]MH_I2C_Read... [06:49:43]Read from MH i2c: 01 [06:49:43]MH_I2C_Read... [06:49:43]Read from MH i2c: 01 07 00 [06:49:43]MH_I2C_Read... [06:49:43]Read from MH i2c: 01 07 00 11 39 00 00 00 00 00 FF 0F 5F [06:49:43]RasterBufferAndPrint [06:49:43]line Счет N : (3)126297 [06:49:43]line ИНН: 02508201610067 [06:49:43]line Контрольно-Кассовый Чек [06:49:43]line ПРОДАЖА [06:49:43]line Товар: 4650243871828 [06:49:43]line Gorilla эн нап манго-кокос 0,45 ж/б [06:49:43]line 1.000 * 110.00 [06:49:43]line = 110.00 [06:49:43]line НДС 12% НСП 1% [06:49:43]line > о реализуемом товаре [06:49:43]line ИТОГО: 110.00 [06:49:43]line НСП 1% : 0.97 [06:49:43]line НДС 12% : 11.68 [06:49:43]line Наличными: 110.00 [06:49:43]line Безнал.: 0.00 [06:49:43]line Место: АЗС № 127 "Партнер Нефть" [06:49:43]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [06:49:43]line СНО: Общий режим [06:49:43]line Чек 41 28.07.2024 06:49 [06:49:43]line Смена: 13 ФФД: 1.0 [06:49:43]line ЗНМ: 0300000161 [06:49:43]line РНМ: 0000000000189667 [06:49:43]line Версия ККМ: v1.0 [06:49:43]line ФМ: 0000000002094248 [06:49:43]line ФД: 1990 [06:49:43]line ФПД: 76432926519677 [06:49:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T064945&type=1&operation_type=1&fn_number=0000000002094248&fd_number=1990&fm=76432926519677&tin=02508201610067®Number=0000000000189667&sum=11000 [06:49:43]line 0 [06:49:43]OFD Sender: Processing packet 1990 [packets to send 1, broken 0] [06:49:43]ProducePacketName [06:49:43]name=ofd_packets/00001990 [06:49:43]OFD Sender: To server: pG, [06:49:43]CommunicateWithHost lk.salyk.kg:30040 [06:49:43]ConnectInit lk.salyk.kg [06:49:43]written 0, free lines is 4095 [06:49:43]Connected sock=10 [06:49:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 3A 01 00 00 AD 53 32 01 BF 15 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 29 00 00 00 F4 03 04 00 09 EA A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C6 07 00 00 35 04 06 00 45 83 ED 6F 31 7D CC EA 5B 56 92 87 1A 8B [06:49:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 D8 6B 47 00 F6 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 32 30 39 34 32 34 38 10 04 04 00 C6 07 00 00 F4 03 04 00 7A 95 A5 66 B6 04 01 00 00 8E 88 9F 28 2E C3 AA 57 [06:49:43]CommunicateWithHost err = 0 [06:49:43]CheckOFDResponse [06:49:43]1017 (14) - 77093643461234 [06:49:43]1041 (16) - 0000000002094248 [06:49:43]1040 (4) - 1990 [06:49:43]1012 (4) - 28.07.2024 00:48 [06:49:43]1206 (1) - 0 [06:49:43]OFD Sender: Remove packet 1990 [06:49:43]ProducePacketName [06:49:43]name=ofd_packets/00001990 [06:49:43]NVStorageDeleteData [06:49:43]Write to MH i2c: 01 00 00 3A 39 73 [06:49:43]Write i2c OK [06:49:43]MH_I2C_Read... [06:49:43]Read from MH i2c: 01 [06:49:43]MH_I2C_Read... [06:49:43]Read from MH i2c: 01 07 00 [06:49:43]MH_I2C_Read... [06:49:43]Read from MH i2c: 01 07 00 3A 39 00 00 00 00 00 14 0D 9B [06:49:43]RasterBufferAndPrint [06:49:43]line [06:49:43]line [06:49:43]line [06:49:43]line [06:49:43]line [06:49:43]written 0, free lines is 3358 [06:49:43]MH_Cut [06:49:43]Write to MH i2c: D1 01 00 41 39 01 4C [06:49:43]Write i2c OK [06:49:43]MH_I2C_Read... [06:49:43]Read from MH i2c: D1 [06:49:43]MH_I2C_Read... [06:49:43]Read from MH i2c: D1 01 00 [06:49:43]MH_I2C_Read... [06:49:43]Read from MH i2c: D1 01 00 41 39 00 4B [06:49:43]Write to MH i2c: 01 00 00 42 39 7B [06:49:43]Write i2c OK [06:49:43]MH_I2C_Read... [06:49:44]OFD Sender: No OFD packet to send [06:49:44]*** Cut start [06:49:44]*** Partial cut [06:49:44]*** CUTSNS_PIN = 1 [06:49:44]*** CUTSNS_PIN = 0 [06:49:44]*** Brake cut motor [06:49:45]Read from MH i2c: 01 [06:49:45]MH_I2C_Read... [06:49:45]*** Stop cut motor [06:49:45]*** Cut end [06:49:45]Read from MH i2c: 01 07 00 [06:49:45]MH_I2C_Read... [06:49:45]Read from MH i2c: 01 07 00 42 39 00 00 00 00 00 FF 0F 90 [06:49:45]process_action close_receipt done [06:49:45]requested_data is exist [06:49:45]produce_requested_data [06:49:45]requested_item fm.sn is exist - process it [06:49:45]wFMCommunicate request_size=4 [06:49:45]MH_SAM_APDU [06:49:45]CAPDU: 80 11 00 00 [06:49:45]Write to MH i2c: E2 08 00 43 39 80 11 00 00 00 00 00 00 F6 [06:49:45]Write i2c OK [06:49:45]MH_I2C_Read... [06:49:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:49:45]Read from MH i2c: E2 [06:49:45]MH_I2C_Read... [06:49:45]Read from MH i2c: E2 17 00 [06:49:45]MH_I2C_Read... [06:49:45]Read from MH i2c: E2 17 00 43 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 46 [06:49:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [06:49:45]wFMCommunicate OK [06:49:45]requested_item fd.num is exist - process it [06:49:45]SAM_PROTO_GetFieldsCounters [06:49:45]wFMCommunicate request_size=4 [06:49:45]MH_SAM_APDU [06:49:45]CAPDU: 80 13 00 00 [06:49:45]Write to MH i2c: E2 08 00 44 39 80 13 00 00 00 00 00 00 F9 [06:49:45]Write i2c OK [06:49:45]MH_I2C_Read... [06:49:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:49:45]Read from MH i2c: E2 [06:49:45]MH_I2C_Read... [06:49:45]Read from MH i2c: E2 62 00 [06:49:45]MH_I2C_Read... [06:49:45]Read from MH i2c: E2 62 00 44 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 C6 07 00 00 0E 04 04 00 0D 00 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 78 [06:49:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 C6 07 00 00 0E 04 04 00 0D 00 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 [06:49:45]wFMCommunicate OK [06:49:45]SAM_PROTO_GetFieldsCounters done [06:49:45]requested_item shift.num is exist - process it [06:49:45]requested_item shift.opened is exist - process it [06:49:45]req_shift_opened [06:49:45]FM_GetShiftState [06:49:45]SAM_PROTO_GetShiftState [06:49:45]wFMCommunicate request_size=4 [06:49:45]MH_SAM_APDU [06:49:45]CAPDU: 80 13 01 00 [06:49:45]Write to MH i2c: E2 08 00 45 39 80 13 01 00 00 00 00 00 FB [06:49:45]Write i2c OK [06:49:45]MH_I2C_Read... [06:49:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:49:45]Read from MH i2c: E2 [06:49:45]MH_I2C_Read... [06:49:45]Read from MH i2c: E2 0E 00 [06:49:45]MH_I2C_Read... [06:49:45]Read from MH i2c: E2 0E 00 45 39 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 EF [06:49:45]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [06:49:45]wFMCommunicate OK [06:49:45]SAM_PROTO_GetShiftState done [06:49:45]FM_GetShiftState done [06:49:45]req_shift_opened done [06:49:45]requested_item shift.open_date is exist - process it [06:49:45]req_shift_open_date [06:49:45]req_shift_open_date done [06:49:45]produce_requested_data done [06:49:45]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":1990,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [06:49:45]process_action_free close_receipt [06:49:45]json_value_free [06:49:45]json_value_free done [06:49:45]process_json_proto returns [06:49:45]Send response to host [06:49:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":1990,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [06:49:45]free response buf [06:49:45]execute_script done [06:49:45]execute_script returns [06:49:45]free content buf [06:49:45]Sock 9.Close socket [06:49:45]Sock 9.Thread stoped [06:49:49]OFD Sender: No OFD packet to send [06:49:54]OFD Sender: No OFD packet to send [06:49:59]OFD Sender: No OFD packet to send [06:50:04]OFD Sender: No OFD packet to send [06:50:09]OFD Sender: No OFD packet to send [06:50:14]OFD Sender: No OFD packet to send [06:50:19]OFD Sender: No OFD packet to send [06:50:24]OFD Sender: No OFD packet to send [06:50:29]OFD Sender: No OFD packet to send [06:50:34]OFD Sender: No OFD packet to send [06:50:39]OFD Sender: No OFD packet to send [06:50:44]OFD Sender: No OFD packet to send [06:50:49]OFD Sender: No OFD packet to send [06:50:54]OFD Sender: No OFD packet to send [06:50:59]OFD Sender: No OFD packet to send [06:51:04]OFD Sender: No OFD packet to send [06:51:09]OFD Sender: No OFD packet to send [06:51:14]OFD Sender: No OFD packet to send [06:51:19]OFD Sender: No OFD packet to send [06:51:24]OFD Sender: No OFD packet to send [06:51:29]OFD Sender: No OFD packet to send [06:51:34]OFD Sender: No OFD packet to send [06:51:39]OFD Sender: No OFD packet to send [06:51:44]OFD Sender: No OFD packet to send [06:51:49]OFD Sender: No OFD packet to send [06:51:54]OFD Sender: No OFD packet to send [06:51:59]OFD Sender: No OFD packet to send [06:52:04]OFD Sender: No OFD packet to send [06:52:09]OFD Sender: No OFD packet to send [06:52:14]OFD Sender: No OFD packet to send [06:52:19]accept exits with 8 [06:52:19]New connection [06:52:19]New thread 3067460964 created [06:52:19]Thread 3067317604 joined [06:52:19]Waiting for new connection... [06:52:19] Sock 8.Parse request [06:52:19]Sock 8.Check first char [06:52:19]Sock 8.First char is OK [06:52:19]request: POST /json_proto HTTP/1.0 [06:52:19]Method: POST [06:52:19]URL: /json_proto [06:52:19]Method is POST - this is cgi request [06:52:19]url: /json_proto [06:52:19]query_string will be loaded in cgi processing [06:52:19]execute_cgi json_proto POST (null) [06:52:19]execute_cgi path=json_proto method=POST [06:52:19]POST find Content-Length [06:52:19]Host: 172.17.45.132:8080 [06:52:19]Content-Length: 644 [06:52:19]Content-Type: application/json [06:52:19] [06:52:19]POST finish read [06:52:19]Found Content-Length = 644 [06:52:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126298", "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" ] } } [06:52:19]execute_script... [06:52: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)126298", "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" ] } } [06:52:19]POST & json_proto [06:52:19]process_json_proto [06:52:19]json parsed OK: [06:52:19]protocol is kg_v1.0 [06:52:19]action value=close_receipt [06:52:19]process_action close_receipt [06:52:19]cmd_close_receipt [06:52:19]MH_GetDate [06:52:19]Write to MH i2c: F0 00 00 46 39 6E [06:52:19]Write i2c OK [06:52:19]MH_I2C_Read... [06:52:19]Read from MH i2c: F0 [06:52:19]MH_I2C_Read... [06:52:19]Read from MH i2c: F0 09 00 [06:52:19]MH_I2C_Read... [06:52:19]Read from MH i2c: F0 09 00 46 39 00 A7 EA A5 66 E3 0B 90 66 F7 [06:52:19]GetLastDocTimeStamp 1722149385 [06:52:19]current date 1722149543 [06:52:19]FM_GetShiftState [06:52:19]SAM_PROTO_GetShiftState [06:52:19]wFMCommunicate request_size=4 [06:52:19]MH_SAM_APDU [06:52:19]CAPDU: 80 13 01 00 [06:52:19]Write to MH i2c: E2 08 00 47 39 80 13 01 00 00 00 00 00 FD [06:52:19]Write i2c OK [06:52:19]MH_I2C_Read... [06:52:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:52:19]Read from MH i2c: E2 [06:52:19]MH_I2C_Read... [06:52:19]Read from MH i2c: E2 0E 00 [06:52:19]MH_I2C_Read... [06:52:19]Read from MH i2c: E2 0E 00 47 39 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 F1 [06:52:19]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [06:52:19]wFMCommunicate OK [06:52:19]SAM_PROTO_GetShiftState done [06:52:19]FM_GetShiftState done [06:52:19]opened in 1722125648 [06:52:19]opened+sec_in_day 1722212048 [06:52:19]quantity*price = 11500 [06:52:19]sum+1 = 11501 [06:52:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 115.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 42 28.07.2024 06:52 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 1991 ФПД: 184990972338724 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T065223&type=1&operation_type=1&fn_number=0000000002094248&fd_number=1991&fm=184990972338724&tin=02508201610067®Number=0000000000189667&sum=11500 0 [06:52:20]StoreToDocumentArchive [06:52:20]shift 13 fd 1991 [06:52:20]save to /storage/0013/doc_00001991 [06:52:20]save last doc name /storage/0013/doc_00001991 to /storage/kkm_last_doc_name [06:52:20]save OK [06:52:20]Clear old archive folders... [06:52:20]ProcessDocumentItem done err = 0, tmpTLVsize=280 [06:52:20]tlvbuf is 01FD75E0 [06:52:20]SAM_PROTO_ClearQueue [06:52:20]wFMCommunicate request_size=4 [06:52:20]MH_SAM_APDU [06:52:20]CAPDU: 80 09 00 00 [06:52:20]Write to MH i2c: E2 08 00 54 39 80 09 00 00 00 00 00 00 FF [06:52:20]Write i2c OK [06:52:20]MH_I2C_Read... [06:52:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:52:20]Read from MH i2c: E2 [06:52:20]MH_I2C_Read... [06:52:20]Read from MH i2c: E2 03 00 [06:52:20]MH_I2C_Read... [06:52:20]Read from MH i2c: E2 03 00 54 39 00 90 00 01 [06:52:20]RAPDU: 90 00 [06:52:20]wFMCommunicate OK [06:52:20]SAM_PROTO_ClearQueue done [06:52:20]KKMCreateOFDPacket [06:52:20]OFDProtocolAddRootSTLVToBuf [06:52:20]FM_MakeSignedData [06:52:20]FM_MakeSignedData [06:52:20]SAM_PROTO_SignData [06:52:20]wFMCommunicate request_size=4 [06:52:20]MH_SAM_APDU [06:52:20]CAPDU: 80 0D 01 02 [06:52:20]Write to MH i2c: E2 08 00 55 39 80 0D 01 02 00 00 00 00 07 [06:52:20]Write i2c OK [06:52:20]MH_I2C_Read... [06:52:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:52:20]Read from MH i2c: E2 [06:52:20]MH_I2C_Read... [06:52:20]Read from MH i2c: E2 03 00 [06:52:20]MH_I2C_Read... [06:52:20]Read from MH i2c: E2 03 00 55 39 00 90 00 02 [06:52:20]RAPDU: 90 00 [06:52:20]wFMCommunicate OK [06:52:20]wFMCommunicate request_size=255 [06:52:20]MH_SAM_APDU [06:52: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 2A 00 00 00 F4 03 04 00 A7 EA A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 [06:52:20]Write to MH i2c: E2 02 01 56 39 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 2A 00 00 00 F4 03 04 00 A7 EA A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 00 00 26 [06:52:20]Write i2c OK [06:52:20]MH_I2C_Read... [06:52:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:52:20]Read from MH i2c: E2 [06:52:20]MH_I2C_Read... [06:52:20]Read from MH i2c: E2 03 00 [06:52:20]MH_I2C_Read... [06:52:20]Read from MH i2c: E2 03 00 56 39 00 90 00 03 [06:52:20]RAPDU: 90 00 [06:52:20]wFMCommunicate OK [06:52:20]wFMCommunicate request_size=39 [06:52:20]MH_SAM_APDU [06:52:20]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C7 07 00 00 35 04 06 00 A8 3F 91 31 62 24 [06:52:20]Write to MH i2c: E2 2A 00 57 39 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C7 07 00 00 35 04 06 00 A8 3F 91 31 62 24 00 00 BF [06:52:20]Write i2c OK [06:52:20]MH_I2C_Read... [06:52:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:52:20]Read from MH i2c: E2 [06:52:20]MH_I2C_Read... [06:52:20]Read from MH i2c: E2 03 00 [06:52:20]MH_I2C_Read... [06:52:20]Read from MH i2c: E2 03 00 57 39 00 90 00 04 [06:52:20]RAPDU: 90 00 [06:52:20]wFMCommunicate OK [06:52:20]wFMCommunicate request_size=4 [06:52:20]MH_SAM_APDU [06:52:20]CAPDU: 80 0D 03 02 [06:52:20]Write to MH i2c: E2 08 00 58 39 80 0D 03 02 00 00 00 00 0C [06:52:20]Write i2c OK [06:52:20]MH_I2C_Read... [06:52:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:52:20]Read from MH i2c: E2 [06:52:20]MH_I2C_Read... [06:52:20]Read from MH i2c: E2 0B 00 [06:52:20]MH_I2C_Read... [06:52:20]Read from MH i2c: E2 0B 00 58 39 00 85 EB 20 15 D1 C9 07 D6 90 00 29 [06:52:20]RAPDU: 85 EB 20 15 D1 C9 07 D6 90 00 [06:52:20]wFMCommunicate OK [06:52:20]SAM_PROTO_SignData done [06:52:20]FM_MakeSignedData done [06:52:20]CreateOFDProtocolMessage [06:52:20]wFMCommunicate request_size=4 [06:52:20]MH_SAM_APDU [06:52:20]CAPDU: 80 11 00 00 [06:52:20]Write to MH i2c: E2 08 00 59 39 80 11 00 00 00 00 00 00 0C [06:52:20]Write i2c OK [06:52:20]MH_I2C_Read... [06:52:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:52:20]Read from MH i2c: E2 [06:52:20]MH_I2C_Read... [06:52:20]Read from MH i2c: E2 17 00 [06:52:20]MH_I2C_Read... [06:52:20]Read from MH i2c: E2 17 00 59 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 5C [06:52:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [06:52:20]wFMCommunicate OK [06:52:20]CreateOFDProtocolMessage done [06:52:20]OFDSenderStorePacket 1991 [06:52:20]StoreOFDPacket docnum=1991 [06:52:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2C 01 00 00 5A 14 24 01 E1 CA 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 2A 00 00 00 F4 03 04 00 A7 EA A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C7 07 00 00 35 04 06 00 A8 3F 91 31 62 24 85 EB 20 15 D1 C9 07 D6 [06:52:20]CheckFolder [06:52:20]dirname=/storage/ofd_packets [06:52:20]CheckFolder done [06:52:20]ProducePacketName [06:52:20]name=ofd_packets/00001991 [06:52:20]NVStorageSaveData ofd_packets/00001991 [06:52:20]File name is /storage/ofd_packets/00001991 [06:52:20]Write 330 bytes [06:52:20]NVStorageSaveData done [06:52:20]OFDSenderStorePacket done [06:52:20]KKMCreateOFDPacket done [06:52:20]NVStorageSaveData kkm_last_timestamp [06:52:20]File name is /storage/kkm_last_timestamp [06:52:20]Write 4 bytes [06:52:20]NVStorageSaveData done [06:52:20]ExternCall_PrintAddStr [06:52:20]wPrintStart [06:52:20]Write to MH i2c: 01 00 00 5A 39 93 [06:52:20]Write i2c OK [06:52:20]MH_I2C_Read... [06:52:20]Read from MH i2c: 01 [06:52:20]MH_I2C_Read... [06:52:20]Read from MH i2c: 01 07 00 [06:52:20]MH_I2C_Read... [06:52:20]Read from MH i2c: 01 07 00 5A 39 00 00 00 00 00 FF 0F A8 [06:52:20]RasterBufferAndPrint [06:52:20]line Счет N : (3)126298 [06:52:20]line ИНН: 02508201610067 [06:52:20]line Контрольно-Кассовый Чек [06:52:20]line ПРОДАЖА [06:52:20]line Товар: 2000036210013 [06:52:20]line Кофе Капучино (GABB TRADE) [06:52:20]line 1.000 * 115.00 [06:52:20]line = 115.00 [06:52:20]line НДС 12% НСП 1% [06:52:20]line > о реализуемом товаре [06:52:20]line ИТОГО: 115.00 [06:52:20]line НСП 1% : 1.02 [06:52:20]line НДС 12% : 12.21 [06:52:20]line Наличными: 115.00 [06:52:20]line Безнал.: 0.00 [06:52:20]line Место: АЗС № 127 "Партнер Нефть" [06:52:20]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [06:52:20]line СНО: Общий режим [06:52:20]line Чек 42 28.07.2024 06:52 [06:52:20]line Смена: 13 ФФД: 1.0 [06:52:20]line ЗНМ: 0300000161 [06:52:20]line РНМ: 0000000000189667 [06:52:20]line Версия ККМ: v1.0 [06:52:20]line ФМ: 0000000002094248 [06:52:20]line ФД: 1991 [06:52:20]line ФПД: 184990972338724 [06:52:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T065223&type=1&operation_type=1&fn_number=0000000002094248&fd_number=1991&fm=184990972338724&tin=02508201610067®Number=0000000000189667&sum=11500 [06:52:21]line 0 [06:52:21]OFD Sender: Processing packet 1991 [packets to send 1, broken 0] [06:52:21]ProducePacketName [06:52:21]name=ofd_packets/00001991 [06:52:21]OFD Sender: To server: pG, [06:52:21]CommunicateWithHost lk.salyk.kg:30040 [06:52:21]ConnectInit lk.salyk.kg [06:52:21]written 0, free lines is 4095 [06:52:21]Connected sock=10 [06:52:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2C 01 00 00 5A 14 24 01 E1 CA 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 2A 00 00 00 F4 03 04 00 A7 EA A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C7 07 00 00 35 04 06 00 A8 3F 91 31 62 24 85 EB 20 15 D1 C9 07 D6 [06:52:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 73 BD 47 00 B0 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C7 07 00 00 F4 03 04 00 17 96 A5 66 B6 04 01 00 00 0B 5E DE DB BF 4C D1 31 [06:52:21]CommunicateWithHost err = 0 [06:52:21]CheckOFDResponse [06:52:21]1017 (14) - 77093643461234 [06:52:21]1041 (16) - 0000000002094248 [06:52:21]1040 (4) - 1991 [06:52:21]1012 (4) - 28.07.2024 00:51 [06:52:21]1206 (1) - 0 [06:52:21]OFD Sender: Remove packet 1991 [06:52:21]ProducePacketName [06:52:21]name=ofd_packets/00001991 [06:52:21]NVStorageDeleteData [06:52:21]Write to MH i2c: 01 00 00 82 39 BB [06:52:21]Write i2c OK [06:52:21]MH_I2C_Read... [06:52:21]Read from MH i2c: 01 [06:52:21]MH_I2C_Read... [06:52:21]Read from MH i2c: 01 07 00 [06:52:21]MH_I2C_Read... [06:52:21]Read from MH i2c: 01 07 00 82 39 00 00 00 00 00 2C 0D FB [06:52:21]RasterBufferAndPrint [06:52:21]line [06:52:21]line [06:52:21]line [06:52:21]line [06:52:21]line [06:52:21]written 0, free lines is 3382 [06:52:21]MH_Cut [06:52:21]Write to MH i2c: D1 01 00 89 39 01 94 [06:52:21]Write i2c OK [06:52:21]MH_I2C_Read... [06:52:21]Read from MH i2c: D1 [06:52:21]MH_I2C_Read... [06:52:21]Read from MH i2c: D1 01 00 [06:52:21]MH_I2C_Read... [06:52:21]Read from MH i2c: D1 01 00 89 39 00 93 [06:52:21]Write to MH i2c: 01 00 00 8A 39 C3 [06:52:21]Write i2c OK [06:52:21]MH_I2C_Read... [06:52:22]OFD Sender: No OFD packet to send [06:52:22]*** Cut start [06:52:22]*** Partial cut [06:52:22]*** CUTSNS_PIN = 1 [06:52:22]*** CUTSNS_PIN = 0 [06:52:22]*** Brake cut motor [06:52:23]Read from MH i2c: 01 [06:52:23]MH_I2C_Read... [06:52:23]*** Stop cut motor [06:52:23]*** Cut end [06:52:23]Read from MH i2c: 01 07 00 [06:52:23]MH_I2C_Read... [06:52:23]Read from MH i2c: 01 07 00 8A 39 00 00 00 00 00 FF 0F D8 [06:52:23]process_action close_receipt done [06:52:23]requested_data is exist [06:52:23]produce_requested_data [06:52:23]requested_item fm.sn is exist - process it [06:52:23]wFMCommunicate request_size=4 [06:52:23]MH_SAM_APDU [06:52:23]CAPDU: 80 11 00 00 [06:52:23]Write to MH i2c: E2 08 00 8B 39 80 11 00 00 00 00 00 00 3E [06:52:23]Write i2c OK [06:52:23]MH_I2C_Read... [06:52:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:52:23]Read from MH i2c: E2 [06:52:23]MH_I2C_Read... [06:52:23]Read from MH i2c: E2 17 00 [06:52:23]MH_I2C_Read... [06:52:23]Read from MH i2c: E2 17 00 8B 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 8E [06:52:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [06:52:23]wFMCommunicate OK [06:52:23]requested_item fd.num is exist - process it [06:52:23]SAM_PROTO_GetFieldsCounters [06:52:23]wFMCommunicate request_size=4 [06:52:23]MH_SAM_APDU [06:52:23]CAPDU: 80 13 00 00 [06:52:23]Write to MH i2c: E2 08 00 8C 39 80 13 00 00 00 00 00 00 41 [06:52:23]Write i2c OK [06:52:23]MH_I2C_Read... [06:52:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:52:23]Read from MH i2c: E2 [06:52:23]MH_I2C_Read... [06:52:23]Read from MH i2c: E2 62 00 [06:52:23]MH_I2C_Read... [06:52:23]Read from MH i2c: E2 62 00 8C 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 C7 07 00 00 0E 04 04 00 0D 00 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 C4 [06:52:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 C7 07 00 00 0E 04 04 00 0D 00 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 [06:52:23]wFMCommunicate OK [06:52:23]SAM_PROTO_GetFieldsCounters done [06:52:23]requested_item shift.num is exist - process it [06:52:23]requested_item shift.opened is exist - process it [06:52:23]req_shift_opened [06:52:23]FM_GetShiftState [06:52:23]SAM_PROTO_GetShiftState [06:52:23]wFMCommunicate request_size=4 [06:52:23]MH_SAM_APDU [06:52:23]CAPDU: 80 13 01 00 [06:52:23]Write to MH i2c: E2 08 00 8D 39 80 13 01 00 00 00 00 00 43 [06:52:23]Write i2c OK [06:52:23]MH_I2C_Read... [06:52:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:52:23]Read from MH i2c: E2 [06:52:23]MH_I2C_Read... [06:52:23]Read from MH i2c: E2 0E 00 [06:52:23]MH_I2C_Read... [06:52:23]Read from MH i2c: E2 0E 00 8D 39 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 37 [06:52:23]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [06:52:23]wFMCommunicate OK [06:52:23]SAM_PROTO_GetShiftState done [06:52:23]FM_GetShiftState done [06:52:23]req_shift_opened done [06:52:23]requested_item shift.open_date is exist - process it [06:52:23]req_shift_open_date [06:52:23]req_shift_open_date done [06:52:23]produce_requested_data done [06:52:23]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":1991,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [06:52:23]process_action_free close_receipt [06:52:23]json_value_free [06:52:23]json_value_free done [06:52:23]process_json_proto returns [06:52:23]Send response to host [06:52:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":1991,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [06:52:23]free response buf [06:52:23]execute_script done [06:52:23]execute_script returns [06:52:23]free content buf [06:52:23]Sock 8.Close socket [06:52:23]Sock 8.Thread stoped [06:52:27]OFD Sender: No OFD packet to send [06:52:32]OFD Sender: No OFD packet to send [06:52:37]OFD Sender: No OFD packet to send [06:52:42]OFD Sender: No OFD packet to send [06:52:47]OFD Sender: No OFD packet to send [06:52:52]OFD Sender: No OFD packet to send [06:52:57]OFD Sender: No OFD packet to send [06:53:02]OFD Sender: No OFD packet to send [06:53:07]OFD Sender: No OFD packet to send [06:53:12]OFD Sender: No OFD packet to send [06:53:13]accept exits with 9 [06:53:13]New connection [06:53:13]New thread 3067317604 created [06:53:13]Thread 3067460964 joined [06:53:13]Waiting for new connection... [06:53:13] Sock 9.Parse request [06:53:13]Sock 9.Check first char [06:53:13]Sock 9.First char is OK [06:53:13]request: POST /json_proto HTTP/1.0 [06:53:13]Method: POST [06:53:13]URL: /json_proto [06:53:13]Method is POST - this is cgi request [06:53:13]url: /json_proto [06:53:13]query_string will be loaded in cgi processing [06:53:13]execute_cgi json_proto POST (null) [06:53:13]execute_cgi path=json_proto method=POST [06:53:13]POST find Content-Length [06:53:13]Host: 172.17.45.132:8080 [06:53:13]Content-Length: 668 [06:53:13]Content-Type: application/json [06:53:13] [06:53:13]POST finish read [06:53:13]Found Content-Length = 668 [06:53:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126299", "tax_sys" : 0, "items" : [ { "code": "4670003195728", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u0416-40 \u0436\u0435\u043B 1\u043B", "price" : 225.00, "quantity" : 1.000, "sum" : 225.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:53:13]execute_script... [06:53:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126299", "tax_sys" : 0, "items" : [ { "code": "4670003195728", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u0416-40 \u0436\u0435\u043B 1\u043B", "price" : 225.00, "quantity" : 1.000, "sum" : 225.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:53:13]POST & json_proto [06:53:13]process_json_proto [06:53:13]json parsed OK: [06:53:13]protocol is kg_v1.0 [06:53:13]action value=close_receipt [06:53:13]process_action close_receipt [06:53:13]cmd_close_receipt [06:53:13]MH_GetDate [06:53:13]Write to MH i2c: F0 00 00 8E 39 B6 [06:53:13]Write i2c OK [06:53:13]MH_I2C_Read... [06:53:13]Read from MH i2c: F0 [06:53:13]MH_I2C_Read... [06:53:13]Read from MH i2c: F0 09 00 [06:53:13]MH_I2C_Read... [06:53:13]Read from MH i2c: F0 09 00 8E 39 00 DD EA A5 66 E3 0B 90 66 75 [06:53:13]GetLastDocTimeStamp 1722149543 [06:53:13]current date 1722149597 [06:53:13]FM_GetShiftState [06:53:13]SAM_PROTO_GetShiftState [06:53:13]wFMCommunicate request_size=4 [06:53:13]MH_SAM_APDU [06:53:13]CAPDU: 80 13 01 00 [06:53:13]Write to MH i2c: E2 08 00 8F 39 80 13 01 00 00 00 00 00 45 [06:53:13]Write i2c OK [06:53:13]MH_I2C_Read... [06:53:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:53:13]Read from MH i2c: E2 [06:53:13]MH_I2C_Read... [06:53:13]Read from MH i2c: E2 0E 00 [06:53:13]MH_I2C_Read... [06:53:13]Read from MH i2c: E2 0E 00 8F 39 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 39 [06:53:13]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [06:53:13]wFMCommunicate OK [06:53:13]SAM_PROTO_GetShiftState done [06:53:13]FM_GetShiftState done [06:53:13]opened in 1722125648 [06:53:13]opened+sec_in_day 1722212048 [06:53:13]quantity*price = 22500 [06:53:13]sum+1 = 22501 [06:53:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 225.00 НСП 1% : 1.99 НДС 12% : 23.89 Наличными: 225.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 43 28.07.2024 06:53 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 1992 ФПД: 98608519679689 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T065317&type=1&operation_type=1&fn_number=0000000002094248&fd_number=1992&fm=98608519679689&tin=02508201610067®Number=0000000000189667&sum=22500 0 [06:53:14]StoreToDocumentArchive [06:53:14]shift 13 fd 1992 [06:53:14]save to /storage/0013/doc_00001992 [06:53:14]save last doc name /storage/0013/doc_00001992 to /storage/kkm_last_doc_name [06:53:14]save OK [06:53:14]Clear old archive folders... [06:53:14]ProcessDocumentItem done err = 0, tmpTLVsize=296 [06:53:14]tlvbuf is 01FD7220 [06:53:14]SAM_PROTO_ClearQueue [06:53:14]wFMCommunicate request_size=4 [06:53:14]MH_SAM_APDU [06:53:14]CAPDU: 80 09 00 00 [06:53:14]Write to MH i2c: E2 08 00 9C 39 80 09 00 00 00 00 00 00 47 [06:53:14]Write i2c OK [06:53:14]MH_I2C_Read... [06:53:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:53:14]Read from MH i2c: E2 [06:53:14]MH_I2C_Read... [06:53:14]Read from MH i2c: E2 03 00 [06:53:14]MH_I2C_Read... [06:53:14]Read from MH i2c: E2 03 00 9C 39 00 90 00 49 [06:53:14]RAPDU: 90 00 [06:53:14]wFMCommunicate OK [06:53:14]SAM_PROTO_ClearQueue done [06:53:14]KKMCreateOFDPacket [06:53:14]OFDProtocolAddRootSTLVToBuf [06:53:14]FM_MakeSignedData [06:53:14]FM_MakeSignedData [06:53:14]SAM_PROTO_SignData [06:53:14]wFMCommunicate request_size=4 [06:53:14]MH_SAM_APDU [06:53:14]CAPDU: 80 0D 01 02 [06:53:14]Write to MH i2c: E2 08 00 9D 39 80 0D 01 02 00 00 00 00 4F [06:53:14]Write i2c OK [06:53:14]MH_I2C_Read... [06:53:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:53:14]Read from MH i2c: E2 [06:53:14]MH_I2C_Read... [06:53:14]Read from MH i2c: E2 03 00 [06:53:14]MH_I2C_Read... [06:53:14]Read from MH i2c: E2 03 00 9D 39 00 90 00 4A [06:53:14]RAPDU: 90 00 [06:53:14]wFMCommunicate OK [06:53:14]wFMCommunicate request_size=255 [06:53:14]MH_SAM_APDU [06:53:14]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 35 37 32 38 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 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 DD EA A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [06:53:14]Write to MH i2c: E2 02 01 9E 39 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 35 37 32 38 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 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 DD EA A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 EC [06:53:14]Write i2c OK [06:53:14]MH_I2C_Read... [06:53:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:53:14]Read from MH i2c: E2 [06:53:14]MH_I2C_Read... [06:53:14]Read from MH i2c: E2 03 00 [06:53:14]MH_I2C_Read... [06:53:14]Read from MH i2c: E2 03 00 9E 39 00 90 00 4B [06:53:14]RAPDU: 90 00 [06:53:14]wFMCommunicate OK [06:53:14]wFMCommunicate request_size=55 [06:53:14]MH_SAM_APDU [06:53:14]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C8 07 00 00 35 04 06 00 59 AF 15 C9 8E C9 [06:53:14]Write to MH i2c: E2 3A 00 9F 39 80 0D 02 02 32 00 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C8 07 00 00 35 04 06 00 59 AF 15 C9 8E C9 00 00 C0 [06:53:15]Write i2c OK [06:53:15]MH_I2C_Read... [06:53:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:53:15]Read from MH i2c: E2 [06:53:15]MH_I2C_Read... [06:53:15]Read from MH i2c: E2 03 00 [06:53:15]MH_I2C_Read... [06:53:15]Read from MH i2c: E2 03 00 9F 39 00 90 00 4C [06:53:15]RAPDU: 90 00 [06:53:15]wFMCommunicate OK [06:53:15]wFMCommunicate request_size=4 [06:53:15]MH_SAM_APDU [06:53:15]CAPDU: 80 0D 03 02 [06:53:15]Write to MH i2c: E2 08 00 A0 39 80 0D 03 02 00 00 00 00 54 [06:53:15]Write i2c OK [06:53:15]MH_I2C_Read... [06:53:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:53:15]Read from MH i2c: E2 [06:53:15]MH_I2C_Read... [06:53:15]Read from MH i2c: E2 0B 00 [06:53:15]MH_I2C_Read... [06:53:15]Read from MH i2c: E2 0B 00 A0 39 00 A7 53 73 59 24 2C E1 8F 90 00 DB [06:53:15]RAPDU: A7 53 73 59 24 2C E1 8F 90 00 [06:53:15]wFMCommunicate OK [06:53:15]SAM_PROTO_SignData done [06:53:15]FM_MakeSignedData done [06:53:15]CreateOFDProtocolMessage [06:53:15]wFMCommunicate request_size=4 [06:53:15]MH_SAM_APDU [06:53:15]CAPDU: 80 11 00 00 [06:53:15]Write to MH i2c: E2 08 00 A1 39 80 11 00 00 00 00 00 00 54 [06:53:15]Write i2c OK [06:53:15]MH_I2C_Read... [06:53:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:53:15]Read from MH i2c: E2 [06:53:15]MH_I2C_Read... [06:53:15]Read from MH i2c: E2 17 00 [06:53:15]MH_I2C_Read... [06:53:15]Read from MH i2c: E2 17 00 A1 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 A4 [06:53:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [06:53:15]wFMCommunicate OK [06:53:15]CreateOFDProtocolMessage done [06:53:15]OFDSenderStorePacket 1992 [06:53:15]StoreOFDPacket docnum=1992 [06:53:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 3C 01 00 00 BE B5 34 01 D1 A0 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 35 37 32 38 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 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 DD EA A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C8 07 00 00 35 04 06 00 59 AF 15 C9 8E C9 A7 53 73 59 24 2C E1 8F [06:53:15]CheckFolder [06:53:15]dirname=/storage/ofd_packets [06:53:15]CheckFolder done [06:53:15]ProducePacketName [06:53:15]name=ofd_packets/00001992 [06:53:15]NVStorageSaveData ofd_packets/00001992 [06:53:15]File name is /storage/ofd_packets/00001992 [06:53:15]Write 346 bytes [06:53:15]NVStorageSaveData done [06:53:15]OFDSenderStorePacket done [06:53:15]KKMCreateOFDPacket done [06:53:15]NVStorageSaveData kkm_last_timestamp [06:53:15]File name is /storage/kkm_last_timestamp [06:53:15]Write 4 bytes [06:53:15]NVStorageSaveData done [06:53:15]ExternCall_PrintAddStr [06:53:15]wPrintStart [06:53:15]Write to MH i2c: 01 00 00 A2 39 DB [06:53:15]OFD Sender: Processing packet 1992 [packets to send 1, broken 0] [06:53:15]ProducePacketName [06:53:15]name=ofd_packets/00001992 [06:53:15]OFD Sender: To server: pG, [06:53:15]CommunicateWithHost lk.salyk.kg:30040 [06:53:15]ConnectInit lk.salyk.kg [06:53:15]Write i2c OK [06:53:15]MH_I2C_Read... [06:53:15]Read from MH i2c: 01 [06:53:15]MH_I2C_Read... [06:53:15]Read from MH i2c: 01 07 00 [06:53:15]MH_I2C_Read... [06:53:15]Read from MH i2c: 01 07 00 A2 39 00 00 00 00 00 FF 0F F0 [06:53:15]RasterBufferAndPrint [06:53:15]line Счет N : (3)126299 [06:53:15]line ИНН: 02508201610067 [06:53:15]line Контрольно-Кассовый Чек [06:53:15]line ПРОДАЖА [06:53:15]line Товар: 4670003195728 [06:53:15]line Антифриз SIBIRIA ANTIFREEZE ОЖ-40 жел 1л [06:53:15]line 1.000 * 225.00 [06:53:15]line = 225.00 [06:53:15]line НДС 12% НСП 1% [06:53:15]line > о реализуемом товаре [06:53:15]line ИТОГО: 225.00 [06:53:15]line НСП 1% : 1.99 [06:53:15]line НДС 12% : 23.89 [06:53:15]line Наличными: 225.00 [06:53:15]line Безнал.: 0.00 [06:53:15]line Место: АЗС № 127 "Партнер Нефть" [06:53:15]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [06:53:15]line СНО: Общий режим [06:53:15]line Чек 43 28.07.2024 06:53 [06:53:15]line Смена: 13 ФФД: 1.0 [06:53:15]line ЗНМ: 0300000161 [06:53:15]line РНМ: 0000000000189667 [06:53:15]line Версия ККМ: v1.0 [06:53:15]line ФМ: 0000000002094248 [06:53:15]line ФД: 1992 [06:53:15]line ФПД: 98608519679689 [06:53:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T065317&type=1&operation_type=1&fn_number=0000000002094248&fd_number=1992&fm=98608519679689&tin=02508201610067®Number=0000000000189667&sum=22500 [06:53:15]line 0 [06:53:15]Connected sock=10 [06:53:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 3C 01 00 00 BE B5 34 01 D1 A0 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 35 37 32 38 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 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 DD EA A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C8 07 00 00 35 04 06 00 59 AF 15 C9 8E C9 A7 53 73 59 24 2C E1 8F [06:53:15]written 0, free lines is 4095 [06:53:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 FC FE 47 00 EB DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C8 07 00 00 F4 03 04 00 4E 96 A5 66 B6 04 01 00 00 7C 1E 3D 54 02 1A F3 05 [06:53:15]CommunicateWithHost err = 0 [06:53:15]CheckOFDResponse [06:53:15]1017 (14) - 77093643461234 [06:53:15]1041 (16) - 0000000002094248 [06:53:15]1040 (4) - 1992 [06:53:15]1012 (4) - 28.07.2024 00:52 [06:53:15]1206 (1) - 0 [06:53:15]OFD Sender: Remove packet 1992 [06:53:15]ProducePacketName [06:53:15]name=ofd_packets/00001992 [06:53:15]NVStorageDeleteData [06:53:16]Write to MH i2c: 01 00 00 CB 39 04 [06:53:16]Write i2c OK [06:53:16]MH_I2C_Read... [06:53:16]Read from MH i2c: 01 [06:53:16]MH_I2C_Read... [06:53:16]Read from MH i2c: 01 07 00 [06:53:16]MH_I2C_Read... [06:53:16]Read from MH i2c: 01 07 00 CB 39 00 00 00 00 00 11 0D 29 [06:53:16]RasterBufferAndPrint [06:53:16]line [06:53:16]line [06:53:16]line [06:53:16]line [06:53:16]line [06:53:16]written 0, free lines is 3356 [06:53:16]MH_Cut [06:53:16]Write to MH i2c: D1 01 00 D2 39 01 DD [06:53:16]Write i2c OK [06:53:16]MH_I2C_Read... [06:53:16]Read from MH i2c: D1 [06:53:16]MH_I2C_Read... [06:53:16]Read from MH i2c: D1 01 00 [06:53:16]MH_I2C_Read... [06:53:16]Read from MH i2c: D1 01 00 D2 39 00 DC [06:53:16]Write to MH i2c: 01 00 00 D3 39 0C [06:53:16]Write i2c OK [06:53:16]MH_I2C_Read... [06:53:16]OFD Sender: No OFD packet to send [06:53:16]*** Cut start [06:53:16]*** Partial cut [06:53:16]*** CUTSNS_PIN = 1 [06:53:16]*** CUTSNS_PIN = 0 [06:53:16]*** Brake cut motor [06:53:17]Read from MH i2c: 01 [06:53:17]MH_I2C_Read... [06:53:17]*** Stop cut motor [06:53:17]*** Cut end [06:53:17]Read from MH i2c: 01 07 00 [06:53:17]MH_I2C_Read... [06:53:17]Read from MH i2c: 01 07 00 D3 39 00 00 00 00 00 FF 0F 21 [06:53:17]process_action close_receipt done [06:53:17]requested_data is exist [06:53:17]produce_requested_data [06:53:17]requested_item fm.sn is exist - process it [06:53:17]wFMCommunicate request_size=4 [06:53:17]MH_SAM_APDU [06:53:17]CAPDU: 80 11 00 00 [06:53:17]Write to MH i2c: E2 08 00 D4 39 80 11 00 00 00 00 00 00 87 [06:53:17]Write i2c OK [06:53:17]MH_I2C_Read... [06:53:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:53:17]Read from MH i2c: E2 [06:53:17]MH_I2C_Read... [06:53:17]Read from MH i2c: E2 17 00 [06:53:17]MH_I2C_Read... [06:53:17]Read from MH i2c: E2 17 00 D4 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 D7 [06:53:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [06:53:17]wFMCommunicate OK [06:53:17]requested_item fd.num is exist - process it [06:53:17]SAM_PROTO_GetFieldsCounters [06:53:17]wFMCommunicate request_size=4 [06:53:17]MH_SAM_APDU [06:53:17]CAPDU: 80 13 00 00 [06:53:17]Write to MH i2c: E2 08 00 D5 39 80 13 00 00 00 00 00 00 8A [06:53:17]Write i2c OK [06:53:17]MH_I2C_Read... [06:53:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:53:17]Read from MH i2c: E2 [06:53:17]MH_I2C_Read... [06:53:17]Read from MH i2c: E2 62 00 [06:53:17]MH_I2C_Read... [06:53:17]Read from MH i2c: E2 62 00 D5 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 C8 07 00 00 0E 04 04 00 0D 00 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 11 [06:53:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 C8 07 00 00 0E 04 04 00 0D 00 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 [06:53:17]wFMCommunicate OK [06:53:17]SAM_PROTO_GetFieldsCounters done [06:53:17]requested_item shift.num is exist - process it [06:53:17]requested_item shift.opened is exist - process it [06:53:17]req_shift_opened [06:53:17]FM_GetShiftState [06:53:17]SAM_PROTO_GetShiftState [06:53:17]wFMCommunicate request_size=4 [06:53:17]MH_SAM_APDU [06:53:17]CAPDU: 80 13 01 00 [06:53:17]Write to MH i2c: E2 08 00 D6 39 80 13 01 00 00 00 00 00 8C [06:53:17]Write i2c OK [06:53:17]MH_I2C_Read... [06:53:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:53:17]Read from MH i2c: E2 [06:53:17]MH_I2C_Read... [06:53:17]Read from MH i2c: E2 0E 00 [06:53:17]MH_I2C_Read... [06:53:17]Read from MH i2c: E2 0E 00 D6 39 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 80 [06:53:17]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [06:53:17]wFMCommunicate OK [06:53:17]SAM_PROTO_GetShiftState done [06:53:17]FM_GetShiftState done [06:53:17]req_shift_opened done [06:53:17]requested_item shift.open_date is exist - process it [06:53:17]req_shift_open_date [06:53:17]req_shift_open_date done [06:53:17]produce_requested_data done [06:53:17]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":1992,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [06:53:17]process_action_free close_receipt [06:53:17]json_value_free [06:53:17]json_value_free done [06:53:17]process_json_proto returns [06:53:17]Send response to host [06:53:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":1992,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [06:53:17]free response buf [06:53:17]execute_script done [06:53:17]execute_script returns [06:53:17]free content buf [06:53:17]Sock 9.Close socket [06:53:17]Sock 9.Thread stoped [06:53:21]OFD Sender: No OFD packet to send [06:53:26]OFD Sender: No OFD packet to send [06:53:31]OFD Sender: No OFD packet to send [06:53:36]OFD Sender: No OFD packet to send [06:53:41]OFD Sender: No OFD packet to send [06:53:46]OFD Sender: No OFD packet to send [06:53:51]OFD Sender: No OFD packet to send [06:53:56]OFD Sender: No OFD packet to send [06:54:01]OFD Sender: No OFD packet to send [06:54:06]OFD Sender: No OFD packet to send [06:54:11]OFD Sender: No OFD packet to send [06:54:16]OFD Sender: No OFD packet to send [06:54:21]OFD Sender: No OFD packet to send [06:54:26]OFD Sender: No OFD packet to send [06:54:31]OFD Sender: No OFD packet to send [06:54:36]OFD Sender: No OFD packet to send [06:54:41]OFD Sender: No OFD packet to send [06:54:46]OFD Sender: No OFD packet to send [06:54:51]OFD Sender: No OFD packet to send [06:54:56]OFD Sender: No OFD packet to send [06:55:01]OFD Sender: No OFD packet to send [06:55:06]OFD Sender: No OFD packet to send [06:55:11]OFD Sender: No OFD packet to send [06:55:16]OFD Sender: No OFD packet to send [06:55:21]OFD Sender: No OFD packet to send [06:55:26]OFD Sender: No OFD packet to send [06:55:31]OFD Sender: No OFD packet to send [06:55:36]OFD Sender: No OFD packet to send [06:55:41]OFD Sender: No OFD packet to send [06:55:46]OFD Sender: No OFD packet to send [06:55:51]OFD Sender: No OFD packet to send [06:55:56]OFD Sender: No OFD packet to send [06:56:01]OFD Sender: No OFD packet to send [06:56:06]OFD Sender: No OFD packet to send [06:56:11]OFD Sender: No OFD packet to send [06:56:16]OFD Sender: No OFD packet to send [06:56:21]OFD Sender: No OFD packet to send [06:56:26]OFD Sender: No OFD packet to send [06:57:06]Read from MH i2c: E2 17 00 EA 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 ED [06:57:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [06:57:06]wFMCommunicate OK [06:57:06]CreateOFDProtocolMessage done [06:57:06]OFDSenderStorePacket 1993 [06:57:06]StoreOFDPacket docnum=1993 [06:57:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 1F 01 00 00 A8 D3 17 01 7A CE 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 00 00 00 00 00 00 39 04 06 00 04 A6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 C5 EB A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C9 07 00 00 35 04 06 00 A2 F2 8B 56 8D FD 35 19 E2 3A 87 2D 80 F6 [06:57:06]CheckFolder [06:57:06]dirname=/storage/ofd_packets [06:57:06]CheckFolder done [06:57:06]ProducePacketName [06:57:06]name=ofd_packets/00001993 [06:57:06]NVStorageSaveData ofd_packets/00001993 [06:57:06]File name is /storage/ofd_packets/00001993 [06:57:06]Write 317 bytes [06:57:06]NVStorageSaveData done [06:57:06]OFDSenderStorePacket done [06:57:06]KKMCreateOFDPacket done [06:57:06]NVStorageSaveData kkm_last_timestamp [06:57:06]File name is /storage/kkm_last_timestamp [06:57:06]Write 4 bytes [06:57:06]NVStorageSaveData done [06:57:06]ExternCall_PrintAddStr [06:57:06]wPrintStart [06:57:06]Write to MH i2c: 01 00 00 EB 39 24 [06:57:06]Write i2c OK [06:57:06]MH_I2C_Read... [06:57:06]Read from MH i2c: 01 [06:57:06]MH_I2C_Read... [06:57:06]Read from MH i2c: 01 07 00 [06:57:06]MH_I2C_Read... [06:57:06]Read from MH i2c: 01 07 00 EB 39 00 00 00 00 00 FF 0F 39 [06:57:06]RasterBufferAndPrint [06:57:06]line Счет N : (3)126300 [06:57:06]line ИНН: 02508201610067 [06:57:06]line Контрольно-Кассовый Чек [06:57:06]line ПРОДАЖА [06:57:06]line Товар: 4700003150486 [06:57:06]line Водка Ороон 0,5 [06:57:06]line 1.000 * 425.00 [06:57:06]line = 425.00 [06:57:06]line НДС 12% НСП 1% [06:57:06]line > о реализуемом товаре [06:57:06]line ИТОГО: 425.00 [06:57:06]line НСП 1% : 3.76 [06:57:06]line НДС 12% : 45.13 [06:57:06]line Наличными: 0.00 [06:57:06]line Безнал.: 425.00 [06:57:06]line Место: АЗС № 127 "Партнер Нефть" [06:57:06]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [06:57:06]line СНО: Общий режим [06:57:06]line Чек 44 28.07.2024 06:57 [06:57:06]line Смена: 13 ФФД: 1.0 [06:57:06]line ЗНМ: 0300000161 [06:57:06]line РНМ: 0000000000189667 [06:57:06]line Версия ККМ: v1.0 [06:57:06]line Платежная система: Бакай Банк [06:57:06]line ФМ: 0000000002094248 [06:57:06]line ФД: 1993 [06:57:06]line ФПД: 179162603490813 [06:57:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T065709&type=1&operation_type=1&fn_number=0000000002094248&fd_number=1993&fm=179162603490813&tin=02508201610067®Number=0000000000189667&sum=42500 [06:57:07]line 0 [06:57:07]OFD Sender: Processing packet 1993 [packets to send 1, broken 0] [06:57:07]ProducePacketName [06:57:07]name=ofd_packets/00001993 [06:57:07]OFD Sender: To server: pG, [06:57:07]CommunicateWithHost lk.salyk.kg:30040 [06:57:07]ConnectInit lk.salyk.kg [06:57:07]written 0, free lines is 4095 [06:57:07]Write to MH i2c: 01 00 00 15 3A 4F [06:57:07]Write i2c OK [06:57:07]MH_I2C_Read... [06:57:07]Read from MH i2c: 01 [06:57:07]MH_I2C_Read... [06:57:07]Read from MH i2c: 01 07 00 [06:57:07]MH_I2C_Read... [06:57:07]Read from MH i2c: 01 07 00 15 3A 00 00 00 00 00 F7 0C 59 [06:57:07]RasterBufferAndPrint [06:57:07]line [06:57:07]line [06:57:07]line [06:57:07]line [06:57:07]line [06:57:07]written 0, free lines is 3325 [06:57:07]MH_Cut [06:57:07]Write to MH i2c: D1 01 00 1C 3A 01 28 [06:57:07]Write i2c OK [06:57:07]MH_I2C_Read... [06:57:07]Read from MH i2c: D1 [06:57:07]MH_I2C_Read... [06:57:07]Read from MH i2c: D1 01 00 [06:57:07]MH_I2C_Read... [06:57:07]Read from MH i2c: D1 01 00 1C 3A 00 27 [06:57:07]Write to MH i2c: 01 00 00 1D 3A 57 [06:57:07]Write i2c OK [06:57:07]MH_I2C_Read... [06:57:08]*** Cut start [06:57:08]*** Partial cut [06:57:08]*** CUTSNS_PIN = 1 [06:57:08]*** CUTSNS_PIN = 0 [06:57:08]*** Brake cut motor [06:57:09]Read from MH i2c: 01 [06:57:09]MH_I2C_Read... [06:57:09]*** Stop cut motor [06:57:09]*** Cut end [06:57:09]Read from MH i2c: 01 07 00 [06:57:09]MH_I2C_Read... [06:57:09]Read from MH i2c: 01 07 00 1D 3A 00 00 00 00 00 FF 0F 6C [06:57:09]process_action close_receipt done [06:57:09]requested_data is exist [06:57:09]produce_requested_data [06:57:09]requested_item fm.sn is exist - process it [06:57:09]wFMCommunicate request_size=4 [06:57:09]MH_SAM_APDU [06:57:09]CAPDU: 80 11 00 00 [06:57:09]Write to MH i2c: E2 08 00 1E 3A 80 11 00 00 00 00 00 00 D2 [06:57:09]Write i2c OK [06:57:09]MH_I2C_Read... [06:57:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:57:09]Read from MH i2c: E2 [06:57:09]MH_I2C_Read... [06:57:09]Read from MH i2c: E2 17 00 [06:57:09]MH_I2C_Read... [06:57:09]Read from MH i2c: E2 17 00 1E 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 22 [06:57:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [06:57:09]wFMCommunicate OK [06:57:09]requested_item fd.num is exist - process it [06:57:09]SAM_PROTO_GetFieldsCounters [06:57:09]wFMCommunicate request_size=4 [06:57:09]MH_SAM_APDU [06:57:09]CAPDU: 80 13 00 00 [06:57:09]Write to MH i2c: E2 08 00 1F 3A 80 13 00 00 00 00 00 00 D5 [06:57:09]Write i2c OK [06:57:09]MH_I2C_Read... [06:57:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:57:09]Read from MH i2c: E2 [06:57:09]MH_I2C_Read... [06:57:09]Read from MH i2c: E2 62 00 [06:57:09]MH_I2C_Read... [06:57:09]Read from MH i2c: E2 62 00 1F 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 C9 07 00 00 0E 04 04 00 0D 00 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 60 [06:57:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 C9 07 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:57:09]wFMCommunicate OK [06:57:09]SAM_PROTO_GetFieldsCounters done [06:57:09]requested_item shift.num is exist - process it [06:57:09]requested_item shift.opened is exist - process it [06:57:09]req_shift_opened [06:57:09]FM_GetShiftState [06:57:09]SAM_PROTO_GetShiftState [06:57:09]wFMCommunicate request_size=4 [06:57:09]MH_SAM_APDU [06:57:09]CAPDU: 80 13 01 00 [06:57:09]Write to MH i2c: E2 08 00 20 3A 80 13 01 00 00 00 00 00 D7 [06:57:09]Write i2c OK [06:57:09]MH_I2C_Read... [06:57:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:57:09]Read from MH i2c: E2 [06:57:09]MH_I2C_Read... [06:57:09]Read from MH i2c: E2 0E 00 [06:57:09]MH_I2C_Read... [06:57:09]Read from MH i2c: E2 0E 00 20 3A 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 CB [06:57:09]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [06:57:09]wFMCommunicate OK [06:57:09]SAM_PROTO_GetShiftState done [06:57:09]FM_GetShiftState done [06:57:09]req_shift_opened done [06:57:09]requested_item shift.open_date is exist - process it [06:57:09]req_shift_open_date [06:57:09]req_shift_open_date done [06:57:09]produce_requested_data done [06:57:09]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":1993,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [06:57:09]process_action_free close_receipt [06:57:09]json_value_free [06:57:09]json_value_free done [06:57:09]process_json_proto returns [06:57:09]Send response to host [06:57:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":1993,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [06:57:09]free response buf [06:57:09]execute_script done [06:57:09]execute_script returns [06:57:09]free content buf [06:57:09]Sock 8.Close socket [06:57:09]Sock 8.Thread stoped [06:57:12]ConnectInit Can't take IP for lk.salyk.kg [06:57:12]CommunicateWithHost connect error [06:57:12]CommunicateWithHost err = -1 [06:57:12]OFD Sender: Server communicate error [06:57:17]OFD Sender: Processing packet 1993 [packets to send 1, broken 0] [06:57:17]ProducePacketName [06:57:17]name=ofd_packets/00001993 [06:57:17]OFD Sender: To server: pG, [06:57:17]CommunicateWithHost lk.salyk.kg:30040 [06:57:17]ConnectInit lk.salyk.kg [06:57:22]ConnectInit Can't take IP for lk.salyk.kg [06:57:22]CommunicateWithHost connect error [06:57:22]CommunicateWithHost err = -1 [06:57:22]OFD Sender: Server communicate error [06:57:27]OFD Sender: Processing packet 1993 [packets to send 1, broken 0] [06:57:27]ProducePacketName [06:57:27]name=ofd_packets/00001993 [06:57:27]OFD Sender: To server: pG, [06:57:27]CommunicateWithHost lk.salyk.kg:30040 [06:57:27]ConnectInit lk.salyk.kg [06:57:32]ConnectInit Can't take IP for lk.salyk.kg [06:57:32]CommunicateWithHost connect error [06:57:32]CommunicateWithHost err = -1 [06:57:32]OFD Sender: Server communicate error [06:57:37]OFD Sender: Processing packet 1993 [packets to send 1, broken 0] [06:57:37]ProducePacketName [06:57:37]name=ofd_packets/00001993 [06:57:37]OFD Sender: To server: pG, [06:57:37]CommunicateWithHost lk.salyk.kg:30040 [06:57:37]ConnectInit lk.salyk.kg [06:57:42]ConnectInit Can't take IP for lk.salyk.kg [06:57:42]CommunicateWithHost connect error [06:57:42]CommunicateWithHost err = -1 [06:57:42]OFD Sender: Server communicate error [06:57:47]OFD Sender: Processing packet 1993 [packets to send 1, broken 0] [06:57:47]ProducePacketName [06:57:47]name=ofd_packets/00001993 [06:57:47]OFD Sender: To server: pG, [06:57:47]CommunicateWithHost lk.salyk.kg:30040 [06:57:47]ConnectInit lk.salyk.kg [06:57:52]ConnectInit Can't take IP for lk.salyk.kg [06:57:52]CommunicateWithHost connect error [06:57:52]CommunicateWithHost err = -1 [06:57:52]OFD Sender: Server communicate error [06:57:57]OFD Sender: Processing packet 1993 [packets to send 1, broken 0] [06:57:57]ProducePacketName [06:57:57]name=ofd_packets/00001993 [06:57:57]OFD Sender: To server: pG, [06:57:57]CommunicateWithHost lk.salyk.kg:30040 [06:57:57]ConnectInit lk.salyk.kg [06:58:02]ConnectInit Can't take IP for lk.salyk.kg [06:58:02]CommunicateWithHost connect error [06:58:02]CommunicateWithHost err = -1 [06:58:02]OFD Sender: Server communicate error [06:58:07]OFD Sender: Processing packet 1993 [packets to send 1, broken 0] [06:58:07]ProducePacketName [06:58:07]name=ofd_packets/00001993 [06:58:07]OFD Sender: To server: pG, [06:58:07]CommunicateWithHost lk.salyk.kg:30040 [06:58:07]ConnectInit lk.salyk.kg [06:58:12]ConnectInit Can't take IP for lk.salyk.kg [06:58:12]CommunicateWithHost connect error [06:58:12]CommunicateWithHost err = -1 [06:58:12]OFD Sender: Server communicate error [06:58:17]OFD Sender: Processing packet 1993 [packets to send 1, broken 0] [06:58:17]ProducePacketName [06:58:17]name=ofd_packets/00001993 [06:58:17]OFD Sender: To server: pG, [06:58:17]CommunicateWithHost lk.salyk.kg:30040 [06:58:17]ConnectInit lk.salyk.kg [06:58:22]ConnectInit Can't take IP for lk.salyk.kg [06:58:22]CommunicateWithHost connect error [06:58:22]CommunicateWithHost err = -1 [06:58:22]OFD Sender: Server communicate error [06:58:27]OFD Sender: Processing packet 1993 [packets to send 1, broken 0] [06:58:27]ProducePacketName [06:58:27]name=ofd_packets/00001993 [06:58:27]OFD Sender: To server: pG, [06:58:27]CommunicateWithHost lk.salyk.kg:30040 [06:58:27]ConnectInit lk.salyk.kg [06:58:32]ConnectInit Can't take IP for lk.salyk.kg [06:58:32]CommunicateWithHost connect error [06:58:32]CommunicateWithHost err = -1 [06:58:32]OFD Sender: Server communicate error [06:58:37]OFD Sender: Processing packet 1993 [packets to send 1, broken 0] [06:58:37]ProducePacketName [06:58:37]name=ofd_packets/00001993 [06:58:37]OFD Sender: To server: pG, [06:58:37]CommunicateWithHost lk.salyk.kg:30040 [06:58:37]ConnectInit lk.salyk.kg [06:58:42]ConnectInit Can't take IP for lk.salyk.kg [06:58:42]CommunicateWithHost connect error [06:58:42]CommunicateWithHost err = -1 [06:58:42]OFD Sender: Server communicate error [06:58:47]OFD Sender: Processing packet 1993 [packets to send 1, broken 0] [06:58:47]ProducePacketName [06:58:47]name=ofd_packets/00001993 [06:58:47]OFD Sender: To server: pG, [06:58:47]CommunicateWithHost lk.salyk.kg:30040 [06:58:47]ConnectInit lk.salyk.kg [06:58:52]ConnectInit Can't take IP for lk.salyk.kg [06:58:52]CommunicateWithHost connect error [06:58:52]CommunicateWithHost err = -1 [06:58:52]OFD Sender: Server communicate error [06:58:55]ConnectInit Can't connect to host [06:58:57]OFD Sender: Processing packet 1993 [packets to send 1, broken 0] [06:58:57]ProducePacketName [06:58:57]name=ofd_packets/00001993 [06:58:57]OFD Sender: To server: pG, [06:58:57]CommunicateWithHost lk.salyk.kg:30040 [06:58:57]ConnectInit lk.salyk.kg [06:59:02]ConnectInit Can't take IP for lk.salyk.kg [06:59:02]CommunicateWithHost connect error [06:59:02]CommunicateWithHost err = -1 [06:59:02]OFD Sender: Server communicate error [06:59:07]OFD Sender: Processing packet 1993 [packets to send 1, broken 0] [06:59:07]ProducePacketName [06:59:07]name=ofd_packets/00001993 [06:59:07]OFD Sender: To server: pG, [06:59:07]CommunicateWithHost lk.salyk.kg:30040 [06:59:07]ConnectInit lk.salyk.kg [06:59:12]ConnectInit Can't take IP for lk.salyk.kg [06:59:12]CommunicateWithHost connect error [06:59:12]CommunicateWithHost err = -1 [06:59:12]OFD Sender: Server communicate error [06:59:17]OFD Sender: Processing packet 1993 [packets to send 1, broken 0] [06:59:17]ProducePacketName [06:59:17]name=ofd_packets/00001993 [06:59:17]OFD Sender: To server: pG, [06:59:17]CommunicateWithHost lk.salyk.kg:30040 [06:59:17]ConnectInit lk.salyk.kg [06:59:22]ConnectInit Can't take IP for lk.salyk.kg [06:59:22]CommunicateWithHost connect error [06:59:22]CommunicateWithHost err = -1 [06:59:22]OFD Sender: Server communicate error [06:59:27]OFD Sender: Processing packet 1993 [packets to send 1, broken 0] [06:59:27]ProducePacketName [06:59:27]name=ofd_packets/00001993 [06:59:27]OFD Sender: To server: pG, [06:59:27]CommunicateWithHost lk.salyk.kg:30040 [06:59:27]ConnectInit lk.salyk.kg [06:59:32]ConnectInit Can't take IP for lk.salyk.kg [06:59:32]CommunicateWithHost connect error [06:59:32]CommunicateWithHost err = -1 [06:59:32]OFD Sender: Server communicate error [06:59:37]OFD Sender: Processing packet 1993 [packets to send 1, broken 0] [06:59:37]ProducePacketName [06:59:37]name=ofd_packets/00001993 [06:59:37]OFD Sender: To server: pG, [06:59:37]CommunicateWithHost lk.salyk.kg:30040 [06:59:37]ConnectInit lk.salyk.kg [06:59:42]ConnectInit Can't take IP for lk.salyk.kg [06:59:42]CommunicateWithHost connect error [06:59:42]CommunicateWithHost err = -1 [06:59:42]OFD Sender: Server communicate error [06:59:47]OFD Sender: Processing packet 1993 [packets to send 1, broken 0] [06:59:47]ProducePacketName [06:59:47]name=ofd_packets/00001993 [06:59:47]OFD Sender: To server: pG, [06:59:47]CommunicateWithHost lk.salyk.kg:30040 [06:59:47]ConnectInit lk.salyk.kg [06:59:52]ConnectInit Can't take IP for lk.salyk.kg [06:59:52]CommunicateWithHost connect error [06:59:52]CommunicateWithHost err = -1 [06:59:52]OFD Sender: Server communicate error [06:59:57]OFD Sender: Processing packet 1993 [packets to send 1, broken 0] [06:59:57]ProducePacketName [06:59:57]name=ofd_packets/00001993 [06:59:57]OFD Sender: To server: pG, [06:59:57]CommunicateWithHost lk.salyk.kg:30040 [06:59:57]ConnectInit lk.salyk.kg [07:00:02]ConnectInit Can't take IP for lk.salyk.kg [07:00:02]CommunicateWithHost connect error [07:00:02]CommunicateWithHost err = -1 [07:00:02]OFD Sender: Server communicate error [07:00:07]OFD Sender: Processing packet 1993 [packets to send 1, broken 0] [07:00:07]ProducePacketName [07:00:07]name=ofd_packets/00001993 [07:00:07]OFD Sender: To server: pG, [07:00:07]CommunicateWithHost lk.salyk.kg:30040 [07:00:07]ConnectInit lk.salyk.kg [07:00:11]accept exits with 10 [07:00:11]New connection [07:00:11]New thread 3067317604 created [07:00:11]Thread 3067460964 joined [07:00:11]Waiting for new connection... [07:00:11] Sock 10.Parse request [07:00:11]Sock 10.Check first char [07:00:11]Sock 10.First char is OK [07:00:11]request: POST /json_proto HTTP/1.0 [07:00:11]Method: POST [07:00:11]URL: /json_proto [07:00:11]Method is POST - this is cgi request [07:00:11]url: /json_proto [07:00:11]query_string will be loaded in cgi processing [07:00:11]execute_cgi json_proto POST (null) [07:00:11]execute_cgi path=json_proto method=POST [07:00:11]POST find Content-Length [07:00:11]Host: 172.17.45.132:8080 [07:00:11]Content-Length: 734 [07:00:11]Content-Type: application/json [07:00:11] [07:00:11]POST finish read [07:00:11]Found Content-Length = 734 [07:00:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126301", "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 }]} ], "payments": [ { "type": 0, "sum" : 395.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:00:11]execute_script... [07:00: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)126301", "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 }]} ], "payments": [ { "type": 0, "sum" : 395.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:00:11]POST & json_proto [07:00:11]process_json_proto [07:00:11]json parsed OK: [07:00:11]protocol is kg_v1.0 [07:00:11]action value=close_receipt [07:00:11]process_action close_receipt [07:00:11]cmd_close_receipt [07:00:11]MH_GetDate [07:00:11]Write to MH i2c: F0 00 00 21 3A 4A [07:00:11]Write i2c OK [07:00:11]MH_I2C_Read... [07:00:11]Read from MH i2c: F0 [07:00:11]MH_I2C_Read... [07:00:11]Read from MH i2c: F0 09 00 [07:00:11]MH_I2C_Read... [07:00:11]Read from MH i2c: F0 09 00 21 3A 00 7F EC A5 66 E3 0B 90 66 AD [07:00:11]GetLastDocTimeStamp 1722149829 [07:00:11]current date 1722150015 [07:00:11]FM_GetShiftState [07:00:11]SAM_PROTO_GetShiftState [07:00:11]wFMCommunicate request_size=4 [07:00:11]MH_SAM_APDU [07:00:11]CAPDU: 80 13 01 00 [07:00:11]Write to MH i2c: E2 08 00 22 3A 80 13 01 00 00 00 00 00 D9 [07:00:11]Write i2c OK [07:00:11]MH_I2C_Read... [07:00:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:00:11]Read from MH i2c: E2 [07:00:11]MH_I2C_Read... [07:00:11]Read from MH i2c: E2 0E 00 [07:00:11]MH_I2C_Read... [07:00:11]Read from MH i2c: E2 0E 00 22 3A 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 CD [07:00:11]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [07:00:11]wFMCommunicate OK [07:00:11]SAM_PROTO_GetShiftState done [07:00:11]FM_GetShiftState done [07:00:11]opened in 1722125648 [07:00:11]opened+sec_in_day 1722212048 [07:00:11]quantity*price = 39500 [07:00:11]sum+1 = 39501 [07:00:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 395.00 НСП 1% : 3.50 НДС 12% : 41.95 Наличными: 395.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 45 28.07.2024 07:00 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 1994 ФПД: 132790328814890 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T070015&type=1&operation_type=1&fn_number=0000000002094248&fd_number=1994&fm=132790328814890&tin=02508201610067®Number=0000000000189667&sum=39500 0 [07:00:12]StoreToDocumentArchive [07:00:12]shift 13 fd 1994 [07:00:12]save to /storage/0013/doc_00001994 [07:00:12]save last doc name /storage/0013/doc_00001994 to /storage/kkm_last_doc_name [07:00:12]save OK [07:00:12]Clear old archive folders... [07:00:12]ProcessDocumentItem done err = 0, tmpTLVsize=306 [07:00:12]tlvbuf is 01FB8AE0 [07:00:12]SAM_PROTO_ClearQueue [07:00:12]wFMCommunicate request_size=4 [07:00:12]MH_SAM_APDU [07:00:12]CAPDU: 80 09 00 00 [07:00:12]Write to MH i2c: E2 08 00 2F 3A 80 09 00 00 00 00 00 00 DB [07:00:12]Write i2c OK [07:00:12]MH_I2C_Read... [07:00:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:00:12]Read from MH i2c: E2 [07:00:12]MH_I2C_Read... [07:00:12]Read from MH i2c: E2 03 00 [07:00:12]MH_I2C_Read... [07:00:12]Read from MH i2c: E2 03 00 2F 3A 00 90 00 DD [07:00:12]RAPDU: 90 00 [07:00:12]wFMCommunicate OK [07:00:12]SAM_PROTO_ClearQueue done [07:00:12]KKMCreateOFDPacket [07:00:12]OFDProtocolAddRootSTLVToBuf [07:00:12]FM_MakeSignedData [07:00:12]FM_MakeSignedData [07:00:12]SAM_PROTO_SignData [07:00:12]wFMCommunicate request_size=4 [07:00:12]MH_SAM_APDU [07:00:12]CAPDU: 80 0D 01 02 [07:00:12]Write to MH i2c: E2 08 00 30 3A 80 0D 01 02 00 00 00 00 E3 [07:00:12]Write i2c OK [07:00:12]MH_I2C_Read... [07:00:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:00:12]Read from MH i2c: E2 [07:00:12]MH_I2C_Read... [07:00:12]Read from MH i2c: E2 03 00 [07:00:12]MH_I2C_Read... [07:00:12]Read from MH i2c: E2 03 00 30 3A 00 90 00 DE [07:00:12]RAPDU: 90 00 [07:00:12]wFMCommunicate OK [07:00:12]wFMCommunicate request_size=255 [07:00:12]MH_SAM_APDU [07:00:12]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 4C 9A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 7F EC A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 [07:00:12]Write to MH i2c: E2 02 01 31 3A 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 4C 9A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 7F EC A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 00 A7 [07:00:12]Write i2c OK [07:00:12]MH_I2C_Read... [07:00:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:00:12]Read from MH i2c: E2 [07:00:12]MH_I2C_Read... [07:00:12]Read from MH i2c: E2 03 00 [07:00:12]MH_I2C_Read... [07:00:12]Read from MH i2c: E2 03 00 31 3A 00 90 00 DF [07:00:12]RAPDU: 90 00 [07:00:12]wFMCommunicate OK [07:00:12]wFMCommunicate request_size=65 [07:00:12]MH_SAM_APDU [07:00:12]CAPDU: 80 0D 02 02 3C 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 CA 07 00 00 35 04 06 00 78 C5 A8 60 ED 2A [07:00:12]Write to MH i2c: E2 44 00 32 3A 80 0D 02 02 3C 00 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 CA 07 00 00 35 04 06 00 78 C5 A8 60 ED 2A 00 00 6B [07:00:12]Write i2c OK [07:00:12]MH_I2C_Read... [07:00:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:00:13]Read from MH i2c: E2 [07:00:13]MH_I2C_Read... [07:00:13]Read from MH i2c: E2 03 00 [07:00:13]MH_I2C_Read... [07:00:13]Read from MH i2c: E2 03 00 32 3A 00 90 00 E0 [07:00:13]RAPDU: 90 00 [07:00:13]wFMCommunicate OK [07:00:13]wFMCommunicate request_size=4 [07:00:13]MH_SAM_APDU [07:00:13]CAPDU: 80 0D 03 02 [07:00:13]Write to MH i2c: E2 08 00 33 3A 80 0D 03 02 00 00 00 00 E8 [07:00:13]Write i2c OK [07:00:13]MH_I2C_Read... [07:00:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:00:13]Read from MH i2c: E2 [07:00:13]MH_I2C_Read... [07:00:13]Read from MH i2c: E2 0B 00 [07:00:13]MH_I2C_Read... [07:00:13]Read from MH i2c: E2 0B 00 33 3A 00 F9 AA EC 4F 94 D0 AF 17 90 00 F1 [07:00:13]RAPDU: F9 AA EC 4F 94 D0 AF 17 90 00 [07:00:13]wFMCommunicate OK [07:00:13]SAM_PROTO_SignData done [07:00:13]FM_MakeSignedData done [07:00:13]CreateOFDProtocolMessage [07:00:13]wFMCommunicate request_size=4 [07:00:13]MH_SAM_APDU [07:00:13]CAPDU: 80 11 00 00 [07:00:13]Write to MH i2c: E2 08 00 34 3A 80 11 00 00 00 00 00 00 E8 [07:00:13]Write i2c OK [07:00:13]MH_I2C_Read... [07:00:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:00:13]Read from MH i2c: E2 [07:00:13]MH_I2C_Read... [07:00:13]Read from MH i2c: E2 17 00 [07:00:13]MH_I2C_Read... [07:00:13]Read from MH i2c: E2 17 00 34 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 38 [07:00:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [07:00:13]wFMCommunicate OK [07:00:13]CreateOFDProtocolMessage done [07:00:13]OFDSenderStorePacket 1994 [07:00:13]StoreOFDPacket docnum=1994 [07:00:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 46 01 00 00 83 76 3E 01 4E 3A 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 4C 9A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 7F EC A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 CA 07 00 00 35 04 06 00 78 C5 A8 60 ED 2A F9 AA EC 4F 94 D0 AF 17 [07:00:13]CheckFolder [07:00:13]dirname=/storage/ofd_packets [07:00:13]CheckFolder done [07:00:13]ProducePacketName [07:00:13]name=ofd_packets/00001994 [07:00:13]NVStorageSaveData ofd_packets/00001994 [07:00:13]File name is /storage/ofd_packets/00001994 [07:00:13]Write 356 bytes [07:00:13]NVStorageSaveData done [07:00:13]OFDSenderStorePacket done [07:00:13]KKMCreateOFDPacket done [07:00:13]NVStorageSaveData kkm_last_timestamp [07:00:13]File name is /storage/kkm_last_timestamp [07:00:13]Write 4 bytes [07:00:13]NVStorageSaveData done [07:00:13]ExternCall_PrintAddStr [07:00:13]wPrintStart [07:00:13]Write to MH i2c: 01 00 00 35 3A 6F [07:00:13]Write i2c OK [07:00:13]MH_I2C_Read... [07:00:13]Read from MH i2c: 01 [07:00:13]MH_I2C_Read... [07:00:13]Read from MH i2c: 01 07 00 [07:00:13]MH_I2C_Read... [07:00:13]Read from MH i2c: 01 07 00 35 3A 00 00 00 00 00 FF 0F 84 [07:00:13]RasterBufferAndPrint [07:00:13]line Счет N : (3)126301 [07:00:13]line ИНН: 02508201610067 [07:00:13]line Контрольно-Кассовый Чек [07:00:13]line ПРОДАЖА [07:00:13]line Товар: 0010420131003133 [07:00:13]line Уголь древесный Партнер Нефть 3кг [07:00:13]line 1.000 * 395.00 [07:00:13]line = 395.00 [07:00:13]line НДС 12% НСП 1% [07:00:13]line > о реализуемом товаре [07:00:13]line ИТОГО: 395.00 [07:00:13]line НСП 1% : 3.50 [07:00:13]line НДС 12% : 41.95 [07:00:13]line Наличными: 395.00 [07:00:13]line Безнал.: 0.00 [07:00:13]line Место: АЗС № 127 "Партнер Нефть" [07:00:13]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [07:00:13]line СНО: Общий режим [07:00:13]line Чек 45 28.07.2024 07:00 [07:00:13]line Смена: 13 ФФД: 1.0 [07:00:13]line ЗНМ: 0300000161 [07:00:13]line РНМ: 0000000000189667 [07:00:13]line Версия ККМ: v1.0 [07:00:13]line ФМ: 0000000002094248 [07:00:13]line ФД: 1994 [07:00:13]line ФПД: 132790328814890 [07:00:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T070015&type=1&operation_type=1&fn_number=0000000002094248&fd_number=1994&fm=132790328814890&tin=02508201610067®Number=0000000000189667&sum=39500 [07:00:13]line 0 [07:00:13]written 0, free lines is 4095 [07:00:13]OFD Sender: Processing packet 1993 [packets to send 2, broken 0] [07:00:13]ProducePacketName [07:00:13]name=ofd_packets/00001993 [07:00:13]OFD Sender: To server: pG, [07:00:13]CommunicateWithHost lk.salyk.kg:30040 [07:00:13]ConnectInit lk.salyk.kg [07:00:13]Write to MH i2c: 01 00 00 5E 3A 98 [07:00:13]Write i2c OK [07:00:13]MH_I2C_Read... [07:00:13]Read from MH i2c: 01 [07:00:13]MH_I2C_Read... [07:00:13]Read from MH i2c: 01 07 00 [07:00:13]MH_I2C_Read... [07:00:13]Read from MH i2c: 01 07 00 5E 3A 00 00 00 00 00 05 0D B1 [07:00:13]RasterBufferAndPrint [07:00:13]line [07:00:13]line [07:00:13]line [07:00:13]line [07:00:13]line [07:00:13]written 0, free lines is 3345 [07:00:13]MH_Cut [07:00:13]Write to MH i2c: D1 01 00 65 3A 01 71 [07:00:13]Write i2c OK [07:00:13]MH_I2C_Read... [07:00:13]Read from MH i2c: D1 [07:00:13]MH_I2C_Read... [07:00:13]Read from MH i2c: D1 01 00 [07:00:13]MH_I2C_Read... [07:00:13]Read from MH i2c: D1 01 00 65 3A 00 70 [07:00:13]Write to MH i2c: 01 00 00 66 3A A0 [07:00:13]Write i2c OK [07:00:13]MH_I2C_Read... [07:00:14]*** Cut start [07:00:14]*** Partial cut [07:00:14]*** CUTSNS_PIN = 1 [07:00:14]*** CUTSNS_PIN = 0 [07:00:14]*** Brake cut motor [07:00:14]Read from MH i2c: 01 [07:00:14]MH_I2C_Read... [07:00:14]*** Stop cut motor [07:00:14]*** Cut end [07:00:14]Read from MH i2c: 01 07 00 [07:00:14]MH_I2C_Read... [07:00:14]Read from MH i2c: 01 07 00 66 3A 00 00 00 00 00 FF 0F B5 [07:00:14]process_action close_receipt done [07:00:14]requested_data is exist [07:00:14]produce_requested_data [07:00:14]requested_item fm.sn is exist - process it [07:00:14]wFMCommunicate request_size=4 [07:00:14]MH_SAM_APDU [07:00:14]CAPDU: 80 11 00 00 [07:00:14]Write to MH i2c: E2 08 00 67 3A 80 11 00 00 00 00 00 00 1B [07:00:14]Write i2c OK [07:00:14]MH_I2C_Read... [07:00:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:00:15]Read from MH i2c: E2 [07:00:15]MH_I2C_Read... [07:00:15]Read from MH i2c: E2 17 00 [07:00:15]MH_I2C_Read... [07:00:15]Read from MH i2c: E2 17 00 67 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 6B [07:00:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [07:00:15]wFMCommunicate OK [07:00:15]requested_item fd.num is exist - process it [07:00:15]SAM_PROTO_GetFieldsCounters [07:00:15]wFMCommunicate request_size=4 [07:00:15]MH_SAM_APDU [07:00:15]CAPDU: 80 13 00 00 [07:00:15]Write to MH i2c: E2 08 00 68 3A 80 13 00 00 00 00 00 00 1E [07:00:15]Write i2c OK [07:00:15]MH_I2C_Read... [07:00:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:00:15]Read from MH i2c: E2 [07:00:15]MH_I2C_Read... [07:00:15]Read from MH i2c: E2 62 00 [07:00:15]MH_I2C_Read... [07:00:15]Read from MH i2c: E2 62 00 68 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 CA 07 00 00 0E 04 04 00 0D 00 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 AD [07:00:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 CA 07 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:00:15]wFMCommunicate OK [07:00:15]SAM_PROTO_GetFieldsCounters done [07:00:15]requested_item shift.num is exist - process it [07:00:15]requested_item shift.opened is exist - process it [07:00:15]req_shift_opened [07:00:15]FM_GetShiftState [07:00:15]SAM_PROTO_GetShiftState [07:00:15]wFMCommunicate request_size=4 [07:00:15]MH_SAM_APDU [07:00:15]CAPDU: 80 13 01 00 [07:00:15]Write to MH i2c: E2 08 00 69 3A 80 13 01 00 00 00 00 00 20 [07:00:15]Write i2c OK [07:00:15]MH_I2C_Read... [07:00:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:00:15]Read from MH i2c: E2 [07:00:15]MH_I2C_Read... [07:00:15]Read from MH i2c: E2 0E 00 [07:00:15]MH_I2C_Read... [07:00:15]Read from MH i2c: E2 0E 00 69 3A 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 14 [07:00:15]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [07:00:15]wFMCommunicate OK [07:00:15]SAM_PROTO_GetShiftState done [07:00:15]FM_GetShiftState done [07:00:15]req_shift_opened done [07:00:15]requested_item shift.open_date is exist - process it [07:00:15]req_shift_open_date [07:00:15]req_shift_open_date done [07:00:15]produce_requested_data done [07:00:15]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":1994,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [07:00:15]process_action_free close_receipt [07:00:15]json_value_free [07:00:15]json_value_free done [07:00:15]process_json_proto returns [07:00:15]Send response to host [07:00:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":1994,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [07:00:15]free response buf [07:00:15]execute_script done [07:00:15]execute_script returns [07:00:15]free content buf [07:00:15]Sock 10.Close socket [07:00:15]Sock 10.Thread stoped [07:00:18]ConnectInit Can't take IP for lk.salyk.kg [07:00:18]CommunicateWithHost connect error [07:00:18]CommunicateWithHost err = -1 [07:00:18]OFD Sender: Server communicate error [07:00:23]OFD Sender: Processing packet 1993 [packets to send 2, broken 0] [07:00:23]ProducePacketName [07:00:23]name=ofd_packets/00001993 [07:00:23]OFD Sender: To server: pG, [07:00:23]CommunicateWithHost lk.salyk.kg:30040 [07:00:23]ConnectInit lk.salyk.kg [07:00:28]ConnectInit Can't take IP for lk.salyk.kg [07:00:28]CommunicateWithHost connect error [07:00:28]CommunicateWithHost err = -1 [07:00:28]OFD Sender: Server communicate error [07:00:33]OFD Sender: Processing packet 1993 [packets to send 2, broken 0] [07:00:33]ProducePacketName [07:00:33]name=ofd_packets/00001993 [07:00:33]OFD Sender: To server: pG, [07:00:33]CommunicateWithHost lk.salyk.kg:30040 [07:00:33]ConnectInit lk.salyk.kg [07:00:38]ConnectInit Can't take IP for lk.salyk.kg [07:00:38]CommunicateWithHost connect error [07:00:38]CommunicateWithHost err = -1 [07:00:38]OFD Sender: Server communicate error [07:00:43]OFD Sender: Processing packet 1993 [packets to send 2, broken 0] [07:00:43]ProducePacketName [07:00:43]name=ofd_packets/00001993 [07:00:43]OFD Sender: To server: pG, [07:00:43]CommunicateWithHost lk.salyk.kg:30040 [07:00:43]ConnectInit lk.salyk.kg [07:00:48]ConnectInit Can't take IP for lk.salyk.kg [07:00:48]CommunicateWithHost connect error [07:00:48]CommunicateWithHost err = -1 [07:00:48]OFD Sender: Server communicate error [07:00:53]OFD Sender: Processing packet 1993 [packets to send 2, broken 0] [07:00:53]ProducePacketName [07:00:53]name=ofd_packets/00001993 [07:00:53]OFD Sender: To server: pG, [07:00:53]CommunicateWithHost lk.salyk.kg:30040 [07:00:53]ConnectInit lk.salyk.kg [07:00:58]ConnectInit Can't take IP for lk.salyk.kg [07:00:58]CommunicateWithHost connect error [07:00:58]CommunicateWithHost err = -1 [07:00:58]OFD Sender: Server communicate error [07:01:03]OFD Sender: Processing packet 1993 [packets to send 2, broken 0] [07:01:03]ProducePacketName [07:01:03]name=ofd_packets/00001993 [07:01:03]OFD Sender: To server: pG, [07:01:03]CommunicateWithHost lk.salyk.kg:30040 [07:01:03]ConnectInit lk.salyk.kg [07:01:08]ConnectInit Can't take IP for lk.salyk.kg [07:01:08]CommunicateWithHost connect error [07:01:08]CommunicateWithHost err = -1 [07:01:08]OFD Sender: Server communicate error [07:01:13]OFD Sender: Processing packet 1993 [packets to send 2, broken 0] [07:01:13]ProducePacketName [07:01:13]name=ofd_packets/00001993 [07:01:13]OFD Sender: To server: pG, [07:01:13]CommunicateWithHost lk.salyk.kg:30040 [07:01:13]ConnectInit lk.salyk.kg [07:01:13]ConnectInit Can't connect to host [07:01:18]ConnectInit Can't take IP for lk.salyk.kg [07:01:18]CommunicateWithHost connect error [07:01:18]CommunicateWithHost err = -1 [07:01:18]OFD Sender: Server communicate error [07:01:23]OFD Sender: Processing packet 1993 [packets to send 2, broken 0] [07:01:23]ProducePacketName [07:01:23]name=ofd_packets/00001993 [07:01:23]OFD Sender: To server: pG, [07:01:23]CommunicateWithHost lk.salyk.kg:30040 [07:01:23]ConnectInit lk.salyk.kg [07:01:28]ConnectInit Can't take IP for lk.salyk.kg [07:01:28]CommunicateWithHost connect error [07:01:28]CommunicateWithHost err = -1 [07:01:28]OFD Sender: Server communicate error [07:01:33]OFD Sender: Processing packet 1993 [packets to send 2, broken 0] [07:01:33]ProducePacketName [07:01:33]name=ofd_packets/00001993 [07:01:33]OFD Sender: To server: pG, [07:01:33]CommunicateWithHost lk.salyk.kg:30040 [07:01:33]ConnectInit lk.salyk.kg [07:01:38]ConnectInit Can't take IP for lk.salyk.kg [07:01:38]CommunicateWithHost connect error [07:01:38]CommunicateWithHost err = -1 [07:01:38]OFD Sender: Server communicate error [07:01:43]OFD Sender: Processing packet 1993 [packets to send 2, broken 0] [07:01:43]ProducePacketName [07:01:43]name=ofd_packets/00001993 [07:01:43]OFD Sender: To server: pG, [07:01:43]CommunicateWithHost lk.salyk.kg:30040 [07:01:43]ConnectInit lk.salyk.kg [07:01:48]ConnectInit Can't take IP for lk.salyk.kg [07:01:48]CommunicateWithHost connect error [07:01:48]CommunicateWithHost err = -1 [07:01:48]OFD Sender: Server communicate error [07:01:53]OFD Sender: Processing packet 1993 [packets to send 2, broken 0] [07:01:53]ProducePacketName [07:01:53]name=ofd_packets/00001993 [07:01:53]OFD Sender: To server: pG, [07:01:53]CommunicateWithHost lk.salyk.kg:30040 [07:01:53]ConnectInit lk.salyk.kg [07:01:58]ConnectInit Can't take IP for lk.salyk.kg [07:01:58]CommunicateWithHost connect error [07:01:58]CommunicateWithHost err = -1 [07:01:58]OFD Sender: Server communicate error [07:02:03]OFD Sender: Processing packet 1993 [packets to send 2, broken 0] [07:02:03]ProducePacketName [07:02:03]name=ofd_packets/00001993 [07:02:03]OFD Sender: To server: pG, [07:02:03]CommunicateWithHost lk.salyk.kg:30040 [07:02:03]ConnectInit lk.salyk.kg [07:02:03]Connected sock=9 [07:02:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 1F 01 00 00 A8 D3 17 01 7A CE 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 00 00 00 00 00 00 39 04 06 00 04 A6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 C5 EB A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C9 07 00 00 35 04 06 00 A2 F2 8B 56 8D FD 35 19 E2 3A 87 2D 80 F6 [07:02:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 4A E8 47 00 3B F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C9 07 00 00 F4 03 04 00 5E 98 A5 66 B6 04 01 00 00 F3 76 08 A0 E7 C5 92 06 [07:02:03]CommunicateWithHost err = 0 [07:02:03]CheckOFDResponse [07:02:03]1017 (14) - 77093643461234 [07:02:03]1041 (16) - 0000000002094248 [07:02:03]1040 (4) - 1993 [07:02:03]1012 (4) - 28.07.2024 01:01 [07:02:03]1206 (1) - 0 [07:02:03]OFD Sender: Remove packet 1993 [07:02:03]ProducePacketName [07:02:03]name=ofd_packets/00001993 [07:02:03]NVStorageDeleteData [07:02:04]OFD Sender: Processing packet 1994 [packets to send 1, broken 0] [07:02:04]ProducePacketName [07:02:04]name=ofd_packets/00001994 [07:02:04]OFD Sender: To server: pG, [07:02:04]CommunicateWithHost lk.salyk.kg:30040 [07:02:04]ConnectInit lk.salyk.kg [07:02:04]Connected sock=9 [07:02:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 46 01 00 00 83 76 3E 01 4E 3A 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 4C 9A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 7F EC A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 CA 07 00 00 35 04 06 00 78 C5 A8 60 ED 2A F9 AA EC 4F 94 D0 AF 17 [07:02:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 53 04 47 00 37 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 CA 07 00 00 F4 03 04 00 5F 98 A5 66 B6 04 01 00 00 78 1D 42 39 78 83 C7 94 [07:02:04]CommunicateWithHost err = 0 [07:02:04]CheckOFDResponse [07:02:04]1017 (14) - 77093643461234 [07:02:04]1041 (16) - 0000000002094248 [07:02:04]1040 (4) - 1994 [07:02:04]1012 (4) - 28.07.2024 01:01 [07:02:04]1206 (1) - 0 [07:02:04]OFD Sender: Remove packet 1994 [07:02:04]ProducePacketName [07:02:04]name=ofd_packets/00001994 [07:02:04]NVStorageDeleteData [07:02:05]OFD Sender: No OFD packet to send [07:02:10]OFD Sender: No OFD packet to send [07:02:15]OFD Sender: No OFD packet to send [07:02:20]OFD Sender: No OFD packet to send [07:02:25]OFD Sender: No OFD packet to send [07:02:30]OFD Sender: No OFD packet to send [07:02:35]OFD Sender: No OFD packet to send [07:02:40]OFD Sender: No OFD packet to send [07:02:45]OFD Sender: No OFD packet to send [07:02:50]OFD Sender: No OFD packet to send [07:02:55]OFD Sender: No OFD packet to send [07:03:00]OFD Sender: No OFD packet to send [07:03:05]OFD Sender: No OFD packet to send [07:03:10]OFD Sender: No OFD packet to send [07:03:15]OFD Sender: No OFD packet to send [07:03:20]OFD Sender: No OFD packet to send [07:03:25]OFD Sender: No OFD packet to send [07:03:30]OFD Sender: No OFD packet to send [07:03:31]ConnectInit Can't connect to host [07:03:35]OFD Sender: No OFD packet to send [07:03:40]OFD Sender: No OFD packet to send [07:03:45]OFD Sender: No OFD packet to send [07:03:50]OFD Sender: No OFD packet to send [07:03:55]OFD Sender: No OFD packet to send [07:04:00]OFD Sender: No OFD packet to send [07:04:05]OFD Sender: No OFD packet to send [07:04:10]OFD Sender: No OFD packet to send [07:04:15]OFD Sender: No OFD packet to send [07:04:20]OFD Sender: No OFD packet to send [07:04:25]OFD Sender: No OFD packet to send [07:04:30]OFD Sender: No OFD packet to send [07:04:35]OFD Sender: No OFD packet to send [07:04:40]OFD Sender: No OFD packet to send [07:04:45]OFD Sender: No OFD packet to send [07:04:50]OFD Sender: No OFD packet to send [07:04:55]OFD Sender: No OFD packet to send [07:05:00]OFD Sender: No OFD packet to send [07:05:05]OFD Sender: No OFD packet to send [07:05:10]OFD Sender: No OFD packet to send [07:05:15]OFD Sender: No OFD packet to send [07:05:20]OFD Sender: No OFD packet to send [07:05:25]OFD Sender: No OFD packet to send [07:05:30]OFD Sender: No OFD packet to send [07:05:35]OFD Sender: No OFD packet to send [07:05:40]OFD Sender: No OFD packet to send [07:05:45]OFD Sender: No OFD packet to send [07:05:50]OFD Sender: No OFD packet to send [07:05:55]OFD Sender: No OFD packet to send [07:06:00]OFD Sender: No OFD packet to send [07:06:05]OFD Sender: No OFD packet to send [07:06:10]OFD Sender: No OFD packet to send [07:06:15]OFD Sender: No OFD packet to send [07:06:20]OFD Sender: No OFD packet to send [07:06:25]OFD Sender: No OFD packet to send [07:06:30]OFD Sender: No OFD packet to send [07:06:35]OFD Sender: No OFD packet to send [07:06:40]OFD Sender: No OFD packet to send [07:06:45]OFD Sender: No OFD packet to send [07:06:50]OFD Sender: No OFD packet to send [07:06:55]OFD Sender: No OFD packet to send [07:07:00]OFD Sender: No OFD packet to send [07:07:05]OFD Sender: No OFD packet to send [07:07:10]OFD Sender: No OFD packet to send [07:07:15]OFD Sender: No OFD packet to send [07:07:20]OFD Sender: No OFD packet to send [07:07:25]OFD Sender: No OFD packet to send [07:07:30]OFD Sender: No OFD packet to send [07:07:35]OFD Sender: No OFD packet to send [07:07:40]OFD Sender: No OFD packet to send [07:07:45]OFD Sender: No OFD packet to send [07:07:50]OFD Sender: No OFD packet to send [07:07:55]OFD Sender: No OFD packet to send [07:08:00]OFD Sender: No OFD packet to send [07:08:05]OFD Sender: No OFD packet to send [07:08:10]OFD Sender: No OFD packet to send [07:08:15]OFD Sender: No OFD packet to send [07:08:20]OFD Sender: No OFD packet to send [07:08:25]OFD Sender: No OFD packet to send [07:08:30]OFD Sender: No OFD packet to send [07:08:35]OFD Sender: No OFD packet to send [07:08:40]OFD Sender: No OFD packet to send [07:08:45]OFD Sender: No OFD packet to send [07:08:50]OFD Sender: No OFD packet to send [07:08:55]OFD Sender: No OFD packet to send [07:09:00]OFD Sender: No OFD packet to send [07:09:05]OFD Sender: No OFD packet to send [07:09:10]OFD Sender: No OFD packet to send [07:09:15]OFD Sender: No OFD packet to send [07:09:20]OFD Sender: No OFD packet to send [07:09:25]OFD Sender: No OFD packet to send [07:09:30]OFD Sender: No OFD packet to send [07:09:35]OFD Sender: No OFD packet to send [07:09:40]OFD Sender: No OFD packet to send [07:09:45]OFD Sender: No OFD packet to send [07:09:50]OFD Sender: No OFD packet to send [07:09:55]OFD Sender: No OFD packet to send [07:10:00]OFD Sender: No OFD packet to send [07:10:05]OFD Sender: No OFD packet to send [07:10:10]OFD Sender: No OFD packet to send [07:10:15]OFD Sender: No OFD packet to send [07:10:20]OFD Sender: No OFD packet to send [07:10:25]OFD Sender: No OFD packet to send [07:10:30]OFD Sender: No OFD packet to send [07:10:35]OFD Sender: No OFD packet to send [07:10:40]OFD Sender: No OFD packet to send [07:10:45]OFD Sender: No OFD packet to send [07:10:50]OFD Sender: No OFD packet to send [07:10:55]OFD Sender: No OFD packet to send [07:11:00]OFD Sender: No OFD packet to send [07:11:05]OFD Sender: No OFD packet to send [07:11:10]OFD Sender: No OFD packet to send [07:11:15]OFD Sender: No OFD packet to send [07:11:20]OFD Sender: No OFD packet to send [07:11:25]OFD Sender: No OFD packet to send [07:11:30]OFD Sender: No OFD packet to send [07:11:35]OFD Sender: No OFD packet to send [07:11:40]OFD Sender: No OFD packet to send [07:11:45]OFD Sender: No OFD packet to send [07:11:50]OFD Sender: No OFD packet to send [07:11:55]OFD Sender: No OFD packet to send [07:12:00]OFD Sender: No OFD packet to send [07:12:05]OFD Sender: No OFD packet to send [07:12:10]OFD Sender: No OFD packet to send [07:12:15]OFD Sender: No OFD packet to send [07:12:20]OFD Sender: No OFD packet to send [07:12:25]OFD Sender: No OFD packet to send [07:12:30]accept exits with 12 [07:12:30]New connection [07:12:30]New thread 3067460964 created [07:12:30]Thread 3067317604 joined [07:12:30]Waiting for new connection... [07:12:30] Sock 12.Parse request [07:12:30]Sock 12.Check first char [07:12:30]Sock 12.First char is OK [07:12:30]request: POST /json_proto HTTP/1.0 [07:12:30]Method: POST [07:12:30]URL: /json_proto [07:12:30]Method is POST - this is cgi request [07:12:30]url: /json_proto [07:12:30]query_string will be loaded in cgi processing [07:12:30]execute_cgi json_proto POST (null) [07:12:30]execute_cgi path=json_proto method=POST [07:12:30]POST find Content-Length [07:12:30]Host: 172.17.45.132:8080 [07:12:30]Content-Length: 636 [07:12:30]Content-Type: application/json [07:12:30] [07:12:30]POST finish read [07:12:30]Found Content-Length = 636 [07:12:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126302", "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 }]} ], "payments": [ { "type": 0, "sum" : 325.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:12:30]execute_script... [07:12: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)126302", "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 }]} ], "payments": [ { "type": 0, "sum" : 325.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:12:30]POST & json_proto [07:12:30]process_json_proto [07:12:30]json parsed OK: [07:12:30]protocol is kg_v1.0 [07:12:30]action value=close_receipt [07:12:30]process_action close_receipt [07:12:30]cmd_close_receipt [07:12:30]MH_GetDate [07:12:30]Write to MH i2c: F0 00 00 6A 3A 93 [07:12:30]Write i2c OK [07:12:30]MH_I2C_Read... [07:12:30]Read from MH i2c: F0 [07:12:30]MH_I2C_Read... [07:12:30]Read from MH i2c: F0 09 00 [07:12:30]MH_I2C_Read... [07:12:30]Read from MH i2c: F0 09 00 6A 3A 00 62 EF A5 66 E3 0B 90 66 DC [07:12:30]GetLastDocTimeStamp 1722150015 [07:12:30]current date 1722150754 [07:12:30]FM_GetShiftState [07:12:30]SAM_PROTO_GetShiftState [07:12:30]wFMCommunicate request_size=4 [07:12:30]MH_SAM_APDU [07:12:30]CAPDU: 80 13 01 00 [07:12:30]Write to MH i2c: E2 08 00 6B 3A 80 13 01 00 00 00 00 00 22 [07:12:30]Write i2c OK [07:12:30]MH_I2C_Read... [07:12:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:12:30]Read from MH i2c: E2 [07:12:30]MH_I2C_Read... [07:12:30]Read from MH i2c: E2 0E 00 [07:12:30]MH_I2C_Read... [07:12:30]Read from MH i2c: E2 0E 00 6B 3A 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 16 [07:12:30]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [07:12:30]wFMCommunicate OK [07:12:30]SAM_PROTO_GetShiftState done [07:12:30]FM_GetShiftState done [07:12:30]opened in 1722125648 [07:12:30]opened+sec_in_day 1722212048 [07:12:30]quantity*price = 32500 [07:12:30]sum+1 = 32501 [07:12:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 325.00 НСП 1% : 2.88 НДС 12% : 34.51 Наличными: 325.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 46 28.07.2024 07:12 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 1995 ФПД: 14188593804335 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T071234&type=1&operation_type=1&fn_number=0000000002094248&fd_number=1995&fm=14188593804335&tin=02508201610067®Number=0000000000189667&sum=32500 0 [07:12:31]StoreToDocumentArchive [07:12:31]shift 13 fd 1995 [07:12:31]save to /storage/0013/doc_00001995 [07:12:31]save last doc name /storage/0013/doc_00001995 to /storage/kkm_last_doc_name [07:12:31]save OK [07:12:31]Clear old archive folders... [07:12:31]ProcessDocumentItem done err = 0, tmpTLVsize=272 [07:12:31]tlvbuf is 01FE7E60 [07:12:31]SAM_PROTO_ClearQueue [07:12:31]wFMCommunicate request_size=4 [07:12:31]MH_SAM_APDU [07:12:31]CAPDU: 80 09 00 00 [07:12:31]Write to MH i2c: E2 08 00 78 3A 80 09 00 00 00 00 00 00 24 [07:12:31]Write i2c OK [07:12:31]MH_I2C_Read... [07:12:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:12:31]Read from MH i2c: E2 [07:12:31]MH_I2C_Read... [07:12:31]Read from MH i2c: E2 03 00 [07:12:31]MH_I2C_Read... [07:12:31]Read from MH i2c: E2 03 00 78 3A 00 90 00 26 [07:12:31]RAPDU: 90 00 [07:12:31]wFMCommunicate OK [07:12:31]SAM_PROTO_ClearQueue done [07:12:31]KKMCreateOFDPacket [07:12:31]OFDProtocolAddRootSTLVToBuf [07:12:31]FM_MakeSignedData [07:12:31]FM_MakeSignedData [07:12:31]SAM_PROTO_SignData [07:12:31]wFMCommunicate request_size=4 [07:12:31]MH_SAM_APDU [07:12:31]CAPDU: 80 0D 01 02 [07:12:31]Write to MH i2c: E2 08 00 79 3A 80 0D 01 02 00 00 00 00 2C [07:12:31]Write i2c OK [07:12:31]MH_I2C_Read... [07:12:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:12:31]Read from MH i2c: E2 [07:12:31]MH_I2C_Read... [07:12:31]Read from MH i2c: E2 03 00 [07:12:31]MH_I2C_Read... [07:12:31]Read from MH i2c: E2 03 00 79 3A 00 90 00 27 [07:12:31]RAPDU: 90 00 [07:12:31]wFMCommunicate OK [07:12:31]wFMCommunicate request_size=255 [07:12:31]MH_SAM_APDU [07:12:31]CAPDU: 80 0D 02 02 FA 03 00 10 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 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 7B 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 2E 00 00 00 F4 03 04 00 62 EF A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 [07:12:31]Write to MH i2c: E2 02 01 7A 3A 80 0D 02 02 FA 00 03 00 10 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 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 7B 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 2E 00 00 00 F4 03 04 00 62 EF A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 00 00 3C [07:12:31]Write i2c OK [07:12:31]MH_I2C_Read... [07:12:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:12:31]Read from MH i2c: E2 [07:12:31]MH_I2C_Read... [07:12:31]Read from MH i2c: E2 03 00 [07:12:31]MH_I2C_Read... [07:12:31]Read from MH i2c: E2 03 00 7A 3A 00 90 00 28 [07:12:31]RAPDU: 90 00 [07:12:31]wFMCommunicate OK [07:12:31]wFMCommunicate request_size=31 [07:12:31]MH_SAM_APDU [07:12:31]CAPDU: 80 0D 02 02 1A 30 32 30 39 34 32 34 38 10 04 04 00 CB 07 00 00 35 04 06 00 0C E7 8A 17 F4 2F [07:12:31]Write to MH i2c: E2 22 00 7B 3A 80 0D 02 02 1A 00 30 32 30 39 34 32 34 38 10 04 04 00 CB 07 00 00 35 04 06 00 0C E7 8A 17 F4 2F 00 00 E0 [07:12:31]Write i2c OK [07:12:31]MH_I2C_Read... [07:12:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:12:32]Read from MH i2c: E2 [07:12:32]MH_I2C_Read... [07:12:32]Read from MH i2c: E2 03 00 [07:12:32]MH_I2C_Read... [07:12:32]Read from MH i2c: E2 03 00 7B 3A 00 90 00 29 [07:12:32]RAPDU: 90 00 [07:12:32]wFMCommunicate OK [07:12:32]wFMCommunicate request_size=4 [07:12:32]MH_SAM_APDU [07:12:32]CAPDU: 80 0D 03 02 [07:12:32]Write to MH i2c: E2 08 00 7C 3A 80 0D 03 02 00 00 00 00 31 [07:12:32]Write i2c OK [07:12:32]MH_I2C_Read... [07:12:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:12:32]Read from MH i2c: E2 [07:12:32]MH_I2C_Read... [07:12:32]Read from MH i2c: E2 0B 00 [07:12:32]MH_I2C_Read... [07:12:32]Read from MH i2c: E2 0B 00 7C 3A 00 46 12 EF 70 57 74 BC DF 90 00 4F [07:12:32]RAPDU: 46 12 EF 70 57 74 BC DF 90 00 [07:12:32]wFMCommunicate OK [07:12:32]SAM_PROTO_SignData done [07:12:32]FM_MakeSignedData done [07:12:32]CreateOFDProtocolMessage [07:12:32]wFMCommunicate request_size=4 [07:12:32]MH_SAM_APDU [07:12:32]CAPDU: 80 11 00 00 [07:12:32]Write to MH i2c: E2 08 00 7D 3A 80 11 00 00 00 00 00 00 31 [07:12:32]Write i2c OK [07:12:32]MH_I2C_Read... [07:12:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:12:32]Read from MH i2c: E2 [07:12:32]MH_I2C_Read... [07:12:32]Read from MH i2c: E2 17 00 [07:12:32]MH_I2C_Read... [07:12:32]Read from MH i2c: E2 17 00 7D 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 81 [07:12:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [07:12:32]wFMCommunicate OK [07:12:32]CreateOFDProtocolMessage done [07:12:32]OFDSenderStorePacket 1995 [07:12:32]StoreOFDPacket docnum=1995 [07:12:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 24 01 00 00 71 D6 1C 01 28 B0 5A 03 01 00 03 00 10 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 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 7B 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 2E 00 00 00 F4 03 04 00 62 EF A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 CB 07 00 00 35 04 06 00 0C E7 8A 17 F4 2F 46 12 EF 70 57 74 BC DF [07:12:32]CheckFolder [07:12:32]dirname=/storage/ofd_packets [07:12:32]CheckFolder done [07:12:32]ProducePacketName [07:12:32]name=ofd_packets/00001995 [07:12:32]NVStorageSaveData ofd_packets/00001995 [07:12:32]File name is /storage/ofd_packets/00001995 [07:12:32]Write 322 bytes [07:12:32]NVStorageSaveData done [07:12:32]OFDSenderStorePacket done [07:12:32]KKMCreateOFDPacket done [07:12:32]NVStorageSaveData kkm_last_timestamp [07:12:32]File name is /storage/kkm_last_timestamp [07:12:32]Write 4 bytes [07:12:32]NVStorageSaveData done [07:12:32]ExternCall_PrintAddStr [07:12:32]wPrintStart [07:12:32]Write to MH i2c: 01 00 00 7E 3A B8 [07:12:32]Write i2c OK [07:12:32]MH_I2C_Read... [07:12:32]Read from MH i2c: 01 [07:12:32]MH_I2C_Read... [07:12:32]Read from MH i2c: 01 07 00 [07:12:32]MH_I2C_Read... [07:12:32]Read from MH i2c: 01 07 00 7E 3A 00 00 00 00 00 FF 0F CD [07:12:32]RasterBufferAndPrint [07:12:32]line Счет N : (3)126302 [07:12:32]line ИНН: 02508201610067 [07:12:32]line Контрольно-Кассовый Чек [07:12:32]line ПРОДАЖА [07:12:32]line Товар: 4700001610043 [07:12:32]line Пиво Арпа 1,5л ПЭТ [07:12:32]line 1.000 * 325.00 [07:12:32]line = 325.00 [07:12:32]line НДС 12% НСП 1% [07:12:32]line > о реализуемом товаре [07:12:32]line ИТОГО: 325.00 [07:12:32]line НСП 1% : 2.88 [07:12:32]line НДС 12% : 34.51 [07:12:32]line Наличными: 325.00 [07:12:32]line Безнал.: 0.00 [07:12:32]line Место: АЗС № 127 "Партнер Нефть" [07:12:32]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [07:12:32]line СНО: Общий режим [07:12:32]line Чек 46 28.07.2024 07:12 [07:12:32]line Смена: 13 ФФД: 1.0 [07:12:32]line ЗНМ: 0300000161 [07:12:32]line РНМ: 0000000000189667 [07:12:32]line Версия ККМ: v1.0 [07:12:32]line ФМ: 0000000002094248 [07:12:32]line ФД: 1995 [07:12:32]line ФПД: 14188593804335 [07:12:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T071234&type=1&operation_type=1&fn_number=0000000002094248&fd_number=1995&fm=14188593804335&tin=02508201610067®Number=0000000000189667&sum=32500 [07:12:32]line 0 [07:12:32]OFD Sender: Processing packet 1995 [packets to send 1, broken 0] [07:12:32]ProducePacketName [07:12:32]name=ofd_packets/00001995 [07:12:32]OFD Sender: To server: pG, [07:12:32]CommunicateWithHost lk.salyk.kg:30040 [07:12:32]ConnectInit lk.salyk.kg [07:12:32]written 0, free lines is 4095 [07:12:32]Connected sock=9 [07:12:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 24 01 00 00 71 D6 1C 01 28 B0 5A 03 01 00 03 00 10 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 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 7B 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 2E 00 00 00 F4 03 04 00 62 EF A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 CB 07 00 00 35 04 06 00 0C E7 8A 17 F4 2F 46 12 EF 70 57 74 BC DF [07:12:32]Write to MH i2c: 01 00 00 A6 3A E0 [07:12:32]Write i2c OK [07:12:32]MH_I2C_Read... [07:12:32]Read from MH i2c: 01 [07:12:32]MH_I2C_Read... [07:12:32]Read from MH i2c: 01 07 00 [07:12:32]MH_I2C_Read... [07:12:32]Read from MH i2c: 01 07 00 A6 3A 00 00 00 00 00 1E 0D 12 [07:12:32]RasterBufferAndPrint [07:12:32]line [07:12:32]line [07:12:32]line [07:12:32]line [07:12:32]line [07:12:32]written 0, free lines is 3364 [07:12:32]MH_Cut [07:12:32]Write to MH i2c: D1 01 00 AD 3A 01 B9 [07:12:32]Write i2c OK [07:12:32]MH_I2C_Read... [07:12:32]Read from MH i2c: D1 [07:12:32]MH_I2C_Read... [07:12:32]Read from MH i2c: D1 01 00 [07:12:32]MH_I2C_Read... [07:12:32]Read from MH i2c: D1 01 00 AD 3A 00 B8 [07:12:32]Write to MH i2c: 01 00 00 AE 3A E8 [07:12:32]Write i2c OK [07:12:32]MH_I2C_Read... [07:12:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 A3 BC 47 00 4C 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 CB 07 00 00 F4 03 04 00 D3 9A A5 66 B6 04 01 00 00 5C 30 DD 26 38 88 1D 9E [07:12:32]CommunicateWithHost err = 0 [07:12:32]CheckOFDResponse [07:12:32]1017 (14) - 77093643461234 [07:12:32]1041 (16) - 0000000002094248 [07:12:32]1040 (4) - 1995 [07:12:32]1012 (4) - 28.07.2024 01:11 [07:12:32]1206 (1) - 0 [07:12:32]OFD Sender: Remove packet 1995 [07:12:32]ProducePacketName [07:12:32]name=ofd_packets/00001995 [07:12:32]NVStorageDeleteData [07:12:33]OFD Sender: No OFD packet to send [07:12:33]*** Cut start [07:12:33]*** Partial cut [07:12:33]*** CUTSNS_PIN = 1 [07:12:33]*** CUTSNS_PIN = 0 [07:12:33]*** Brake cut motor [07:12:34]Read from MH i2c: 01 [07:12:34]MH_I2C_Read... [07:12:34]*** Stop cut motor [07:12:34]*** Cut end [07:12:34]Read from MH i2c: 01 07 00 [07:12:34]MH_I2C_Read... [07:12:34]Read from MH i2c: 01 07 00 AE 3A 00 00 00 00 00 FF 0F FD [07:12:34]process_action close_receipt done [07:12:34]requested_data is exist [07:12:34]produce_requested_data [07:12:34]requested_item fm.sn is exist - process it [07:12:34]wFMCommunicate request_size=4 [07:12:34]MH_SAM_APDU [07:12:34]CAPDU: 80 11 00 00 [07:12:34]Write to MH i2c: E2 08 00 AF 3A 80 11 00 00 00 00 00 00 63 [07:12:34]Write i2c OK [07:12:34]MH_I2C_Read... [07:12:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:12:34]Read from MH i2c: E2 [07:12:34]MH_I2C_Read... [07:12:34]Read from MH i2c: E2 17 00 [07:12:34]MH_I2C_Read... [07:12:34]Read from MH i2c: E2 17 00 AF 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 B3 [07:12:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [07:12:34]wFMCommunicate OK [07:12:34]requested_item fd.num is exist - process it [07:12:34]SAM_PROTO_GetFieldsCounters [07:12:34]wFMCommunicate request_size=4 [07:12:34]MH_SAM_APDU [07:12:34]CAPDU: 80 13 00 00 [07:12:34]Write to MH i2c: E2 08 00 B0 3A 80 13 00 00 00 00 00 00 66 [07:12:34]Write i2c OK [07:12:34]MH_I2C_Read... [07:12:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:12:34]Read from MH i2c: E2 [07:12:34]MH_I2C_Read... [07:12:34]Read from MH i2c: E2 62 00 [07:12:34]MH_I2C_Read... [07:12:34]Read from MH i2c: E2 62 00 B0 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 CB 07 00 00 0E 04 04 00 0D 00 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 F9 [07:12:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 CB 07 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:12:34]wFMCommunicate OK [07:12:34]SAM_PROTO_GetFieldsCounters done [07:12:34]requested_item shift.num is exist - process it [07:12:34]requested_item shift.opened is exist - process it [07:12:34]req_shift_opened [07:12:34]FM_GetShiftState [07:12:34]SAM_PROTO_GetShiftState [07:12:34]wFMCommunicate request_size=4 [07:12:34]MH_SAM_APDU [07:12:34]CAPDU: 80 13 01 00 [07:12:34]Write to MH i2c: E2 08 00 B1 3A 80 13 01 00 00 00 00 00 68 [07:12:34]Write i2c OK [07:12:34]MH_I2C_Read... [07:12:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:12:34]Read from MH i2c: E2 [07:12:34]MH_I2C_Read... [07:12:34]Read from MH i2c: E2 0E 00 [07:12:34]MH_I2C_Read... [07:12:34]Read from MH i2c: E2 0E 00 B1 3A 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 5C [07:12:34]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [07:12:34]wFMCommunicate OK [07:12:34]SAM_PROTO_GetShiftState done [07:12:34]FM_GetShiftState done [07:12:34]req_shift_opened done [07:12:34]requested_item shift.open_date is exist - process it [07:12:34]req_shift_open_date [07:12:34]req_shift_open_date done [07:12:34]produce_requested_data done [07:12:34]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":1995,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [07:12:34]process_action_free close_receipt [07:12:34]json_value_free [07:12:34]json_value_free done [07:12:34]process_json_proto returns [07:12:34]Send response to host [07:12:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":1995,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [07:12:34]free response buf [07:12:34]execute_script done [07:12:34]execute_script returns [07:12:34]free content buf [07:12:34]Sock 12.Close socket [07:12:34]Sock 12.Thread stoped [07:12:38]OFD Sender: No OFD packet to send [07:12:43]OFD Sender: No OFD packet to send [07:12:48]OFD Sender: No OFD packet to send [07:12:53]OFD Sender: No OFD packet to send [07:12:58]OFD Sender: No OFD packet to send [07:13:03]OFD Sender: No OFD packet to send [07:13:08]OFD Sender: No OFD packet to send [07:13:13]OFD Sender: No OFD packet to send [07:13:18]OFD Sender: No OFD packet to send [07:13:23]OFD Sender: No OFD packet to send [07:13:28]OFD Sender: No OFD packet to send [07:13:33]OFD Sender: No OFD packet to send [07:13:38]OFD Sender: No OFD packet to send [07:13:43]OFD Sender: No OFD packet to send [07:13:48]OFD Sender: No OFD packet to send [07:13:53]OFD Sender: No OFD packet to send [07:13:58]OFD Sender: No OFD packet to send [07:14:03]OFD Sender: No OFD packet to send [07:14:08]OFD Sender: No OFD packet to send [07:14:13]OFD Sender: No OFD packet to send [07:14:18]OFD Sender: No OFD packet to send [07:14:23]OFD Sender: No OFD packet to send [07:14:28]OFD Sender: No OFD packet to send [07:14:33]OFD Sender: No OFD packet to send [07:14:38]OFD Sender: No OFD packet to send [07:14:43]OFD Sender: No OFD packet to send [07:14:48]OFD Sender: No OFD packet to send [07:14:53]OFD Sender: No OFD packet to send [07:14:58]OFD Sender: No OFD packet to send [07:15:03]OFD Sender: No OFD packet to send [07:15:08]OFD Sender: No OFD packet to send [07:15:13]OFD Sender: No OFD packet to send [07:15:18]OFD Sender: No OFD packet to send [07:15:23]OFD Sender: No OFD packet to send [07:15:28]OFD Sender: No OFD packet to send [07:15:33]OFD Sender: No OFD packet to send [07:15:38]OFD Sender: No OFD packet to send [07:15:43]OFD Sender: No OFD packet to send [07:15:48]OFD Sender: No OFD packet to send [07:15:53]OFD Sender: No OFD packet to send [07:15:58]OFD Sender: No OFD packet to send [07:16:03]OFD Sender: No OFD packet to send [07:16:08]OFD Sender: No OFD packet to send [07:16:13]OFD Sender: No OFD packet to send [07:16:18]OFD Sender: No OFD packet to send [07:16:23]OFD Sender: No OFD packet to send [07:16:28]OFD Sender: No OFD packet to send [07:16:33]OFD Sender: No OFD packet to send [07:16:38]OFD Sender: No OFD packet to send [07:16:43]OFD Sender: No OFD packet to send [07:16:48]OFD Sender: No OFD packet to send [07:16:53]OFD Sender: No OFD packet to send [07:16:58]OFD Sender: No OFD packet to send [07:17:03]OFD Sender: No OFD packet to send [07:17:08]OFD Sender: No OFD packet to send [07:17:13]OFD Sender: No OFD packet to send [07:17:18]OFD Sender: No OFD packet to send [07:17:23]OFD Sender: No OFD packet to send [07:17:28]OFD Sender: No OFD packet to send [07:17:33]OFD Sender: No OFD packet to send [07:17:38]OFD Sender: No OFD packet to send [07:17:43]OFD Sender: No OFD packet to send [07:17:48]OFD Sender: No OFD packet to send [07:17:53]OFD Sender: No OFD packet to send [07:17:58]OFD Sender: No OFD packet to send [07:18:03]OFD Sender: No OFD packet to send [07:18:08]OFD Sender: No OFD packet to send [07:18:13]OFD Sender: No OFD packet to send [07:18:15]accept exits with 8 [07:18:15]New connection [07:18:15]New thread 3067317604 created [07:18:15]Thread 3067460964 joined [07:18:15]Waiting for new connection... [07:18:15] Sock 8.Parse request [07:18:15]Sock 8.Check first char [07:18:15]Sock 8.First char is OK [07:18:15]request: POST /json_proto HTTP/1.0 [07:18:15]Method: POST [07:18:15]URL: /json_proto [07:18:15]Method is POST - this is cgi request [07:18:15]url: /json_proto [07:18:15]query_string will be loaded in cgi processing [07:18:15]execute_cgi json_proto POST (null) [07:18:15]execute_cgi path=json_proto method=POST [07:18:15]POST find Content-Length [07:18:15]Host: 172.17.45.132:8080 [07:18:15]Content-Length: 940 [07:18:15]Content-Type: application/json [07:18:15] [07:18:15]POST finish read [07:18:15]Found Content-Length = 940 [07:18:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126303", "tax_sys" : 0, "items" : [ { "code": "4700000310258", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041B\u0438\u043C\u043E\u043D\u0430\u0434 \u041A\u0435\u043B\u0435\u0447\u0435\u043A 1\u043B", "price" : 75.00, "quantity" : 2.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000066473", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:18:15]execute_script... [07:18: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)126303", "tax_sys" : 0, "items" : [ { "code": "4700000310258", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041B\u0438\u043C\u043E\u043D\u0430\u0434 \u041A\u0435\u043B\u0435\u0447\u0435\u043A 1\u043B", "price" : 75.00, "quantity" : 2.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000066473", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:18:15]POST & json_proto [07:18:15]process_json_proto [07:18:15]json parsed OK: [07:18:15]protocol is kg_v1.0 [07:18:15]action value=close_receipt [07:18:15]process_action close_receipt [07:18:15]cmd_close_receipt [07:18:15]MH_GetDate [07:18:15]Write to MH i2c: F0 00 00 B2 3A DB [07:18:15]Write i2c OK [07:18:15]MH_I2C_Read... [07:18:15]Read from MH i2c: F0 [07:18:15]MH_I2C_Read... [07:18:15]Read from MH i2c: F0 09 00 [07:18:15]MH_I2C_Read... [07:18:15]Read from MH i2c: F0 09 00 B2 3A 00 BB F0 A5 66 E3 0B 90 66 7E [07:18:15]GetLastDocTimeStamp 1722150754 [07:18:15]current date 1722151099 [07:18:15]FM_GetShiftState [07:18:15]SAM_PROTO_GetShiftState [07:18:15]wFMCommunicate request_size=4 [07:18:15]MH_SAM_APDU [07:18:15]CAPDU: 80 13 01 00 [07:18:15]Write to MH i2c: E2 08 00 B3 3A 80 13 01 00 00 00 00 00 6A [07:18:15]Write i2c OK [07:18:15]MH_I2C_Read... [07:18:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:18:15]Read from MH i2c: E2 [07:18:15]MH_I2C_Read... [07:18:15]Read from MH i2c: E2 0E 00 [07:18:15]MH_I2C_Read... [07:18:15]Read from MH i2c: E2 0E 00 B3 3A 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 5E [07:18:15]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [07:18:15]wFMCommunicate OK [07:18:15]SAM_PROTO_GetShiftState done [07:18:15]FM_GetShiftState done [07:18:15]opened in 1722125648 [07:18:15]opened+sec_in_day 1722212048 [07:18:15]quantity*price = 15000 [07:18:15]sum+1 = 15001 [07:18:15]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000066473 Вода Бонаква 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 200.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 47 28.07.2024 07:18 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 1996 ФПД: 98142270431455 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T071820&type=1&operation_type=1&fn_number=0000000002094248&fd_number=1996&fm=98142270431455&tin=02508201610067®Number=0000000000189667&sum=20000 0 [07:18:16]StoreToDocumentArchive [07:18:16]shift 13 fd 1996 [07:18:16]save to /storage/0013/doc_00001996 [07:18:16]save last doc name /storage/0013/doc_00001996 to /storage/kkm_last_doc_name [07:18:16]save OK [07:18:16]Clear old archive folders... [07:18:16]ProcessDocumentItem done err = 0, tmpTLVsize=389 [07:18:16]tlvbuf is 02035EC0 [07:18:16]SAM_PROTO_ClearQueue [07:18:16]wFMCommunicate request_size=4 [07:18:16]MH_SAM_APDU [07:18:16]CAPDU: 80 09 00 00 [07:18:16]Write to MH i2c: E2 08 00 C0 3A 80 09 00 00 00 00 00 00 6C [07:18:16]Write i2c OK [07:18:16]MH_I2C_Read... [07:18:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:18:16]Read from MH i2c: E2 [07:18:16]MH_I2C_Read... [07:18:16]Read from MH i2c: E2 03 00 [07:18:16]MH_I2C_Read... [07:18:16]Read from MH i2c: E2 03 00 C0 3A 00 90 00 6E [07:18:16]RAPDU: 90 00 [07:18:16]wFMCommunicate OK [07:18:16]SAM_PROTO_ClearQueue done [07:18:16]KKMCreateOFDPacket [07:18:16]OFDProtocolAddRootSTLVToBuf [07:18:16]FM_MakeSignedData [07:18:16]FM_MakeSignedData [07:18:16]SAM_PROTO_SignData [07:18:16]wFMCommunicate request_size=4 [07:18:16]MH_SAM_APDU [07:18:16]CAPDU: 80 0D 01 02 [07:18:16]Write to MH i2c: E2 08 00 C1 3A 80 0D 01 02 00 00 00 00 74 [07:18:16]Write i2c OK [07:18:16]MH_I2C_Read... [07:18:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:18:16]Read from MH i2c: E2 [07:18:16]MH_I2C_Read... [07:18:16]Read from MH i2c: E2 03 00 [07:18:16]MH_I2C_Read... [07:18:16]Read from MH i2c: E2 03 00 C1 3A 00 90 00 6F [07:18:16]RAPDU: 90 00 [07:18:16]wFMCommunicate OK [07:18:16]wFMCommunicate request_size=255 [07:18:16]MH_SAM_APDU [07:18:16]CAPDU: 80 0D 02 02 FA 03 00 85 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 32 35 38 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 D0 9A D0 B5 D0 BB D0 B5 D1 87 D0 B5 D0 BA 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 35 34 34 39 30 30 30 30 36 36 34 37 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 [07:18:16]Write to MH i2c: E2 02 01 C2 3A 80 0D 02 02 FA 00 03 00 85 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 32 35 38 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 D0 9A D0 B5 D0 BB D0 B5 D1 87 D0 B5 D0 BA 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 35 34 34 39 30 30 30 30 36 36 34 37 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 00 00 F6 [07:18:16]Write i2c OK [07:18:16]MH_I2C_Read... [07:18:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:18:17]Read from MH i2c: E2 [07:18:17]MH_I2C_Read... [07:18:17]Read from MH i2c: E2 03 00 [07:18:17]MH_I2C_Read... [07:18:17]Read from MH i2c: E2 03 00 C2 3A 00 90 00 70 [07:18:17]RAPDU: 90 00 [07:18:17]wFMCommunicate OK [07:18:17]wFMCommunicate request_size=148 [07:18:17]MH_SAM_APDU [07:18:17]CAPDU: 80 0D 02 02 8F 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 2F 00 00 00 F4 03 04 00 BC F0 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 CC 07 00 00 35 04 06 00 59 42 87 2A A0 DF [07:18:17]Write to MH i2c: E2 97 00 C3 3A 80 0D 02 02 8F 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 2F 00 00 00 F4 03 04 00 BC F0 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 CC 07 00 00 35 04 06 00 59 42 87 2A A0 DF 00 00 D0 [07:18:17]Write i2c OK [07:18:17]MH_I2C_Read... [07:18:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:18:17]Read from MH i2c: E2 [07:18:17]MH_I2C_Read... [07:18:17]Read from MH i2c: E2 03 00 [07:18:17]MH_I2C_Read... [07:18:17]Read from MH i2c: E2 03 00 C3 3A 00 90 00 71 [07:18:17]RAPDU: 90 00 [07:18:17]wFMCommunicate OK [07:18:17]wFMCommunicate request_size=4 [07:18:17]MH_SAM_APDU [07:18:17]CAPDU: 80 0D 03 02 [07:18:17]Write to MH i2c: E2 08 00 C4 3A 80 0D 03 02 00 00 00 00 79 [07:18:17]Write i2c OK [07:18:17]MH_I2C_Read... [07:18:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:18:17]Read from MH i2c: E2 [07:18:17]MH_I2C_Read... [07:18:17]Read from MH i2c: E2 0B 00 [07:18:17]MH_I2C_Read... [07:18:17]Read from MH i2c: E2 0B 00 C4 3A 00 A1 0A EC 08 59 D2 F0 39 90 00 6D [07:18:17]RAPDU: A1 0A EC 08 59 D2 F0 39 90 00 [07:18:17]wFMCommunicate OK [07:18:17]SAM_PROTO_SignData done [07:18:17]FM_MakeSignedData done [07:18:17]CreateOFDProtocolMessage [07:18:17]wFMCommunicate request_size=4 [07:18:17]MH_SAM_APDU [07:18:17]CAPDU: 80 11 00 00 [07:18:17]Write to MH i2c: E2 08 00 C5 3A 80 11 00 00 00 00 00 00 79 [07:18:17]Write i2c OK [07:18:17]MH_I2C_Read... [07:18:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:18:17]Read from MH i2c: E2 [07:18:17]MH_I2C_Read... [07:18:17]Read from MH i2c: E2 17 00 [07:18:17]MH_I2C_Read... [07:18:17]Read from MH i2c: E2 17 00 C5 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 C9 [07:18:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [07:18:17]wFMCommunicate OK [07:18:17]CreateOFDProtocolMessage done [07:18:17]OFDSenderStorePacket 1996 [07:18:17]StoreOFDPacket docnum=1996 [07:18:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 99 01 00 00 7C 12 91 01 A6 4A 5A 03 01 00 03 00 85 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 32 35 38 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 D0 9A D0 B5 D0 BB D0 B5 D1 87 D0 B5 D0 BA 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 35 34 34 39 30 30 30 30 36 36 34 37 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 2F 00 00 00 F4 03 04 00 BC F0 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 CC 07 00 00 35 04 06 00 59 42 87 2A A0 DF A1 0A EC 08 59 D2 F0 39 [07:18:17]CheckFolder [07:18:17]dirname=/storage/ofd_packets [07:18:17]CheckFolder done [07:18:17]ProducePacketName [07:18:17]name=ofd_packets/00001996 [07:18:17]NVStorageSaveData ofd_packets/00001996 [07:18:17]File name is /storage/ofd_packets/00001996 [07:18:17]Write 439 bytes [07:18:17]NVStorageSaveData done [07:18:17]OFDSenderStorePacket done [07:18:17]KKMCreateOFDPacket done [07:18:17]NVStorageSaveData kkm_last_timestamp [07:18:17]File name is /storage/kkm_last_timestamp [07:18:17]Write 4 bytes [07:18:17]NVStorageSaveData done [07:18:17]ExternCall_PrintAddStr [07:18:17]wPrintStart [07:18:17]Write to MH i2c: 01 00 00 C6 3A 00 [07:18:17]Write i2c OK [07:18:17]MH_I2C_Read... [07:18:17]Read from MH i2c: 01 [07:18:17]MH_I2C_Read... [07:18:17]Read from MH i2c: 01 07 00 [07:18:17]MH_I2C_Read... [07:18:17]OFD Sender: Processing packet 1996 [packets to send 1, broken 0] [07:18:17]ProducePacketName [07:18:17]name=ofd_packets/00001996 [07:18:17]OFD Sender: To server: pG, [07:18:17]CommunicateWithHost lk.salyk.kg:30040 [07:18:17]ConnectInit lk.salyk.kg [07:18:17]Read from MH i2c: 01 07 00 C6 3A 00 00 00 00 00 FF 0F 15 [07:18:17]RasterBufferAndPrint [07:18:17]line Счет N : (3)126303 [07:18:17]line ИНН: 02508201610067 [07:18:17]line Контрольно-Кассовый Чек [07:18:17]line ПРОДАЖА [07:18:17]line Товар: 4700000310258 [07:18:17]line Напиток Лимонад Келечек 1л [07:18:17]line 2.000 * 75.00 [07:18:17]line = 150.00 [07:18:17]line НДС 12% НСП 1% [07:18:17]line > о реализуемом товаре [07:18:17]line Товар: 5449000066473 [07:18:17]line Вода Бонаква 1л [07:18:17]line 1.000 * 50.00 [07:18:17]line = 50.00 [07:18:17]line НДС 12% НСП 1% [07:18:17]line > о реализуемом товаре [07:18:17]line ИТОГО: 200.00 [07:18:17]line НСП 1% : 1.77 [07:18:17]line НДС 12% : 21.24 [07:18:17]line Наличными: 200.00 [07:18:17]line Безнал.: 0.00 [07:18:17]line Место: АЗС № 127 "Партнер Нефть" [07:18:17]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [07:18:17]line СНО: Общий режим [07:18:17]line Чек 47 28.07.2024 07:18 [07:18:17]line Смена: 13 ФФД: 1.0 [07:18:17]line ЗНМ: 0300000161 [07:18:17]line РНМ: 0000000000189667 [07:18:17]line Версия ККМ: v1.0 [07:18:17]line ФМ: 0000000002094248 [07:18:17]line ФД: 1996 [07:18:17]line ФПД: 98142270431455 [07:18:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T071820&type=1&operation_type=1&fn_number=0000000002094248&fd_number=1996&fm=98142270431455&tin=02508201610067®Number=0000000000189667&sum=20000 [07:18:17]line 0 [07:18:17]written 0, free lines is 4095 [07:18:18]Write to MH i2c: 01 00 00 F4 3A 2E [07:18:18]Write i2c OK [07:18:18]MH_I2C_Read... [07:18:18]Read from MH i2c: 01 [07:18:18]MH_I2C_Read... [07:18:18]Read from MH i2c: 01 07 00 [07:18:18]MH_I2C_Read... [07:18:18]Read from MH i2c: 01 07 00 F4 3A 00 00 00 00 00 BB 0C FC [07:18:18]RasterBufferAndPrint [07:18:18]line [07:18:18]line [07:18:18]line [07:18:18]line [07:18:18]line [07:18:18]written 0, free lines is 3267 [07:18:18]MH_Cut [07:18:18]Write to MH i2c: D1 01 00 FB 3A 01 07 [07:18:18]Write i2c OK [07:18:18]MH_I2C_Read... [07:18:18]Read from MH i2c: D1 [07:18:18]MH_I2C_Read... [07:18:18]Read from MH i2c: D1 01 00 [07:18:18]MH_I2C_Read... [07:18:18]Read from MH i2c: D1 01 00 FB 3A 00 06 [07:18:18]Write to MH i2c: 01 00 00 FC 3A 36 [07:18:18]Write i2c OK [07:18:18]MH_I2C_Read... [07:18:18]*** Cut start [07:18:18]*** Partial cut [07:18:18]*** CUTSNS_PIN = 1 [07:18:18]*** CUTSNS_PIN = 0 [07:18:19]*** Brake cut motor [07:18:19]Read from MH i2c: 01 [07:18:19]MH_I2C_Read... [07:18:19]*** Stop cut motor [07:18:19]*** Cut end [07:18:19]Read from MH i2c: 01 07 00 [07:18:19]MH_I2C_Read... [07:18:19]Read from MH i2c: 01 07 00 FC 3A 00 00 00 00 00 FF 0F 4B [07:18:19]process_action close_receipt done [07:18:19]requested_data is exist [07:18:19]produce_requested_data [07:18:19]requested_item fm.sn is exist - process it [07:18:19]wFMCommunicate request_size=4 [07:18:19]MH_SAM_APDU [07:18:19]CAPDU: 80 11 00 00 [07:18:19]Write to MH i2c: E2 08 00 FD 3A 80 11 00 00 00 00 00 00 B1 [07:18:19]Write i2c OK [07:18:19]MH_I2C_Read... [07:18:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:18:19]Read from MH i2c: E2 [07:18:19]MH_I2C_Read... [07:18:19]Read from MH i2c: E2 17 00 [07:18:19]MH_I2C_Read... [07:18:19]Read from MH i2c: E2 17 00 FD 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 01 [07:18:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [07:18:19]wFMCommunicate OK [07:18:19]requested_item fd.num is exist - process it [07:18:19]SAM_PROTO_GetFieldsCounters [07:18:19]wFMCommunicate request_size=4 [07:18:19]MH_SAM_APDU [07:18:19]CAPDU: 80 13 00 00 [07:18:19]Write to MH i2c: E2 08 00 FE 3A 80 13 00 00 00 00 00 00 B4 [07:18:19]Write i2c OK [07:18:19]MH_I2C_Read... [07:18:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:18:19]Read from MH i2c: E2 [07:18:19]MH_I2C_Read... [07:18:19]Read from MH i2c: E2 62 00 [07:18:19]MH_I2C_Read... [07:18:19]Read from MH i2c: E2 62 00 FE 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 CC 07 00 00 0E 04 04 00 0D 00 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 4B [07:18:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 CC 07 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:18:19]wFMCommunicate OK [07:18:19]SAM_PROTO_GetFieldsCounters done [07:18:19]requested_item shift.num is exist - process it [07:18:19]requested_item shift.opened is exist - process it [07:18:19]req_shift_opened [07:18:19]FM_GetShiftState [07:18:19]SAM_PROTO_GetShiftState [07:18:19]wFMCommunicate request_size=4 [07:18:19]MH_SAM_APDU [07:18:19]CAPDU: 80 13 01 00 [07:18:19]Write to MH i2c: E2 08 00 FF 3A 80 13 01 00 00 00 00 00 B6 [07:18:19]Write i2c OK [07:18:19]MH_I2C_Read... [07:18:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:18:19]Read from MH i2c: E2 [07:18:19]MH_I2C_Read... [07:18:19]Read from MH i2c: E2 0E 00 [07:18:19]MH_I2C_Read... [07:18:19]Read from MH i2c: E2 0E 00 FF 3A 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 AA [07:18:19]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [07:18:19]wFMCommunicate OK [07:18:19]SAM_PROTO_GetShiftState done [07:18:19]FM_GetShiftState done [07:18:19]req_shift_opened done [07:18:19]requested_item shift.open_date is exist - process it [07:18:19]req_shift_open_date [07:18:19]req_shift_open_date done [07:18:19]produce_requested_data done [07:18:19]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":1996,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [07:18:19]process_action_free close_receipt [07:18:19]json_value_free [07:18:19]json_value_free done [07:18:19]process_json_proto returns [07:18:19]Send response to host [07:18:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":1996,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [07:18:19]free response buf [07:18:19]execute_script done [07:18:19]execute_script returns [07:18:19]free content buf [07:18:19]Sock 8.Close socket [07:18:19]Sock 8.Thread stoped [07:20:30]ConnectInit Can't connect to host [07:20:30]CommunicateWithHost connect error [07:20:30]CommunicateWithHost err = -1 [07:20:30]OFD Sender: Server communicate error [07:20:35]OFD Sender: Processing packet 1996 [packets to send 1, broken 0] [07:20:35]ProducePacketName [07:20:35]name=ofd_packets/00001996 [07:20:35]OFD Sender: To server: pG, [07:20:35]CommunicateWithHost lk.salyk.kg:30040 [07:20:35]ConnectInit lk.salyk.kg [07:20:35]Connected sock=8 [07:20:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 99 01 00 00 7C 12 91 01 A6 4A 5A 03 01 00 03 00 85 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 32 35 38 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 D0 9A D0 B5 D0 BB D0 B5 D1 87 D0 B5 D0 BA 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 35 34 34 39 30 30 30 30 36 36 34 37 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 2F 00 00 00 F4 03 04 00 BC F0 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 CC 07 00 00 35 04 06 00 59 42 87 2A A0 DF A1 0A EC 08 59 D2 F0 39 [07:20:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 D9 AC 47 00 FB 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 32 30 39 34 32 34 38 10 04 04 00 CC 07 00 00 F4 03 04 00 B6 9C A5 66 B6 04 01 00 00 5A C9 9D 35 9B B9 8C D5 [07:20:35]CommunicateWithHost err = 0 [07:20:35]CheckOFDResponse [07:20:35]1017 (14) - 77093643461234 [07:20:35]1041 (16) - 0000000002094248 [07:20:35]1040 (4) - 1996 [07:20:35]1012 (4) - 28.07.2024 01:19 [07:20:35]1206 (1) - 0 [07:20:35]OFD Sender: Remove packet 1996 [07:20:35]ProducePacketName [07:20:35]name=ofd_packets/00001996 [07:20:35]NVStorageDeleteData [07:20:36]OFD Sender: No OFD packet to send [07:20:41]OFD Sender: No OFD packet to send [07:20:46]OFD Sender: No OFD packet to send [07:20:51]OFD Sender: No OFD packet to send [07:20:56]OFD Sender: No OFD packet to send [07:21:01]OFD Sender: No OFD packet to send [07:21:06]OFD Sender: No OFD packet to send [07:21:11]OFD Sender: No OFD packet to send [07:21:16]OFD Sender: No OFD packet to send [07:21:21]OFD Sender: No OFD packet to send [07:21:26]OFD Sender: No OFD packet to send [07:21:31]OFD Sender: No OFD packet to send [07:21:36]OFD Sender: No OFD packet to send [07:21:41]OFD Sender: No OFD packet to send [07:21:46]OFD Sender: No OFD packet to send [07:21:51]OFD Sender: No OFD packet to send [07:21:56]OFD Sender: No OFD packet to send [07:22:01]OFD Sender: No OFD packet to send [07:22:06]OFD Sender: No OFD packet to send [07:22:11]OFD Sender: No OFD packet to send [07:22:16]OFD Sender: No OFD packet to send [07:22:21]OFD Sender: No OFD packet to send [07:22:26]OFD Sender: No OFD packet to send [07:22:31]OFD Sender: No OFD packet to send [07:22:36]OFD Sender: No OFD packet to send [07:22:41]OFD Sender: No OFD packet to send [07:22:46]OFD Sender: No OFD packet to send [07:22:51]OFD Sender: No OFD packet to send [07:22:56]OFD Sender: No OFD packet to send [07:23:01]OFD Sender: No OFD packet to send [07:23:06]OFD Sender: No OFD packet to send [07:23:11]OFD Sender: No OFD packet to send [07:23:16]OFD Sender: No OFD packet to send [07:23:21]OFD Sender: No OFD packet to send [07:23:26]OFD Sender: No OFD packet to send [07:23:31]OFD Sender: No OFD packet to send [07:23:36]OFD Sender: No OFD packet to send [07:23:41]OFD Sender: No OFD packet to send [07:23:46]OFD Sender: No OFD packet to send [07:23:51]OFD Sender: No OFD packet to send [07:23:56]OFD Sender: No OFD packet to send [07:24:01]OFD Sender: No OFD packet to send [07:24:06]OFD Sender: No OFD packet to send [07:24:11]OFD Sender: No OFD packet to send [07:24:16]OFD Sender: No OFD packet to send [07:24:21]OFD Sender: No OFD packet to send [07:24:26]OFD Sender: No OFD packet to send [07:24:31]OFD Sender: No OFD packet to send [07:24:36]OFD Sender: No OFD packet to send [07:24:41]OFD Sender: No OFD packet to send [07:24:46]OFD Sender: No OFD packet to send [07:24:51]OFD Sender: No OFD packet to send [07:24:56]OFD Sender: No OFD packet to send [07:25:01]OFD Sender: No OFD packet to send [07:25:06]OFD Sender: No OFD packet to send [07:25:11]OFD Sender: No OFD packet to send [07:25:16]OFD Sender: No OFD packet to send [07:25:21]OFD Sender: No OFD packet to send [07:25:26]OFD Sender: No OFD packet to send [07:25:31]OFD Sender: No OFD packet to send [07:25:36]OFD Sender: No OFD packet to send [07:25:41]OFD Sender: No OFD packet to send [07:25:46]OFD Sender: No OFD packet to send [07:25:51]OFD Sender: No OFD packet to send [07:25:56]OFD Sender: No OFD packet to send [07:26:01]OFD Sender: No OFD packet to send [07:26:06]OFD Sender: No OFD packet to send [07:26:11]OFD Sender: No OFD packet to send [07:26:16]OFD Sender: No OFD packet to send [07:26:21]OFD Sender: No OFD packet to send [07:26:26]OFD Sender: No OFD packet to send [07:26:31]OFD Sender: No OFD packet to send [07:26:36]OFD Sender: No OFD packet to send [07:26:41]OFD Sender: No OFD packet to send [07:26:46]OFD Sender: No OFD packet to send [07:26:51]OFD Sender: No OFD packet to send [07:26:56]OFD Sender: No OFD packet to send [07:27:01]OFD Sender: No OFD packet to send [07:27:06]OFD Sender: No OFD packet to send [07:27:11]OFD Sender: No OFD packet to send [07:27:16]OFD Sender: No OFD packet to send [07:27:21]OFD Sender: No OFD packet to send [07:27:26]OFD Sender: No OFD packet to send [07:27:31]OFD Sender: No OFD packet to send [07:27:36]OFD Sender: No OFD packet to send [07:27:41]OFD Sender: No OFD packet to send [07:27:46]OFD Sender: No OFD packet to send [07:27:51]OFD Sender: No OFD packet to send [07:27:56]OFD Sender: No OFD packet to send [07:28:01]OFD Sender: No OFD packet to send [07:28:06]OFD Sender: No OFD packet to send [07:28:11]OFD Sender: No OFD packet to send [07:28:16]OFD Sender: No OFD packet to send [07:28:21]OFD Sender: No OFD packet to send [07:28:26]OFD Sender: No OFD packet to send [07:28:31]OFD Sender: No OFD packet to send [07:28:33]accept exits with 9 [07:28:33]New connection [07:28:33]New thread 3067460964 created [07:28:33]Thread 3067317604 joined [07:28:33]Waiting for new connection... [07:28:33] Sock 9.Parse request [07:28:33]Sock 9.Check first char [07:28:33]Sock 9.First char is OK [07:28:33]request: POST /json_proto HTTP/1.0 [07:28:33]Method: POST [07:28:33]URL: /json_proto [07:28:33]Method is POST - this is cgi request [07:28:33]url: /json_proto [07:28:33]query_string will be loaded in cgi processing [07:28:33]execute_cgi json_proto POST (null) [07:28:33]execute_cgi path=json_proto method=POST [07:28:33]POST find Content-Length [07:28:33]Host: 172.17.45.132:8080 [07:28:33]Content-Length: 986 [07:28:33]Content-Type: application/json [07:28:33] [07:28:33]POST finish read [07:28:33]Found Content-Length = 986 [07:28:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126304", "tax_sys" : 0, "items" : [ { "code": "5449000189318", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043B\u0438\u043C\u043E\u043D 1\u043B", "price" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000482740", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fr \u0433\u0430\u0437 \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 3.000, "sum" : 285.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 392.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:28:33]execute_script... [07:28:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126304", "tax_sys" : 0, "items" : [ { "code": "5449000189318", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043B\u0438\u043C\u043E\u043D 1\u043B", "price" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000482740", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fr \u0433\u0430\u0437 \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 3.000, "sum" : 285.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 392.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:28:33]POST & json_proto [07:28:33]process_json_proto [07:28:33]json parsed OK: [07:28:33]protocol is kg_v1.0 [07:28:33]action value=close_receipt [07:28:33]process_action close_receipt [07:28:33]cmd_close_receipt [07:28:33]MH_GetDate [07:28:33]Write to MH i2c: F0 00 00 00 3B 2A [07:28:33]Write i2c OK [07:28:33]MH_I2C_Read... [07:28:33]Read from MH i2c: F0 [07:28:33]MH_I2C_Read... [07:28:33]Read from MH i2c: F0 09 00 [07:28:33]MH_I2C_Read... [07:28:33]Read from MH i2c: F0 09 00 00 3B 00 25 F3 A5 66 E3 0B 90 66 3A [07:28:33]GetLastDocTimeStamp 1722151100 [07:28:33]current date 1722151717 [07:28:33]FM_GetShiftState [07:28:33]SAM_PROTO_GetShiftState [07:28:33]wFMCommunicate request_size=4 [07:28:33]MH_SAM_APDU [07:28:33]CAPDU: 80 13 01 00 [07:28:33]Write to MH i2c: E2 08 00 01 3B 80 13 01 00 00 00 00 00 B9 [07:28:33]Write i2c OK [07:28:33]MH_I2C_Read... [07:28:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:28:33]Read from MH i2c: E2 [07:28:33]MH_I2C_Read... [07:28:33]Read from MH i2c: E2 0E 00 [07:28:33]MH_I2C_Read... [07:28:33]Read from MH i2c: E2 0E 00 01 3B 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 AD [07:28:33]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [07:28:33]wFMCommunicate OK [07:28:33]SAM_PROTO_GetShiftState done [07:28:33]FM_GetShiftState done [07:28:33]opened in 1722125648 [07:28:33]opened+sec_in_day 1722212048 [07:28:33]quantity*price = 10700 [07:28:33]sum+1 = 10701 [07:28:33]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000482740 Напиток Nitro Fr газ апельсин ж/б 0,45л 3.000 * 95.00 = 285.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 392.00 НСП 1% : 3.47 НДС 12% : 41.62 Наличными: 392.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 48 28.07.2024 07:28 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 1997 ФПД: 18592230553534 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T072838&type=1&operation_type=1&fn_number=0000000002094248&fd_number=1997&fm=18592230553534&tin=02508201610067®Number=0000000000189667&sum=39200 0 [07:28:34]StoreToDocumentArchive [07:28:34]shift 13 fd 1997 [07:28:34]save to /storage/0013/doc_00001997 [07:28:34]save last doc name /storage/0013/doc_00001997 to /storage/kkm_last_doc_name [07:28:34]save OK [07:28:34]Clear old archive folders... [07:28:34]ProcessDocumentItem done err = 0, tmpTLVsize=417 [07:28:34]tlvbuf is 01F98A00 [07:28:34]SAM_PROTO_ClearQueue [07:28:34]wFMCommunicate request_size=4 [07:28:34]MH_SAM_APDU [07:28:34]CAPDU: 80 09 00 00 [07:28:34]Write to MH i2c: E2 08 00 0E 3B 80 09 00 00 00 00 00 00 BB [07:28:34]Write i2c OK [07:28:34]MH_I2C_Read... [07:28:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:28:34]Read from MH i2c: E2 [07:28:34]MH_I2C_Read... [07:28:34]Read from MH i2c: E2 03 00 [07:28:34]MH_I2C_Read... [07:28:34]Read from MH i2c: E2 03 00 0E 3B 00 90 00 BD [07:28:34]RAPDU: 90 00 [07:28:34]wFMCommunicate OK [07:28:34]SAM_PROTO_ClearQueue done [07:28:34]KKMCreateOFDPacket [07:28:34]OFDProtocolAddRootSTLVToBuf [07:28:34]FM_MakeSignedData [07:28:34]FM_MakeSignedData [07:28:34]SAM_PROTO_SignData [07:28:34]wFMCommunicate request_size=4 [07:28:34]MH_SAM_APDU [07:28:34]CAPDU: 80 0D 01 02 [07:28:34]Write to MH i2c: E2 08 00 0F 3B 80 0D 01 02 00 00 00 00 C3 [07:28:34]Write i2c OK [07:28:34]MH_I2C_Read... [07:28:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:28:34]Read from MH i2c: E2 [07:28:34]MH_I2C_Read... [07:28:34]Read from MH i2c: E2 03 00 [07:28:34]MH_I2C_Read... [07:28:34]Read from MH i2c: E2 03 00 0F 3B 00 90 00 BE [07:28:34]RAPDU: 90 00 [07:28:34]wFMCommunicate OK [07:28:34]wFMCommunicate request_size=255 [07:28:34]MH_SAM_APDU [07:28:34]CAPDU: 80 0D 02 02 FA 03 00 A1 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 31 38 06 04 2B 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 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 80 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 34 30 06 04 3C 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 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 54 6F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 [07:28:34]Write to MH i2c: E2 02 01 10 3B 80 0D 02 02 FA 00 03 00 A1 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 31 38 06 04 2B 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 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 80 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 34 30 06 04 3C 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 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 54 6F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 00 00 A2 [07:28:34]Write i2c OK [07:28:34]MH_I2C_Read... [07:28:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:28:35]Read from MH i2c: E2 [07:28:35]MH_I2C_Read... [07:28:35]Read from MH i2c: E2 03 00 [07:28:35]MH_I2C_Read... [07:28:35]Read from MH i2c: E2 03 00 10 3B 00 90 00 BF [07:28:35]RAPDU: 90 00 [07:28:35]wFMCommunicate OK [07:28:35]wFMCommunicate request_size=176 [07:28:35]MH_SAM_APDU [07:28:35]CAPDU: 80 0D 02 02 AB 01 BC 04 01 00 01 FC 03 06 00 20 99 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 10 00 00 00 00 07 04 06 00 20 99 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 26 F3 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 CD 07 00 00 35 04 06 00 10 E8 D7 4C 37 BE [07:28:35]Write to MH i2c: E2 B3 00 11 3B 80 0D 02 02 AB 00 01 BC 04 01 00 01 FC 03 06 00 20 99 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 10 00 00 00 00 07 04 06 00 20 99 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 26 F3 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 CD 07 00 00 35 04 06 00 10 E8 D7 4C 37 BE 00 00 8F [07:28:35]Write i2c OK [07:28:35]MH_I2C_Read... [07:28:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:28:35]Read from MH i2c: E2 [07:28:35]MH_I2C_Read... [07:28:35]Read from MH i2c: E2 03 00 [07:28:35]MH_I2C_Read... [07:28:35]Read from MH i2c: E2 03 00 11 3B 00 90 00 C0 [07:28:35]RAPDU: 90 00 [07:28:35]wFMCommunicate OK [07:28:35]wFMCommunicate request_size=4 [07:28:35]MH_SAM_APDU [07:28:35]CAPDU: 80 0D 03 02 [07:28:35]Write to MH i2c: E2 08 00 12 3B 80 0D 03 02 00 00 00 00 C8 [07:28:35]Write i2c OK [07:28:35]MH_I2C_Read... [07:28:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:28:35]Read from MH i2c: E2 [07:28:35]MH_I2C_Read... [07:28:35]Read from MH i2c: E2 0B 00 [07:28:35]MH_I2C_Read... [07:28:35]Read from MH i2c: E2 0B 00 12 3B 00 FB FE 6F CB 4F 19 1A 4D 90 00 CB [07:28:35]RAPDU: FB FE 6F CB 4F 19 1A 4D 90 00 [07:28:35]wFMCommunicate OK [07:28:35]SAM_PROTO_SignData done [07:28:35]FM_MakeSignedData done [07:28:35]CreateOFDProtocolMessage [07:28:35]wFMCommunicate request_size=4 [07:28:35]MH_SAM_APDU [07:28:35]CAPDU: 80 11 00 00 [07:28:35]Write to MH i2c: E2 08 00 13 3B 80 11 00 00 00 00 00 00 C8 [07:28:35]Write i2c OK [07:28:35]MH_I2C_Read... [07:28:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:28:35]Read from MH i2c: E2 [07:28:35]MH_I2C_Read... [07:28:35]Read from MH i2c: E2 17 00 [07:28:35]MH_I2C_Read... [07:28:35]Read from MH i2c: E2 17 00 13 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 18 [07:28:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [07:28:35]wFMCommunicate OK [07:28:35]CreateOFDProtocolMessage done [07:28:35]OFDSenderStorePacket 1997 [07:28:35]StoreOFDPacket docnum=1997 [07:28:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 B5 01 00 00 66 B7 AD 01 E9 F3 5A 03 01 00 03 00 A1 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 31 38 06 04 2B 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 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 80 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 34 30 06 04 3C 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 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 54 6F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 99 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 10 00 00 00 00 07 04 06 00 20 99 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 26 F3 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 CD 07 00 00 35 04 06 00 10 E8 D7 4C 37 BE FB FE 6F CB 4F 19 1A 4D [07:28:35]CheckFolder [07:28:35]dirname=/storage/ofd_packets [07:28:35]CheckFolder done [07:28:35]ProducePacketName [07:28:35]name=ofd_packets/00001997 [07:28:35]NVStorageSaveData ofd_packets/00001997 [07:28:35]File name is /storage/ofd_packets/00001997 [07:28:35]Write 467 bytes [07:28:35]NVStorageSaveData done [07:28:35]OFDSenderStorePacket done [07:28:35]KKMCreateOFDPacket done [07:28:35]NVStorageSaveData kkm_last_timestamp [07:28:35]File name is /storage/kkm_last_timestamp [07:28:35]Write 4 bytes [07:28:35]NVStorageSaveData done [07:28:35]ExternCall_PrintAddStr [07:28:35]wPrintStart [07:28:35]Write to MH i2c: 01 00 00 14 3B 4F [07:28:35]Write i2c OK [07:28:35]MH_I2C_Read... [07:28:35]OFD Sender: Processing packet 1997 [packets to send 1, broken 0] [07:28:35]ProducePacketName [07:28:35]name=ofd_packets/00001997 [07:28:35]OFD Sender: To server: pG, [07:28:35]CommunicateWithHost lk.salyk.kg:30040 [07:28:35]ConnectInit lk.salyk.kg [07:28:35]Read from MH i2c: 01 [07:28:35]MH_I2C_Read... [07:28:35]Read from MH i2c: 01 07 00 [07:28:35]MH_I2C_Read... [07:28:35]Read from MH i2c: 01 07 00 14 3B 00 00 00 00 00 FF 0F 64 [07:28:35]RasterBufferAndPrint [07:28:35]line Счет N : (3)126304 [07:28:35]line ИНН: 02508201610067 [07:28:35]line Контрольно-Кассовый Чек [07:28:35]line ПРОДАЖА [07:28:35]line Товар: 5449000189318 [07:28:35]line Холодный чай Fuse лимон 1л [07:28:35]line 1.000 * 107.00 [07:28:35]line = 107.00 [07:28:35]line НДС 12% НСП 1% [07:28:35]line > о реализуемом товаре [07:28:35]line Товар: 4700000482740 [07:28:35]line Напиток Nitro Fr газ апельсин ж/б 0,45л [07:28:35]line 3.000 * 95.00 [07:28:35]line = 285.00 [07:28:35]line НДС 12% НСП 1% [07:28:35]line > о реализуемом товаре [07:28:35]line ИТОГО: 392.00 [07:28:35]line НСП 1% : 3.47 [07:28:35]line НДС 12% : 41.62 [07:28:35]line Наличными: 392.00 [07:28:35]line Безнал.: 0.00 [07:28:35]line Место: АЗС № 127 "Партнер Нефть" [07:28:35]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [07:28:35]line СНО: Общий режим [07:28:35]line Чек 48 28.07.2024 07:28 [07:28:35]line Смена: 13 ФФД: 1.0 [07:28:35]line ЗНМ: 0300000161 [07:28:35]line РНМ: 0000000000189667 [07:28:35]line Версия ККМ: v1.0 [07:28:35]line ФМ: 0000000002094248 [07:28:35]line ФД: 1997 [07:28:35]line ФПД: 18592230553534 [07:28:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T072838&type=1&operation_type=1&fn_number=0000000002094248&fd_number=1997&fm=18592230553534&tin=02508201610067®Number=0000000000189667&sum=39200 [07:28:35]line 0 [07:28:35]written 0, free lines is 4095 [07:28:35]Connected sock=10 [07:28:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 B5 01 00 00 66 B7 AD 01 E9 F3 5A 03 01 00 03 00 A1 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 31 38 06 04 2B 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 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 80 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 34 30 06 04 3C 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 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 54 6F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 99 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 10 00 00 00 00 07 04 06 00 20 99 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 26 F3 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 CD 07 00 00 35 04 06 00 10 E8 D7 4C 37 BE FB FE 6F CB 4F 19 1A 4D [07:28:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 0E E1 47 00 A7 BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 CD 07 00 00 F4 03 04 00 96 9E A5 66 B6 04 01 00 00 CA 6E 62 74 8C 42 F2 59 [07:28:36]CommunicateWithHost err = 0 [07:28:36]CheckOFDResponse [07:28:36]1017 (14) - 77093643461234 [07:28:36]1041 (16) - 0000000002094248 [07:28:36]1040 (4) - 1997 [07:28:36]1012 (4) - 28.07.2024 01:27 [07:28:36]1206 (1) - 0 [07:28:36]OFD Sender: Remove packet 1997 [07:28:36]ProducePacketName [07:28:36]name=ofd_packets/00001997 [07:28:36]NVStorageDeleteData [07:28:36]Write to MH i2c: 01 00 00 43 3B 7E [07:28:36]Write i2c OK [07:28:36]MH_I2C_Read... [07:28:36]Read from MH i2c: 01 [07:28:36]MH_I2C_Read... [07:28:36]Read from MH i2c: 01 07 00 [07:28:36]MH_I2C_Read... [07:28:36]Read from MH i2c: 01 07 00 43 3B 00 00 00 00 00 CD 0C 5E [07:28:36]RasterBufferAndPrint [07:28:36]line [07:28:36]line [07:28:36]line [07:28:36]line [07:28:36]line [07:28:36]written 0, free lines is 3286 [07:28:36]MH_Cut [07:28:36]Write to MH i2c: D1 01 00 4A 3B 01 57 [07:28:36]Write i2c OK [07:28:36]MH_I2C_Read... [07:28:36]Read from MH i2c: D1 [07:28:36]MH_I2C_Read... [07:28:36]Read from MH i2c: D1 01 00 [07:28:36]MH_I2C_Read... [07:28:36]Read from MH i2c: D1 01 00 4A 3B 00 56 [07:28:36]Write to MH i2c: 01 00 00 4B 3B 86 [07:28:36]Write i2c OK [07:28:36]MH_I2C_Read... [07:28:36]OFD Sender: No OFD packet to send [07:28:36]*** Cut start [07:28:36]*** Partial cut [07:28:36]*** CUTSNS_PIN = 1 [07:28:36]*** CUTSNS_PIN = 0 [07:28:37]*** Brake cut motor [07:28:37]Read from MH i2c: 01 [07:28:37]MH_I2C_Read... [07:28:37]*** Stop cut motor [07:28:37]*** Cut end [07:28:37]Read from MH i2c: 01 07 00 [07:28:37]MH_I2C_Read... [07:28:37]Read from MH i2c: 01 07 00 4B 3B 00 00 00 00 00 FF 0F 9B [07:28:37]process_action close_receipt done [07:28:37]requested_data is exist [07:28:37]produce_requested_data [07:28:37]requested_item fm.sn is exist - process it [07:28:37]wFMCommunicate request_size=4 [07:28:37]MH_SAM_APDU [07:28:37]CAPDU: 80 11 00 00 [07:28:37]Write to MH i2c: E2 08 00 4C 3B 80 11 00 00 00 00 00 00 01 [07:28:37]Write i2c OK [07:28:37]MH_I2C_Read... [07:28:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:28:37]Read from MH i2c: E2 [07:28:37]MH_I2C_Read... [07:28:37]Read from MH i2c: E2 17 00 [07:28:37]MH_I2C_Read... [07:28:37]Read from MH i2c: E2 17 00 4C 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 51 [07:28:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [07:28:37]wFMCommunicate OK [07:28:37]requested_item fd.num is exist - process it [07:28:37]SAM_PROTO_GetFieldsCounters [07:28:37]wFMCommunicate request_size=4 [07:28:37]MH_SAM_APDU [07:28:37]CAPDU: 80 13 00 00 [07:28:37]Write to MH i2c: E2 08 00 4D 3B 80 13 00 00 00 00 00 00 04 [07:28:37]Write i2c OK [07:28:37]MH_I2C_Read... [07:28:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:28:37]Read from MH i2c: E2 [07:28:37]MH_I2C_Read... [07:28:37]Read from MH i2c: E2 62 00 [07:28:37]MH_I2C_Read... [07:28:37]Read from MH i2c: E2 62 00 4D 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 CD 07 00 00 0E 04 04 00 0D 00 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 9F [07:28:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 CD 07 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:28:37]wFMCommunicate OK [07:28:37]SAM_PROTO_GetFieldsCounters done [07:28:37]requested_item shift.num is exist - process it [07:28:37]requested_item shift.opened is exist - process it [07:28:37]req_shift_opened [07:28:37]FM_GetShiftState [07:28:37]SAM_PROTO_GetShiftState [07:28:37]wFMCommunicate request_size=4 [07:28:37]MH_SAM_APDU [07:28:37]CAPDU: 80 13 01 00 [07:28:37]Write to MH i2c: E2 08 00 4E 3B 80 13 01 00 00 00 00 00 06 [07:28:37]Write i2c OK [07:28:37]MH_I2C_Read... [07:28:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:28:37]Read from MH i2c: E2 [07:28:37]MH_I2C_Read... [07:28:37]Read from MH i2c: E2 0E 00 [07:28:37]MH_I2C_Read... [07:28:37]Read from MH i2c: E2 0E 00 4E 3B 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 FA [07:28:37]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [07:28:37]wFMCommunicate OK [07:28:37]SAM_PROTO_GetShiftState done [07:28:37]FM_GetShiftState done [07:28:37]req_shift_opened done [07:28:37]requested_item shift.open_date is exist - process it [07:28:37]req_shift_open_date [07:28:37]req_shift_open_date done [07:28:37]produce_requested_data done [07:28:37]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":1997,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [07:28:37]process_action_free close_receipt [07:28:37]json_value_free [07:28:37]json_value_free done [07:28:37]process_json_proto returns [07:28:37]Send response to host [07:28:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":1997,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [07:28:37]free response buf [07:28:37]execute_script done [07:28:37]execute_script returns [07:28:37]free content buf [07:28:37]Sock 9.Close socket [07:28:37]Sock 9.Thread stoped [07:28:41]OFD Sender: No OFD packet to send [07:28:46]OFD Sender: No OFD packet to send [07:28:51]OFD Sender: No OFD packet to send [07:28:56]OFD Sender: No OFD packet to send [07:29:01]OFD Sender: No OFD packet to send [07:29:06]OFD Sender: No OFD packet to send [07:29:11]OFD Sender: No OFD packet to send [07:29:16]OFD Sender: No OFD packet to send [07:29:21]OFD Sender: No OFD packet to send [07:29:26]OFD Sender: No OFD packet to send [07:29:31]OFD Sender: No OFD packet to send [07:29:36]OFD Sender: No OFD packet to send [07:29:41]OFD Sender: No OFD packet to send [07:29:46]OFD Sender: No OFD packet to send [07:29:51]OFD Sender: No OFD packet to send [07:29:56]OFD Sender: No OFD packet to send [07:30:01]OFD Sender: No OFD packet to send [07:30:06]OFD Sender: No OFD packet to send [07:30:11]OFD Sender: No OFD packet to send [07:30:16]OFD Sender: No OFD packet to send [07:30:21]OFD Sender: No OFD packet to send [07:30:26]OFD Sender: No OFD packet to send [07:30:31]OFD Sender: No OFD packet to send [07:30:36]OFD Sender: No OFD packet to send [07:30:41]OFD Sender: No OFD packet to send [07:30:46]OFD Sender: No OFD packet to send [07:30:51]OFD Sender: No OFD packet to send [07:30:56]OFD Sender: No OFD packet to send [07:31:01]OFD Sender: No OFD packet to send [07:31:06]OFD Sender: No OFD packet to send [07:31:11]OFD Sender: No OFD packet to send [07:31:16]OFD Sender: No OFD packet to send [07:31:21]OFD Sender: No OFD packet to send [07:31:26]OFD Sender: No OFD packet to send [07:31:31]OFD Sender: No OFD packet to send [07:31:36]OFD Sender: No OFD packet to send [07:31:41]OFD Sender: No OFD packet to send [07:31:46]OFD Sender: No OFD packet to send [07:31:51]OFD Sender: No OFD packet to send [07:31:56]OFD Sender: No OFD packet to send [07:32:01]OFD Sender: No OFD packet to send [07:32:06]OFD Sender: No OFD packet to send [07:32:11]OFD Sender: No OFD packet to send [07:32:16]OFD Sender: No OFD packet to send [07:32:21]OFD Sender: No OFD packet to send [07:32:26]OFD Sender: No OFD packet to send [07:32:31]OFD Sender: No OFD packet to send [07:32:36]OFD Sender: No OFD packet to send [07:32:41]OFD Sender: No OFD packet to send [07:32:46]OFD Sender: No OFD packet to send [07:32:51]OFD Sender: No OFD packet to send [07:32:56]OFD Sender: No OFD packet to send [07:33:01]OFD Sender: No OFD packet to send [07:33:06]OFD Sender: No OFD packet to send [07:33:11]OFD Sender: No OFD packet to send [07:33:16]OFD Sender: No OFD packet to send [07:33:20]accept exits with 8 [07:33:20]New connection [07:33:20]New thread 3067317604 created [07:33:20]Thread 3067460964 joined [07:33:20]Waiting for new connection... [07:33:20] Sock 8.Parse request [07:33:20]Sock 8.Check first char [07:33:20]Sock 8.First char is OK [07:33:20]request: POST /json_proto HTTP/1.0 [07:33:20]Method: POST [07:33:20]URL: /json_proto [07:33:20]Method is POST - this is cgi request [07:33:20]url: /json_proto [07:33:20]query_string will be loaded in cgi processing [07:33:20]execute_cgi json_proto POST (null) [07:33:20]execute_cgi path=json_proto method=POST [07:33:20]POST find Content-Length [07:33:20]Host: 172.17.45.132:8080 [07:33:20]Content-Length: 962 [07:33:20]Content-Type: application/json [07:33:20] [07:33:20]POST finish read [07:33:20]Found Content-Length = 962 [07:33:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126305", "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": "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" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:33:20]execute_script... [07:33: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)126305", "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": "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" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:33:20]POST & json_proto [07:33:20]process_json_proto [07:33:20]json parsed OK: [07:33:20]protocol is kg_v1.0 [07:33:20]action value=close_receipt [07:33:20]process_action close_receipt [07:33:20]cmd_close_receipt [07:33:20]MH_GetDate [07:33:20]Write to MH i2c: F0 00 00 4F 3B 79 [07:33:20]Write i2c OK [07:33:20]MH_I2C_Read... [07:33:20]Read from MH i2c: F0 [07:33:20]MH_I2C_Read... [07:33:20]Read from MH i2c: F0 09 00 [07:33:20]MH_I2C_Read... [07:33:20]Read from MH i2c: F0 09 00 4F 3B 00 45 F4 A5 66 E3 0B 90 66 AA [07:33:20]GetLastDocTimeStamp 1722151718 [07:33:20]current date 1722152005 [07:33:20]FM_GetShiftState [07:33:20]SAM_PROTO_GetShiftState [07:33:20]wFMCommunicate request_size=4 [07:33:20]MH_SAM_APDU [07:33:20]CAPDU: 80 13 01 00 [07:33:20]Write to MH i2c: E2 08 00 50 3B 80 13 01 00 00 00 00 00 08 [07:33:20]Write i2c OK [07:33:20]MH_I2C_Read... [07:33:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:33:20]Read from MH i2c: E2 [07:33:20]MH_I2C_Read... [07:33:20]Read from MH i2c: E2 0E 00 [07:33:20]MH_I2C_Read... [07:33:20]Read from MH i2c: E2 0E 00 50 3B 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 FC [07:33:20]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [07:33:20]wFMCommunicate OK [07:33:20]SAM_PROTO_GetShiftState done [07:33:20]FM_GetShiftState done [07:33:20]opened in 1722125648 [07:33:20]opened+sec_in_day 1722212048 [07:33:20]quantity*price = 12500 [07:33:20]sum+1 = 12501 [07:33:20]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% > о реализуемом товаре ИТОГО: 210.00 НСП 1% : 1.86 НДС 12% : 22.30 Наличными: 210.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 49 28.07.2024 07:33 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 1998 ФПД: 57776066609489 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T073325&type=1&operation_type=1&fn_number=0000000002094248&fd_number=1998&fm=57776066609489&tin=02508201610067®Number=0000000000189667&sum=21000 0 [07:33:21]StoreToDocumentArchive [07:33:21]shift 13 fd 1998 [07:33:21]save to /storage/0013/doc_00001998 [07:33:21]save last doc name /storage/0013/doc_00001998 to /storage/kkm_last_doc_name [07:33:21]save OK [07:33:21]Clear old archive folders... [07:33:21]ProcessDocumentItem done err = 0, tmpTLVsize=418 [07:33:21]tlvbuf is 0207BE00 [07:33:21]SAM_PROTO_ClearQueue [07:33:21]wFMCommunicate request_size=4 [07:33:21]MH_SAM_APDU [07:33:21]CAPDU: 80 09 00 00 [07:33:21]Write to MH i2c: E2 08 00 5D 3B 80 09 00 00 00 00 00 00 0A [07:33:21]Write i2c OK [07:33:21]MH_I2C_Read... [07:33:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:33:21]Read from MH i2c: E2 [07:33:21]MH_I2C_Read... [07:33:21]Read from MH i2c: E2 03 00 [07:33:21]MH_I2C_Read... [07:33:21]Read from MH i2c: E2 03 00 5D 3B 00 90 00 0C [07:33:21]RAPDU: 90 00 [07:33:21]wFMCommunicate OK [07:33:21]SAM_PROTO_ClearQueue done [07:33:21]KKMCreateOFDPacket [07:33:21]OFDProtocolAddRootSTLVToBuf [07:33:21]FM_MakeSignedData [07:33:21]FM_MakeSignedData [07:33:21]SAM_PROTO_SignData [07:33:21]wFMCommunicate request_size=4 [07:33:21]MH_SAM_APDU [07:33:21]CAPDU: 80 0D 01 02 [07:33:21]Write to MH i2c: E2 08 00 5E 3B 80 0D 01 02 00 00 00 00 12 [07:33:21]Write i2c OK [07:33:21]MH_I2C_Read... [07:33:21]OFD Sender: No OFD packet to send [07:33:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:33:21]Read from MH i2c: E2 [07:33:21]MH_I2C_Read... [07:33:21]Read from MH i2c: E2 03 00 [07:33:21]MH_I2C_Read... [07:33:21]Read from MH i2c: E2 03 00 5E 3B 00 90 00 0D [07:33:21]RAPDU: 90 00 [07:33:21]wFMCommunicate OK [07:33:21]wFMCommunicate request_size=255 [07:33:21]MH_SAM_APDU [07:33:21]CAPDU: 80 0D 02 02 FA 03 00 A2 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 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 [07:33:21]Write to MH i2c: E2 02 01 5F 3B 80 0D 02 02 FA 00 03 00 A2 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 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 69 [07:33:21]Write i2c OK [07:33:21]MH_I2C_Read... [07:33:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:33:22]Read from MH i2c: E2 [07:33:22]MH_I2C_Read... [07:33:22]Read from MH i2c: E2 03 00 [07:33:22]MH_I2C_Read... [07:33:22]Read from MH i2c: E2 03 00 5F 3B 00 90 00 0E [07:33:22]RAPDU: 90 00 [07:33:22]wFMCommunicate OK [07:33:22]wFMCommunicate request_size=177 [07:33:22]MH_SAM_APDU [07:33:22]CAPDU: 80 0D 02 02 AC 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 31 00 00 00 F4 03 04 00 45 F4 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 CE 07 00 00 35 04 06 00 34 8C 09 ED 41 51 [07:33:22]Write to MH i2c: E2 B4 00 60 3B 80 0D 02 02 AC 00 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 31 00 00 00 F4 03 04 00 45 F4 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 CE 07 00 00 35 04 06 00 34 8C 09 ED 41 51 00 00 46 [07:33:22]Write i2c OK [07:33:22]MH_I2C_Read... [07:33:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:33:22]Read from MH i2c: E2 [07:33:22]MH_I2C_Read... [07:33:22]Read from MH i2c: E2 03 00 [07:33:22]MH_I2C_Read... [07:33:22]Read from MH i2c: E2 03 00 60 3B 00 90 00 0F [07:33:22]RAPDU: 90 00 [07:33:22]wFMCommunicate OK [07:33:22]wFMCommunicate request_size=4 [07:33:22]MH_SAM_APDU [07:33:22]CAPDU: 80 0D 03 02 [07:33:22]Write to MH i2c: E2 08 00 61 3B 80 0D 03 02 00 00 00 00 17 [07:33:22]Write i2c OK [07:33:22]MH_I2C_Read... [07:33:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:33:22]Read from MH i2c: E2 [07:33:22]MH_I2C_Read... [07:33:22]Read from MH i2c: E2 0B 00 [07:33:22]MH_I2C_Read... [07:33:22]Read from MH i2c: E2 0B 00 61 3B 00 D3 4A CD 0B 44 E5 F5 C0 90 00 EB [07:33:22]RAPDU: D3 4A CD 0B 44 E5 F5 C0 90 00 [07:33:22]wFMCommunicate OK [07:33:22]SAM_PROTO_SignData done [07:33:22]FM_MakeSignedData done [07:33:22]CreateOFDProtocolMessage [07:33:22]wFMCommunicate request_size=4 [07:33:22]MH_SAM_APDU [07:33:22]CAPDU: 80 11 00 00 [07:33:22]Write to MH i2c: E2 08 00 62 3B 80 11 00 00 00 00 00 00 17 [07:33:22]Write i2c OK [07:33:22]MH_I2C_Read... [07:33:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:33:22]Read from MH i2c: E2 [07:33:22]MH_I2C_Read... [07:33:22]Read from MH i2c: E2 17 00 [07:33:22]MH_I2C_Read... [07:33:22]Read from MH i2c: E2 17 00 62 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 67 [07:33:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [07:33:22]wFMCommunicate OK [07:33:22]CreateOFDProtocolMessage done [07:33:22]OFDSenderStorePacket 1998 [07:33:22]StoreOFDPacket docnum=1998 [07:33:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 B6 01 00 00 83 BA AE 01 DD 60 5A 03 01 00 03 00 A2 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 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 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 31 00 00 00 F4 03 04 00 45 F4 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 CE 07 00 00 35 04 06 00 34 8C 09 ED 41 51 D3 4A CD 0B 44 E5 F5 C0 [07:33:22]CheckFolder [07:33:22]dirname=/storage/ofd_packets [07:33:22]CheckFolder done [07:33:22]ProducePacketName [07:33:22]name=ofd_packets/00001998 [07:33:22]NVStorageSaveData ofd_packets/00001998 [07:33:22]File name is /storage/ofd_packets/00001998 [07:33:22]Write 468 bytes [07:33:22]NVStorageSaveData done [07:33:22]OFDSenderStorePacket done [07:33:22]KKMCreateOFDPacket done [07:33:22]NVStorageSaveData kkm_last_timestamp [07:33:22]File name is /storage/kkm_last_timestamp [07:33:22]Write 4 bytes [07:33:22]NVStorageSaveData done [07:33:22]ExternCall_PrintAddStr [07:33:22]wPrintStart [07:33:22]Write to MH i2c: 01 00 00 63 3B 9E [07:33:22]OFD Sender: Processing packet 1998 [packets to send 1, broken 0] [07:33:22]ProducePacketName [07:33:22]name=ofd_packets/00001998 [07:33:22]OFD Sender: To server: pG, [07:33:22]CommunicateWithHost lk.salyk.kg:30040 [07:33:22]ConnectInit lk.salyk.kg [07:33:22]Write i2c OK [07:33:22]MH_I2C_Read... [07:33:22]Read from MH i2c: 01 [07:33:22]MH_I2C_Read... [07:33:22]Read from MH i2c: 01 07 00 [07:33:22]MH_I2C_Read... [07:33:22]Read from MH i2c: 01 07 00 63 3B 00 00 00 00 00 FF 0F B3 [07:33:22]RasterBufferAndPrint [07:33:22]line Счет N : (3)126305 [07:33:22]line ИНН: 02508201610067 [07:33:22]line Контрольно-Кассовый Чек [07:33:22]line ПРОДАЖА [07:33:22]line Товар: 4870202521247 [07:33:22]line Напиток MAXI чай 1,2 черн.персик [07:33:22]line 1.000 * 125.00 [07:33:22]line = 125.00 [07:33:22]line НДС 12% НСП 1% [07:33:22]line > о реализуемом товаре [07:33:22]line Товар: 4600682557456 [07:33:22]line Напиток FLash up energy эн ж/б 0,5/0,45л [07:33:22]line 1.000 * 85.00 [07:33:22]line = 85.00 [07:33:22]line НДС 12% НСП 1% [07:33:22]line > о реализуемом товаре [07:33:22]line ИТОГО: 210.00 [07:33:22]line НСП 1% : 1.86 [07:33:22]line НДС 12% : 22.30 [07:33:22]line Наличными: 210.00 [07:33:22]line Безнал.: 0.00 [07:33:22]line Место: АЗС № 127 "Партнер Нефть" [07:33:22]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [07:33:22]line СНО: Общий режим [07:33:22]line Чек 49 28.07.2024 07:33 [07:33:22]line Смена: 13 ФФД: 1.0 [07:33:22]line ЗНМ: 0300000161 [07:33:22]line РНМ: 0000000000189667 [07:33:22]line Версия ККМ: v1.0 [07:33:22]line ФМ: 0000000002094248 [07:33:22]line ФД: 1998 [07:33:22]line ФПД: 57776066609489 [07:33:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T073325&type=1&operation_type=1&fn_number=0000000002094248&fd_number=1998&fm=57776066609489&tin=02508201610067®Number=0000000000189667&sum=21000 [07:33:22]line 0 [07:33:22]written 0, free lines is 4095 [07:33:22]Connected sock=10 [07:33:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 B6 01 00 00 83 BA AE 01 DD 60 5A 03 01 00 03 00 A2 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 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 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 31 00 00 00 F4 03 04 00 45 F4 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 CE 07 00 00 35 04 06 00 34 8C 09 ED 41 51 D3 4A CD 0B 44 E5 F5 C0 [07:33:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 1E 2A 47 00 25 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 32 30 39 34 32 34 38 10 04 04 00 CE 07 00 00 F4 03 04 00 B5 9F A5 66 B6 04 01 00 00 F7 16 60 C1 0E F9 30 52 [07:33:23]CommunicateWithHost err = 0 [07:33:23]CheckOFDResponse [07:33:23]1017 (14) - 77093643461234 [07:33:23]1041 (16) - 0000000002094248 [07:33:23]1040 (4) - 1998 [07:33:23]1012 (4) - 28.07.2024 01:32 [07:33:23]1206 (1) - 0 [07:33:23]OFD Sender: Remove packet 1998 [07:33:23]ProducePacketName [07:33:23]name=ofd_packets/00001998 [07:33:23]NVStorageDeleteData [07:33:23]Write to MH i2c: 01 00 00 93 3B CE [07:33:23]Write i2c OK [07:33:23]MH_I2C_Read... [07:33:23]Read from MH i2c: 01 [07:33:23]MH_I2C_Read... [07:33:23]Read from MH i2c: 01 07 00 [07:33:23]MH_I2C_Read... [07:33:23]Read from MH i2c: 01 07 00 93 3B 00 00 00 00 00 CD 0C AE [07:33:23]RasterBufferAndPrint [07:33:23]line [07:33:23]line [07:33:23]line [07:33:23]line [07:33:23]line [07:33:23]written 0, free lines is 3286 [07:33:23]MH_Cut [07:33:23]Write to MH i2c: D1 01 00 9A 3B 01 A7 [07:33:23]Write i2c OK [07:33:23]MH_I2C_Read... [07:33:23]Read from MH i2c: D1 [07:33:23]MH_I2C_Read... [07:33:23]Read from MH i2c: D1 01 00 [07:33:23]MH_I2C_Read... [07:33:23]Read from MH i2c: D1 01 00 9A 3B 00 A6 [07:33:23]Write to MH i2c: 01 00 00 9B 3B D6 [07:33:23]Write i2c OK [07:33:23]MH_I2C_Read... [07:33:23]OFD Sender: No OFD packet to send [07:33:23]*** Cut start [07:33:23]*** Partial cut [07:33:23]*** CUTSNS_PIN = 1 [07:33:24]*** CUTSNS_PIN = 0 [07:33:24]*** Brake cut motor [07:33:24]Read from MH i2c: 01 [07:33:24]MH_I2C_Read... [07:33:24]*** Stop cut motor [07:33:24]*** Cut end [07:33:24]Read from MH i2c: 01 07 00 [07:33:24]MH_I2C_Read... [07:33:24]Read from MH i2c: 01 07 00 9B 3B 00 00 00 00 00 FF 0F EB [07:33:24]process_action close_receipt done [07:33:24]requested_data is exist [07:33:24]produce_requested_data [07:33:24]requested_item fm.sn is exist - process it [07:33:24]wFMCommunicate request_size=4 [07:33:24]MH_SAM_APDU [07:33:24]CAPDU: 80 11 00 00 [07:33:24]Write to MH i2c: E2 08 00 9C 3B 80 11 00 00 00 00 00 00 51 [07:33:24]Write i2c OK [07:33:24]MH_I2C_Read... [07:33:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:33:24]Read from MH i2c: E2 [07:33:24]MH_I2C_Read... [07:33:24]Read from MH i2c: E2 17 00 [07:33:24]MH_I2C_Read... [07:33:24]Read from MH i2c: E2 17 00 9C 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 A1 [07:33:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [07:33:24]wFMCommunicate OK [07:33:24]requested_item fd.num is exist - process it [07:33:24]SAM_PROTO_GetFieldsCounters [07:33:24]wFMCommunicate request_size=4 [07:33:24]MH_SAM_APDU [07:33:24]CAPDU: 80 13 00 00 [07:33:24]Write to MH i2c: E2 08 00 9D 3B 80 13 00 00 00 00 00 00 54 [07:33:24]Write i2c OK [07:33:24]MH_I2C_Read... [07:33:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:33:24]Read from MH i2c: E2 [07:33:24]MH_I2C_Read... [07:33:24]Read from MH i2c: E2 62 00 [07:33:24]MH_I2C_Read... [07:33:24]Read from MH i2c: E2 62 00 9D 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 CE 07 00 00 0E 04 04 00 0D 00 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 F3 [07:33:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 CE 07 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:33:24]wFMCommunicate OK [07:33:24]SAM_PROTO_GetFieldsCounters done [07:33:24]requested_item shift.num is exist - process it [07:33:24]requested_item shift.opened is exist - process it [07:33:24]req_shift_opened [07:33:24]FM_GetShiftState [07:33:24]SAM_PROTO_GetShiftState [07:33:24]wFMCommunicate request_size=4 [07:33:24]MH_SAM_APDU [07:33:24]CAPDU: 80 13 01 00 [07:33:24]Write to MH i2c: E2 08 00 9E 3B 80 13 01 00 00 00 00 00 56 [07:33:24]Write i2c OK [07:33:24]MH_I2C_Read... [07:33:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:33:24]Read from MH i2c: E2 [07:33:24]MH_I2C_Read... [07:33:24]Read from MH i2c: E2 0E 00 [07:33:24]MH_I2C_Read... [07:33:24]Read from MH i2c: E2 0E 00 9E 3B 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 4A [07:33:24]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [07:33:24]wFMCommunicate OK [07:33:24]SAM_PROTO_GetShiftState done [07:33:24]FM_GetShiftState done [07:33:24]req_shift_opened done [07:33:24]requested_item shift.open_date is exist - process it [07:33:24]req_shift_open_date [07:33:24]req_shift_open_date done [07:33:24]produce_requested_data done [07:33:24]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":1998,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [07:33:24]process_action_free close_receipt [07:33:24]json_value_free [07:33:24]json_value_free done [07:33:24]process_json_proto returns [07:33:24]Send response to host [07:33:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":1998,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [07:33:24]free response buf [07:33:24]execute_script done [07:33:24]execute_script returns [07:33:24]free content buf [07:33:24]Sock 8.Close socket [07:33:24]Sock 8.Thread stoped [07:33:28]OFD Sender: No OFD packet to send [07:33:33]OFD Sender: No OFD packet to send [07:33:38]OFD Sender: No OFD packet to send [07:33:43]OFD Sender: No OFD packet to send [07:33:48]OFD Sender: No OFD packet to send [07:33:53]OFD Sender: No OFD packet to send [07:33:58]OFD Sender: No OFD packet to send [07:34:03]OFD Sender: No OFD packet to send [07:34:08]OFD Sender: No OFD packet to send [07:34:13]OFD Sender: No OFD packet to send [07:34:18]OFD Sender: No OFD packet to send [07:34:23]OFD Sender: No OFD packet to send [07:34:28]OFD Sender: No OFD packet to send [07:34:33]OFD Sender: No OFD packet to send [07:34:38]OFD Sender: No OFD packet to send [07:34:43]OFD Sender: No OFD packet to send [07:34:48]OFD Sender: No OFD packet to send [07:34:53]OFD Sender: No OFD packet to send [07:34:58]OFD Sender: No OFD packet to send [07:35:03]OFD Sender: No OFD packet to send [07:35:08]OFD Sender: No OFD packet to send [07:35:13]OFD Sender: No OFD packet to send [07:35:15]accept exits with 9 [07:35:15]New connection [07:35:15]New thread 3067460964 created [07:35:15]Thread 3067317604 joined [07:35:15]Waiting for new connection... [07:35:15] Sock 9.Parse request [07:35:15]Sock 9.Check first char [07:35:15]Sock 9.First char is OK [07:35:15]request: POST /json_proto HTTP/1.0 [07:35:15]Method: POST [07:35:15]URL: /json_proto [07:35:15]Method is POST - this is cgi request [07:35:15]url: /json_proto [07:35:15]query_string will be loaded in cgi processing [07:35:15]execute_cgi json_proto POST (null) [07:35:15]execute_cgi path=json_proto method=POST [07:35:15]POST find Content-Length [07:35:15]Host: 172.17.45.132:8080 [07:35:15]Content-Length: 714 [07:35:15]Content-Type: application/json [07:35:15] [07:35:15]POST finish read [07:35:15]Found Content-Length = 714 [07:35:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126306", "tax_sys" : 0, "items" : [ { "code": "4870001571030", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 1\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:35:15]execute_script... [07:35: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)126306", "tax_sys" : 0, "items" : [ { "code": "4870001571030", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 1\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:35:15]POST & json_proto [07:35:15]process_json_proto [07:35:15]json parsed OK: [07:35:15]protocol is kg_v1.0 [07:35:15]action value=close_receipt [07:35:15]process_action close_receipt [07:35:15]cmd_close_receipt [07:35:15]MH_GetDate [07:35:15]Write to MH i2c: F0 00 00 9F 3B C9 [07:35:15]Write i2c OK [07:35:15]MH_I2C_Read... [07:35:15]Read from MH i2c: F0 [07:35:15]MH_I2C_Read... [07:35:15]Read from MH i2c: F0 09 00 [07:35:15]MH_I2C_Read... [07:35:15]Read from MH i2c: F0 09 00 9F 3B 00 B7 F4 A5 66 E3 0B 90 66 6C [07:35:15]GetLastDocTimeStamp 1722152005 [07:35:15]current date 1722152119 [07:35:15]FM_GetShiftState [07:35:15]SAM_PROTO_GetShiftState [07:35:15]wFMCommunicate request_size=4 [07:35:15]MH_SAM_APDU [07:35:15]CAPDU: 80 13 01 00 [07:35:15]Write to MH i2c: E2 08 00 A0 3B 80 13 01 00 00 00 00 00 58 [07:35:15]Write i2c OK [07:35:15]MH_I2C_Read... [07:35:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:35:15]Read from MH i2c: E2 [07:35:15]MH_I2C_Read... [07:35:15]Read from MH i2c: E2 0E 00 [07:35:15]MH_I2C_Read... [07:35:15]Read from MH i2c: E2 0E 00 A0 3B 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 4C [07:35:15]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [07:35:15]wFMCommunicate OK [07:35:15]SAM_PROTO_GetShiftState done [07:35:15]FM_GetShiftState done [07:35:15]opened in 1722125648 [07:35:15]opened+sec_in_day 1722212048 [07:35:15]quantity*price = 10000 [07:35:15]sum+1 = 10001 [07:35:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 100.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 50 28.07.2024 07:35 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 1999 ФПД: 170128828823115 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T073519&type=1&operation_type=1&fn_number=0000000002094248&fd_number=1999&fm=170128828823115&tin=02508201610067®Number=0000000000189667&sum=10000 0 [07:35:16]StoreToDocumentArchive [07:35:16]shift 13 fd 1999 [07:35:16]save to /storage/0013/doc_00001999 [07:35:16]save last doc name /storage/0013/doc_00001999 to /storage/kkm_last_doc_name [07:35:16]save OK [07:35:16]Clear old archive folders... [07:35:16]ProcessDocumentItem done err = 0, tmpTLVsize=302 [07:35:16]tlvbuf is 0204E9C0 [07:35:16]SAM_PROTO_ClearQueue [07:35:16]wFMCommunicate request_size=4 [07:35:16]MH_SAM_APDU [07:35:16]CAPDU: 80 09 00 00 [07:35:16]Write to MH i2c: E2 08 00 AD 3B 80 09 00 00 00 00 00 00 5A [07:35:16]Write i2c OK [07:35:16]MH_I2C_Read... [07:35:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:35:16]Read from MH i2c: E2 [07:35:16]MH_I2C_Read... [07:35:16]Read from MH i2c: E2 03 00 [07:35:16]MH_I2C_Read... [07:35:16]Read from MH i2c: E2 03 00 AD 3B 00 90 00 5C [07:35:16]RAPDU: 90 00 [07:35:16]wFMCommunicate OK [07:35:16]SAM_PROTO_ClearQueue done [07:35:16]KKMCreateOFDPacket [07:35:16]OFDProtocolAddRootSTLVToBuf [07:35:16]FM_MakeSignedData [07:35:16]FM_MakeSignedData [07:35:16]SAM_PROTO_SignData [07:35:16]wFMCommunicate request_size=4 [07:35:16]MH_SAM_APDU [07:35:16]CAPDU: 80 0D 01 02 [07:35:16]Write to MH i2c: E2 08 00 AE 3B 80 0D 01 02 00 00 00 00 62 [07:35:16]Write i2c OK [07:35:16]MH_I2C_Read... [07:35:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:35:16]Read from MH i2c: E2 [07:35:16]MH_I2C_Read... [07:35:16]Read from MH i2c: E2 03 00 [07:35:16]MH_I2C_Read... [07:35:16]Read from MH i2c: E2 03 00 AE 3B 00 90 00 5D [07:35:16]RAPDU: 90 00 [07:35:16]wFMCommunicate OK [07:35:16]wFMCommunicate request_size=255 [07:35:16]MH_SAM_APDU [07:35:16]CAPDU: 80 0D 02 02 FA 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 B7 F4 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 [07:35:16]Write to MH i2c: E2 02 01 AF 3B 80 0D 02 02 FA 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 B7 F4 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 00 00 CA [07:35:16]Write i2c OK [07:35:16]MH_I2C_Read... [07:35:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:35:16]Read from MH i2c: E2 [07:35:16]MH_I2C_Read... [07:35:16]Read from MH i2c: E2 03 00 [07:35:16]MH_I2C_Read... [07:35:16]Read from MH i2c: E2 03 00 AF 3B 00 90 00 5E [07:35:16]RAPDU: 90 00 [07:35:16]wFMCommunicate OK [07:35:16]wFMCommunicate request_size=61 [07:35:16]MH_SAM_APDU [07:35:16]CAPDU: 80 0D 02 02 38 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 CF 07 00 00 35 04 06 00 9A BB 34 68 76 4B [07:35:16]Write to MH i2c: E2 40 00 B0 3B 80 0D 02 02 38 00 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 CF 07 00 00 35 04 06 00 9A BB 34 68 76 4B 00 00 2B [07:35:16]Write i2c OK [07:35:16]MH_I2C_Read... [07:35:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:35:17]Read from MH i2c: E2 [07:35:17]MH_I2C_Read... [07:35:17]Read from MH i2c: E2 03 00 [07:35:17]MH_I2C_Read... [07:35:17]Read from MH i2c: E2 03 00 B0 3B 00 90 00 5F [07:35:17]RAPDU: 90 00 [07:35:17]wFMCommunicate OK [07:35:17]wFMCommunicate request_size=4 [07:35:17]MH_SAM_APDU [07:35:17]CAPDU: 80 0D 03 02 [07:35:17]Write to MH i2c: E2 08 00 B1 3B 80 0D 03 02 00 00 00 00 67 [07:35:17]Write i2c OK [07:35:17]MH_I2C_Read... [07:35:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:35:17]Read from MH i2c: E2 [07:35:17]MH_I2C_Read... [07:35:17]Read from MH i2c: E2 0B 00 [07:35:17]MH_I2C_Read... [07:35:17]Read from MH i2c: E2 0B 00 B1 3B 00 8C 31 9E D1 6A FB D5 7C 90 00 4A [07:35:17]RAPDU: 8C 31 9E D1 6A FB D5 7C 90 00 [07:35:17]wFMCommunicate OK [07:35:17]SAM_PROTO_SignData done [07:35:17]FM_MakeSignedData done [07:35:17]CreateOFDProtocolMessage [07:35:17]wFMCommunicate request_size=4 [07:35:17]MH_SAM_APDU [07:35:17]CAPDU: 80 11 00 00 [07:35:17]Write to MH i2c: E2 08 00 B2 3B 80 11 00 00 00 00 00 00 67 [07:35:17]Write i2c OK [07:35:17]MH_I2C_Read... [07:35:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:35:17]Read from MH i2c: E2 [07:35:17]MH_I2C_Read... [07:35:17]Read from MH i2c: E2 17 00 [07:35:17]MH_I2C_Read... [07:35:17]Read from MH i2c: E2 17 00 B2 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 B7 [07:35:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [07:35:17]wFMCommunicate OK [07:35:17]CreateOFDProtocolMessage done [07:35:17]OFDSenderStorePacket 1999 [07:35:17]StoreOFDPacket docnum=1999 [07:35:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 42 01 00 00 8B C7 3A 01 6A 09 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 B7 F4 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 CF 07 00 00 35 04 06 00 9A BB 34 68 76 4B 8C 31 9E D1 6A FB D5 7C [07:35:17]CheckFolder [07:35:17]dirname=/storage/ofd_packets [07:35:17]CheckFolder done [07:35:17]ProducePacketName [07:35:17]name=ofd_packets/00001999 [07:35:17]NVStorageSaveData ofd_packets/00001999 [07:35:17]File name is /storage/ofd_packets/00001999 [07:35:17]Write 352 bytes [07:35:17]NVStorageSaveData done [07:35:17]OFDSenderStorePacket done [07:35:17]KKMCreateOFDPacket done [07:35:17]OFD Sender: Processing packet 1999 [packets to send 1, broken 0] [07:35:17]ProducePacketName [07:35:17]name=ofd_packets/00001999 [07:35:17]OFD Sender: To server: pG, [07:35:17]CommunicateWithHost lk.salyk.kg:30040 [07:35:17]ConnectInit lk.salyk.kg [07:35:17]NVStorageSaveData kkm_last_timestamp [07:35:17]File name is /storage/kkm_last_timestamp [07:35:17]Write 4 bytes [07:35:17]NVStorageSaveData done [07:35:17]ExternCall_PrintAddStr [07:35:17]wPrintStart [07:35:17]Write to MH i2c: 01 00 00 B3 3B EE [07:35:17]Write i2c OK [07:35:17]MH_I2C_Read... [07:35:17]Read from MH i2c: 01 [07:35:17]MH_I2C_Read... [07:35:17]Read from MH i2c: 01 07 00 [07:35:17]MH_I2C_Read... [07:35:17]Read from MH i2c: 01 07 00 B3 3B 00 00 00 00 00 FF 0F 03 [07:35:17]RasterBufferAndPrint [07:35:17]line Счет N : (3)126306 [07:35:17]line ИНН: 02508201610067 [07:35:17]line Контрольно-Кассовый Чек [07:35:17]line ПРОДАЖА [07:35:17]line Товар: 4870001571030 [07:35:17]line Вода ASU пит н.газ клубн,киви ПЭТ 1л [07:35:17]line 1.000 * 100.00 [07:35:17]line = 100.00 [07:35:17]line НДС 12% НСП 1% [07:35:17]line > о реализуемом товаре [07:35:17]line ИТОГО: 100.00 [07:35:17]line НСП 1% : 0.88 [07:35:17]line НДС 12% : 10.62 [07:35:17]line Наличными: 100.00 [07:35:17]line Безнал.: 0.00 [07:35:17]line Место: АЗС № 127 "Партнер Нефть" [07:35:17]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [07:35:17]line СНО: Общий режим [07:35:17]line Чек 50 28.07.2024 07:35 [07:35:17]line Смена: 13 ФФД: 1.0 [07:35:17]line ЗНМ: 0300000161 [07:35:17]line РНМ: 0000000000189667 [07:35:17]line Версия ККМ: v1.0 [07:35:17]line ФМ: 0000000002094248 [07:35:17]line ФД: 1999 [07:35:17]line ФПД: 170128828823115 [07:35:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T073519&type=1&operation_type=1&fn_number=0000000002094248&fd_number=1999&fm=170128828823115&tin=02508201610067®Number=0000000000189667&sum=10000 [07:35:17]line 0 [07:35:17]Connected sock=10 [07:35:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 42 01 00 00 8B C7 3A 01 6A 09 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 B7 F4 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 CF 07 00 00 35 04 06 00 9A BB 34 68 76 4B 8C 31 9E D1 6A FB D5 7C [07:35:17]written 0, free lines is 4095 [07:35:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 50 D9 47 00 4F F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 CF 07 00 00 F4 03 04 00 28 A0 A5 66 B6 04 01 00 00 6E AE B9 78 A0 23 00 65 [07:35:17]CommunicateWithHost err = 0 [07:35:17]CheckOFDResponse [07:35:17]1017 (14) - 77093643461234 [07:35:17]1041 (16) - 0000000002094248 [07:35:17]1040 (4) - 1999 [07:35:17]1012 (4) - 28.07.2024 01:34 [07:35:17]1206 (1) - 0 [07:35:17]OFD Sender: Remove packet 1999 [07:35:17]ProducePacketName [07:35:17]name=ofd_packets/00001999 [07:35:17]NVStorageDeleteData [07:35:17]Write to MH i2c: 01 00 00 DC 3B 17 [07:35:17]Write i2c OK [07:35:17]MH_I2C_Read... [07:35:17]Read from MH i2c: 01 [07:35:17]MH_I2C_Read... [07:35:17]Read from MH i2c: 01 07 00 [07:35:17]MH_I2C_Read... [07:35:17]Read from MH i2c: 01 07 00 DC 3B 00 00 00 00 00 04 0D 2F [07:35:17]RasterBufferAndPrint [07:35:17]line [07:35:17]line [07:35:17]line [07:35:17]line [07:35:17]line [07:35:17]written 0, free lines is 3341 [07:35:17]MH_Cut [07:35:17]Write to MH i2c: D1 01 00 E3 3B 01 F0 [07:35:17]Write i2c OK [07:35:17]MH_I2C_Read... [07:35:17]Read from MH i2c: D1 [07:35:17]MH_I2C_Read... [07:35:17]Read from MH i2c: D1 01 00 [07:35:17]MH_I2C_Read... [07:35:17]Read from MH i2c: D1 01 00 E3 3B 00 EF [07:35:17]Write to MH i2c: 01 00 00 E4 3B 1F [07:35:17]Write i2c OK [07:35:17]MH_I2C_Read... [07:35:18]OFD Sender: No OFD packet to send [07:35:18]*** Cut start [07:35:18]*** Partial cut [07:35:18]*** CUTSNS_PIN = 1 [07:35:18]*** CUTSNS_PIN = 0 [07:35:18]*** Brake cut motor [07:35:19]Read from MH i2c: 01 [07:35:19]MH_I2C_Read... [07:35:19]*** Stop cut motor [07:35:19]*** Cut end [07:35:19]Read from MH i2c: 01 07 00 [07:35:19]MH_I2C_Read... [07:35:19]Read from MH i2c: 01 07 00 E4 3B 00 00 00 00 00 FF 0F 34 [07:35:19]process_action close_receipt done [07:35:19]requested_data is exist [07:35:19]produce_requested_data [07:35:19]requested_item fm.sn is exist - process it [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 E5 3B 80 11 00 00 00 00 00 00 9A [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 E5 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 EA [07:35:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [07:35:19]wFMCommunicate OK [07:35:19]requested_item fd.num is exist - process it [07:35:19]SAM_PROTO_GetFieldsCounters [07:35:19]wFMCommunicate request_size=4 [07:35:19]MH_SAM_APDU [07:35:19]CAPDU: 80 13 00 00 [07:35:19]Write to MH i2c: E2 08 00 E6 3B 80 13 00 00 00 00 00 00 9D [07:35:19]Write i2c OK [07:35:19]MH_I2C_Read... [07:35:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:35:19]Read from MH i2c: E2 [07:35:19]MH_I2C_Read... [07:35:19]Read from MH i2c: E2 62 00 [07:35:19]MH_I2C_Read... [07:35:19]Read from MH i2c: E2 62 00 E6 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 CF 07 00 00 0E 04 04 00 0D 00 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 40 [07:35:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 CF 07 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:35:19]wFMCommunicate OK [07:35:19]SAM_PROTO_GetFieldsCounters done [07:35:19]requested_item shift.num is exist - process it [07:35:19]requested_item shift.opened is exist - process it [07:35:19]req_shift_opened [07:35:19]FM_GetShiftState [07:35:19]SAM_PROTO_GetShiftState [07:35:19]wFMCommunicate request_size=4 [07:35:19]MH_SAM_APDU [07:35:19]CAPDU: 80 13 01 00 [07:35:19]Write to MH i2c: E2 08 00 E7 3B 80 13 01 00 00 00 00 00 9F [07:35:19]Write i2c OK [07:35:19]MH_I2C_Read... [07:35:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:35:19]Read from MH i2c: E2 [07:35:19]MH_I2C_Read... [07:35:19]Read from MH i2c: E2 0E 00 [07:35:19]MH_I2C_Read... [07:35:19]Read from MH i2c: E2 0E 00 E7 3B 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 93 [07:35:19]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [07:35:19]wFMCommunicate OK [07:35:19]SAM_PROTO_GetShiftState done [07:35:19]FM_GetShiftState done [07:35:19]req_shift_opened done [07:35:19]requested_item shift.open_date is exist - process it [07:35:19]req_shift_open_date [07:35:19]req_shift_open_date done [07:35:19]produce_requested_data done [07:35:19]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":1999,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [07:35:19]process_action_free close_receipt [07:35:19]json_value_free [07:35:19]json_value_free done [07:35:19]process_json_proto returns [07:35:19]Send response to host [07:35:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":1999,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [07:35:19]free response buf [07:35:19]execute_script done [07:35:19]execute_script returns [07:35:19]free content buf [07:35:19]Sock 9.Close socket [07:35:19]Sock 9.Thread stoped [07:35:23]OFD Sender: No OFD packet to send [07:35:28]OFD Sender: No OFD packet to send [07:35:33]OFD Sender: No OFD packet to send [07:35:38]OFD Sender: No OFD packet to send [07:35:43]OFD Sender: No OFD packet to send [07:35:48]OFD Sender: No OFD packet to send [07:35:53]OFD Sender: No OFD packet to send [07:35:58]OFD Sender: No OFD packet to send [07:36:03]OFD Sender: No OFD packet to send [07:36:08]OFD Sender: No OFD packet to send [07:36:13]OFD Sender: No OFD packet to send [07:36:18]OFD Sender: No OFD packet to send [07:36:23]OFD Sender: No OFD packet to send [07:36:28]OFD Sender: No OFD packet to send [07:36:33]OFD Sender: No OFD packet to send [07:36:38]OFD Sender: No OFD packet to send [07:36:43]OFD Sender: No OFD packet to send [07:36:48]OFD Sender: No OFD packet to send [07:36:53]OFD Sender: No OFD packet to send [07:36:58]OFD Sender: No OFD packet to send [07:37:03]OFD Sender: No OFD packet to send [07:37:08]OFD Sender: No OFD packet to send [07:37:13]OFD Sender: No OFD packet to send [07:37:18]OFD Sender: No OFD packet to send [07:37:19]accept exits with 8 [07:37:19]New connection [07:37:19]New thread 3067317604 created [07:37:19]Thread 3067460964 joined [07:37:19]Waiting for new connection... [07:37:19] Sock 8.Parse request [07:37:19]Sock 8.Check first char [07:37:19]Sock 8.First char is OK [07:37:19]request: POST /json_proto HTTP/1.0 [07:37:19]Method: POST [07:37:19]URL: /json_proto [07:37:19]Method is POST - this is cgi request [07:37:19]url: /json_proto [07:37:19]query_string will be loaded in cgi processing [07:37:19]execute_cgi json_proto POST (null) [07:37:19]execute_cgi path=json_proto method=POST [07:37:19]POST find Content-Length [07:37:19]Host: 172.17.45.132:8080 [07:37:19]Content-Length: 1495 [07:37:19]Content-Type: application/json [07:37:19] [07:37:19]POST finish read [07:37:19]Found Content-Length = 1495 [07:37:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126307", "tax_sys" : 0, "items" : [ { "code": "46230607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Bronze Edition", "price" : 150.00, "quantity" : 2.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620006990387", "name": "\u0412\u043E\u0434\u043A\u0430 \u0422\u0430\u043B\u043A\u0430 0,5\u043B", "price" : 550.00, "quantity" : 1.000, "sum" : 550.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202522015", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0413\u0440\u0443\u0448\u0435\u0432\u044B\u0439 1,2\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1050.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:37:19]execute_script... [07:37: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)126307", "tax_sys" : 0, "items" : [ { "code": "46230607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Bronze Edition", "price" : 150.00, "quantity" : 2.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620006990387", "name": "\u0412\u043E\u0434\u043A\u0430 \u0422\u0430\u043B\u043A\u0430 0,5\u043B", "price" : 550.00, "quantity" : 1.000, "sum" : 550.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202522015", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0413\u0440\u0443\u0448\u0435\u0432\u044B\u0439 1,2\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1050.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:37:19]POST & json_proto [07:37:19]process_json_proto [07:37:19]json parsed OK: [07:37:19]protocol is kg_v1.0 [07:37:19]action value=close_receipt [07:37:19]process_action close_receipt [07:37:19]cmd_close_receipt [07:37:19]MH_GetDate [07:37:19]Write to MH i2c: F0 00 00 E8 3B 12 [07:37:19]Write i2c OK [07:37:19]MH_I2C_Read... [07:37:19]Read from MH i2c: F0 [07:37:19]MH_I2C_Read... [07:37:19]Read from MH i2c: F0 09 00 [07:37:19]MH_I2C_Read... [07:37:19]Read from MH i2c: F0 09 00 E8 3B 00 34 F5 A5 66 E3 0B 90 66 33 [07:37:19]GetLastDocTimeStamp 1722152119 [07:37:20]current date 1722152244 [07:37:20]FM_GetShiftState [07:37:20]SAM_PROTO_GetShiftState [07:37:20]wFMCommunicate request_size=4 [07:37:20]MH_SAM_APDU [07:37:20]CAPDU: 80 13 01 00 [07:37:20]Write to MH i2c: E2 08 00 E9 3B 80 13 01 00 00 00 00 00 A1 [07:37:20]Write i2c OK [07:37:20]MH_I2C_Read... [07:37:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:37:20]Read from MH i2c: E2 [07:37:20]MH_I2C_Read... [07:37:20]Read from MH i2c: E2 0E 00 [07:37:20]MH_I2C_Read... [07:37:20]Read from MH i2c: E2 0E 00 E9 3B 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 95 [07:37:20]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [07:37:20]wFMCommunicate OK [07:37:20]SAM_PROTO_GetShiftState done [07:37:20]FM_GetShiftState done [07:37:20]opened in 1722125648 [07:37:20]opened+sec_in_day 1722212048 [07:37:20]quantity*price = 30000 [07:37:20]sum+1 = 30001 [07:37:20]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4620006990387 Водка Талка 0,5л 1.000 * 550.00 = 550.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870202522015 Напиток Maxi Чай Грушевый 1,2л 1.000 * 110.00 = 110.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4660085515163 Шок Батончик Сникерс супер 95/80г 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 1050.00 НСП 1% : 9.29 НДС 12% : 111.51 Наличными: 1050.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 51 28.07.2024 07:37 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2000 ФПД: 215995695381953 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T073724&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2000&fm=215995695381953&tin=02508201610067®Number=0000000000189667&sum=105000 0 [07:37:21]StoreToDocumentArchive [07:37:21]shift 13 fd 2000 [07:37:21]save to /storage/0013/doc_00002000 [07:37:21]save last doc name /storage/0013/doc_00002000 to /storage/kkm_last_doc_name [07:37:21]save OK [07:37:21]Clear old archive folders... [07:37:21]ProcessDocumentItem done err = 0, tmpTLVsize=626 [07:37:21]tlvbuf is 0202F0C0 [07:37:21]SAM_PROTO_ClearQueue [07:37:21]wFMCommunicate request_size=4 [07:37:21]MH_SAM_APDU [07:37:21]CAPDU: 80 09 00 00 [07:37:21]Write to MH i2c: E2 08 00 F6 3B 80 09 00 00 00 00 00 00 A3 [07:37:21]Write i2c OK [07:37:21]MH_I2C_Read... [07:37:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:37:21]Read from MH i2c: E2 [07:37:21]MH_I2C_Read... [07:37:21]Read from MH i2c: E2 03 00 [07:37:21]MH_I2C_Read... [07:37:21]Read from MH i2c: E2 03 00 F6 3B 00 90 00 A5 [07:37:21]RAPDU: 90 00 [07:37:21]wFMCommunicate OK [07:37:21]SAM_PROTO_ClearQueue done [07:37:21]KKMCreateOFDPacket [07:37:21]OFDProtocolAddRootSTLVToBuf [07:37:21]FM_MakeSignedData [07:37:21]FM_MakeSignedData [07:37:21]SAM_PROTO_SignData [07:37:21]wFMCommunicate request_size=4 [07:37:21]MH_SAM_APDU [07:37:21]CAPDU: 80 0D 01 02 [07:37:21]Write to MH i2c: E2 08 00 F7 3B 80 0D 01 02 00 00 00 00 AB [07:37:21]Write i2c OK [07:37:21]MH_I2C_Read... [07:37:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:37:21]Read from MH i2c: E2 [07:37:21]MH_I2C_Read... [07:37:21]Read from MH i2c: E2 03 00 [07:37:21]MH_I2C_Read... [07:37:21]Read from MH i2c: E2 03 00 F7 3B 00 90 00 A6 [07:37:21]RAPDU: 90 00 [07:37:21]wFMCommunicate OK [07:37:21]wFMCommunicate request_size=255 [07:37:21]MH_SAM_APDU [07:37:21]CAPDU: 80 0D 02 02 FA 03 00 72 02 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 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 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 30 33 38 37 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 D6 00 00 00 00 13 04 06 00 D8 D6 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 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 [07:37:21]Write to MH i2c: E2 02 01 F8 3B 80 0D 02 02 FA 00 03 00 72 02 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 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 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 30 33 38 37 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 D6 00 00 00 00 13 04 06 00 D8 D6 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 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 00 00 FF [07:37:21]Write i2c OK [07:37:21]MH_I2C_Read... [07:37:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:37:21]Read from MH i2c: E2 [07:37:21]MH_I2C_Read... [07:37:21]Read from MH i2c: E2 03 00 [07:37:21]MH_I2C_Read... [07:37:21]Read from MH i2c: E2 03 00 F8 3B 00 90 00 A7 [07:37:21]RAPDU: 90 00 [07:37:21]wFMCommunicate OK [07:37:21]wFMCommunicate request_size=255 [07:37:21]MH_SAM_APDU [07:37:21]CAPDU: 80 0D 02 02 FA D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 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 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 9A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 03 00 00 00 00 EE 03 [07:37:21]Write to MH i2c: E2 02 01 F9 3B 80 0D 02 02 FA 00 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 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 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 9A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 03 00 00 00 00 EE 03 00 00 C4 [07:37:21]Write i2c OK [07:37:21]MH_I2C_Read... [07:37:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:37:22]Read from MH i2c: E2 [07:37:22]MH_I2C_Read... [07:37:22]Read from MH i2c: E2 03 00 [07:37:22]MH_I2C_Read... [07:37:22]Read from MH i2c: E2 03 00 F9 3B 00 90 00 A8 [07:37:22]RAPDU: 90 00 [07:37:22]wFMCommunicate OK [07:37:22]wFMCommunicate request_size=135 [07:37:22]MH_SAM_APDU [07:37:22]CAPDU: 80 0D 02 02 82 0F 00 F2 03 01 00 01 F3 03 06 00 8F 2B 00 00 00 00 07 04 06 00 28 9A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 34 F5 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D0 07 00 00 35 04 06 00 C4 72 6A B2 3D C1 [07:37:22]Write to MH i2c: E2 8A 00 FA 3B 80 0D 02 02 82 00 0F 00 F2 03 01 00 01 F3 03 06 00 8F 2B 00 00 00 00 07 04 06 00 28 9A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 34 F5 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D0 07 00 00 35 04 06 00 C4 72 6A B2 3D C1 00 00 10 [07:37:22]Write i2c OK [07:37:22]MH_I2C_Read... [07:37:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:37:22]Read from MH i2c: E2 [07:37:22]MH_I2C_Read... [07:37:22]Read from MH i2c: E2 03 00 [07:37:22]MH_I2C_Read... [07:37:22]Read from MH i2c: E2 03 00 FA 3B 00 90 00 A9 [07:37:22]RAPDU: 90 00 [07:37:22]wFMCommunicate OK [07:37:22]wFMCommunicate request_size=4 [07:37:22]MH_SAM_APDU [07:37:22]CAPDU: 80 0D 03 02 [07:37:22]Write to MH i2c: E2 08 00 FB 3B 80 0D 03 02 00 00 00 00 B1 [07:37:22]Write i2c OK [07:37:22]MH_I2C_Read... [07:37:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:37:22]Read from MH i2c: E2 [07:37:22]MH_I2C_Read... [07:37:22]Read from MH i2c: E2 0B 00 [07:37:22]MH_I2C_Read... [07:37:22]Read from MH i2c: E2 0B 00 FB 3B 00 20 46 FF F9 DB A2 D5 63 90 00 C5 [07:37:22]RAPDU: 20 46 FF F9 DB A2 D5 63 90 00 [07:37:22]wFMCommunicate OK [07:37:22]SAM_PROTO_SignData done [07:37:22]FM_MakeSignedData done [07:37:22]CreateOFDProtocolMessage [07:37:22]wFMCommunicate request_size=4 [07:37:22]MH_SAM_APDU [07:37:22]CAPDU: 80 11 00 00 [07:37:22]Write to MH i2c: E2 08 00 FC 3B 80 11 00 00 00 00 00 00 B1 [07:37:22]Write i2c OK [07:37:22]MH_I2C_Read... [07:37:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:37:22]Read from MH i2c: E2 [07:37:22]MH_I2C_Read... [07:37:22]Read from MH i2c: E2 17 00 [07:37:22]MH_I2C_Read... [07:37:22]Read from MH i2c: E2 17 00 FC 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 01 [07:37:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [07:37:22]wFMCommunicate OK [07:37:22]CreateOFDProtocolMessage done [07:37:22]OFDSenderStorePacket 2000 [07:37:22]StoreOFDPacket docnum=2000 [07:37:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 86 02 00 00 79 45 7E 02 CF 27 5A 03 01 00 03 00 72 02 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 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 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 30 33 38 37 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 D6 00 00 00 00 13 04 06 00 D8 D6 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 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 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 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 9A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 2B 00 00 00 00 07 04 06 00 28 9A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 34 F5 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D0 07 00 00 35 04 06 00 C4 72 6A B2 3D C1 20 46 FF F9 DB A2 D5 63 [07:37:22]CheckFolder [07:37:22]dirname=/storage/ofd_packets [07:37:22]CheckFolder done [07:37:22]ProducePacketName [07:37:22]name=ofd_packets/00002000 [07:37:22]NVStorageSaveData ofd_packets/00002000 [07:37:22]File name is /storage/ofd_packets/00002000 [07:37:22]Write 676 bytes [07:37:22]NVStorageSaveData done [07:37:22]OFDSenderStorePacket done [07:37:22]KKMCreateOFDPacket done [07:37:22]NVStorageSaveData kkm_last_timestamp [07:37:22]File name is /storage/kkm_last_timestamp [07:37:22]Write 4 bytes [07:37:22]NVStorageSaveData done [07:37:22]ExternCall_PrintAddStr [07:37:22]wPrintStart [07:37:22]Write to MH i2c: 01 00 00 FD 3B 38 [07:37:22]Write i2c OK [07:37:22]MH_I2C_Read... [07:37:22]Read from MH i2c: 01 [07:37:22]MH_I2C_Read... [07:37:22]Read from MH i2c: 01 07 00 [07:37:22]MH_I2C_Read... [07:37:22]Read from MH i2c: 01 07 00 FD 3B 00 00 00 00 00 FF 0F 4D [07:37:22]RasterBufferAndPrint [07:37:22]line Счет N : (3)126307 [07:37:22]line ИНН: 02508201610067 [07:37:22]line Контрольно-Кассовый Чек [07:37:22]line ПРОДАЖА [07:37:22]line Товар: 46230607 [07:37:22]line Сигареты Richmond Bronze Edition [07:37:22]line 2.000 * 150.00 [07:37:22]line = 300.00 [07:37:22]line НДС 12% НСП 1% [07:37:22]line > о реализуемом товаре [07:37:22]line Товар: 4620006990387 [07:37:22]line Водка Талка 0,5л [07:37:22]line 1.000 * 550.00 [07:37:22]line = 550.00 [07:37:22]line НДС 12% НСП 1% [07:37:22]line > о реализуемом товаре [07:37:22]line Товар: 4870202522015 [07:37:22]line Напиток Maxi Чай Грушевый 1,2л [07:37:22]line 1.000 * 110.00 [07:37:22]line = 110.00 [07:37:22]line НДС 12% НСП 1% [07:37:22]line > о реализуемом товаре [07:37:22]line Товар: 4660085515163 [07:37:22]line Шок Батончик Сникерс супер 95/80г [07:37:22]line 1.000 * 90.00 [07:37:22]line = 90.00 [07:37:22]line НДС 12% НСП 1% [07:37:22]line > о реализуемом товаре [07:37:22]line ИТОГО: 1050.00 [07:37:22]line НСП 1% : 9.29 [07:37:22]line НДС 12% : 111.51 [07:37:22]line Наличными: 1050.00 [07:37:22]line Безнал.: 0.00 [07:37:22]line Место: АЗС № 127 "Партнер Нефть" [07:37:22]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [07:37:22]line СНО: Общий режим [07:37:22]line Чек 51 28.07.2024 07:37 [07:37:22]line Смена: 13 ФФД: 1.0 [07:37:22]line ЗНМ: 0300000161 [07:37:22]line РНМ: 0000000000189667 [07:37:22]line Версия ККМ: v1.0 [07:37:22]line ФМ: 0000000002094248 [07:37:22]line ФД: 2000 [07:37:22]line ФПД: 215995695381953 [07:37:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T073724&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2000&fm=215995695381953&tin=02508201610067®Number=0000000000189667&sum=105000 [07:37:22]line 0 [07:37:22]OFD Sender: Processing packet 2000 [packets to send 1, broken 0] [07:37:22]ProducePacketName [07:37:22]name=ofd_packets/00002000 [07:37:22]OFD Sender: To server: pG, [07:37:22]CommunicateWithHost lk.salyk.kg:30040 [07:37:22]ConnectInit lk.salyk.kg [07:37:22]written 0, free lines is 4095 [07:37:22]Connected sock=10 [07:37:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 86 02 00 00 79 45 7E 02 CF 27 5A 03 01 00 03 00 72 02 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 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 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 30 33 38 37 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 D6 00 00 00 00 13 04 06 00 D8 D6 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 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 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 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 9A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 2B 00 00 00 00 07 04 06 00 28 9A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 34 F5 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D0 07 00 00 35 04 06 00 C4 72 6A B2 3D C1 20 46 FF F9 DB A2 D5 63 [07:37:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 66 D9 47 00 3C 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 32 30 39 34 32 34 38 10 04 04 00 D0 07 00 00 F4 03 04 00 A5 A0 A5 66 B6 04 01 00 00 8B D9 F8 F2 3D 1D 96 36 [07:37:23]CommunicateWithHost err = 0 [07:37:23]CheckOFDResponse [07:37:23]1017 (14) - 77093643461234 [07:37:23]1041 (16) - 0000000002094248 [07:37:23]1040 (4) - 2000 [07:37:23]1012 (4) - 28.07.2024 01:36 [07:37:23]1206 (1) - 0 [07:37:23]OFD Sender: Remove packet 2000 [07:37:23]ProducePacketName [07:37:23]name=ofd_packets/00002000 [07:37:23]NVStorageDeleteData [07:37:23]Write to MH i2c: 01 00 00 3A 3C 76 [07:37:23]Write i2c OK [07:37:23]MH_I2C_Read... [07:37:23]Read from MH i2c: 01 [07:37:23]MH_I2C_Read... [07:37:23]Read from MH i2c: 01 07 00 [07:37:23]MH_I2C_Read... [07:37:23]Read from MH i2c: 01 07 00 3A 3C 00 00 00 00 00 FA 0B 82 [07:37:23]RasterBufferAndPrint [07:37:23]line [07:37:23]line [07:37:23]line [07:37:23]line [07:37:23]line [07:37:23]written 0, free lines is 3076 [07:37:23]MH_Cut [07:37:23]Write to MH i2c: D1 01 00 41 3C 01 4F [07:37:23]Write i2c OK [07:37:23]MH_I2C_Read... [07:37:23]Read from MH i2c: D1 [07:37:23]MH_I2C_Read... [07:37:23]Read from MH i2c: D1 01 00 [07:37:23]MH_I2C_Read... [07:37:23]Read from MH i2c: D1 01 00 41 3C 00 4E [07:37:23]Write to MH i2c: 01 00 00 42 3C 7E [07:37:23]Write i2c OK [07:37:23]MH_I2C_Read... [07:37:23]OFD Sender: No OFD packet to send [07:37:24]*** Cut start [07:37:24]*** Partial cut [07:37:24]*** CUTSNS_PIN = 1 [07:37:24]*** CUTSNS_PIN = 0 [07:37:24]*** Brake cut motor [07:37:24]Read from MH i2c: 01 [07:37:24]MH_I2C_Read... [07:37:24]*** Stop cut motor [07:37:24]*** Cut end [07:37:24]Read from MH i2c: 01 07 00 [07:37:24]MH_I2C_Read... [07:37:24]Read from MH i2c: 01 07 00 42 3C 00 00 00 00 00 FF 0F 93 [07:37:24]process_action close_receipt done [07:37:24]requested_data is exist [07:37:24]produce_requested_data [07:37:24]requested_item fm.sn is exist - process it [07:37:24]wFMCommunicate request_size=4 [07:37:24]MH_SAM_APDU [07:37:24]CAPDU: 80 11 00 00 [07:37:24]Write to MH i2c: E2 08 00 43 3C 80 11 00 00 00 00 00 00 F9 [07:37:24]Write i2c OK [07:37:24]MH_I2C_Read... [07:37:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:37:24]Read from MH i2c: E2 [07:37:24]MH_I2C_Read... [07:37:24]Read from MH i2c: E2 17 00 [07:37:24]MH_I2C_Read... [07:37:24]Read from MH i2c: E2 17 00 43 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 49 [07:37:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [07:37:24]wFMCommunicate OK [07:37:24]requested_item fd.num is exist - process it [07:37:24]SAM_PROTO_GetFieldsCounters [07:37:24]wFMCommunicate request_size=4 [07:37:24]MH_SAM_APDU [07:37:24]CAPDU: 80 13 00 00 [07:37:24]Write to MH i2c: E2 08 00 44 3C 80 13 00 00 00 00 00 00 FC [07:37:24]Write i2c OK [07:37:24]MH_I2C_Read... [07:37:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:37:25]Read from MH i2c: E2 [07:37:25]MH_I2C_Read... [07:37:25]Read from MH i2c: E2 62 00 [07:37:25]MH_I2C_Read... [07:37:25]Read from MH i2c: E2 62 00 44 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 D0 07 00 00 0E 04 04 00 0D 00 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 A3 [07:37:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 D0 07 00 00 0E 04 04 00 0D 00 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 [07:37:25]wFMCommunicate OK [07:37:25]SAM_PROTO_GetFieldsCounters done [07:37:25]requested_item shift.num is exist - process it [07:37:25]requested_item shift.opened is exist - process it [07:37:25]req_shift_opened [07:37:25]FM_GetShiftState [07:37:25]SAM_PROTO_GetShiftState [07:37:25]wFMCommunicate request_size=4 [07:37:25]MH_SAM_APDU [07:37:25]CAPDU: 80 13 01 00 [07:37:25]Write to MH i2c: E2 08 00 45 3C 80 13 01 00 00 00 00 00 FE [07:37:25]Write i2c OK [07:37:25]MH_I2C_Read... [07:37:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:37:25]Read from MH i2c: E2 [07:37:25]MH_I2C_Read... [07:37:25]Read from MH i2c: E2 0E 00 [07:37:25]MH_I2C_Read... [07:37:25]Read from MH i2c: E2 0E 00 45 3C 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 F2 [07:37:25]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [07:37:25]wFMCommunicate OK [07:37:25]SAM_PROTO_GetShiftState done [07:37:25]FM_GetShiftState done [07:37:25]req_shift_opened done [07:37:25]requested_item shift.open_date is exist - process it [07:37:25]req_shift_open_date [07:37:25]req_shift_open_date done [07:37:25]produce_requested_data done [07:37:25]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2000,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [07:37:25]process_action_free close_receipt [07:37:25]json_value_free [07:37:25]json_value_free done [07:37:25]process_json_proto returns [07:37:25]Send response to host [07:37:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2000,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [07:37:25]free response buf [07:37:25]execute_script done [07:37:25]execute_script returns [07:37:25]free content buf [07:37:25]Sock 8.Close socket [07:37:25]Sock 8.Thread stoped [07:37:28]OFD Sender: No OFD packet to send [07:37:33]OFD Sender: No OFD packet to send [07:37:38]OFD Sender: No OFD packet to send [07:37:43]OFD Sender: No OFD packet to send [07:37:48]OFD Sender: No OFD packet to send [07:37:53]OFD Sender: No OFD packet to send [07:37:58]OFD Sender: No OFD packet to send [07:38:03]OFD Sender: No OFD packet to send [07:38:08]OFD Sender: No OFD packet to send [07:38:13]OFD Sender: No OFD packet to send [07:38:18]OFD Sender: No OFD packet to send [07:38:23]OFD Sender: No OFD packet to send [07:38:28]OFD Sender: No OFD packet to send [07:38:33]OFD Sender: No OFD packet to send [07:38:38]OFD Sender: No OFD packet to send [07:38:43]OFD Sender: No OFD packet to send [07:38:48]OFD Sender: No OFD packet to send [07:38:53]OFD Sender: No OFD packet to send [07:38:58]OFD Sender: No OFD packet to send [07:39:03]OFD Sender: No OFD packet to send [07:39:08]OFD Sender: No OFD packet to send [07:39:13]OFD Sender: No OFD packet to send [07:39:18]OFD Sender: No OFD packet to send [07:39:23]OFD Sender: No OFD packet to send [07:39:28]OFD Sender: No OFD packet to send [07:39:33]OFD Sender: No OFD packet to send [07:39:38]OFD Sender: No OFD packet to send [07:39:43]OFD Sender: No OFD packet to send [07:39:48]OFD Sender: No OFD packet to send [07:39:53]OFD Sender: No OFD packet to send [07:39:58]OFD Sender: No OFD packet to send [07:40:03]OFD Sender: No OFD packet to send [07:40:08]OFD Sender: No OFD packet to send [07:40:13]OFD Sender: No OFD packet to send [07:40:18]OFD Sender: No OFD packet to send [07:40:23]OFD Sender: No OFD packet to send [07:40:28]OFD Sender: No OFD packet to send [07:40:33]OFD Sender: No OFD packet to send [07:40:38]OFD Sender: No OFD packet to send [07:40:43]OFD Sender: No OFD packet to send [07:40:48]OFD Sender: No OFD packet to send [07:40:53]OFD Sender: No OFD packet to send [07:40:58]OFD Sender: No OFD packet to send [07:41:03]OFD Sender: No OFD packet to send [07:41:08]OFD Sender: No OFD packet to send [07:41:13]OFD Sender: No OFD packet to send [07:41:18]OFD Sender: No OFD packet to send [07:41:23]OFD Sender: No OFD packet to send [07:41:28]OFD Sender: No OFD packet to send [07:41:33]OFD Sender: No OFD packet to send [07:41:38]OFD Sender: No OFD packet to send [07:41:43]OFD Sender: No OFD packet to send [07:41:46]accept exits with 9 [07:41:46]New connection [07:41:46]New thread 3067460964 created [07:41:46]Thread 3067317604 joined [07:41:46]Waiting for new connection... [07:41:46] Sock 9.Parse request [07:41:46]Sock 9.Check first char [07:41:46]Sock 9.First char is OK [07:41:46]request: POST /json_proto HTTP/1.0 [07:41:46]Method: POST [07:41:46]URL: /json_proto [07:41:46]Method is POST - this is cgi request [07:41:46]url: /json_proto [07:41:46]query_string will be loaded in cgi processing [07:41:46]execute_cgi json_proto POST (null) [07:41:46]execute_cgi path=json_proto method=POST [07:41:46]POST find Content-Length [07:41:46]Host: 172.17.45.132:8080 [07:41:46]Content-Length: 670 [07:41:46]Content-Type: application/json [07:41:46] [07:41:46]POST finish read [07:41:46]Found Content-Length = 670 [07:41:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126308", "tax_sys" : 0, "items" : [ { "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 170.00, "quantity" : 2.000, "sum" : 340.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 340.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:41:46]execute_script... [07:41:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126308", "tax_sys" : 0, "items" : [ { "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 170.00, "quantity" : 2.000, "sum" : 340.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 340.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:41:46]POST & json_proto [07:41:46]process_json_proto [07:41:46]json parsed OK: [07:41:46]protocol is kg_v1.0 [07:41:46]action value=close_receipt [07:41:46]process_action close_receipt [07:41:46]cmd_close_receipt [07:41:46]MH_GetDate [07:41:46]Write to MH i2c: F0 00 00 46 3C 71 [07:41:46]Write i2c OK [07:41:46]MH_I2C_Read... [07:41:46]Read from MH i2c: F0 [07:41:46]MH_I2C_Read... [07:41:46]Read from MH i2c: F0 09 00 [07:41:46]MH_I2C_Read... [07:41:46]Read from MH i2c: F0 09 00 46 3C 00 3E F6 A5 66 E3 0B 90 66 9D [07:41:46]GetLastDocTimeStamp 1722152244 [07:41:46]current date 1722152510 [07:41:46]FM_GetShiftState [07:41:46]SAM_PROTO_GetShiftState [07:41:46]wFMCommunicate request_size=4 [07:41:46]MH_SAM_APDU [07:41:46]CAPDU: 80 13 01 00 [07:41:46]Write to MH i2c: E2 08 00 47 3C 80 13 01 00 00 00 00 00 00 [07:41:46]Write i2c OK [07:41:46]MH_I2C_Read... [07:41:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:41:46]Read from MH i2c: E2 [07:41:46]MH_I2C_Read... [07:41:46]Read from MH i2c: E2 0E 00 [07:41:46]MH_I2C_Read... [07:41:46]Read from MH i2c: E2 0E 00 47 3C 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 F4 [07:41:46]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [07:41:46]wFMCommunicate OK [07:41:46]SAM_PROTO_GetShiftState done [07:41:46]FM_GetShiftState done [07:41:46]opened in 1722125648 [07:41:46]opened+sec_in_day 1722212048 [07:41:46]quantity*price = 34000 [07:41:46]sum+1 = 34001 [07:41:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 340.00 НСП 1% : 3.01 НДС 12% : 36.11 Наличными: 340.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 52 28.07.2024 07:41 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2001 ФПД: 184376010409057 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T074150&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2001&fm=184376010409057&tin=02508201610067®Number=0000000000189667&sum=34000 0 [07:41:47]StoreToDocumentArchive [07:41:47]shift 13 fd 2001 [07:41:47]save to /storage/0013/doc_00002001 [07:41:47]save last doc name /storage/0013/doc_00002001 to /storage/kkm_last_doc_name [07:41:47]save OK [07:41:47]Clear old archive folders... [07:41:47]ProcessDocumentItem done err = 0, tmpTLVsize=282 [07:41:47]tlvbuf is 01FFBCB0 [07:41:47]SAM_PROTO_ClearQueue [07:41:47]wFMCommunicate request_size=4 [07:41:47]MH_SAM_APDU [07:41:47]CAPDU: 80 09 00 00 [07:41:47]Write to MH i2c: E2 08 00 54 3C 80 09 00 00 00 00 00 00 02 [07:41:47]Write i2c OK [07:41:47]MH_I2C_Read... [07:41:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:41:47]Read from MH i2c: E2 [07:41:47]MH_I2C_Read... [07:41:47]Read from MH i2c: E2 03 00 [07:41:47]MH_I2C_Read... [07:41:47]Read from MH i2c: E2 03 00 54 3C 00 90 00 04 [07:41:47]RAPDU: 90 00 [07:41:47]wFMCommunicate OK [07:41:47]SAM_PROTO_ClearQueue done [07:41:47]KKMCreateOFDPacket [07:41:47]OFDProtocolAddRootSTLVToBuf [07:41:47]FM_MakeSignedData [07:41:47]FM_MakeSignedData [07:41:47]SAM_PROTO_SignData [07:41:47]wFMCommunicate request_size=4 [07:41:47]MH_SAM_APDU [07:41:47]CAPDU: 80 0D 01 02 [07:41:47]Write to MH i2c: E2 08 00 55 3C 80 0D 01 02 00 00 00 00 0A [07:41:47]Write i2c OK [07:41:47]MH_I2C_Read... [07:41:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:41:47]Read from MH i2c: E2 [07:41:47]MH_I2C_Read... [07:41:47]Read from MH i2c: E2 03 00 [07:41:47]MH_I2C_Read... [07:41:47]Read from MH i2c: E2 03 00 55 3C 00 90 00 05 [07:41:47]RAPDU: 90 00 [07:41:47]wFMCommunicate OK [07:41:47]wFMCommunicate request_size=255 [07:41:47]MH_SAM_APDU [07:41:47]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 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 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 68 42 00 00 00 00 13 04 06 00 D0 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 3E F6 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 [07:41:47]Write to MH i2c: E2 02 01 56 3C 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 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 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 68 42 00 00 00 00 13 04 06 00 D0 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 3E F6 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 00 00 3B [07:41:47]Write i2c OK [07:41:47]MH_I2C_Read... [07:41:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:41:47]Read from MH i2c: E2 [07:41:47]MH_I2C_Read... [07:41:47]Read from MH i2c: E2 03 00 [07:41:47]MH_I2C_Read... [07:41:47]Read from MH i2c: E2 03 00 56 3C 00 90 00 06 [07:41:47]RAPDU: 90 00 [07:41:47]wFMCommunicate OK [07:41:47]wFMCommunicate request_size=41 [07:41:47]MH_SAM_APDU [07:41:47]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D1 07 00 00 35 04 06 00 A7 B0 62 9B 04 61 [07:41:47]Write to MH i2c: E2 2C 00 57 3C 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D1 07 00 00 35 04 06 00 A7 B0 62 9B 04 61 00 00 6A [07:41:47]Write i2c OK [07:41:47]MH_I2C_Read... [07:41:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:41:47]Read from MH i2c: E2 [07:41:47]MH_I2C_Read... [07:41:47]Read from MH i2c: E2 03 00 [07:41:47]MH_I2C_Read... [07:41:47]Read from MH i2c: E2 03 00 57 3C 00 90 00 07 [07:41:47]RAPDU: 90 00 [07:41:47]wFMCommunicate OK [07:41:47]wFMCommunicate request_size=4 [07:41:47]MH_SAM_APDU [07:41:47]CAPDU: 80 0D 03 02 [07:41:47]Write to MH i2c: E2 08 00 58 3C 80 0D 03 02 00 00 00 00 0F [07:41:47]Write i2c OK [07:41:47]MH_I2C_Read... [07:41:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:41:48]Read from MH i2c: E2 [07:41:48]MH_I2C_Read... [07:41:48]Read from MH i2c: E2 0B 00 [07:41:48]MH_I2C_Read... [07:41:48]Read from MH i2c: E2 0B 00 58 3C 00 4D 6F 86 A0 6F AE 36 DC 90 00 21 [07:41:48]RAPDU: 4D 6F 86 A0 6F AE 36 DC 90 00 [07:41:48]wFMCommunicate OK [07:41:48]SAM_PROTO_SignData done [07:41:48]FM_MakeSignedData done [07:41:48]CreateOFDProtocolMessage [07:41:48]wFMCommunicate request_size=4 [07:41:48]MH_SAM_APDU [07:41:48]CAPDU: 80 11 00 00 [07:41:48]Write to MH i2c: E2 08 00 59 3C 80 11 00 00 00 00 00 00 0F [07:41:48]Write i2c OK [07:41:48]MH_I2C_Read... [07:41:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:41:48]Read from MH i2c: E2 [07:41:48]MH_I2C_Read... [07:41:48]Read from MH i2c: E2 17 00 [07:41:48]MH_I2C_Read... [07:41:48]Read from MH i2c: E2 17 00 59 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 5F [07:41:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [07:41:48]wFMCommunicate OK [07:41:48]CreateOFDProtocolMessage done [07:41:48]OFDSenderStorePacket 2001 [07:41:48]StoreOFDPacket docnum=2001 [07:41:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2E 01 00 00 F3 3B 26 01 07 10 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 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 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 68 42 00 00 00 00 13 04 06 00 D0 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 3E F6 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D1 07 00 00 35 04 06 00 A7 B0 62 9B 04 61 4D 6F 86 A0 6F AE 36 DC [07:41:48]CheckFolder [07:41:48]dirname=/storage/ofd_packets [07:41:48]CheckFolder done [07:41:48]ProducePacketName [07:41:48]name=ofd_packets/00002001 [07:41:48]NVStorageSaveData ofd_packets/00002001 [07:41:48]File name is /storage/ofd_packets/00002001 [07:41:48]Write 332 bytes [07:41:48]NVStorageSaveData done [07:41:48]OFDSenderStorePacket done [07:41:48]KKMCreateOFDPacket done [07:41:48]NVStorageSaveData kkm_last_timestamp [07:41:48]File name is /storage/kkm_last_timestamp [07:41:48]Write 4 bytes [07:41:48]NVStorageSaveData done [07:41:48]ExternCall_PrintAddStr [07:41:48]wPrintStart [07:41:48]Write to MH i2c: 01 00 00 5A 3C 96 [07:41:48]Write i2c OK [07:41:48]MH_I2C_Read... [07:41:48]Read from MH i2c: 01 [07:41:48]MH_I2C_Read... [07:41:48]Read from MH i2c: 01 07 00 [07:41:48]MH_I2C_Read... [07:41:48]Read from MH i2c: 01 07 00 5A 3C 00 00 00 00 00 FF 0F AB [07:41:48]RasterBufferAndPrint [07:41:48]line Счет N : (3)126308 [07:41:48]line ИНН: 02508201610067 [07:41:48]line Контрольно-Кассовый Чек [07:41:48]line ПРОДАЖА [07:41:48]line Товар: 4700000480357 [07:41:48]line Пиво шахтерское 1л ПЭТ [07:41:48]line 2.000 * 170.00 [07:41:48]line = 340.00 [07:41:48]line НДС 12% НСП 1% [07:41:48]line > о реализуемом товаре [07:41:48]line ИТОГО: 340.00 [07:41:48]line НСП 1% : 3.01 [07:41:48]line НДС 12% : 36.11 [07:41:48]line Наличными: 340.00 [07:41:48]line Безнал.: 0.00 [07:41:48]line Место: АЗС № 127 "Партнер Нефть" [07:41:48]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [07:41:48]line СНО: Общий режим [07:41:48]line Чек 52 28.07.2024 07:41 [07:41:48]line Смена: 13 ФФД: 1.0 [07:41:48]line ЗНМ: 0300000161 [07:41:48]line РНМ: 0000000000189667 [07:41:48]line Версия ККМ: v1.0 [07:41:48]line ФМ: 0000000002094248 [07:41:48]line ФД: 2001 [07:41:48]line ФПД: 184376010409057 [07:41:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T074150&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2001&fm=184376010409057&tin=02508201610067®Number=0000000000189667&sum=34000 [07:41:48]line 0 [07:41:48]OFD Sender: Processing packet 2001 [packets to send 1, broken 0] [07:41:48]ProducePacketName [07:41:48]name=ofd_packets/00002001 [07:41:48]OFD Sender: To server: pG, [07:41:48]CommunicateWithHost lk.salyk.kg:30040 [07:41:48]ConnectInit lk.salyk.kg [07:41:48]written 0, free lines is 4095 [07:41:48]Connected sock=10 [07:41:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2E 01 00 00 F3 3B 26 01 07 10 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 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 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 68 42 00 00 00 00 13 04 06 00 D0 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 3E F6 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D1 07 00 00 35 04 06 00 A7 B0 62 9B 04 61 4D 6F 86 A0 6F AE 36 DC [07:41:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 E4 FD 47 00 93 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D1 07 00 00 F4 03 04 00 AF A1 A5 66 B6 04 01 00 00 28 F4 3D 56 EF 7C 8E 43 [07:41:48]CommunicateWithHost err = 0 [07:41:48]CheckOFDResponse [07:41:48]1017 (14) - 77093643461234 [07:41:48]1041 (16) - 0000000002094248 [07:41:48]1040 (4) - 2001 [07:41:48]1012 (4) - 28.07.2024 01:41 [07:41:48]1206 (1) - 0 [07:41:48]OFD Sender: Remove packet 2001 [07:41:48]ProducePacketName [07:41:48]name=ofd_packets/00002001 [07:41:48]NVStorageDeleteData [07:41:48]Write to MH i2c: 01 00 00 82 3C BE [07:41:48]Write i2c OK [07:41:48]MH_I2C_Read... [07:41:48]Read from MH i2c: 01 [07:41:48]MH_I2C_Read... [07:41:48]Read from MH i2c: 01 07 00 [07:41:48]MH_I2C_Read... [07:41:48]Read from MH i2c: 01 07 00 82 3C 00 00 00 00 00 1E 0D F0 [07:41:48]RasterBufferAndPrint [07:41:48]line [07:41:48]line [07:41:48]line [07:41:48]line [07:41:48]line [07:41:48]written 0, free lines is 3363 [07:41:48]MH_Cut [07:41:48]Write to MH i2c: D1 01 00 89 3C 01 97 [07:41:48]Write i2c OK [07:41:48]MH_I2C_Read... [07:41:48]Read from MH i2c: D1 [07:41:48]MH_I2C_Read... [07:41:48]Read from MH i2c: D1 01 00 [07:41:48]MH_I2C_Read... [07:41:48]Read from MH i2c: D1 01 00 89 3C 00 96 [07:41:48]Write to MH i2c: 01 00 00 8A 3C C6 [07:41:48]Write i2c OK [07:41:48]MH_I2C_Read... [07:41:49]OFD Sender: No OFD packet to send [07:41:49]*** Cut start [07:41:49]*** Partial cut [07:41:49]*** CUTSNS_PIN = 1 [07:41:49]*** CUTSNS_PIN = 0 [07:41:49]*** Brake cut motor [07:41:50]Read from MH i2c: 01 [07:41:50]MH_I2C_Read... [07:41:50]*** Stop cut motor [07:41:50]*** Cut end [07:41:50]Read from MH i2c: 01 07 00 [07:41:50]MH_I2C_Read... [07:41:50]Read from MH i2c: 01 07 00 8A 3C 00 00 00 00 00 FF 0F DB [07:41:50]process_action close_receipt done [07:41:50]requested_data is exist [07:41:50]produce_requested_data [07:41:50]requested_item fm.sn is exist - process it [07:41:50]wFMCommunicate request_size=4 [07:41:50]MH_SAM_APDU [07:41:50]CAPDU: 80 11 00 00 [07:41:50]Write to MH i2c: E2 08 00 8B 3C 80 11 00 00 00 00 00 00 41 [07:41:50]Write i2c OK [07:41:50]MH_I2C_Read... [07:41:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:41:50]Read from MH i2c: E2 [07:41:50]MH_I2C_Read... [07:41:50]Read from MH i2c: E2 17 00 [07:41:50]MH_I2C_Read... [07:41:50]Read from MH i2c: E2 17 00 8B 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 91 [07:41:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [07:41:50]wFMCommunicate OK [07:41:50]requested_item fd.num is exist - process it [07:41:50]SAM_PROTO_GetFieldsCounters [07:41:50]wFMCommunicate request_size=4 [07:41:50]MH_SAM_APDU [07:41:50]CAPDU: 80 13 00 00 [07:41:50]Write to MH i2c: E2 08 00 8C 3C 80 13 00 00 00 00 00 00 44 [07:41:50]Write i2c OK [07:41:50]MH_I2C_Read... [07:41:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:41:50]Read from MH i2c: E2 [07:41:50]MH_I2C_Read... [07:41:50]Read from MH i2c: E2 62 00 [07:41:50]MH_I2C_Read... [07:41:50]Read from MH i2c: E2 62 00 8C 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 D1 07 00 00 0E 04 04 00 0D 00 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 EF [07:41:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 D1 07 00 00 0E 04 04 00 0D 00 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 [07:41:50]wFMCommunicate OK [07:41:50]SAM_PROTO_GetFieldsCounters done [07:41:50]requested_item shift.num is exist - process it [07:41:50]requested_item shift.opened is exist - process it [07:41:50]req_shift_opened [07:41:50]FM_GetShiftState [07:41:50]SAM_PROTO_GetShiftState [07:41:50]wFMCommunicate request_size=4 [07:41:50]MH_SAM_APDU [07:41:50]CAPDU: 80 13 01 00 [07:41:50]Write to MH i2c: E2 08 00 8D 3C 80 13 01 00 00 00 00 00 46 [07:41:50]Write i2c OK [07:41:50]MH_I2C_Read... [07:41:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:41:50]Read from MH i2c: E2 [07:41:50]MH_I2C_Read... [07:41:50]Read from MH i2c: E2 0E 00 [07:41:50]MH_I2C_Read... [07:41:50]Read from MH i2c: E2 0E 00 8D 3C 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 3A [07:41:50]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [07:41:50]wFMCommunicate OK [07:41:50]SAM_PROTO_GetShiftState done [07:41:50]FM_GetShiftState done [07:41:50]req_shift_opened done [07:41:50]requested_item shift.open_date is exist - process it [07:41:50]req_shift_open_date [07:41:50]req_shift_open_date done [07:41:50]produce_requested_data done [07:41:50]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2001,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [07:41:50]process_action_free close_receipt [07:41:50]json_value_free [07:41:50]json_value_free done [07:41:50]process_json_proto returns [07:41:50]Send response to host [07:41:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2001,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [07:41:50]free response buf [07:41:50]execute_script done [07:41:50]execute_script returns [07:41:50]free content buf [07:41:50]Sock 9.Close socket [07:41:50]Sock 9.Thread stoped [07:41:54]OFD Sender: No OFD packet to send [07:41:59]OFD Sender: No OFD packet to send [07:42:04]OFD Sender: No OFD packet to send [07:42:09]OFD Sender: No OFD packet to send [07:42:14]OFD Sender: No OFD packet to send [07:42:19]OFD Sender: No OFD packet to send [07:42:24]OFD Sender: No OFD packet to send [07:42:29]OFD Sender: No OFD packet to send [07:42:34]OFD Sender: No OFD packet to send [07:42:39]OFD Sender: No OFD packet to send [07:42:44]OFD Sender: No OFD packet to send [07:42:49]OFD Sender: No OFD packet to send [07:42:54]OFD Sender: No OFD packet to send [07:42:59]OFD Sender: No OFD packet to send [07:43:04]OFD Sender: No OFD packet to send [07:43:09]OFD Sender: No OFD packet to send [07:43:14]OFD Sender: No OFD packet to send [07:43:19]OFD Sender: No OFD packet to send [07:43:24]OFD Sender: No OFD packet to send [07:43:29]OFD Sender: No OFD packet to send [07:43:34]OFD Sender: No OFD packet to send [07:43:39]OFD Sender: No OFD packet to send [07:43:44]OFD Sender: No OFD packet to send [07:43:49]OFD Sender: No OFD packet to send [07:43:54]OFD Sender: No OFD packet to send [07:43:59]OFD Sender: No OFD packet to send [07:44:04]OFD Sender: No OFD packet to send [07:44:09]OFD Sender: No OFD packet to send [07:44:14]OFD Sender: No OFD packet to send [07:44:19]OFD Sender: No OFD packet to send [07:44:24]OFD Sender: No OFD packet to send [07:44:29]OFD Sender: No OFD packet to send [07:44:34]OFD Sender: No OFD packet to send [07:44:39]OFD Sender: No OFD packet to send [07:44:44]OFD Sender: No OFD packet to send [07:44:49]OFD Sender: No OFD packet to send [07:44:54]OFD Sender: No OFD packet to send [07:44:59]OFD Sender: No OFD packet to send [07:45:04]OFD Sender: No OFD packet to send [07:45:09]OFD Sender: No OFD packet to send [07:45:14]OFD Sender: No OFD packet to send [07:45:19]OFD Sender: No OFD packet to send [07:45:24]OFD Sender: No OFD packet to send [07:45:29]OFD Sender: No OFD packet to send [07:45:34]OFD Sender: No OFD packet to send [07:45:39]OFD Sender: No OFD packet to send [07:45:44]OFD Sender: No OFD packet to send [07:45:49]OFD Sender: No OFD packet to send [07:45:54]OFD Sender: No OFD packet to send [07:45:59]OFD Sender: No OFD packet to send [07:46:04]OFD Sender: No OFD packet to send [07:46:09]OFD Sender: No OFD packet to send [07:46:14]OFD Sender: No OFD packet to send [07:46:19]OFD Sender: No OFD packet to send [07:46:24]OFD Sender: No OFD packet to send [07:46:29]OFD Sender: No OFD packet to send [07:46:34]OFD Sender: No OFD packet to send [07:46:38]accept exits with 8 [07:46:38]New connection [07:46:38]New thread 3067317604 created [07:46:38]Thread 3067460964 joined [07:46:38]Waiting for new connection... [07:46:38] Sock 8.Parse request [07:46:38]Sock 8.Check first char [07:46:38]Sock 8.First char is OK [07:46:38]request: POST /json_proto HTTP/1.0 [07:46:38]Method: POST [07:46:38]URL: /json_proto [07:46:38]Method is POST - this is cgi request [07:46:38]url: /json_proto [07:46:38]query_string will be loaded in cgi processing [07:46:38]execute_cgi json_proto POST (null) [07:46:38]execute_cgi path=json_proto method=POST [07:46:38]POST find Content-Length [07:46:38]Host: 172.17.45.132:8080 [07:46:38]Content-Length: 780 [07:46:38]Content-Type: application/json [07:46:38] [07:46:38]POST finish read [07:46:38]Found Content-Length = 780 [07:46:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126309", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "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" ] } } [07:46:38]execute_script... [07:46: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)126309", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "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" ] } } [07:46:38]POST & json_proto [07:46:38]process_json_proto [07:46:38]json parsed OK: [07:46:38]protocol is kg_v1.0 [07:46:38]action value=close_receipt [07:46:38]process_action close_receipt [07:46:38]cmd_close_receipt [07:46:38]MH_GetDate [07:46:38]Write to MH i2c: F0 00 00 8E 3C B9 [07:46:38]Write i2c OK [07:46:38]MH_I2C_Read... [07:46:38]Read from MH i2c: F0 [07:46:38]MH_I2C_Read... [07:46:38]Read from MH i2c: F0 09 00 [07:46:38]MH_I2C_Read... [07:46:38]Read from MH i2c: F0 09 00 8E 3C 00 62 F7 A5 66 E3 0B 90 66 0A [07:46:38]GetLastDocTimeStamp 1722152510 [07:46:38]current date 1722152802 [07:46:38]FM_GetShiftState [07:46:38]SAM_PROTO_GetShiftState [07:46:38]wFMCommunicate request_size=4 [07:46:38]MH_SAM_APDU [07:46:38]CAPDU: 80 13 01 00 [07:46:38]Write to MH i2c: E2 08 00 8F 3C 80 13 01 00 00 00 00 00 48 [07:46:38]Write i2c OK [07:46:38]MH_I2C_Read... [07:46:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:46:38]Read from MH i2c: E2 [07:46:38]MH_I2C_Read... [07:46:38]Read from MH i2c: E2 0E 00 [07:46:38]MH_I2C_Read... [07:46:38]Read from MH i2c: E2 0E 00 8F 3C 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 3C [07:46:38]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [07:46:38]wFMCommunicate OK [07:46:38]SAM_PROTO_GetShiftState done [07:46:38]FM_GetShiftState done [07:46:38]opened in 1722125648 [07:46:38]opened+sec_in_day 1722212048 [07:46:38]quantity*price = 14000 [07:46:38]sum+1 = 14001 [07:46:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 0.00 Безнал.: 140.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 53 28.07.2024 07:46 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2002 ФПД: 224891570050739 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T074642&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2002&fm=224891570050739&tin=02508201610067®Number=0000000000189667&sum=14000 0 [07:46:39]StoreToDocumentArchive [07:46:39]shift 13 fd 2002 [07:46:39]save to /storage/0013/doc_00002002 [07:46:39]save last doc name /storage/0013/doc_00002002 to /storage/kkm_last_doc_name [07:46:39]save OK [07:46:39]Clear old archive folders... [07:46:39]ProcessDocumentItem done err = 0, tmpTLVsize=271 [07:46:39]tlvbuf is B6FD1010 [07:46:39]SAM_PROTO_ClearQueue [07:46:39]wFMCommunicate request_size=4 [07:46:39]MH_SAM_APDU [07:46:39]CAPDU: 80 09 00 00 [07:46:39]Write to MH i2c: E2 08 00 9C 3C 80 09 00 00 00 00 00 00 4A [07:46:39]Write i2c OK [07:46:39]MH_I2C_Read... [07:46:39]OFD Sender: No OFD packet to send [07:46:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:46:39]Read from MH i2c: E2 [07:46:39]MH_I2C_Read... [07:46:39]Read from MH i2c: E2 03 00 [07:46:39]MH_I2C_Read... [07:46:39]Read from MH i2c: E2 03 00 9C 3C 00 90 00 4C [07:46:39]RAPDU: 90 00 [07:46:39]wFMCommunicate OK [07:46:39]SAM_PROTO_ClearQueue done [07:46:39]KKMCreateOFDPacket [07:46:39]OFDProtocolAddRootSTLVToBuf [07:46:39]FM_MakeSignedData [07:46:39]FM_MakeSignedData [07:46:39]SAM_PROTO_SignData [07:46:39]wFMCommunicate request_size=4 [07:46:39]MH_SAM_APDU [07:46:39]CAPDU: 80 0D 01 02 [07:46:39]Write to MH i2c: E2 08 00 9D 3C 80 0D 01 02 00 00 00 00 52 [07:46:39]Write i2c OK [07:46:39]MH_I2C_Read... [07:46:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:46:39]Read from MH i2c: E2 [07:46:39]MH_I2C_Read... [07:46:39]Read from MH i2c: E2 03 00 [07:46:39]MH_I2C_Read... [07:46:39]Read from MH i2c: E2 03 00 9D 3C 00 90 00 4D [07:46:39]RAPDU: 90 00 [07:46:39]wFMCommunicate OK [07:46:39]wFMCommunicate request_size=255 [07:46:39]MH_SAM_APDU [07:46:39]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 35 00 00 00 F4 03 04 00 62 F7 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 [07:46:39]Write to MH i2c: E2 02 01 9E 3C 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 35 00 00 00 F4 03 04 00 62 F7 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 88 [07:46:39]Write i2c OK [07:46:39]MH_I2C_Read... [07:46:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:46:39]Read from MH i2c: E2 [07:46:39]MH_I2C_Read... [07:46:39]Read from MH i2c: E2 03 00 [07:46:39]MH_I2C_Read... [07:46:39]Read from MH i2c: E2 03 00 9E 3C 00 90 00 4E [07:46:39]RAPDU: 90 00 [07:46:39]wFMCommunicate OK [07:46:39]wFMCommunicate request_size=30 [07:46:39]MH_SAM_APDU [07:46:39]CAPDU: 80 0D 02 02 19 32 30 39 34 32 34 38 10 04 04 00 D2 07 00 00 35 04 06 00 CC 89 A6 25 56 B3 [07:46:39]Write to MH i2c: E2 21 00 9F 3C 80 0D 02 02 19 00 32 30 39 34 32 34 38 10 04 04 00 D2 07 00 00 35 04 06 00 CC 89 A6 25 56 B3 00 00 4D [07:46:39]Write i2c OK [07:46:39]MH_I2C_Read... [07:46:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:46:39]Read from MH i2c: E2 [07:46:39]MH_I2C_Read... [07:46:39]Read from MH i2c: E2 03 00 [07:46:39]MH_I2C_Read... [07:46:39]Read from MH i2c: E2 03 00 9F 3C 00 90 00 4F [07:46:39]RAPDU: 90 00 [07:46:39]wFMCommunicate OK [07:46:39]wFMCommunicate request_size=4 [07:46:39]MH_SAM_APDU [07:46:39]CAPDU: 80 0D 03 02 [07:46:39]Write to MH i2c: E2 08 00 A0 3C 80 0D 03 02 00 00 00 00 57 [07:46:39]Write i2c OK [07:46:39]MH_I2C_Read... [07:46:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:46:40]Read from MH i2c: E2 [07:46:40]MH_I2C_Read... [07:46:40]Read from MH i2c: E2 0B 00 [07:46:40]MH_I2C_Read... [07:46:40]Read from MH i2c: E2 0B 00 A0 3C 00 AD 6F FF B2 83 B3 02 DB 90 00 38 [07:46:40]RAPDU: AD 6F FF B2 83 B3 02 DB 90 00 [07:46:40]wFMCommunicate OK [07:46:40]SAM_PROTO_SignData done [07:46:40]FM_MakeSignedData done [07:46:40]CreateOFDProtocolMessage [07:46:40]wFMCommunicate request_size=4 [07:46:40]MH_SAM_APDU [07:46:40]CAPDU: 80 11 00 00 [07:46:40]Write to MH i2c: E2 08 00 A1 3C 80 11 00 00 00 00 00 00 57 [07:46:40]Write i2c OK [07:46:40]MH_I2C_Read... [07:46:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:46:40]Read from MH i2c: E2 [07:46:40]MH_I2C_Read... [07:46:40]Read from MH i2c: E2 17 00 [07:46:40]MH_I2C_Read... [07:46:40]Read from MH i2c: E2 17 00 A1 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 A7 [07:46:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [07:46:40]wFMCommunicate OK [07:46:40]CreateOFDProtocolMessage done [07:46:40]OFDSenderStorePacket 2002 [07:46:40]StoreOFDPacket docnum=2002 [07:46:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 23 01 00 00 D6 C1 1B 01 E7 A7 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 35 00 00 00 F4 03 04 00 62 F7 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D2 07 00 00 35 04 06 00 CC 89 A6 25 56 B3 AD 6F FF B2 83 B3 02 DB [07:46:40]CheckFolder [07:46:40]dirname=/storage/ofd_packets [07:46:40]CheckFolder done [07:46:40]ProducePacketName [07:46:40]name=ofd_packets/00002002 [07:46:40]NVStorageSaveData ofd_packets/00002002 [07:46:40]File name is /storage/ofd_packets/00002002 [07:46:40]Write 321 bytes [07:46:40]NVStorageSaveData done [07:46:40]OFDSenderStorePacket done [07:46:40]KKMCreateOFDPacket done [07:46:40]NVStorageSaveData kkm_last_timestamp [07:46:40]File name is /storage/kkm_last_timestamp [07:46:40]Write 4 bytes [07:46:40]NVStorageSaveData done [07:46:40]ExternCall_PrintAddStr [07:46:40]wPrintStart [07:46:40]Write to MH i2c: 01 00 00 A2 3C DE [07:46:40]Write i2c OK [07:46:40]MH_I2C_Read... [07:46:40]Read from MH i2c: 01 [07:46:40]MH_I2C_Read... [07:46:40]Read from MH i2c: 01 07 00 [07:46:40]MH_I2C_Read... [07:46:40]Read from MH i2c: 01 07 00 A2 3C 00 00 00 00 00 FF 0F F3 [07:46:40]RasterBufferAndPrint [07:46:40]line Счет N : (3)126309 [07:46:40]line ИНН: 02508201610067 [07:46:40]line Контрольно-Кассовый Чек [07:46:40]line ПРОДАЖА [07:46:40]line Товар: 47802995 [07:46:40]line Сигареты Winston XS Silver [07:46:40]line 1.000 * 140.00 [07:46:40]line = 140.00 [07:46:40]line НДС 12% НСП 1% [07:46:40]line > о реализуемом товаре [07:46:40]line ИТОГО: 140.00 [07:46:40]line НСП 1% : 1.24 [07:46:40]line НДС 12% : 14.87 [07:46:40]line Наличными: 0.00 [07:46:40]line Безнал.: 140.00 [07:46:40]line Место: АЗС № 127 "Партнер Нефть" [07:46:40]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [07:46:40]line СНО: Общий режим [07:46:40]line Чек 53 28.07.2024 07:46 [07:46:40]line Смена: 13 ФФД: 1.0 [07:46:40]line ЗНМ: 0300000161 [07:46:40]line РНМ: 0000000000189667 [07:46:40]line Версия ККМ: v1.0 [07:46:40]line Платежная система: O! деньги [07:46:40]line ФМ: 0000000002094248 [07:46:40]line ФД: 2002 [07:46:40]line ФПД: 224891570050739 [07:46:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T074642&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2002&fm=224891570050739&tin=02508201610067®Number=0000000000189667&sum=14000 [07:46:40]line 0 [07:46:40]OFD Sender: Processing packet 2002 [packets to send 1, broken 0] [07:46:40]ProducePacketName [07:46:40]name=ofd_packets/00002002 [07:46:40]OFD Sender: To server: pG, [07:46:40]CommunicateWithHost lk.salyk.kg:30040 [07:46:40]ConnectInit lk.salyk.kg [07:46:40]written 0, free lines is 4095 [07:46:40]Connected sock=10 [07:46:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 23 01 00 00 D6 C1 1B 01 E7 A7 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 35 00 00 00 F4 03 04 00 62 F7 A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D2 07 00 00 35 04 06 00 CC 89 A6 25 56 B3 AD 6F FF B2 83 B3 02 DB [07:46:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 EC AF 47 00 BD 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D2 07 00 00 F4 03 04 00 D3 A2 A5 66 B6 04 01 00 00 09 B8 AF EF F8 DD E8 52 [07:46:40]CommunicateWithHost err = 0 [07:46:40]CheckOFDResponse [07:46:40]1017 (14) - 77093643461234 [07:46:40]1041 (16) - 0000000002094248 [07:46:40]1040 (4) - 2002 [07:46:40]1012 (4) - 28.07.2024 01:45 [07:46:40]1206 (1) - 0 [07:46:40]OFD Sender: Remove packet 2002 [07:46:40]ProducePacketName [07:46:40]name=ofd_packets/00002002 [07:46:40]NVStorageDeleteData [07:46:40]Write to MH i2c: 01 00 00 CC 3C 08 [07:46:40]Write i2c OK [07:46:40]MH_I2C_Read... [07:46:40]Read from MH i2c: 01 [07:46:40]MH_I2C_Read... [07:46:40]Read from MH i2c: 01 07 00 [07:46:40]MH_I2C_Read... [07:46:40]Read from MH i2c: 01 07 00 CC 3C 00 00 00 00 00 FC 0C 17 [07:46:40]RasterBufferAndPrint [07:46:40]line [07:46:40]line [07:46:40]line [07:46:40]line [07:46:40]line [07:46:40]written 0, free lines is 3333 [07:46:40]MH_Cut [07:46:40]Write to MH i2c: D1 01 00 D3 3C 01 E1 [07:46:40]Write i2c OK [07:46:40]MH_I2C_Read... [07:46:40]Read from MH i2c: D1 [07:46:40]MH_I2C_Read... [07:46:40]Read from MH i2c: D1 01 00 [07:46:40]MH_I2C_Read... [07:46:40]Read from MH i2c: D1 01 00 D3 3C 00 E0 [07:46:40]Write to MH i2c: 01 00 00 D4 3C 10 [07:46:40]Write i2c OK [07:46:40]MH_I2C_Read... [07:46:41]OFD Sender: No OFD packet to send [07:46:41]*** Cut start [07:46:41]*** Partial cut [07:46:41]*** CUTSNS_PIN = 1 [07:46:41]*** CUTSNS_PIN = 0 [07:46:41]*** Brake cut motor [07:46:42]Read from MH i2c: 01 [07:46:42]MH_I2C_Read... [07:46:42]*** Stop cut motor [07:46:42]*** Cut end [07:46:42]Read from MH i2c: 01 07 00 [07:46:42]MH_I2C_Read... [07:46:42]Read from MH i2c: 01 07 00 D4 3C 00 00 00 00 00 FF 0F 25 [07:46:42]process_action close_receipt done [07:46:42]requested_data is exist [07:46:42]produce_requested_data [07:46:42]requested_item fm.sn is exist - process it [07:46:42]wFMCommunicate request_size=4 [07:46:42]MH_SAM_APDU [07:46:42]CAPDU: 80 11 00 00 [07:46:42]Write to MH i2c: E2 08 00 D5 3C 80 11 00 00 00 00 00 00 8B [07:46:42]Write i2c OK [07:46:42]MH_I2C_Read... [07:46:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:46:42]Read from MH i2c: E2 [07:46:42]MH_I2C_Read... [07:46:42]Read from MH i2c: E2 17 00 [07:46:42]MH_I2C_Read... [07:46:42]Read from MH i2c: E2 17 00 D5 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 DB [07:46:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [07:46:42]wFMCommunicate OK [07:46:42]requested_item fd.num is exist - process it [07:46:42]SAM_PROTO_GetFieldsCounters [07:46:42]wFMCommunicate request_size=4 [07:46:42]MH_SAM_APDU [07:46:42]CAPDU: 80 13 00 00 [07:46:42]Write to MH i2c: E2 08 00 D6 3C 80 13 00 00 00 00 00 00 8E [07:46:42]Write i2c OK [07:46:42]MH_I2C_Read... [07:46:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:46:42]Read from MH i2c: E2 [07:46:42]MH_I2C_Read... [07:46:42]Read from MH i2c: E2 62 00 [07:46:42]MH_I2C_Read... [07:46:42]Read from MH i2c: E2 62 00 D6 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 D2 07 00 00 0E 04 04 00 0D 00 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 3D [07:46:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 D2 07 00 00 0E 04 04 00 0D 00 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 [07:46:42]wFMCommunicate OK [07:46:42]SAM_PROTO_GetFieldsCounters done [07:46:42]requested_item shift.num is exist - process it [07:46:42]requested_item shift.opened is exist - process it [07:46:42]req_shift_opened [07:46:42]FM_GetShiftState [07:46:42]SAM_PROTO_GetShiftState [07:46:42]wFMCommunicate request_size=4 [07:46:42]MH_SAM_APDU [07:46:42]CAPDU: 80 13 01 00 [07:46:42]Write to MH i2c: E2 08 00 D7 3C 80 13 01 00 00 00 00 00 90 [07:46:42]Write i2c OK [07:46:42]MH_I2C_Read... [07:46:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:46:42]Read from MH i2c: E2 [07:46:42]MH_I2C_Read... [07:46:42]Read from MH i2c: E2 0E 00 [07:46:42]MH_I2C_Read... [07:46:42]Read from MH i2c: E2 0E 00 D7 3C 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 84 [07:46:42]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [07:46:42]wFMCommunicate OK [07:46:42]SAM_PROTO_GetShiftState done [07:46:42]FM_GetShiftState done [07:46:42]req_shift_opened done [07:46:42]requested_item shift.open_date is exist - process it [07:46:42]req_shift_open_date [07:46:42]req_shift_open_date done [07:46:42]produce_requested_data done [07:46:42]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2002,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [07:46:42]process_action_free close_receipt [07:46:42]json_value_free [07:46:42]json_value_free done [07:46:42]process_json_proto returns [07:46:42]Send response to host [07:46:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2002,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [07:46:42]free response buf [07:46:42]execute_script done [07:46:42]execute_script returns [07:46:42]free content buf [07:46:42]Sock 8.Close socket [07:46:42]Sock 8.Thread stoped [07:46:46]OFD Sender: No OFD packet to send [07:46:51]OFD Sender: No OFD packet to send [07:46:56]OFD Sender: No OFD packet to send [07:47:01]OFD Sender: No OFD packet to send [07:47:06]OFD Sender: No OFD packet to send [07:47:11]OFD Sender: No OFD packet to send [07:47:16]OFD Sender: No OFD packet to send [07:47:21]OFD Sender: No OFD packet to send [07:47:26]OFD Sender: No OFD packet to send [07:47:31]OFD Sender: No OFD packet to send [07:47:36]OFD Sender: No OFD packet to send [07:47:41]OFD Sender: No OFD packet to send [07:47:46]OFD Sender: No OFD packet to send [07:47:51]OFD Sender: No OFD packet to send [07:47:56]OFD Sender: No OFD packet to send [07:48:01]OFD Sender: No OFD packet to send [07:48:06]OFD Sender: No OFD packet to send [07:48:11]OFD Sender: No OFD packet to send [07:48:16]OFD Sender: No OFD packet to send [07:48:21]OFD Sender: No OFD packet to send [07:48:26]OFD Sender: No OFD packet to send [07:48:31]OFD Sender: No OFD packet to send [07:48:36]OFD Sender: No OFD packet to send [07:48:41]OFD Sender: No OFD packet to send [07:48:46]OFD Sender: No OFD packet to send [07:48:51]OFD Sender: No OFD packet to send [07:48:56]OFD Sender: No OFD packet to send [07:49:01]OFD Sender: No OFD packet to send [07:49:06]OFD Sender: No OFD packet to send [07:49:11]OFD Sender: No OFD packet to send [07:49:16]OFD Sender: No OFD packet to send [07:49:21]OFD Sender: No OFD packet to send [07:49:26]OFD Sender: No OFD packet to send [07:49:31]OFD Sender: No OFD packet to send [07:49:36]OFD Sender: No OFD packet to send [07:49:41]OFD Sender: No OFD packet to send [07:49:46]OFD Sender: No OFD packet to send [07:49:51]OFD Sender: No OFD packet to send [07:49:56]OFD Sender: No OFD packet to send [07:50:01]OFD Sender: No OFD packet to send [07:50:06]OFD Sender: No OFD packet to send [07:50:11]OFD Sender: No OFD packet to send [07:50:16]OFD Sender: No OFD packet to send [07:50:21]OFD Sender: No OFD packet to send [07:50:26]OFD Sender: No OFD packet to send [07:50:31]OFD Sender: No OFD packet to send [07:50:36]OFD Sender: No OFD packet to send [07:50:41]OFD Sender: No OFD packet to send [07:50:46]OFD Sender: No OFD packet to send [07:50:51]OFD Sender: No OFD packet to send [07:50:56]OFD Sender: No OFD packet to send [07:51:01]OFD Sender: No OFD packet to send [07:51:06]OFD Sender: No OFD packet to send [07:51:11]OFD Sender: No OFD packet to send [07:51:16]OFD Sender: No OFD packet to send [07:51:21]OFD Sender: No OFD packet to send [07:51:26]OFD Sender: No OFD packet to send [07:51:31]OFD Sender: No OFD packet to send [07:51:36]OFD Sender: No OFD packet to send [07:51:41]OFD Sender: No OFD packet to send [07:51:46]OFD Sender: No OFD packet to send [07:51:51]OFD Sender: No OFD packet to send [07:51:56]OFD Sender: No OFD packet to send [07:52:01]OFD Sender: No OFD packet to send [07:52:06]OFD Sender: No OFD packet to send [07:52:11]OFD Sender: No OFD packet to send [07:52:16]OFD Sender: No OFD packet to send [07:52:21]OFD Sender: No OFD packet to send [07:52:26]OFD Sender: No OFD packet to send [07:52:31]OFD Sender: No OFD packet to send [07:52:36]OFD Sender: No OFD packet to send [07:52:41]OFD Sender: No OFD packet to send [07:52:46]OFD Sender: No OFD packet to send [07:52:51]OFD Sender: No OFD packet to send [07:52:56]OFD Sender: No OFD packet to send [07:53:01]OFD Sender: No OFD packet to send [07:53:06]OFD Sender: No OFD packet to send [07:53:11]OFD Sender: No OFD packet to send [07:53:16]OFD Sender: No OFD packet to send [07:53:21]OFD Sender: No OFD packet to send [07:53:26]OFD Sender: No OFD packet to send [07:53:31]OFD Sender: No OFD packet to send [07:53:36]OFD Sender: No OFD packet to send [07:53:41]OFD Sender: No OFD packet to send [07:53:46]OFD Sender: No OFD packet to send [07:53:51]OFD Sender: No OFD packet to send [07:53:56]OFD Sender: No OFD packet to send [07:54:01]OFD Sender: No OFD packet to send [07:54:06]OFD Sender: No OFD packet to send [07:54:11]OFD Sender: No OFD packet to send [07:54:16]OFD Sender: No OFD packet to send [07:54:21]OFD Sender: No OFD packet to send [07:54:26]OFD Sender: No OFD packet to send [07:54:31]OFD Sender: No OFD packet to send [07:54:36]OFD Sender: No OFD packet to send [07:54:41]OFD Sender: No OFD packet to send [07:54:46]OFD Sender: No OFD packet to send [07:54:51]OFD Sender: No OFD packet to send [07:54:56]OFD Sender: No OFD packet to send [07:55:01]OFD Sender: No OFD packet to send [07:55:06]OFD Sender: No OFD packet to send [07:55:11]OFD Sender: No OFD packet to send [07:55:16]OFD Sender: No OFD packet to send [07:55:21]OFD Sender: No OFD packet to send [07:55:26]OFD Sender: No OFD packet to send [07:55:31]OFD Sender: No OFD packet to send [07:55:36]OFD Sender: No OFD packet to send [07:55:41]OFD Sender: No OFD packet to send [07:55:46]OFD Sender: No OFD packet to send [07:55:51]OFD Sender: No OFD packet to send [07:55:56]OFD Sender: No OFD packet to send [07:56:01]OFD Sender: No OFD packet to send [07:56:06]OFD Sender: No OFD packet to send [07:56:11]OFD Sender: No OFD packet to send [07:56:16]OFD Sender: No OFD packet to send [07:56:21]OFD Sender: No OFD packet to send [07:56:26]OFD Sender: No OFD packet to send [07:56:31]OFD Sender: No OFD packet to send [07:56:36]OFD Sender: No OFD packet to send [07:56:41]OFD Sender: No OFD packet to send [07:56:46]OFD Sender: No OFD packet to send [07:56:51]OFD Sender: No OFD packet to send [07:56:56]OFD Sender: No OFD packet to send [07:57:01]OFD Sender: No OFD packet to send [07:57:06]OFD Sender: No OFD packet to send [07:57:11]OFD Sender: No OFD packet to send [07:57:16]OFD Sender: No OFD packet to send [07:57:21]OFD Sender: No OFD packet to send [07:57:26]OFD Sender: No OFD packet to send [07:57:31]OFD Sender: No OFD packet to send [07:57:36]OFD Sender: No OFD packet to send [07:57:41]OFD Sender: No OFD packet to send [07:57:46]OFD Sender: No OFD packet to send [07:57:51]OFD Sender: No OFD packet to send [07:57:56]OFD Sender: No OFD packet to send [07:58:01]OFD Sender: No OFD packet to send [07:58:06]OFD Sender: No OFD packet to send [07:58:11]OFD Sender: No OFD packet to send [07:58:16]OFD Sender: No OFD packet to send [07:58:21]OFD Sender: No OFD packet to send [07:58:26]OFD Sender: No OFD packet to send [07:58:31]OFD Sender: No OFD packet to send [07:58:36]OFD Sender: No OFD packet to send [07:58:41]OFD Sender: No OFD packet to send [07:58:46]OFD Sender: No OFD packet to send [07:58:51]OFD Sender: No OFD packet to send [07:58:56]OFD Sender: No OFD packet to send [07:59:01]OFD Sender: No OFD packet to send [07:59:06]OFD Sender: No OFD packet to send [07:59:11]OFD Sender: No OFD packet to send [07:59:16]OFD Sender: No OFD packet to send [07:59:21]OFD Sender: No OFD packet to send [07:59:26]OFD Sender: No OFD packet to send [07:59:31]OFD Sender: No OFD packet to send [07:59:36]OFD Sender: No OFD packet to send [07:59:41]OFD Sender: No OFD packet to send [07:59:46]OFD Sender: No OFD packet to send [07:59:51]OFD Sender: No OFD packet to send [07:59:56]OFD Sender: No OFD packet to send [08:00:01]OFD Sender: No OFD packet to send [08:00:06]OFD Sender: No OFD packet to send [08:00:11]OFD Sender: No OFD packet to send [08:00:16]OFD Sender: No OFD packet to send [08:00:21]OFD Sender: No OFD packet to send [08:00:26]OFD Sender: No OFD packet to send [08:00:31]OFD Sender: No OFD packet to send [08:00:36]OFD Sender: No OFD packet to send [08:00:41]OFD Sender: No OFD packet to send [08:00:46]OFD Sender: No OFD packet to send [08:00:51]OFD Sender: No OFD packet to send [08:00:56]OFD Sender: No OFD packet to send [08:01:01]OFD Sender: No OFD packet to send [08:01:06]OFD Sender: No OFD packet to send [08:01: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:37]OFD Sender: No OFD packet to send [08:01:42]OFD Sender: No OFD packet to send [08:01:47]OFD Sender: No OFD packet to send [08:01:52]OFD Sender: No OFD packet to send [08:01:57]OFD Sender: No OFD packet to send [08:02:02]OFD Sender: No OFD packet to send [08:02:07]OFD Sender: No OFD packet to send [08:02:12]OFD Sender: No OFD packet to send [08:02:17]OFD Sender: No OFD packet to send [08:02:22]OFD Sender: No OFD packet to send [08:02:27]OFD Sender: No OFD packet to send [08:02:32]OFD Sender: No OFD packet to send [08:02:37]OFD Sender: No OFD packet to send [08:02:42]OFD Sender: No OFD packet to send [08:02:47]OFD Sender: No OFD packet to send [08:02:52]OFD Sender: No OFD packet to send [08:02:57]OFD Sender: No OFD packet to send [08:03:02]OFD Sender: No OFD packet to send [08:03:07]OFD Sender: No OFD packet to send [08:03:12]OFD Sender: No OFD packet to send [08:03:17]OFD Sender: No OFD packet to send [08:03:22]OFD Sender: No OFD packet to send [08:03:27]OFD Sender: No OFD packet to send [08:03:32]OFD Sender: No OFD packet to send [08:03:37]OFD Sender: No OFD packet to send [08:03:42]OFD Sender: No OFD packet to send [08:03:47]OFD Sender: No OFD packet to send [08:03:52]OFD Sender: No OFD packet to send [08:03:57]OFD Sender: No OFD packet to send [08:04:02]OFD Sender: No OFD packet to send [08:04:07]OFD Sender: No OFD packet to send [08:04:12]OFD Sender: No OFD packet to send [08:04:17]OFD Sender: No OFD packet to send [08:04:22]OFD Sender: No OFD packet to send [08:04:27]OFD Sender: No OFD packet to send [08:04:32]OFD Sender: No OFD packet to send [08:04:37]OFD Sender: No OFD packet to send [08:04:42]OFD Sender: No OFD packet to send [08:04:47]OFD Sender: No OFD packet to send [08:04:52]OFD Sender: No OFD packet to send [08:04:57]OFD Sender: No OFD packet to send [08:05:02]OFD Sender: No OFD packet to send [08:05:07]OFD Sender: No OFD packet to send [08:05:12]OFD Sender: No OFD packet to send [08:05:17]OFD Sender: No OFD packet to send [08:05:22]OFD Sender: No OFD packet to send [08:05:27]OFD Sender: No OFD packet to send [08:05:32]OFD Sender: No OFD packet to send [08:05:37]OFD Sender: No OFD packet to send [08:05:42]OFD Sender: No OFD packet to send [08:05:47]OFD Sender: No OFD packet to send [08:05:52]OFD Sender: No OFD packet to send [08:05:57]OFD Sender: No OFD packet to send [08:06:02]OFD Sender: No OFD packet to send [08:06:07]OFD Sender: No OFD packet to send [08:06:12]OFD Sender: No OFD packet to send [08:06:17]OFD Sender: No OFD packet to send [08:06:22]OFD Sender: No OFD packet to send [08:06:27]OFD Sender: No OFD packet to send [08:06:32]OFD Sender: No OFD packet to send [08:06:37]OFD Sender: No OFD packet to send [08:06:42]OFD Sender: No OFD packet to send [08:06:47]OFD Sender: No OFD packet to send [08:06:52]OFD Sender: No OFD packet to send [08:06:57]OFD Sender: No OFD packet to send [08:07:02]OFD Sender: No OFD packet to send [08:07:07]OFD Sender: No OFD packet to send [08:07:12]OFD Sender: No OFD packet to send [08:07:17]OFD Sender: No OFD packet to send [08:07:22]OFD Sender: No OFD packet to send [08:07:27]OFD Sender: No OFD packet to send [08:07:32]OFD Sender: No OFD packet to send [08:07:37]OFD Sender: No OFD packet to send [08:07:42]OFD Sender: No OFD packet to send [08:07:47]OFD Sender: No OFD packet to send [08:07:52]OFD Sender: No OFD packet to send [08:07:57]OFD Sender: No OFD packet to send [08:08:02]OFD Sender: No OFD packet to send [08:08:07]OFD Sender: No OFD packet to send [08:08:12]OFD Sender: No OFD packet to send [08:08:17]OFD Sender: No OFD packet to send [08:08:22]OFD Sender: No OFD packet to send [08:08:27]OFD Sender: No OFD packet to send [08:08:32]OFD Sender: No OFD packet to send [08:08:37]OFD Sender: No OFD packet to send [08:08:42]OFD Sender: No OFD packet to send [08:08:47]OFD Sender: No OFD packet to send [08:08:52]OFD Sender: No OFD packet to send [08:08:57]OFD Sender: No OFD packet to send [08:09:02]OFD Sender: No OFD packet to send [08:09:07]OFD Sender: No OFD packet to send [08:09:12]OFD Sender: No OFD packet to send [08:09:17]OFD Sender: No OFD packet to send [08:09:22]OFD Sender: No OFD packet to send [08:09:27]OFD Sender: No OFD packet to send [08:09:32]OFD Sender: No OFD packet to send [08:09:37]OFD Sender: No OFD packet to send [08:09:42]OFD Sender: No OFD packet to send [08:09:47]OFD Sender: No OFD packet to send [08:09:52]OFD Sender: No OFD packet to send [08:09:57]OFD Sender: No OFD packet to send [08:10:02]OFD Sender: No OFD packet to send [08:10:07]OFD Sender: No OFD packet to send [08:10:12]OFD Sender: No OFD packet to send [08:10:17]OFD Sender: No OFD packet to send [08:10:22]OFD Sender: No OFD packet to send [08:10:27]OFD Sender: No OFD packet to send [08:10:32]OFD Sender: No OFD packet to send [08:10:37]OFD Sender: No OFD packet to send [08:10:42]OFD Sender: No OFD packet to send [08:10:47]OFD Sender: No OFD packet to send [08:10:52]OFD Sender: No OFD packet to send [08:10:57]OFD Sender: No OFD packet to send [08:11:02]OFD Sender: No OFD packet to send [08:11:07]OFD Sender: No OFD packet to send [08:11:12]OFD Sender: No OFD packet to send [08:11:17]OFD Sender: No OFD packet to send [08:11:22]OFD Sender: No OFD packet to send [08:11:27]OFD Sender: No OFD packet to send [08:11:32]OFD Sender: No OFD packet to send [08:11:37]OFD Sender: No OFD packet to send [08:11:42]OFD Sender: No OFD packet to send [08:11:47]OFD Sender: No OFD packet to send [08:11:52]OFD Sender: No OFD packet to send [08:11:57]OFD Sender: No OFD packet to send [08:12:02]OFD Sender: No OFD packet to send [08:12:07]OFD Sender: No OFD packet to send [08:12:12]OFD Sender: No OFD packet to send [08:12:17]OFD Sender: No OFD packet to send [08:12:22]OFD Sender: No OFD packet to send [08:12:27]OFD Sender: No OFD packet to send [08:12:32]OFD Sender: No OFD packet to send [08:12:37]OFD Sender: No OFD packet to send [08:12:42]OFD Sender: No OFD packet to send [08:12:47]OFD Sender: No OFD packet to send [08:12:52]OFD Sender: No OFD packet to send [08:12:57]OFD Sender: No OFD packet to send [08:13:02]OFD Sender: No OFD packet to send [08:13:07]OFD Sender: No OFD packet to send [08:13:12]OFD Sender: No OFD packet to send [08:13:17]OFD Sender: No OFD packet to send [08:13:22]OFD Sender: No OFD packet to send [08:13:27]OFD Sender: No OFD packet to send [08:13:32]OFD Sender: No OFD packet to send [08:13:37]OFD Sender: No OFD packet to send [08:13:42]OFD Sender: No OFD packet to send [08:13:47]OFD Sender: No OFD packet to send [08:13:52]OFD Sender: No OFD packet to send [08:13:57]OFD Sender: No OFD packet to send [08:14:02]OFD Sender: No OFD packet to send [08:14:07]OFD Sender: No OFD packet to send [08:14:12]OFD Sender: No OFD packet to send [08:14:17]OFD Sender: No OFD packet to send [08:14:22]OFD Sender: No OFD packet to send [08:14:27]OFD Sender: No OFD packet to send [08:14:32]OFD Sender: No OFD packet to send [08:14:37]OFD Sender: No OFD packet to send [08:14:42]OFD Sender: No OFD packet to send [08:14:47]OFD Sender: No OFD packet to send [08:14:52]OFD Sender: No OFD packet to send [08:14:57]OFD Sender: No OFD packet to send [08:15:02]OFD Sender: No OFD packet to send [08:15:07]OFD Sender: No OFD packet to send [08:15:12]OFD Sender: No OFD packet to send [08:15:17]OFD Sender: No OFD packet to send [08:15:22]OFD Sender: No OFD packet to send [08:15:25]accept exits with 9 [08:15:25]New connection [08:15:25]New thread 3067460964 created [08:15:25]Thread 3067317604 joined [08:15:25]Waiting for new connection... [08:15:25] Sock 9.Parse request [08:15:25]Sock 9.Check first char [08:15:25]Sock 9.First char is OK [08:15:25]request: POST /json_proto HTTP/1.0 [08:15:25]Method: POST [08:15:25]URL: /json_proto [08:15:25]Method is POST - this is cgi request [08:15:25]url: /json_proto [08:15:25]query_string will be loaded in cgi processing [08:15:25]execute_cgi json_proto POST (null) [08:15:25]execute_cgi path=json_proto method=POST [08:15:25]POST find Content-Length [08:15:25]Host: 172.17.45.132:8080 [08:15:25]Content-Length: 1111 [08:15:25]Content-Type: application/json [08:15:25] [08:15:25]POST finish read [08:15:25]Found Content-Length = 1111 [08:15:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126310", "tax_sys" : 0, "items" : [ { "code": "48744683", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster+", "price" : 143.00, "quantity" : 1.000, "sum" : 143.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010049", "name": "Let`s GO \u0427\u0430\u0439 \u0437\u0435\u043B\u0435\u043D\u044B\u0439 \u0433\u0440\u0435\u0439\u043F\u0444\u0440\u0443\u0442 0,5\u043B \u041F\u042D\u0422", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 193.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:15:25]execute_script... [08:15: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)126310", "tax_sys" : 0, "items" : [ { "code": "48744683", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster+", "price" : 143.00, "quantity" : 1.000, "sum" : 143.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010049", "name": "Let`s GO \u0427\u0430\u0439 \u0437\u0435\u043B\u0435\u043D\u044B\u0439 \u0433\u0440\u0435\u0439\u043F\u0444\u0440\u0443\u0442 0,5\u043B \u041F\u042D\u0422", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 193.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:15:25]POST & json_proto [08:15:25]process_json_proto [08:15:25]json parsed OK: [08:15:25]protocol is kg_v1.0 [08:15:25]action value=close_receipt [08:15:25]process_action close_receipt [08:15:25]cmd_close_receipt [08:15:25]MH_GetDate [08:15:25]Write to MH i2c: F0 00 00 D8 3C 03 [08:15:25]Write i2c OK [08:15:25]MH_I2C_Read... [08:15:25]Read from MH i2c: F0 [08:15:25]MH_I2C_Read... [08:15:25]Read from MH i2c: F0 09 00 [08:15:25]MH_I2C_Read... [08:15:25]Read from MH i2c: F0 09 00 D8 3C 00 21 FE A5 66 E3 0B 90 66 1A [08:15:25]GetLastDocTimeStamp 1722152802 [08:15:25]current date 1722154529 [08:15:25]FM_GetShiftState [08:15:25]SAM_PROTO_GetShiftState [08:15:25]wFMCommunicate request_size=4 [08:15:25]MH_SAM_APDU [08:15:25]CAPDU: 80 13 01 00 [08:15:25]Write to MH i2c: E2 08 00 D9 3C 80 13 01 00 00 00 00 00 92 [08:15:25]Write i2c OK [08:15:25]MH_I2C_Read... [08:15:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:15:25]Read from MH i2c: E2 [08:15:25]MH_I2C_Read... [08:15:25]Read from MH i2c: E2 0E 00 [08:15:25]MH_I2C_Read... [08:15:25]Read from MH i2c: E2 0E 00 D9 3C 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 86 [08:15:25]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [08:15:25]wFMCommunicate OK [08:15:25]SAM_PROTO_GetShiftState done [08:15:25]FM_GetShiftState done [08:15:25]opened in 1722125648 [08:15:25]opened+sec_in_day 1722212048 [08:15:25]quantity*price = 14300 [08:15:25]sum+1 = 14301 [08:15:25]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700003010049 Let`s GO Чай зеленый грейпфрут 0,5л ПЭТ 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 193.00 НСП 1% : 1.70 НДС 12% : 20.50 Наличными: 0.00 Безнал.: 193.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 54 28.07.2024 08:15 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2003 ФПД: 39298233510593 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T081530&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2003&fm=39298233510593&tin=02508201610067®Number=0000000000189667&sum=19300 0 [08:15:26]StoreToDocumentArchive [08:15:26]shift 13 fd 2003 [08:15:26]save to /storage/0013/doc_00002003 [08:15:26]save last doc name /storage/0013/doc_00002003 to /storage/kkm_last_doc_name [08:15:26]save OK [08:15:26]Clear old archive folders... [08:15:26]ProcessDocumentItem done err = 0, tmpTLVsize=410 [08:15:26]tlvbuf is B6F56770 [08:15:26]SAM_PROTO_ClearQueue [08:15:26]wFMCommunicate request_size=4 [08:15:26]MH_SAM_APDU [08:15:26]CAPDU: 80 09 00 00 [08:15:26]Write to MH i2c: E2 08 00 E6 3C 80 09 00 00 00 00 00 00 94 [08:15:26]Write i2c OK [08:15:26]MH_I2C_Read... [08:15:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:15:26]Read from MH i2c: E2 [08:15:26]MH_I2C_Read... [08:15:26]Read from MH i2c: E2 03 00 [08:15:26]MH_I2C_Read... [08:15:26]Read from MH i2c: E2 03 00 E6 3C 00 90 00 96 [08:15:26]RAPDU: 90 00 [08:15:26]wFMCommunicate OK [08:15:26]SAM_PROTO_ClearQueue done [08:15:26]KKMCreateOFDPacket [08:15:26]OFDProtocolAddRootSTLVToBuf [08:15:26]FM_MakeSignedData [08:15:26]FM_MakeSignedData [08:15:26]SAM_PROTO_SignData [08:15:26]wFMCommunicate request_size=4 [08:15:26]MH_SAM_APDU [08:15:26]CAPDU: 80 0D 01 02 [08:15:26]Write to MH i2c: E2 08 00 E7 3C 80 0D 01 02 00 00 00 00 9C [08:15:26]Write i2c OK [08:15:26]MH_I2C_Read... [08:15:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:15:26]Read from MH i2c: E2 [08:15:26]MH_I2C_Read... [08:15:26]Read from MH i2c: E2 03 00 [08:15:26]MH_I2C_Read... [08:15:26]Read from MH i2c: E2 03 00 E7 3C 00 90 00 97 [08:15:26]RAPDU: 90 00 [08:15:26]wFMCommunicate OK [08:15:26]wFMCommunicate request_size=255 [08:15:26]MH_SAM_APDU [08:15:26]CAPDU: 80 0D 02 02 FA 03 00 9A 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 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 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 34 39 06 04 3E 00 4C 65 74 60 73 20 47 4F 20 D0 A7 D0 B0 D0 B9 20 D0 B7 D0 B5 D0 BB D0 B5 D0 BD D1 8B D0 B9 20 D0 B3 D1 80 D0 B5 D0 B9 D0 BF D1 84 D1 80 D1 83 D1 82 20 30 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 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC [08:15:26]Write to MH i2c: E2 02 01 E8 3C 80 0D 02 02 FA 00 03 00 9A 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 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 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 34 39 06 04 3E 00 4C 65 74 60 73 20 47 4F 20 D0 A7 D0 B0 D0 B9 20 D0 B7 D0 B5 D0 BB D0 B5 D0 BD D1 8B D0 B9 20 D0 B3 D1 80 D0 B5 D0 B9 D0 BF D1 84 D1 80 D1 83 D1 82 20 30 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 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 00 00 36 [08:15:26]Write i2c OK [08:15:26]MH_I2C_Read... [08:15:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:15:26]Read from MH i2c: E2 [08:15:26]MH_I2C_Read... [08:15:26]Read from MH i2c: E2 03 00 [08:15:26]MH_I2C_Read... [08:15:26]Read from MH i2c: E2 03 00 E8 3C 00 90 00 98 [08:15:26]RAPDU: 90 00 [08:15:26]wFMCommunicate OK [08:15:26]wFMCommunicate request_size=169 [08:15:26]MH_SAM_APDU [08:15:26]CAPDU: 80 0D 02 02 A4 03 06 00 64 4B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 4B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 22 FE A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D3 07 00 00 35 04 06 00 23 BD D5 3F AA C1 [08:15:26]Write to MH i2c: E2 AC 00 E9 3C 80 0D 02 02 A4 00 03 06 00 64 4B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 4B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 22 FE A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D3 07 00 00 35 04 06 00 23 BD D5 3F AA C1 00 00 EF [08:15:26]Write i2c OK [08:15:26]MH_I2C_Read... [08:15:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:15:27]Read from MH i2c: E2 [08:15:27]MH_I2C_Read... [08:15:27]Read from MH i2c: E2 03 00 [08:15:27]MH_I2C_Read... [08:15:27]Read from MH i2c: E2 03 00 E9 3C 00 90 00 99 [08:15:27]RAPDU: 90 00 [08:15:27]wFMCommunicate OK [08:15:27]wFMCommunicate request_size=4 [08:15:27]MH_SAM_APDU [08:15:27]CAPDU: 80 0D 03 02 [08:15:27]Write to MH i2c: E2 08 00 EA 3C 80 0D 03 02 00 00 00 00 A1 [08:15:27]Write i2c OK [08:15:27]MH_I2C_Read... [08:15:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:15:27]Read from MH i2c: E2 [08:15:27]MH_I2C_Read... [08:15:27]Read from MH i2c: E2 0B 00 [08:15:27]MH_I2C_Read... [08:15:27]Read from MH i2c: E2 0B 00 EA 3C 00 FF 74 13 AC E1 94 75 F6 90 00 B4 [08:15:27]RAPDU: FF 74 13 AC E1 94 75 F6 90 00 [08:15:27]wFMCommunicate OK [08:15:27]SAM_PROTO_SignData done [08:15:27]FM_MakeSignedData done [08:15:27]CreateOFDProtocolMessage [08:15:27]wFMCommunicate request_size=4 [08:15:27]MH_SAM_APDU [08:15:27]CAPDU: 80 11 00 00 [08:15:27]Write to MH i2c: E2 08 00 EB 3C 80 11 00 00 00 00 00 00 A1 [08:15:27]Write i2c OK [08:15:27]MH_I2C_Read... [08:15:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:15:27]Read from MH i2c: E2 [08:15:27]MH_I2C_Read... [08:15:27]Read from MH i2c: E2 17 00 [08:15:27]MH_I2C_Read... [08:15:27]Read from MH i2c: E2 17 00 EB 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 F1 [08:15:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [08:15:27]wFMCommunicate OK [08:15:27]CreateOFDProtocolMessage done [08:15:27]OFDSenderStorePacket 2003 [08:15:27]StoreOFDPacket docnum=2003 [08:15:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 AE 01 00 00 7F E9 A6 01 EB 33 5A 03 01 00 03 00 9A 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 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 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 34 39 06 04 3E 00 4C 65 74 60 73 20 47 4F 20 D0 A7 D0 B0 D0 B9 20 D0 B7 D0 B5 D0 BB D0 B5 D0 BD D1 8B D0 B9 20 D0 B3 D1 80 D0 B5 D0 B9 D0 BF D1 84 D1 80 D1 83 D1 82 20 30 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 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 4B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 4B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 22 FE A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D3 07 00 00 35 04 06 00 23 BD D5 3F AA C1 FF 74 13 AC E1 94 75 F6 [08:15:27]CheckFolder [08:15:27]dirname=/storage/ofd_packets [08:15:27]CheckFolder done [08:15:27]ProducePacketName [08:15:27]name=ofd_packets/00002003 [08:15:27]NVStorageSaveData ofd_packets/00002003 [08:15:27]File name is /storage/ofd_packets/00002003 [08:15:27]Write 460 bytes [08:15:27]NVStorageSaveData done [08:15:27]OFDSenderStorePacket done [08:15:27]KKMCreateOFDPacket done [08:15:27]NVStorageSaveData kkm_last_timestamp [08:15:27]File name is /storage/kkm_last_timestamp [08:15:27]Write 4 bytes [08:15:27]NVStorageSaveData done [08:15:27]ExternCall_PrintAddStr [08:15:27]wPrintStart [08:15:27]Write to MH i2c: 01 00 00 EC 3C 28 [08:15:27]Write i2c OK [08:15:27]MH_I2C_Read... [08:15:27]OFD Sender: Processing packet 2003 [packets to send 1, broken 0] [08:15:27]ProducePacketName [08:15:27]name=ofd_packets/00002003 [08:15:27]OFD Sender: To server: pG, [08:15:27]CommunicateWithHost lk.salyk.kg:30040 [08:15:27]ConnectInit lk.salyk.kg [08:15:27]Read from MH i2c: 01 [08:15:27]MH_I2C_Read... [08:15:27]Read from MH i2c: 01 07 00 [08:15:27]MH_I2C_Read... [08:15:27]Read from MH i2c: 01 07 00 EC 3C 00 00 00 00 00 FF 0F 3D [08:15:27]RasterBufferAndPrint [08:15:27]line Счет N : (3)126310 [08:15:27]line ИНН: 02508201610067 [08:15:27]line Контрольно-Кассовый Чек [08:15:27]line ПРОДАЖА [08:15:27]line Товар: 48744683 [08:15:27]line Сигареты Winston XStyle Caster+ [08:15:27]line 1.000 * 143.00 [08:15:27]line = 143.00 [08:15:27]line НДС 12% НСП 1% [08:15:27]line > о реализуемом товаре [08:15:27]line Товар: 4700003010049 [08:15:27]line Let`s GO Чай зеленый грейпфрут 0,5л ПЭТ [08:15:27]line 1.000 * 50.00 [08:15:27]line = 50.00 [08:15:27]line НДС 12% НСП 1% [08:15:27]line > о реализуемом товаре [08:15:27]line ИТОГО: 193.00 [08:15:27]line НСП 1% : 1.70 [08:15:27]line НДС 12% : 20.50 [08:15:27]line Наличными: 0.00 [08:15:27]line Безнал.: 193.00 [08:15:27]line Место: АЗС № 127 "Партнер Нефть" [08:15:27]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [08:15:27]line СНО: Общий режим [08:15:27]line Чек 54 28.07.2024 08:15 [08:15:27]line Смена: 13 ФФД: 1.0 [08:15:27]line ЗНМ: 0300000161 [08:15:27]line РНМ: 0000000000189667 [08:15:27]line Версия ККМ: v1.0 [08:15:27]line Платежная система: O! деньги [08:15:27]line ФМ: 0000000002094248 [08:15:27]line ФД: 2003 [08:15:27]line ФПД: 39298233510593 [08:15:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T081530&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2003&fm=39298233510593&tin=02508201610067®Number=0000000000189667&sum=19300 [08:15:27]line 0 [08:15:27]written 0, free lines is 4095 [08:15:27]Connected sock=8 [08:15:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 AE 01 00 00 7F E9 A6 01 EB 33 5A 03 01 00 03 00 9A 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 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 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 34 39 06 04 3E 00 4C 65 74 60 73 20 47 4F 20 D0 A7 D0 B0 D0 B9 20 D0 B7 D0 B5 D0 BB D0 B5 D0 BD D1 8B D0 B9 20 D0 B3 D1 80 D0 B5 D0 B9 D0 BF D1 84 D1 80 D1 83 D1 82 20 30 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 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 4B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 4B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 22 FE A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D3 07 00 00 35 04 06 00 23 BD D5 3F AA C1 FF 74 13 AC E1 94 75 F6 [08:15:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 EF AF 47 00 3A E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D3 07 00 00 F4 03 04 00 92 A9 A5 66 B6 04 01 00 00 7E 5E DB ED B4 CB 3D 5C [08:15:27]CommunicateWithHost err = 0 [08:15:27]CheckOFDResponse [08:15:27]1017 (14) - 77093643461234 [08:15:27]1041 (16) - 0000000002094248 [08:15:27]1040 (4) - 2003 [08:15:27]1012 (4) - 28.07.2024 02:14 [08:15:27]1206 (1) - 0 [08:15:27]OFD Sender: Remove packet 2003 [08:15:27]ProducePacketName [08:15:27]name=ofd_packets/00002003 [08:15:27]NVStorageDeleteData [08:15:28]Write to MH i2c: 01 00 00 1E 3D 5B [08:15:28]Write i2c OK [08:15:28]MH_I2C_Read... [08:15:28]Read from MH i2c: 01 [08:15:28]MH_I2C_Read... [08:15:28]Read from MH i2c: 01 07 00 [08:15:28]MH_I2C_Read... [08:15:28]Read from MH i2c: 01 07 00 1E 3D 00 00 00 00 00 80 0C EE [08:15:28]RasterBufferAndPrint [08:15:28]line [08:15:28]line [08:15:28]line [08:15:28]line [08:15:28]line [08:15:28]written 0, free lines is 3210 [08:15:28]MH_Cut [08:15:28]Write to MH i2c: D1 01 00 25 3D 01 34 [08:15:28]Write i2c OK [08:15:28]MH_I2C_Read... [08:15:28]Read from MH i2c: D1 [08:15:28]MH_I2C_Read... [08:15:28]Read from MH i2c: D1 01 00 [08:15:28]MH_I2C_Read... [08:15:28]Read from MH i2c: D1 01 00 25 3D 00 33 [08:15:28]Write to MH i2c: 01 00 00 26 3D 63 [08:15:28]Write i2c OK [08:15:28]MH_I2C_Read... [08:15:28]OFD Sender: No OFD packet to send [08:15:28]*** Cut start [08:15:28]*** Partial cut [08:15:28]*** CUTSNS_PIN = 1 [08:15:28]*** CUTSNS_PIN = 0 [08:15:29]*** Brake cut motor [08:15:29]Read from MH i2c: 01 [08:15:29]MH_I2C_Read... [08:15:29]*** Stop cut motor [08:15:29]*** Cut end [08:15:29]Read from MH i2c: 01 07 00 [08:15:29]MH_I2C_Read... [08:15:29]Read from MH i2c: 01 07 00 26 3D 00 00 00 00 00 FF 0F 78 [08:15:29]process_action close_receipt done [08:15:29]requested_data is exist [08:15:29]produce_requested_data [08:15:29]requested_item fm.sn is exist - process it [08:15:29]wFMCommunicate request_size=4 [08:15:29]MH_SAM_APDU [08:15:29]CAPDU: 80 11 00 00 [08:15:29]Write to MH i2c: E2 08 00 27 3D 80 11 00 00 00 00 00 00 DE [08:15:29]Write i2c OK [08:15:29]MH_I2C_Read... [08:15:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:15:29]Read from MH i2c: E2 [08:15:29]MH_I2C_Read... [08:15:29]Read from MH i2c: E2 17 00 [08:15:29]MH_I2C_Read... [08:15:29]Read from MH i2c: E2 17 00 27 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 2E [08:15:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [08:15:29]wFMCommunicate OK [08:15:29]requested_item fd.num is exist - process it [08:15:29]SAM_PROTO_GetFieldsCounters [08:15:29]wFMCommunicate request_size=4 [08:15:29]MH_SAM_APDU [08:15:29]CAPDU: 80 13 00 00 [08:15:29]Write to MH i2c: E2 08 00 28 3D 80 13 00 00 00 00 00 00 E1 [08:15:29]Write i2c OK [08:15:29]MH_I2C_Read... [08:15:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:15:29]Read from MH i2c: E2 [08:15:29]MH_I2C_Read... [08:15:29]Read from MH i2c: E2 62 00 [08:15:29]MH_I2C_Read... [08:15:29]Read from MH i2c: E2 62 00 28 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 D3 07 00 00 0E 04 04 00 0D 00 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 94 [08:15:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 D3 07 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:15:29]wFMCommunicate OK [08:15:29]SAM_PROTO_GetFieldsCounters done [08:15:29]requested_item shift.num is exist - process it [08:15:29]requested_item shift.opened is exist - process it [08:15:29]req_shift_opened [08:15:29]FM_GetShiftState [08:15:29]SAM_PROTO_GetShiftState [08:15:29]wFMCommunicate request_size=4 [08:15:29]MH_SAM_APDU [08:15:29]CAPDU: 80 13 01 00 [08:15:29]Write to MH i2c: E2 08 00 29 3D 80 13 01 00 00 00 00 00 E3 [08:15:29]Write i2c OK [08:15:29]MH_I2C_Read... [08:15:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:15:29]Read from MH i2c: E2 [08:15:29]MH_I2C_Read... [08:15:29]Read from MH i2c: E2 0E 00 [08:15:29]MH_I2C_Read... [08:15:29]Read from MH i2c: E2 0E 00 29 3D 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 D7 [08:15:29]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [08:15:29]wFMCommunicate OK [08:15:29]SAM_PROTO_GetShiftState done [08:15:29]FM_GetShiftState done [08:15:29]req_shift_opened done [08:15:29]requested_item shift.open_date is exist - process it [08:15:29]req_shift_open_date [08:15:29]req_shift_open_date done [08:15:29]produce_requested_data done [08:15:29]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2003,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [08:15:29]process_action_free close_receipt [08:15:29]json_value_free [08:15:29]json_value_free done [08:15:29]process_json_proto returns [08:15:29]Send response to host [08:15:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2003,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [08:15:29]free response buf [08:15:29]execute_script done [08:15:29]execute_script returns [08:15:29]free content buf [08:15:29]Sock 9.Close socket [08:15:29]Sock 9.Thread stoped [08:15:33]OFD Sender: No OFD packet to send [08:15:38]OFD Sender: No OFD packet to send [08:15:43]OFD Sender: No OFD packet to send [08:15:48]OFD Sender: No OFD packet to send [08:15:53]OFD Sender: No OFD packet to send [08:15:58]OFD Sender: No OFD packet to send [08:16:03]OFD Sender: No OFD packet to send [08:16:08]OFD Sender: No OFD packet to send [08:16:13]OFD Sender: No OFD packet to send [08:16:18]OFD Sender: No OFD packet to send [08:16:23]OFD Sender: No OFD packet to send [08:16:28]OFD Sender: No OFD packet to send [08:16:33]OFD Sender: No OFD packet to send [08:16:38]OFD Sender: No OFD packet to send [08:16:43]OFD Sender: No OFD packet to send [08:16:48]OFD Sender: No OFD packet to send [08:16:53]OFD Sender: No OFD packet to send [08:16:58]OFD Sender: No OFD packet to send [08:17:03]OFD Sender: No OFD packet to send [08:17:08]OFD Sender: No OFD packet to send [08:17:13]OFD Sender: No OFD packet to send [08:17:18]OFD Sender: No OFD packet to send [08:17:23]OFD Sender: No OFD packet to send [08:17:28]OFD Sender: No OFD packet to send [08:17:33]OFD Sender: No OFD packet to send [08:17:38]OFD Sender: No OFD packet to send [08:17:43]OFD Sender: No OFD packet to send [08:17:48]OFD Sender: No OFD packet to send [08:17:53]OFD Sender: No OFD packet to send [08:17:58]OFD Sender: No OFD packet to send [08:18:03]OFD Sender: No OFD packet to send [08:18:08]OFD Sender: No OFD packet to send [08:18:13]OFD Sender: No OFD packet to send [08:18:18]OFD Sender: No OFD packet to send [08:18:23]OFD Sender: No OFD packet to send [08:18:28]OFD Sender: No OFD packet to send [08:18:33]OFD Sender: No OFD packet to send [08:18:38]OFD Sender: No OFD packet to send [08:18:43]OFD Sender: No OFD packet to send [08:18:48]OFD Sender: No OFD packet to send [08:18:53]OFD Sender: No OFD packet to send [08:18:58]OFD Sender: No OFD packet to send [08:19:03]OFD Sender: No OFD packet to send [08:19:08]OFD Sender: No OFD packet to send [08:19:13]OFD Sender: No OFD packet to send [08:19:18]OFD Sender: No OFD packet to send [08:19:23]OFD Sender: No OFD packet to send [08:19:28]OFD Sender: No OFD packet to send [08:19:33]OFD Sender: No OFD packet to send [08:19:38]OFD Sender: No OFD packet to send [08:19:43]OFD Sender: No OFD packet to send [08:19:48]OFD Sender: No OFD packet to send [08:19:53]OFD Sender: No OFD packet to send [08:19:58]OFD Sender: No OFD packet to send [08:20:03]OFD Sender: No OFD packet to send [08:20:08]OFD Sender: No OFD packet to send [08:20:13]OFD Sender: No OFD packet to send [08:20: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:09]accept exits with 10 [08:21:09]New connection [08:21:09]New thread 3067317604 created [08:21:09]Thread 3067460964 joined [08:21:09]Waiting for new connection... [08:21:09] Sock 10.Parse request [08:21:09]Sock 10.Check first char [08:21:09]Sock 10.First char is OK [08:21:09]request: POST /json_proto HTTP/1.0 [08:21:09]Method: POST [08:21:09]URL: /json_proto [08:21:09]Method is POST - this is cgi request [08:21:09]url: /json_proto [08:21:09]query_string will be loaded in cgi processing [08:21:09]execute_cgi json_proto POST (null) [08:21:09]execute_cgi path=json_proto method=POST [08:21:09]POST find Content-Length [08:21:09]Host: 172.17.45.132:8080 [08:21:09]Content-Length: 647 [08:21:09]Content-Type: application/json [08:21:09] [08:21:09]POST finish read [08:21:09]Found Content-Length = 647 [08:21:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126311", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\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" ] } } [08:21:09]execute_script... [08:21: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)126311", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\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" ] } } [08:21:09]POST & json_proto [08:21:09]process_json_proto [08:21:09]json parsed OK: [08:21:09]protocol is kg_v1.0 [08:21:09]action value=close_receipt [08:21:09]process_action close_receipt [08:21:09]cmd_close_receipt [08:21:09]MH_GetDate [08:21:09]Write to MH i2c: F0 00 00 2A 3D 56 [08:21:09]Write i2c OK [08:21:09]MH_I2C_Read... [08:21:09]Read from MH i2c: F0 [08:21:09]MH_I2C_Read... [08:21:09]Read from MH i2c: F0 09 00 [08:21:09]MH_I2C_Read... [08:21:09]Read from MH i2c: F0 09 00 2A 3D 00 79 FF A5 66 E3 0B 90 66 C6 [08:21:09]GetLastDocTimeStamp 1722154530 [08:21:09]current date 1722154873 [08:21:09]FM_GetShiftState [08:21:09]SAM_PROTO_GetShiftState [08:21:09]wFMCommunicate request_size=4 [08:21:09]MH_SAM_APDU [08:21:09]CAPDU: 80 13 01 00 [08:21:09]Write to MH i2c: E2 08 00 2B 3D 80 13 01 00 00 00 00 00 E5 [08:21:09]Write i2c OK [08:21:09]MH_I2C_Read... [08:21:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:21:09]Read from MH i2c: E2 [08:21:09]MH_I2C_Read... [08:21:09]Read from MH i2c: E2 0E 00 [08:21:09]MH_I2C_Read... [08:21:09]Read from MH i2c: E2 0E 00 2B 3D 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 D9 [08:21:09]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [08:21:09]wFMCommunicate OK [08:21:09]SAM_PROTO_GetShiftState done [08:21:09]FM_GetShiftState done [08:21:09]opened in 1722125648 [08:21:09]opened+sec_in_day 1722212048 [08:21:09]quantity*price = 13000 [08:21:09]sum+1 = 13001 [08:21:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 55 28.07.2024 08:21 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2004 ФПД: 132756317434428 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T082113&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2004&fm=132756317434428&tin=02508201610067®Number=0000000000189667&sum=13000 0 [08:21:10]StoreToDocumentArchive [08:21:10]shift 13 fd 2004 [08:21:10]save to /storage/0013/doc_00002004 [08:21:10]save last doc name /storage/0013/doc_00002004 to /storage/kkm_last_doc_name [08:21:10]save OK [08:21:10]Clear old archive folders... [08:21:10]ProcessDocumentItem done err = 0, tmpTLVsize=272 [08:21:10]tlvbuf is 0204EC30 [08:21:10]SAM_PROTO_ClearQueue [08:21:10]wFMCommunicate request_size=4 [08:21:10]MH_SAM_APDU [08:21:10]CAPDU: 80 09 00 00 [08:21:10]Write to MH i2c: E2 08 00 38 3D 80 09 00 00 00 00 00 00 E7 [08:21:10]Write i2c OK [08:21:10]MH_I2C_Read... [08:21:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:21:10]Read from MH i2c: E2 [08:21:10]MH_I2C_Read... [08:21:10]Read from MH i2c: E2 03 00 [08:21:10]MH_I2C_Read... [08:21:10]Read from MH i2c: E2 03 00 38 3D 00 90 00 E9 [08:21:10]RAPDU: 90 00 [08:21:10]wFMCommunicate OK [08:21:10]SAM_PROTO_ClearQueue done [08:21:10]KKMCreateOFDPacket [08:21:10]OFDProtocolAddRootSTLVToBuf [08:21:10]FM_MakeSignedData [08:21:10]FM_MakeSignedData [08:21:10]SAM_PROTO_SignData [08:21:10]wFMCommunicate request_size=4 [08:21:10]MH_SAM_APDU [08:21:10]CAPDU: 80 0D 01 02 [08:21:10]Write to MH i2c: E2 08 00 39 3D 80 0D 01 02 00 00 00 00 EF [08:21:10]Write i2c OK [08:21:10]MH_I2C_Read... [08:21:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:21:10]Read from MH i2c: E2 [08:21:10]MH_I2C_Read... [08:21:10]Read from MH i2c: E2 03 00 [08:21:10]MH_I2C_Read... [08:21:10]Read from MH i2c: E2 03 00 39 3D 00 90 00 EA [08:21:10]RAPDU: 90 00 [08:21:10]wFMCommunicate OK [08:21:10]wFMCommunicate request_size=255 [08:21:10]MH_SAM_APDU [08:21:10]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD 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 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 37 00 00 00 F4 03 04 00 79 FF A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 [08:21:10]Write to MH i2c: E2 02 01 3A 3D 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD 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 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 37 00 00 00 F4 03 04 00 79 FF A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 00 00 60 [08:21:10]Write i2c OK [08:21:10]MH_I2C_Read... [08:21:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:21:10]Read from MH i2c: E2 [08:21:10]MH_I2C_Read... [08:21:10]Read from MH i2c: E2 03 00 [08:21:10]MH_I2C_Read... [08:21:10]Read from MH i2c: E2 03 00 3A 3D 00 90 00 EB [08:21:10]RAPDU: 90 00 [08:21:10]wFMCommunicate OK [08:21:10]wFMCommunicate request_size=31 [08:21:10]MH_SAM_APDU [08:21:10]CAPDU: 80 0D 02 02 1A 30 32 30 39 34 32 34 38 10 04 04 00 D4 07 00 00 35 04 06 00 78 BD BD 24 72 3C [08:21:10]Write to MH i2c: E2 22 00 3B 3D 80 0D 02 02 1A 00 30 32 30 39 34 32 34 38 10 04 04 00 D4 07 00 00 35 04 06 00 78 BD BD 24 72 3C 00 00 B9 [08:21:10]Write i2c OK [08:21:10]MH_I2C_Read... [08:21:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:21:10]Read from MH i2c: E2 [08:21:10]MH_I2C_Read... [08:21:10]Read from MH i2c: E2 03 00 [08:21:10]MH_I2C_Read... [08:21:10]Read from MH i2c: E2 03 00 3B 3D 00 90 00 EC [08:21:10]RAPDU: 90 00 [08:21:10]wFMCommunicate OK [08:21:10]wFMCommunicate request_size=4 [08:21:10]MH_SAM_APDU [08:21:10]CAPDU: 80 0D 03 02 [08:21:10]Write to MH i2c: E2 08 00 3C 3D 80 0D 03 02 00 00 00 00 F4 [08:21:10]Write i2c OK [08:21:10]MH_I2C_Read... [08:21:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:21:10]Read from MH i2c: E2 [08:21:10]MH_I2C_Read... [08:21:10]Read from MH i2c: E2 0B 00 [08:21:10]MH_I2C_Read... [08:21:10]Read from MH i2c: E2 0B 00 3C 3D 00 3C 92 5F DE 92 0B 46 59 90 00 3C [08:21:10]RAPDU: 3C 92 5F DE 92 0B 46 59 90 00 [08:21:10]wFMCommunicate OK [08:21:10]SAM_PROTO_SignData done [08:21:10]FM_MakeSignedData done [08:21:10]CreateOFDProtocolMessage [08:21:10]wFMCommunicate request_size=4 [08:21:10]MH_SAM_APDU [08:21:10]CAPDU: 80 11 00 00 [08:21:10]Write to MH i2c: E2 08 00 3D 3D 80 11 00 00 00 00 00 00 F4 [08:21:10]Write i2c OK [08:21:10]MH_I2C_Read... [08:21:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:21:10]Read from MH i2c: E2 [08:21:10]MH_I2C_Read... [08:21:10]Read from MH i2c: E2 17 00 [08:21:10]MH_I2C_Read... [08:21:10]Read from MH i2c: E2 17 00 3D 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 44 [08:21:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [08:21:11]wFMCommunicate OK [08:21:11]CreateOFDProtocolMessage done [08:21:11]OFDSenderStorePacket 2004 [08:21:11]StoreOFDPacket docnum=2004 [08:21:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 24 01 00 00 3F 8C 1C 01 96 5D 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD 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 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 37 00 00 00 F4 03 04 00 79 FF A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D4 07 00 00 35 04 06 00 78 BD BD 24 72 3C 3C 92 5F DE 92 0B 46 59 [08:21:11]CheckFolder [08:21:11]dirname=/storage/ofd_packets [08:21:11]CheckFolder done [08:21:11]ProducePacketName [08:21:11]name=ofd_packets/00002004 [08:21:11]NVStorageSaveData ofd_packets/00002004 [08:21:11]File name is /storage/ofd_packets/00002004 [08:21:11]Write 322 bytes [08:21:11]NVStorageSaveData done [08:21:11]OFDSenderStorePacket done [08:21:11]KKMCreateOFDPacket done [08:21:11]NVStorageSaveData kkm_last_timestamp [08:21:11]File name is /storage/kkm_last_timestamp [08:21:11]Write 4 bytes [08:21:11]NVStorageSaveData done [08:21:11]ExternCall_PrintAddStr [08:21:11]wPrintStart [08:21:11]Write to MH i2c: 01 00 00 3E 3D 7B [08:21:11]Write i2c OK [08:21:11]MH_I2C_Read... [08:21:11]Read from MH i2c: 01 [08:21:11]MH_I2C_Read... [08:21:11]Read from MH i2c: 01 07 00 [08:21:11]MH_I2C_Read... [08:21:11]Read from MH i2c: 01 07 00 3E 3D 00 00 00 00 00 FF 0F 90 [08:21:11]RasterBufferAndPrint [08:21:11]line Счет N : (3)126311 [08:21:11]line ИНН: 02508201610067 [08:21:11]line Контрольно-Кассовый Чек [08:21:11]line ПРОДАЖА [08:21:11]line Товар: 47011656 [08:21:11]line Водка Пшеничная 0,1л [08:21:11]line 2.000 * 65.00 [08:21:11]line = 130.00 [08:21:11]line НДС 12% НСП 1% [08:21:11]line > о реализуемом товаре [08:21:11]line ИТОГО: 130.00 [08:21:11]line НСП 1% : 1.15 [08:21:11]line НДС 12% : 13.80 [08:21:11]line Наличными: 130.00 [08:21:11]line Безнал.: 0.00 [08:21:11]line Место: АЗС № 127 "Партнер Нефть" [08:21:11]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [08:21:11]line СНО: Общий режим [08:21:11]line Чек 55 28.07.2024 08:21 [08:21:11]line Смена: 13 ФФД: 1.0 [08:21:11]line ЗНМ: 0300000161 [08:21:11]line РНМ: 0000000000189667 [08:21:11]line Версия ККМ: v1.0 [08:21:11]line ФМ: 0000000002094248 [08:21:11]line ФД: 2004 [08:21:11]line ФПД: 132756317434428 [08:21:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T082113&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2004&fm=132756317434428&tin=02508201610067®Number=0000000000189667&sum=13000 [08:21:11]line 0 [08:21:11]OFD Sender: Processing packet 2004 [packets to send 1, broken 0] [08:21:11]ProducePacketName [08:21:11]name=ofd_packets/00002004 [08:21:11]OFD Sender: To server: pG, [08:21:11]CommunicateWithHost lk.salyk.kg:30040 [08:21:11]ConnectInit lk.salyk.kg [08:21:11]written 0, free lines is 4095 [08:21:11]Connected sock=9 [08:21:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 24 01 00 00 3F 8C 1C 01 96 5D 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD 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 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 37 00 00 00 F4 03 04 00 79 FF A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D4 07 00 00 35 04 06 00 78 BD BD 24 72 3C 3C 92 5F DE 92 0B 46 59 [08:21:11]Write to MH i2c: 01 00 00 66 3D A3 [08:21:11]Write i2c OK [08:21:11]MH_I2C_Read... [08:21:11]Read from MH i2c: 01 [08:21:11]MH_I2C_Read... [08:21:11]Read from MH i2c: 01 07 00 [08:21:11]MH_I2C_Read... [08:21:11]Read from MH i2c: 01 07 00 66 3D 00 00 00 00 00 08 0D BF [08:21:11]RasterBufferAndPrint [08:21:11]line [08:21:11]line [08:21:11]line [08:21:11]line [08:21:11]line [08:21:11]written 0, free lines is 3342 [08:21:11]MH_Cut [08:21:11]Write to MH i2c: D1 01 00 6D 3D 01 7C [08:21:11]Write i2c OK [08:21:11]MH_I2C_Read... [08:21:11]Read from MH i2c: D1 [08:21:11]MH_I2C_Read... [08:21:11]Read from MH i2c: D1 01 00 [08:21:11]MH_I2C_Read... [08:21:11]Read from MH i2c: D1 01 00 6D 3D 00 7B [08:21:11]Write to MH i2c: 01 00 00 6E 3D AB [08:21:11]Write i2c OK [08:21:11]MH_I2C_Read... [08:21:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 7C 0A 47 00 34 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 32 30 39 34 32 34 38 10 04 04 00 D4 07 00 00 F4 03 04 00 EA AA A5 66 B6 04 01 00 00 67 8A 8D 86 7B A8 71 FC [08:21:11]CommunicateWithHost err = 0 [08:21:11]CheckOFDResponse [08:21:11]1017 (14) - 77093643461234 [08:21:11]1041 (16) - 0000000002094248 [08:21:11]1040 (4) - 2004 [08:21:11]1012 (4) - 28.07.2024 02:20 [08:21:11]1206 (1) - 0 [08:21:11]OFD Sender: Remove packet 2004 [08:21:11]ProducePacketName [08:21:11]name=ofd_packets/00002004 [08:21:11]NVStorageDeleteData [08:21:12]OFD Sender: No OFD packet to send [08:21:12]*** Cut start [08:21:12]*** Partial cut [08:21:12]*** CUTSNS_PIN = 1 [08:21:12]*** CUTSNS_PIN = 0 [08:21:12]*** Brake cut motor [08:21:13]Read from MH i2c: 01 [08:21:13]MH_I2C_Read... [08:21:13]*** Stop cut motor [08:21:13]*** Cut end [08:21:13]Read from MH i2c: 01 07 00 [08:21:13]MH_I2C_Read... [08:21:13]Read from MH i2c: 01 07 00 6E 3D 00 00 00 00 00 FF 0F C0 [08:21:13]process_action close_receipt done [08:21:13]requested_data is exist [08:21:13]produce_requested_data [08:21:13]requested_item fm.sn is exist - process it [08:21:13]wFMCommunicate request_size=4 [08:21:13]MH_SAM_APDU [08:21:13]CAPDU: 80 11 00 00 [08:21:13]Write to MH i2c: E2 08 00 6F 3D 80 11 00 00 00 00 00 00 26 [08:21:13]Write i2c OK [08:21:13]MH_I2C_Read... [08:21:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:21:13]Read from MH i2c: E2 [08:21:13]MH_I2C_Read... [08:21:13]Read from MH i2c: E2 17 00 [08:21:13]MH_I2C_Read... [08:21:13]Read from MH i2c: E2 17 00 6F 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 76 [08:21:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [08:21:13]wFMCommunicate OK [08:21:13]requested_item fd.num is exist - process it [08:21:13]SAM_PROTO_GetFieldsCounters [08:21:13]wFMCommunicate request_size=4 [08:21:13]MH_SAM_APDU [08:21:13]CAPDU: 80 13 00 00 [08:21:13]Write to MH i2c: E2 08 00 70 3D 80 13 00 00 00 00 00 00 29 [08:21:13]Write i2c OK [08:21:13]MH_I2C_Read... [08:21:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:21:13]Read from MH i2c: E2 [08:21:13]MH_I2C_Read... [08:21:13]Read from MH i2c: E2 62 00 [08:21:13]MH_I2C_Read... [08:21:13]Read from MH i2c: E2 62 00 70 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 D4 07 00 00 0E 04 04 00 0D 00 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 E0 [08:21:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 D4 07 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:21:13]wFMCommunicate OK [08:21:13]SAM_PROTO_GetFieldsCounters done [08:21:13]requested_item shift.num is exist - process it [08:21:13]requested_item shift.opened is exist - process it [08:21:13]req_shift_opened [08:21:13]FM_GetShiftState [08:21:13]SAM_PROTO_GetShiftState [08:21:13]wFMCommunicate request_size=4 [08:21:13]MH_SAM_APDU [08:21:13]CAPDU: 80 13 01 00 [08:21:13]Write to MH i2c: E2 08 00 71 3D 80 13 01 00 00 00 00 00 2B [08:21:13]Write i2c OK [08:21:13]MH_I2C_Read... [08:21:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:21:13]Read from MH i2c: E2 [08:21:13]MH_I2C_Read... [08:21:13]Read from MH i2c: E2 0E 00 [08:21:13]MH_I2C_Read... [08:21:13]Read from MH i2c: E2 0E 00 71 3D 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 1F [08:21:13]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [08:21:13]wFMCommunicate OK [08:21:13]SAM_PROTO_GetShiftState done [08:21:13]FM_GetShiftState done [08:21:13]req_shift_opened done [08:21:13]requested_item shift.open_date is exist - process it [08:21:13]req_shift_open_date [08:21:13]req_shift_open_date done [08:21:13]produce_requested_data done [08:21:13]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2004,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [08:21:13]process_action_free close_receipt [08:21:13]json_value_free [08:21:13]json_value_free done [08:21:13]process_json_proto returns [08:21:13]Send response to host [08:21:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2004,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [08:21:13]free response buf [08:21:13]execute_script done [08:21:13]execute_script returns [08:21:13]free content buf [08:21:13]Sock 10.Close socket [08:21:13]Sock 10.Thread stoped [08:21:17]OFD Sender: No OFD packet to send [08:21:22]OFD Sender: No OFD packet to send [08:21:27]OFD Sender: No OFD packet to send [08:21:32]OFD Sender: No OFD packet to send [08:21:37]OFD Sender: No OFD packet to send [08:21:42]OFD Sender: No OFD packet to send [08:21:47]OFD Sender: No OFD packet to send [08:21:52]accept exits with 8 [08:21:52]New connection [08:21:52]New thread 3067460964 created [08:21:52]Thread 3067317604 joined [08:21:52]Waiting for new connection... [08:21:52] Sock 8.Parse request [08:21:52]Sock 8.Check first char [08:21:52]Sock 8.First char is OK [08:21:52]request: POST /json_proto HTTP/1.0 [08:21:52]Method: POST [08:21:52]URL: /json_proto [08:21:52]Method is POST - this is cgi request [08:21:52]url: /json_proto [08:21:52]query_string will be loaded in cgi processing [08:21:52]execute_cgi json_proto POST (null) [08:21:52]execute_cgi path=json_proto method=POST [08:21:52]POST find Content-Length [08:21:52]Host: 172.17.45.132:8080 [08:21:52]Content-Length: 623 [08:21:52]Content-Type: application/json [08:21:52] [08:21:52]POST finish read [08:21:52]Found Content-Length = 623 [08:21:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126312", "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:21:52]execute_script... [08:21:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126312", "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:21:52]POST & json_proto [08:21:52]process_json_proto [08:21:52]json parsed OK: [08:21:52]protocol is kg_v1.0 [08:21:52]action value=close_receipt [08:21:52]process_action close_receipt [08:21:52]cmd_close_receipt [08:21:52]MH_GetDate [08:21:52]Write to MH i2c: F0 00 00 72 3D 9E [08:21:52]Write i2c OK [08:21:52]MH_I2C_Read... [08:21:52]Read from MH i2c: F0 [08:21:52]MH_I2C_Read... [08:21:52]Read from MH i2c: F0 09 00 [08:21:52]MH_I2C_Read... [08:21:52]Read from MH i2c: F0 09 00 72 3D 00 A4 FF A5 66 E3 0B 90 66 39 [08:21:52]GetLastDocTimeStamp 1722154873 [08:21:52]current date 1722154916 [08:21:52]FM_GetShiftState [08:21:52]SAM_PROTO_GetShiftState [08:21:52]wFMCommunicate request_size=4 [08:21:52]MH_SAM_APDU [08:21:52]CAPDU: 80 13 01 00 [08:21:52]Write to MH i2c: E2 08 00 73 3D 80 13 01 00 00 00 00 00 2D [08:21:52]Write i2c OK [08:21:52]MH_I2C_Read... [08:21:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:21:52]Read from MH i2c: E2 [08:21:52]MH_I2C_Read... [08:21:52]Read from MH i2c: E2 0E 00 [08:21:52]MH_I2C_Read... [08:21:52]Read from MH i2c: E2 0E 00 73 3D 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 21 [08:21:52]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [08:21:52]wFMCommunicate OK [08:21:52]SAM_PROTO_GetShiftState done [08:21:52]FM_GetShiftState done [08:21:52]opened in 1722125648 [08:21:52]opened+sec_in_day 1722212048 [08:21:52]quantity*price = 14000 [08:21:52]sum+1 = 14001 [08:21:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 56 28.07.2024 08:21 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2005 ФПД: 146370836700285 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T082157&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2005&fm=146370836700285&tin=02508201610067®Number=0000000000189667&sum=14000 0 [08:21:53]StoreToDocumentArchive [08:21:53]shift 13 fd 2005 [08:21:53]save to /storage/0013/doc_00002005 [08:21:53]save last doc name /storage/0013/doc_00002005 to /storage/kkm_last_doc_name [08:21:53]save OK [08:21:53]Clear old archive folders... [08:21:53]ProcessDocumentItem done err = 0, tmpTLVsize=275 [08:21:53]tlvbuf is 01FFBEB0 [08:21:53]SAM_PROTO_ClearQueue [08:21:53]wFMCommunicate request_size=4 [08:21:53]MH_SAM_APDU [08:21:53]CAPDU: 80 09 00 00 [08:21:53]Write to MH i2c: E2 08 00 80 3D 80 09 00 00 00 00 00 00 2F [08:21:53]Write i2c OK [08:21:53]MH_I2C_Read... [08:21:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:21:53]Read from MH i2c: E2 [08:21:53]MH_I2C_Read... [08:21:53]Read from MH i2c: E2 03 00 [08:21:53]MH_I2C_Read... [08:21:53]Read from MH i2c: E2 03 00 80 3D 00 90 00 31 [08:21:53]RAPDU: 90 00 [08:21:53]wFMCommunicate OK [08:21:53]SAM_PROTO_ClearQueue done [08:21:53]KKMCreateOFDPacket [08:21:53]OFDProtocolAddRootSTLVToBuf [08:21:53]FM_MakeSignedData [08:21:53]FM_MakeSignedData [08:21:53]SAM_PROTO_SignData [08:21:53]wFMCommunicate request_size=4 [08:21:53]MH_SAM_APDU [08:21:53]CAPDU: 80 0D 01 02 [08:21:53]Write to MH i2c: E2 08 00 81 3D 80 0D 01 02 00 00 00 00 37 [08:21:53]Write i2c OK [08:21:53]MH_I2C_Read... [08:21:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:21:53]Read from MH i2c: E2 [08:21:53]MH_I2C_Read... [08:21:53]Read from MH i2c: E2 03 00 [08:21:53]MH_I2C_Read... [08:21:53]Read from MH i2c: E2 03 00 81 3D 00 90 00 32 [08:21:53]RAPDU: 90 00 [08:21:53]wFMCommunicate OK [08:21:53]wFMCommunicate request_size=255 [08:21:53]MH_SAM_APDU [08:21:53]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 38 00 00 00 F4 03 04 00 A5 FF A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 [08:21:53]Write to MH i2c: E2 02 01 82 3D 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 38 00 00 00 F4 03 04 00 A5 FF A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 00 00 C7 [08:21:53]Write i2c OK [08:21:53]MH_I2C_Read... [08:21:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:21:53]Read from MH i2c: E2 [08:21:53]MH_I2C_Read... [08:21:53]Read from MH i2c: E2 03 00 [08:21:53]MH_I2C_Read... [08:21:53]Read from MH i2c: E2 03 00 82 3D 00 90 00 33 [08:21:53]RAPDU: 90 00 [08:21:53]wFMCommunicate OK [08:21:53]wFMCommunicate request_size=34 [08:21:53]MH_SAM_APDU [08:21:53]CAPDU: 80 0D 02 02 1D 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D5 07 00 00 35 04 06 00 85 1F 9D BA 1C 7D [08:21:53]Write to MH i2c: E2 25 00 83 3D 80 0D 02 02 1D 00 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D5 07 00 00 35 04 06 00 85 1F 9D BA 1C 7D 00 00 68 [08:21:53]Write i2c OK [08:21:53]MH_I2C_Read... [08:21:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:21:53]Read from MH i2c: E2 [08:21:53]MH_I2C_Read... [08:21:53]Read from MH i2c: E2 03 00 [08:21:53]MH_I2C_Read... [08:21:53]Read from MH i2c: E2 03 00 83 3D 00 90 00 34 [08:21:53]RAPDU: 90 00 [08:21:53]wFMCommunicate OK [08:21:53]wFMCommunicate request_size=4 [08:21:53]MH_SAM_APDU [08:21:53]CAPDU: 80 0D 03 02 [08:21:53]Write to MH i2c: E2 08 00 84 3D 80 0D 03 02 00 00 00 00 3C [08:21:53]Write i2c OK [08:21:53]MH_I2C_Read... [08:21:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:21:53]Read from MH i2c: E2 [08:21:53]MH_I2C_Read... [08:21:53]Read from MH i2c: E2 0B 00 [08:21:53]MH_I2C_Read... [08:21:53]Read from MH i2c: E2 0B 00 84 3D 00 2E 2A 60 14 59 D2 31 E5 90 00 4A [08:21:53]RAPDU: 2E 2A 60 14 59 D2 31 E5 90 00 [08:21:53]wFMCommunicate OK [08:21:53]SAM_PROTO_SignData done [08:21:53]FM_MakeSignedData done [08:21:53]CreateOFDProtocolMessage [08:21:53]wFMCommunicate request_size=4 [08:21:53]MH_SAM_APDU [08:21:53]CAPDU: 80 11 00 00 [08:21:53]Write to MH i2c: E2 08 00 85 3D 80 11 00 00 00 00 00 00 3C [08:21:54]Write i2c OK [08:21:54]MH_I2C_Read... [08:21:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:21:54]Read from MH i2c: E2 [08:21:54]MH_I2C_Read... [08:21:54]Read from MH i2c: E2 17 00 [08:21:54]MH_I2C_Read... [08:21:54]Read from MH i2c: E2 17 00 85 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 8C [08:21:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [08:21:54]wFMCommunicate OK [08:21:54]CreateOFDProtocolMessage done [08:21:54]OFDSenderStorePacket 2005 [08:21:54]StoreOFDPacket docnum=2005 [08:21:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 27 01 00 00 1D 73 1F 01 46 E4 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 38 00 00 00 F4 03 04 00 A5 FF A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D5 07 00 00 35 04 06 00 85 1F 9D BA 1C 7D 2E 2A 60 14 59 D2 31 E5 [08:21:54]CheckFolder [08:21:54]dirname=/storage/ofd_packets [08:21:54]CheckFolder done [08:21:54]ProducePacketName [08:21:54]name=ofd_packets/00002005 [08:21:54]NVStorageSaveData ofd_packets/00002005 [08:21:54]File name is /storage/ofd_packets/00002005 [08:21:54]Write 325 bytes [08:21:54]NVStorageSaveData done [08:21:54]OFDSenderStorePacket done [08:21:54]KKMCreateOFDPacket done [08:21:54]NVStorageSaveData kkm_last_timestamp [08:21:54]File name is /storage/kkm_last_timestamp [08:21:54]Write 4 bytes [08:21:54]NVStorageSaveData done [08:21:54]ExternCall_PrintAddStr [08:21:54]wPrintStart [08:21:54]Write to MH i2c: 01 00 00 86 3D C3 [08:21:54]Write i2c OK [08:21:54]MH_I2C_Read... [08:21:54]Read from MH i2c: 01 [08:21:54]MH_I2C_Read... [08:21:54]Read from MH i2c: 01 07 00 [08:21:54]MH_I2C_Read... [08:21:54]Read from MH i2c: 01 07 00 86 3D 00 00 00 00 00 FF 0F D8 [08:21:54]RasterBufferAndPrint [08:21:54]line Счет N : (3)126312 [08:21:54]line ИНН: 02508201610067 [08:21:54]line Контрольно-Кассовый Чек [08:21:54]line ПРОДАЖА [08:21:54]line Товар: 48743587 [08:21:54]line Сигареты Winston XStyle Silver [08:21:54]line 1.000 * 140.00 [08:21:54]line = 140.00 [08:21:54]line НДС 12% НСП 1% [08:21:54]line > о реализуемом товаре [08:21:54]line ИТОГО: 140.00 [08:21:54]line НСП 1% : 1.24 [08:21:54]line НДС 12% : 14.87 [08:21:54]line Наличными: 140.00 [08:21:54]line Безнал.: 0.00 [08:21:54]line Место: АЗС № 127 "Партнер Нефть" [08:21:54]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [08:21:54]line СНО: Общий режим [08:21:54]line Чек 56 28.07.2024 08:21 [08:21:54]line Смена: 13 ФФД: 1.0 [08:21:54]line ЗНМ: 0300000161 [08:21:54]line РНМ: 0000000000189667 [08:21:54]line Версия ККМ: v1.0 [08:21:54]line ФМ: 0000000002094248 [08:21:54]line ФД: 2005 [08:21:54]line ФПД: 146370836700285 [08:21:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T082157&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2005&fm=146370836700285&tin=02508201610067®Number=0000000000189667&sum=14000 [08:21:54]line 0 [08:21:54]OFD Sender: Processing packet 2005 [packets to send 1, broken 0] [08:21:54]ProducePacketName [08:21:54]name=ofd_packets/00002005 [08:21:54]OFD Sender: To server: pG, [08:21:54]CommunicateWithHost lk.salyk.kg:30040 [08:21:54]ConnectInit lk.salyk.kg [08:21:54]written 0, free lines is 4095 [08:21:54]Connected sock=10 [08:21:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 27 01 00 00 1D 73 1F 01 46 E4 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 38 00 00 00 F4 03 04 00 A5 FF A5 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D5 07 00 00 35 04 06 00 85 1F 9D BA 1C 7D 2E 2A 60 14 59 D2 31 E5 [08:21:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 02 59 47 00 2E 94 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D5 07 00 00 F4 03 04 00 15 AB A5 66 B6 04 01 00 00 D2 AC AF E8 1C 6A E7 AB [08:21:54]CommunicateWithHost err = 0 [08:21:54]CheckOFDResponse [08:21:54]1017 (14) - 77093643461234 [08:21:54]1041 (16) - 0000000002094248 [08:21:54]1040 (4) - 2005 [08:21:54]1012 (4) - 28.07.2024 02:21 [08:21:54]1206 (1) - 0 [08:21:54]OFD Sender: Remove packet 2005 [08:21:54]ProducePacketName [08:21:54]name=ofd_packets/00002005 [08:21:54]NVStorageDeleteData [08:21:54]Write to MH i2c: 01 00 00 AF 3D EC [08:21:54]Write i2c OK [08:21:54]MH_I2C_Read... [08:21:54]Read from MH i2c: 01 [08:21:54]MH_I2C_Read... [08:21:54]Read from MH i2c: 01 07 00 [08:21:54]MH_I2C_Read... [08:21:54]Read from MH i2c: 01 07 00 AF 3D 00 00 00 00 00 0A 0D 0A [08:21:54]RasterBufferAndPrint [08:21:54]line [08:21:54]line [08:21:54]line [08:21:54]line [08:21:54]line [08:21:54]written 0, free lines is 3344 [08:21:54]MH_Cut [08:21:54]Write to MH i2c: D1 01 00 B6 3D 01 C5 [08:21:54]Write i2c OK [08:21:54]MH_I2C_Read... [08:21:54]Read from MH i2c: D1 [08:21:54]MH_I2C_Read... [08:21:54]Read from MH i2c: D1 01 00 [08:21:54]MH_I2C_Read... [08:21:54]Read from MH i2c: D1 01 00 B6 3D 00 C4 [08:21:54]Write to MH i2c: 01 00 00 B7 3D F4 [08:21:54]Write i2c OK [08:21:54]MH_I2C_Read... [08:21:55]OFD Sender: No OFD packet to send [08:21:55]*** Cut start [08:21:55]*** Partial cut [08:21:55]*** CUTSNS_PIN = 1 [08:21:55]*** CUTSNS_PIN = 0 [08:21:55]*** Brake cut motor [08:21:56]Read from MH i2c: 01 [08:21:56]MH_I2C_Read... [08:21:56]*** Stop cut motor [08:21:56]*** Cut end [08:21:56]Read from MH i2c: 01 07 00 [08:21:56]MH_I2C_Read... [08:21:56]Read from MH i2c: 01 07 00 B7 3D 00 00 00 00 00 FF 0F 09 [08:21:56]process_action close_receipt done [08:21:56]requested_data is exist [08:21:56]produce_requested_data [08:21:56]requested_item fm.sn is exist - process it [08:21:56]wFMCommunicate request_size=4 [08:21:56]MH_SAM_APDU [08:21:56]CAPDU: 80 11 00 00 [08:21:56]Write to MH i2c: E2 08 00 B8 3D 80 11 00 00 00 00 00 00 6F [08:21:56]Write i2c OK [08:21:56]MH_I2C_Read... [08:21:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:21:56]Read from MH i2c: E2 [08:21:56]MH_I2C_Read... [08:21:56]Read from MH i2c: E2 17 00 [08:21:56]MH_I2C_Read... [08:21:56]Read from MH i2c: E2 17 00 B8 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 BF [08:21:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [08:21:56]wFMCommunicate OK [08:21:56]requested_item fd.num is exist - process it [08:21:56]SAM_PROTO_GetFieldsCounters [08:21:56]wFMCommunicate request_size=4 [08:21:56]MH_SAM_APDU [08:21:56]CAPDU: 80 13 00 00 [08:21:56]Write to MH i2c: E2 08 00 B9 3D 80 13 00 00 00 00 00 00 72 [08:21:56]Write i2c OK [08:21:56]MH_I2C_Read... [08:21:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:21:56]Read from MH i2c: E2 [08:21:56]MH_I2C_Read... [08:21:56]Read from MH i2c: E2 62 00 [08:21:56]MH_I2C_Read... [08:21:56]Read from MH i2c: E2 62 00 B9 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 D5 07 00 00 0E 04 04 00 0D 00 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 2D [08:21:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 D5 07 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:21:56]wFMCommunicate OK [08:21:56]SAM_PROTO_GetFieldsCounters done [08:21:56]requested_item shift.num is exist - process it [08:21:56]requested_item shift.opened is exist - process it [08:21:56]req_shift_opened [08:21:56]FM_GetShiftState [08:21:56]SAM_PROTO_GetShiftState [08:21:56]wFMCommunicate request_size=4 [08:21:56]MH_SAM_APDU [08:21:56]CAPDU: 80 13 01 00 [08:21:56]Write to MH i2c: E2 08 00 BA 3D 80 13 01 00 00 00 00 00 74 [08:21:56]Write i2c OK [08:21:56]MH_I2C_Read... [08:21:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:21:56]Read from MH i2c: E2 [08:21:56]MH_I2C_Read... [08:21:56]Read from MH i2c: E2 0E 00 [08:21:56]MH_I2C_Read... [08:21:56]Read from MH i2c: E2 0E 00 BA 3D 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 68 [08:21:56]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [08:21:56]wFMCommunicate OK [08:21:56]SAM_PROTO_GetShiftState done [08:21:56]FM_GetShiftState done [08:21:56]req_shift_opened done [08:21:56]requested_item shift.open_date is exist - process it [08:21:56]req_shift_open_date [08:21:56]req_shift_open_date done [08:21:56]produce_requested_data done [08:21:56]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2005,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [08:21:56]process_action_free close_receipt [08:21:56]json_value_free [08:21:56]json_value_free done [08:21:56]process_json_proto returns [08:21:56]Send response to host [08:21:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2005,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [08:21:56]free response buf [08:21:56]execute_script done [08:21:56]execute_script returns [08:21:56]free content buf [08:21:56]Sock 8.Close socket [08:21:56]Sock 8.Thread stoped [08:22:00]OFD Sender: No OFD packet to send [08:22:05]OFD Sender: No OFD packet to send [08:22:10]OFD Sender: No OFD packet to send [08:22:15]OFD Sender: No OFD packet to send [08:22:20]OFD Sender: No OFD packet to send [08:22:25]OFD Sender: No OFD packet to send [08:22:30]OFD Sender: No OFD packet to send [08:22:35]OFD Sender: No OFD packet to send [08:22:40]OFD Sender: No OFD packet to send [08:22:45]OFD Sender: No OFD packet to send [08:22:50]OFD Sender: No OFD packet to send [08:22:55]OFD Sender: No OFD packet to send [08:23:00]OFD Sender: No OFD packet to send [08:23:05]OFD Sender: No OFD packet to send [08:23:10]OFD Sender: No OFD packet to send [08:23:15]OFD Sender: No OFD packet to send [08:23:20]OFD Sender: No OFD packet to send [08:23:25]OFD Sender: No OFD packet to send [08:23:30]OFD Sender: No OFD packet to send [08:23:35]OFD Sender: No OFD packet to send [08:23:40]OFD Sender: No OFD packet to send [08:23:45]OFD Sender: No OFD packet to send [08:23:50]OFD Sender: No OFD packet to send [08:23:55]OFD Sender: No OFD packet to send [08:24:00]OFD Sender: No OFD packet to send [08:24:05]OFD Sender: No OFD packet to send [08:24:10]OFD Sender: No OFD packet to send [08:24:15]OFD Sender: No OFD packet to send [08:24:20]OFD Sender: No OFD packet to send [08:24:25]OFD Sender: No OFD packet to send [08:24:30]OFD Sender: No OFD packet to send [08:24:35]OFD Sender: No OFD packet to send [08:24:40]OFD Sender: No OFD packet to send [08:24:45]OFD Sender: No OFD packet to send [08:24:50]OFD Sender: No OFD packet to send [08:24:55]OFD Sender: No OFD packet to send [08:25:00]OFD Sender: No OFD packet to send [08:25:05]OFD Sender: No OFD packet to send [08:25:10]OFD Sender: No OFD packet to send [08:25:15]OFD Sender: No OFD packet to send [08:25:16]accept exits with 9 [08:25:16]New connection [08:25:16]New thread 3067317604 created [08:25:16]Thread 3067460964 joined [08:25:16]Waiting for new connection... [08:25:16] Sock 9.Parse request [08:25:16]Sock 9.Check first char [08:25:16]Sock 9.First char is OK [08:25:16]request: POST /json_proto HTTP/1.0 [08:25:16]Method: POST [08:25:16]URL: /json_proto [08:25:16]Method is POST - this is cgi request [08:25:16]url: /json_proto [08:25:16]query_string will be loaded in cgi processing [08:25:16]execute_cgi json_proto POST (null) [08:25:16]execute_cgi path=json_proto method=POST [08:25:16]POST find Content-Length [08:25:16]Host: 172.17.45.132:8080 [08:25:16]Content-Length: 1123 [08:25:16]Content-Type: application/json [08:25:16] [08:25:16]POST finish read [08:25:16]Found Content-Length = 1123 [08:25:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126313", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5000159390729", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 \u042D\u043A\u0441\u0442\u0440\u0430 82\u0433", "price" : 89.00, "quantity" : 1.000, "sum" : 89.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" : 349.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:25:16]execute_script... [08:25:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126313", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5000159390729", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 \u042D\u043A\u0441\u0442\u0440\u0430 82\u0433", "price" : 89.00, "quantity" : 1.000, "sum" : 89.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" : 349.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:25:16]POST & json_proto [08:25:16]process_json_proto [08:25:16]json parsed OK: [08:25:16]protocol is kg_v1.0 [08:25:16]action value=close_receipt [08:25:16]process_action close_receipt [08:25:16]cmd_close_receipt [08:25:16]MH_GetDate [08:25:16]Write to MH i2c: F0 00 00 BB 3D E7 [08:25:16]Write i2c OK [08:25:16]MH_I2C_Read... [08:25:16]Read from MH i2c: F0 [08:25:16]MH_I2C_Read... [08:25:16]Read from MH i2c: F0 09 00 [08:25:16]MH_I2C_Read... [08:25:16]Read from MH i2c: F0 09 00 BB 3D 00 71 00 A6 66 E3 0B 90 66 51 [08:25:16]GetLastDocTimeStamp 1722154917 [08:25:16]current date 1722155121 [08:25:16]FM_GetShiftState [08:25:16]SAM_PROTO_GetShiftState [08:25:16]wFMCommunicate request_size=4 [08:25:16]MH_SAM_APDU [08:25:16]CAPDU: 80 13 01 00 [08:25:16]Write to MH i2c: E2 08 00 BC 3D 80 13 01 00 00 00 00 00 76 [08:25:16]Write i2c OK [08:25:16]MH_I2C_Read... [08:25:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:25:16]Read from MH i2c: E2 [08:25:16]MH_I2C_Read... [08:25:16]Read from MH i2c: E2 0E 00 [08:25:16]MH_I2C_Read... [08:25:16]Read from MH i2c: E2 0E 00 BC 3D 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 6A [08:25:16]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [08:25:16]wFMCommunicate OK [08:25:16]SAM_PROTO_GetShiftState done [08:25:16]FM_GetShiftState done [08:25:16]opened in 1722125648 [08:25:16]opened+sec_in_day 1722212048 [08:25:16]quantity*price = 26000 [08:25:16]sum+1 = 26001 [08:25:16]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5000159390729 Шок Батончик Твикс Экстра 82г 1.000 * 89.00 = 89.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 349.00 НСП 1% : 3.09 НДС 12% : 37.06 Наличными: 0.00 Безнал.: 349.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 57 28.07.2024 08:25 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2006 ФПД: 164862320039181 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T082521&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2006&fm=164862320039181&tin=02508201610067®Number=0000000000189667&sum=34900 0 [08:25:17]StoreToDocumentArchive [08:25:17]shift 13 fd 2006 [08:25:17]save to /storage/0013/doc_00002006 [08:25:17]save last doc name /storage/0013/doc_00002006 to /storage/kkm_last_doc_name [08:25:17]save OK [08:25:17]Clear old archive folders... [08:25:17]ProcessDocumentItem done err = 0, tmpTLVsize=406 [08:25:17]tlvbuf is 02008EC0 [08:25:17]SAM_PROTO_ClearQueue [08:25:17]wFMCommunicate request_size=4 [08:25:17]MH_SAM_APDU [08:25:17]CAPDU: 80 09 00 00 [08:25:17]Write to MH i2c: E2 08 00 C9 3D 80 09 00 00 00 00 00 00 78 [08:25:17]Write i2c OK [08:25:17]MH_I2C_Read... [08:25:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:25:17]Read from MH i2c: E2 [08:25:17]MH_I2C_Read... [08:25:17]Read from MH i2c: E2 03 00 [08:25:17]MH_I2C_Read... [08:25:17]Read from MH i2c: E2 03 00 C9 3D 00 90 00 7A [08:25:17]RAPDU: 90 00 [08:25:17]wFMCommunicate OK [08:25:17]SAM_PROTO_ClearQueue done [08:25:17]KKMCreateOFDPacket [08:25:17]OFDProtocolAddRootSTLVToBuf [08:25:17]FM_MakeSignedData [08:25:17]FM_MakeSignedData [08:25:17]SAM_PROTO_SignData [08:25:17]wFMCommunicate request_size=4 [08:25:17]MH_SAM_APDU [08:25:17]CAPDU: 80 0D 01 02 [08:25:17]Write to MH i2c: E2 08 00 CA 3D 80 0D 01 02 00 00 00 00 80 [08:25:17]Write i2c OK [08:25:17]MH_I2C_Read... [08:25:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:25:17]Read from MH i2c: E2 [08:25:17]MH_I2C_Read... [08:25:17]Read from MH i2c: E2 03 00 [08:25:17]MH_I2C_Read... [08:25:17]Read from MH i2c: E2 03 00 CA 3D 00 90 00 7B [08:25:17]RAPDU: 90 00 [08:25:17]wFMCommunicate OK [08:25:17]wFMCommunicate request_size=255 [08:25:17]MH_SAM_APDU [08:25:17]CAPDU: 80 0D 02 02 FA 03 00 96 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 39 30 37 32 39 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 [08:25:17]Write to MH i2c: E2 02 01 CB 3D 80 0D 02 02 FA 00 03 00 96 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 39 30 37 32 39 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 00 00 3B [08:25:17]Write i2c OK [08:25:17]MH_I2C_Read... [08:25:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:25:18]Read from MH i2c: E2 [08:25:18]MH_I2C_Read... [08:25:18]Read from MH i2c: E2 03 00 [08:25:18]MH_I2C_Read... [08:25:18]Read from MH i2c: E2 03 00 CB 3D 00 90 00 7C [08:25:18]RAPDU: 90 00 [08:25:18]wFMCommunicate OK [08:25:18]wFMCommunicate request_size=165 [08:25:18]MH_SAM_APDU [08:25:18]CAPDU: 80 0D 02 02 A0 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 54 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 71 00 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D6 07 00 00 35 04 06 00 95 F1 00 05 D5 0D [08:25:18]Write to MH i2c: E2 A8 00 CC 3D 80 0D 02 02 A0 00 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 54 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 71 00 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D6 07 00 00 35 04 06 00 95 F1 00 05 D5 0D 00 00 38 [08:25:18]Write i2c OK [08:25:18]MH_I2C_Read... [08:25:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:25:18]Read from MH i2c: E2 [08:25:18]MH_I2C_Read... [08:25:18]Read from MH i2c: E2 03 00 [08:25:18]MH_I2C_Read... [08:25:18]Read from MH i2c: E2 03 00 CC 3D 00 90 00 7D [08:25:18]RAPDU: 90 00 [08:25:18]wFMCommunicate OK [08:25:18]wFMCommunicate request_size=4 [08:25:18]MH_SAM_APDU [08:25:18]CAPDU: 80 0D 03 02 [08:25:18]Write to MH i2c: E2 08 00 CD 3D 80 0D 03 02 00 00 00 00 85 [08:25:18]Write i2c OK [08:25:18]MH_I2C_Read... [08:25:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:25:18]Read from MH i2c: E2 [08:25:18]MH_I2C_Read... [08:25:18]Read from MH i2c: E2 0B 00 [08:25:18]MH_I2C_Read... [08:25:18]Read from MH i2c: E2 0B 00 CD 3D 00 26 0B F5 A9 66 00 09 12 90 00 D6 [08:25:18]RAPDU: 26 0B F5 A9 66 00 09 12 90 00 [08:25:18]wFMCommunicate OK [08:25:18]SAM_PROTO_SignData done [08:25:18]FM_MakeSignedData done [08:25:18]CreateOFDProtocolMessage [08:25:18]wFMCommunicate request_size=4 [08:25:18]MH_SAM_APDU [08:25:18]CAPDU: 80 11 00 00 [08:25:18]Write to MH i2c: E2 08 00 CE 3D 80 11 00 00 00 00 00 00 85 [08:25:18]Write i2c OK [08:25:18]MH_I2C_Read... [08:25:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:25:18]Read from MH i2c: E2 [08:25:18]MH_I2C_Read... [08:25:18]Read from MH i2c: E2 17 00 [08:25:18]MH_I2C_Read... [08:25:18]Read from MH i2c: E2 17 00 CE 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 D5 [08:25:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [08:25:18]wFMCommunicate OK [08:25:18]CreateOFDProtocolMessage done [08:25:18]OFDSenderStorePacket 2006 [08:25:18]StoreOFDPacket docnum=2006 [08:25:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 AA 01 00 00 6F 07 A2 01 34 FC 5A 03 01 00 03 00 96 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 39 30 37 32 39 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 54 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 71 00 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D6 07 00 00 35 04 06 00 95 F1 00 05 D5 0D 26 0B F5 A9 66 00 09 12 [08:25:18]CheckFolder [08:25:18]dirname=/storage/ofd_packets [08:25:18]CheckFolder done [08:25:18]ProducePacketName [08:25:18]name=ofd_packets/00002006 [08:25:18]NVStorageSaveData ofd_packets/00002006 [08:25:18]File name is /storage/ofd_packets/00002006 [08:25:18]Write 456 bytes [08:25:18]NVStorageSaveData done [08:25:18]OFDSenderStorePacket done [08:25:18]KKMCreateOFDPacket done [08:25:18]NVStorageSaveData kkm_last_timestamp [08:25:18]File name is /storage/kkm_last_timestamp [08:25:18]Write 4 bytes [08:25:18]NVStorageSaveData done [08:25:18]ExternCall_PrintAddStr [08:25:18]wPrintStart [08:25:18]Write to MH i2c: 01 00 00 CF 3D 0C [08:25:18]Write i2c OK [08:25:18]MH_I2C_Read... [08:25:18]Read from MH i2c: 01 [08:25:18]MH_I2C_Read... [08:25:18]Read from MH i2c: 01 07 00 [08:25:18]MH_I2C_Read... [08:25:18]Read from MH i2c: 01 07 00 CF 3D 00 00 00 00 00 FF 0F 21 [08:25:18]RasterBufferAndPrint [08:25:18]line Счет N : (3)126313 [08:25:18]line ИНН: 02508201610067 [08:25:18]line Контрольно-Кассовый Чек [08:25:18]line ПРОДАЖА [08:25:18]line Товар: 2000036220012 [08:25:18]line Кофе Капучино XL(GABB TRADE) [08:25:18]line 2.000 * 130.00 [08:25:18]line = 260.00 [08:25:18]line НДС 12% НСП 1% [08:25:18]line > о реализуемом товаре [08:25:18]line Товар: 5000159390729 [08:25:18]line Шок Батончик Твикс Экстра 82г [08:25:18]line 1.000 * 89.00 [08:25:18]line = 89.00 [08:25:18]line НДС 12% НСП 1% [08:25:18]line > о реализуемом товаре [08:25:18]line ИТОГО: 349.00 [08:25:18]line НСП 1% : 3.09 [08:25:18]line НДС 12% : 37.06 [08:25:18]line Наличными: 0.00 [08:25:18]line Безнал.: 349.00 [08:25:18]line Место: АЗС № 127 "Партнер Нефть" [08:25:18]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [08:25:18]line СНО: Общий режим [08:25:18]line Чек 57 28.07.2024 08:25 [08:25:18]line Смена: 13 ФФД: 1.0 [08:25:18]line ЗНМ: 0300000161 [08:25:18]line РНМ: 0000000000189667 [08:25:18]line Версия ККМ: v1.0 [08:25:18]line Платежная система: O! деньги [08:25:18]line ФМ: 0000000002094248 [08:25:18]line ФД: 2006 [08:25:18]line ФПД: 164862320039181 [08:25:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T082521&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2006&fm=164862320039181&tin=02508201610067®Number=0000000000189667&sum=34900 [08:25:18]line 0 [08:25:18]written 0, free lines is 4095 [08:25:18]OFD Sender: Processing packet 2006 [packets to send 1, broken 0] [08:25:18]ProducePacketName [08:25:18]name=ofd_packets/00002006 [08:25:18]OFD Sender: To server: pG, [08:25:18]CommunicateWithHost lk.salyk.kg:30040 [08:25:18]ConnectInit lk.salyk.kg [08:25:18]Connected sock=10 [08:25:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 AA 01 00 00 6F 07 A2 01 34 FC 5A 03 01 00 03 00 96 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 39 30 37 32 39 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 54 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 71 00 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D6 07 00 00 35 04 06 00 95 F1 00 05 D5 0D 26 0B F5 A9 66 00 09 12 [08:25:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 36 92 47 00 EF 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 32 30 39 34 32 34 38 10 04 04 00 D6 07 00 00 F4 03 04 00 E1 AB A5 66 B6 04 01 00 00 D5 92 89 AC 11 C1 D2 4E [08:25:19]CommunicateWithHost err = 0 [08:25:19]CheckOFDResponse [08:25:19]1017 (14) - 77093643461234 [08:25:19]1041 (16) - 0000000002094248 [08:25:19]1040 (4) - 2006 [08:25:19]1012 (4) - 28.07.2024 02:24 [08:25:19]1206 (1) - 0 [08:25:19]OFD Sender: Remove packet 2006 [08:25:19]ProducePacketName [08:25:19]name=ofd_packets/00002006 [08:25:19]NVStorageDeleteData [08:25:19]Write to MH i2c: 01 00 00 01 3E 3F [08:25:19]Write i2c OK [08:25:19]MH_I2C_Read... [08:25:19]Read from MH i2c: 01 [08:25:19]MH_I2C_Read... [08:25:19]Read from MH i2c: 01 07 00 [08:25:19]MH_I2C_Read... [08:25:19]Read from MH i2c: 01 07 00 01 3E 00 00 00 00 00 9D 0C EF [08:25:19]RasterBufferAndPrint [08:25:19]line [08:25:19]line [08:25:19]line [08:25:19]line [08:25:19]line [08:25:19]written 0, free lines is 3238 [08:25:19]MH_Cut [08:25:19]Write to MH i2c: D1 01 00 08 3E 01 18 [08:25:19]Write i2c OK [08:25:19]MH_I2C_Read... [08:25:19]Read from MH i2c: D1 [08:25:19]MH_I2C_Read... [08:25:19]Read from MH i2c: D1 01 00 [08:25:19]MH_I2C_Read... [08:25:19]Read from MH i2c: D1 01 00 08 3E 00 17 [08:25:19]Write to MH i2c: 01 00 00 09 3E 47 [08:25:19]Write i2c OK [08:25:19]MH_I2C_Read... [08:25:19]OFD Sender: No OFD packet to send [08:25:19]*** Cut start [08:25:19]*** Partial cut [08:25:19]*** CUTSNS_PIN = 1 [08:25:19]*** CUTSNS_PIN = 0 [08:25:20]*** Brake cut motor [08:25:20]Read from MH i2c: 01 [08:25:20]MH_I2C_Read... [08:25:20]*** Stop cut motor [08:25:20]*** Cut end [08:25:20]Read from MH i2c: 01 07 00 [08:25:20]MH_I2C_Read... [08:25:20]Read from MH i2c: 01 07 00 09 3E 00 00 00 00 00 FF 0F 5C [08:25:20]process_action close_receipt done [08:25:20]requested_data is exist [08:25:20]produce_requested_data [08:25:20]requested_item fm.sn is exist - process it [08:25:20]wFMCommunicate request_size=4 [08:25:20]MH_SAM_APDU [08:25:20]CAPDU: 80 11 00 00 [08:25:20]Write to MH i2c: E2 08 00 0A 3E 80 11 00 00 00 00 00 00 C2 [08:25:20]Write i2c OK [08:25:20]MH_I2C_Read... [08:25:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:25:20]Read from MH i2c: E2 [08:25:20]MH_I2C_Read... [08:25:20]Read from MH i2c: E2 17 00 [08:25:20]MH_I2C_Read... [08:25:20]Read from MH i2c: E2 17 00 0A 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 12 [08:25:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [08:25:20]wFMCommunicate OK [08:25:20]requested_item fd.num is exist - process it [08:25:20]SAM_PROTO_GetFieldsCounters [08:25:20]wFMCommunicate request_size=4 [08:25:20]MH_SAM_APDU [08:25:20]CAPDU: 80 13 00 00 [08:25:20]Write to MH i2c: E2 08 00 0B 3E 80 13 00 00 00 00 00 00 C5 [08:25:20]Write i2c OK [08:25:20]MH_I2C_Read... [08:25:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:25:20]Read from MH i2c: E2 [08:25:20]MH_I2C_Read... [08:25:20]Read from MH i2c: E2 62 00 [08:25:20]MH_I2C_Read... [08:25:20]Read from MH i2c: E2 62 00 0B 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 D6 07 00 00 0E 04 04 00 0D 00 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 84 [08:25:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 D6 07 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:25:20]wFMCommunicate OK [08:25:20]SAM_PROTO_GetFieldsCounters done [08:25:20]requested_item shift.num is exist - process it [08:25:20]requested_item shift.opened is exist - process it [08:25:20]req_shift_opened [08:25:20]FM_GetShiftState [08:25:20]SAM_PROTO_GetShiftState [08:25:20]wFMCommunicate request_size=4 [08:25:20]MH_SAM_APDU [08:25:20]CAPDU: 80 13 01 00 [08:25:20]Write to MH i2c: E2 08 00 0C 3E 80 13 01 00 00 00 00 00 C7 [08:25:20]Write i2c OK [08:25:20]MH_I2C_Read... [08:25:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:25:20]Read from MH i2c: E2 [08:25:20]MH_I2C_Read... [08:25:20]Read from MH i2c: E2 0E 00 [08:25:20]MH_I2C_Read... [08:25:20]Read from MH i2c: E2 0E 00 0C 3E 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 BB [08:25:20]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [08:25:20]wFMCommunicate OK [08:25:20]SAM_PROTO_GetShiftState done [08:25:20]FM_GetShiftState done [08:25:20]req_shift_opened done [08:25:20]requested_item shift.open_date is exist - process it [08:25:20]req_shift_open_date [08:25:20]req_shift_open_date done [08:25:20]produce_requested_data done [08:25:20]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2006,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [08:25:20]process_action_free close_receipt [08:25:20]json_value_free [08:25:20]json_value_free done [08:25:20]process_json_proto returns [08:25:20]Send response to host [08:25:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2006,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [08:25:20]free response buf [08:25:20]execute_script done [08:25:20]execute_script returns [08:25:20]free content buf [08:25:20]Sock 9.Close socket [08:25:20]Sock 9.Thread stoped [08:25:24]OFD Sender: No OFD packet to send [08:25:29]OFD Sender: No OFD packet to send [08:25:34]OFD Sender: No OFD packet to send [08:25:39]OFD Sender: No OFD packet to send [08:25:44]OFD Sender: No OFD packet to send [08:25:49]OFD Sender: No OFD packet to send [08:25:54]OFD Sender: No OFD packet to send [08:25:59]OFD Sender: No OFD packet to send [08:26:04]OFD Sender: No OFD packet to send [08:26:09]OFD Sender: No OFD packet to send [08:26:14]OFD Sender: No OFD packet to send [08:26:19]OFD Sender: No OFD packet to send [08:26:24]OFD Sender: No OFD packet to send [08:26:29]OFD Sender: No OFD packet to send [08:26:34]OFD Sender: No OFD packet to send [08:26:39]OFD Sender: No OFD packet to send [08:26:44]OFD Sender: No OFD packet to send [08:26:49]OFD Sender: No OFD packet to send [08:26:54]OFD Sender: No OFD packet to send [08:26:59]OFD Sender: No OFD packet to send [08:27:04]OFD Sender: No OFD packet to send [08:27:09]OFD Sender: No OFD packet to send [08:27:14]OFD Sender: No OFD packet to send [08:27:19]OFD Sender: No OFD packet to send [08:27:24]OFD Sender: No OFD packet to send [08:27:29]OFD Sender: No OFD packet to send [08:27:34]OFD Sender: No OFD packet to send [08:27:39]OFD Sender: No OFD packet to send [08:27:44]OFD Sender: No OFD packet to send [08:27:49]OFD Sender: No OFD packet to send [08:27:54]OFD Sender: No OFD packet to send [08:27:59]OFD Sender: No OFD packet to send [08:28:04]OFD Sender: No OFD packet to send [08:28:09]OFD Sender: No OFD packet to send [08:28:14]OFD Sender: No OFD packet to send [08:28:19]OFD Sender: No OFD packet to send [08:28:24]OFD Sender: No OFD packet to send [08:28:29]OFD Sender: No OFD packet to send [08:28:34]OFD Sender: No OFD packet to send [08:28:39]OFD Sender: No OFD packet to send [08:28:44]OFD Sender: No OFD packet to send [08:28:49]OFD Sender: No OFD packet to send [08:28:54]OFD Sender: No OFD packet to send [08:28:59]OFD Sender: No OFD packet to send [08:29:04]OFD Sender: No OFD packet to send [08:29:09]OFD Sender: No OFD packet to send [08:29:14]OFD Sender: No OFD packet to send [08:29:19]OFD Sender: No OFD packet to send [08:29:24]OFD Sender: No OFD packet to send [08:29:29]OFD Sender: No OFD packet to send [08:29:34]OFD Sender: No OFD packet to send [08:29:39]OFD Sender: No OFD packet to send [08:29:44]OFD Sender: No OFD packet to send [08:29:49]OFD Sender: No OFD packet to send [08:29:54]OFD Sender: No OFD packet to send [08:29:59]OFD Sender: No OFD packet to send [08:30:04]OFD Sender: No OFD packet to send [08:30:05]recv_with_timeout no data received [08:30:09]OFD Sender: No OFD packet to send [08:30:14]OFD Sender: No OFD packet to send [08:30:19]OFD Sender: No OFD packet to send [08:30:24]OFD Sender: No OFD packet to send [08:30:29]OFD Sender: No OFD packet to send [08:30:34]OFD Sender: No OFD packet to send [08:30:39]OFD Sender: No OFD packet to send [08:30:40]recv_with_timeout no data received [08:30:44]OFD Sender: No OFD packet to send [08:30:49]OFD Sender: No OFD packet to send [08:30:54]OFD Sender: No OFD packet to send [08:30:59]OFD Sender: No OFD packet to send [08:31:04]OFD Sender: No OFD packet to send [08:31:09]OFD Sender: No OFD packet to send [08:31:14]OFD Sender: No OFD packet to send [08:31:19]OFD Sender: No OFD packet to send [08:31:24]OFD Sender: No OFD packet to send [08:31:29]OFD Sender: No OFD packet to send [08:31:34]OFD Sender: No OFD packet to send [08:31:39]OFD Sender: No OFD packet to send [08:31:44]OFD Sender: No OFD packet to send [08:31:49]OFD Sender: No OFD packet to send [08:31:54]OFD Sender: No OFD packet to send [08:31:59]OFD Sender: No OFD packet to send [08:32:04]OFD Sender: No OFD packet to send [08:32:09]OFD Sender: No OFD packet to send [08:32:14]OFD Sender: No OFD packet to send [08:32:19]OFD Sender: No OFD packet to send [08:32:24]OFD Sender: No OFD packet to send [08:32:29]OFD Sender: No OFD packet to send [08:32:34]OFD Sender: No OFD packet to send [08:32:39]OFD Sender: No OFD packet to send [08:32:44]OFD Sender: No OFD packet to send [08:32:49]OFD Sender: No OFD packet to send [08:35:14]OFD Sender: No OFD packet to send [08:35:19]OFD Sender: No OFD packet to send [08:35:24]OFD Sender: No OFD packet to send [08:35:30]OFD Sender: No OFD packet to send [08:35:35]OFD Sender: No OFD packet to send [08:35:40]OFD Sender: No OFD packet to send [08:35:45]OFD Sender: No OFD packet to send [08:35:50]OFD Sender: No OFD packet to send [08:35:55]OFD Sender: No OFD packet to send [08:36:00]OFD Sender: No OFD packet to send [08:36:05]OFD Sender: No OFD packet to send [08:36:10]OFD Sender: No OFD packet to send [08:36:15]OFD Sender: No OFD packet to send [08:36:15]ConnectInit Can't connect to host [08:36:20]OFD Sender: No OFD packet to send [08:36:25]OFD Sender: No OFD packet to send [08:36:30]OFD Sender: No OFD packet to send [08:36:35]OFD Sender: No OFD packet to send [08:36:40]OFD Sender: No OFD packet to send [08:36:45]OFD Sender: No OFD packet to send [08:36:50]OFD Sender: No OFD packet to send [08:36:55]OFD Sender: No OFD packet to send [08:37:00]OFD Sender: No OFD packet to send [08:37:05]OFD Sender: No OFD packet to send [08:37:10]OFD Sender: No OFD packet to send [08:37:15]OFD Sender: No OFD packet to send [08:37:20]OFD Sender: No OFD packet to send [08:37:25]OFD Sender: No OFD packet to send [08:37:30]OFD Sender: No OFD packet to send [08:37:35]OFD Sender: No OFD packet to send [08:37:40]OFD Sender: No OFD packet to send [08:37:45]OFD Sender: No OFD packet to send [08:37:50]OFD Sender: No OFD packet to send [08:37:55]OFD Sender: No OFD packet to send [08:38:00]OFD Sender: No OFD packet to send [08:38:05]OFD Sender: No OFD packet to send [08:38:10]OFD Sender: No OFD packet to send [08:38:15]OFD Sender: No OFD packet to send [08:38:20]OFD Sender: No OFD packet to send [08:38:25]OFD Sender: No OFD packet to send [08:38:30]OFD Sender: No OFD packet to send [08:38:35]OFD Sender: No OFD packet to send [08:38:40]OFD Sender: No OFD packet to send [08:38:45]OFD Sender: No OFD packet to send [08:38:50]OFD Sender: No OFD packet to send [08:38:55]OFD Sender: No OFD packet to send [08:39:00]OFD Sender: No OFD packet to send [08:39:05]OFD Sender: No OFD packet to send [08:39:10]OFD Sender: No OFD packet to send [08:39:15]OFD Sender: No OFD packet to send [08:39:20]OFD Sender: No OFD packet to send [08:39:25]OFD Sender: No OFD packet to send [08:39:30]OFD Sender: No OFD packet to send [08:39:35]OFD Sender: No OFD packet to send [08:39:40]OFD Sender: No OFD packet to send [08:39:45]OFD Sender: No OFD packet to send [08:39:50]OFD Sender: No OFD packet to send [08:39:55]OFD Sender: No OFD packet to send [08:40:00]OFD Sender: No OFD packet to send [08:40:05]OFD Sender: No OFD packet to send [08:40:10]OFD Sender: No OFD packet to send [08:40:15]OFD Sender: No OFD packet to send [08:40:20]OFD Sender: No OFD packet to send [08:40:25]OFD Sender: No OFD packet to send [08:40:30]OFD Sender: No OFD packet to send [08:40:35]OFD Sender: No OFD packet to send [08:40:40]OFD Sender: No OFD packet to send [08:40:45]OFD Sender: No OFD packet to send [08:40:50]OFD Sender: No OFD packet to send [08:40:55]OFD Sender: No OFD packet to send [08:41:00]OFD Sender: No OFD packet to send [08:41:05]OFD Sender: No OFD packet to send [08:41:10]OFD Sender: No OFD packet to send [08:41:15]OFD Sender: No OFD packet to send [08:41:20]OFD Sender: No OFD packet to send [08:41:25]OFD Sender: No OFD packet to send [08:41:30]OFD Sender: No OFD packet to send [08:41:35]OFD Sender: No OFD packet to send [08:41:40]OFD Sender: No OFD packet to send [08:41:45]OFD Sender: No OFD packet to send [08:41:50]OFD Sender: No OFD packet to send [08:41:55]OFD Sender: No OFD packet to send [08:42:00]OFD Sender: No OFD packet to send [08:42:05]OFD Sender: No OFD packet to send [08:42:10]OFD Sender: No OFD packet to send [08:42:15]OFD Sender: No OFD packet to send [08:42:20]OFD Sender: No OFD packet to send [08:42:25]OFD Sender: No OFD packet to send [08:42:30]OFD Sender: No OFD packet to send [08:42:35]OFD Sender: No OFD packet to send [08:42:40]OFD Sender: No OFD packet to send [08:42:45]OFD Sender: No OFD packet to send [08:42:50]OFD Sender: No OFD packet to send [08:42:55]OFD Sender: No OFD packet to send [08:43:00]OFD Sender: No OFD packet to send [08:43:05]OFD Sender: No OFD packet to send [08:43:10]OFD Sender: No OFD packet to send [08:43:15]OFD Sender: No OFD packet to send [08:43:20]OFD Sender: No OFD packet to send [08:43:25]OFD Sender: No OFD packet to send [08:43:30]OFD Sender: No OFD packet to send [08:43:35]OFD Sender: No OFD packet to send [08:43:40]OFD Sender: No OFD packet to send [08:43:45]OFD Sender: No OFD packet to send [08:43:50]OFD Sender: No OFD packet to send [08:43:55]OFD Sender: No OFD packet to send [08:44:00]OFD Sender: No OFD packet to send [08:44:05]OFD Sender: No OFD packet to send [08:44:10]OFD Sender: No OFD packet to send [08:44:15]OFD Sender: No OFD packet to send [08:44:20]OFD Sender: No OFD packet to send [08:44:25]OFD Sender: No OFD packet to send [08:44:30]OFD Sender: No OFD packet to send [08:44:30]accept exits with 8 [08:44:30]New connection [08:44:30]New thread 3067460964 created [08:44:30]Thread 3067317604 joined [08:44:30]Waiting for new connection... [08:44:30] Sock 8.Parse request [08:44:30]Sock 8.Check first char [08:44:30]Sock 8.First char is OK [08:44:30]request: POST /json_proto HTTP/1.0 [08:44:30]Method: POST [08:44:30]URL: /json_proto [08:44:30]Method is POST - this is cgi request [08:44:30]url: /json_proto [08:44:30]query_string will be loaded in cgi processing [08:44:30]execute_cgi json_proto POST (null) [08:44:30]execute_cgi path=json_proto method=POST [08:44:30]POST find Content-Length [08:44:30]Host: 172.17.45.132:8080 [08:44:30]Content-Length: 1398 [08:44:30]Content-Type: application/json [08:44:30] [08:44:30]POST finish read [08:44:30]Found Content-Length = 1398 [08:44:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126314", "tax_sys" : 0, "items" : [ { "code": "5053990101573", "name": "\u0427\u0438\u043F\u0441\u044B \u041F\u0440\u0438\u043D\u0433\u043B\u0441 \u043E\u0440\u0438\u0433\u0438\u043D\u0430\u043B 165\u0433", "price" : 420.00, "quantity" : 2.000, "sum" : 840.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 }]} ,{ "code": "4630026561436", "name": "\u041A\u043E\u043D.BABYFOX c \u043C\u043E\u043B.\u043D\u0430\u0447.120\u0433", "price" : 110.00, "quantity" : 1.000, "sum" : 110.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" : 1060.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:44:30]execute_script... [08:44:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126314", "tax_sys" : 0, "items" : [ { "code": "5053990101573", "name": "\u0427\u0438\u043F\u0441\u044B \u041F\u0440\u0438\u043D\u0433\u043B\u0441 \u043E\u0440\u0438\u0433\u0438\u043D\u0430\u043B 165\u0433", "price" : 420.00, "quantity" : 2.000, "sum" : 840.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 }]} ,{ "code": "4630026561436", "name": "\u041A\u043E\u043D.BABYFOX c \u043C\u043E\u043B.\u043D\u0430\u0447.120\u0433", "price" : 110.00, "quantity" : 1.000, "sum" : 110.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" : 1060.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:44:30]POST & json_proto [08:44:30]process_json_proto [08:44:30]json parsed OK: [08:44:30]protocol is kg_v1.0 [08:44:30]action value=close_receipt [08:44:30]process_action close_receipt [08:44:30]cmd_close_receipt [08:44:30]MH_GetDate [08:44:30]Write to MH i2c: F0 00 00 0D 3E 3A [08:44:30]Write i2c OK [08:44:30]MH_I2C_Read... [08:44:30]Read from MH i2c: F0 [08:44:30]MH_I2C_Read... [08:44:30]Read from MH i2c: F0 09 00 [08:44:30]MH_I2C_Read... [08:44:30]Read from MH i2c: F0 09 00 0D 3E 00 F3 04 A6 66 E3 0B 90 66 2A [08:44:30]GetLastDocTimeStamp 1722155121 [08:44:30]current date 1722156275 [08:44:30]FM_GetShiftState [08:44:30]SAM_PROTO_GetShiftState [08:44:30]wFMCommunicate request_size=4 [08:44:30]MH_SAM_APDU [08:44:30]CAPDU: 80 13 01 00 [08:44:30]Write to MH i2c: E2 08 00 0E 3E 80 13 01 00 00 00 00 00 C9 [08:44:30]Write i2c OK [08:44:30]MH_I2C_Read... [08:44:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:30]Read from MH i2c: E2 [08:44:30]MH_I2C_Read... [08:44:30]Read from MH i2c: E2 0E 00 [08:44:30]MH_I2C_Read... [08:44:30]Read from MH i2c: E2 0E 00 0E 3E 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 BD [08:44:30]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [08:44:30]wFMCommunicate OK [08:44:30]SAM_PROTO_GetShiftState done [08:44:30]FM_GetShiftState done [08:44:30]opened in 1722125648 [08:44:31]opened+sec_in_day 1722212048 [08:44:31]quantity*price = 84000 [08:44:31]sum+1 = 84001 [08:44:31]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870112002782 Печенье Ulker Biskrem какао-крем 180г 1.000 * 110.00 = 110.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4630026561436 Кон.BABYFOX c мол.нач.120г 1.000 * 110.00 = 110.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 1060.00 НСП 1% : 9.37 НДС 12% : 112.56 Наличными: 0.00 Безнал.: 1060.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 58 28.07.2024 08:44 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2007 ФПД: 92233556398119 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T084435&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2007&fm=92233556398119&tin=02508201610067®Number=0000000000189667&sum=106000 0 [08:44:31]StoreToDocumentArchive [08:44:31]shift 13 fd 2007 [08:44:31]save to /storage/0013/doc_00002007 [08:44:31]save last doc name /storage/0013/doc_00002007 to /storage/kkm_last_doc_name [08:44:31]save OK [08:44:31]Clear old archive folders... [08:44:31]ProcessDocumentItem done err = 0, tmpTLVsize=524 [08:44:31]tlvbuf is B6E241E0 [08:44:31]SAM_PROTO_ClearQueue [08:44:31]wFMCommunicate request_size=4 [08:44:31]MH_SAM_APDU [08:44:31]CAPDU: 80 09 00 00 [08:44:31]Write to MH i2c: E2 08 00 1B 3E 80 09 00 00 00 00 00 00 CB [08:44:31]Write i2c OK [08:44:31]MH_I2C_Read... [08:44:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:44:31]Read from MH i2c: E2 [08:44:31]MH_I2C_Read... [08:44:31]Read from MH i2c: E2 03 00 [08:44:31]MH_I2C_Read... [08:44:31]Read from MH i2c: E2 03 00 1B 3E 00 90 00 CD [08:44:31]RAPDU: 90 00 [08:44:31]wFMCommunicate OK [08:44:31]SAM_PROTO_ClearQueue done [08:44:31]KKMCreateOFDPacket [08:44:31]OFDProtocolAddRootSTLVToBuf [08:44:31]FM_MakeSignedData [08:44:31]FM_MakeSignedData [08:44:31]SAM_PROTO_SignData [08:44:31]wFMCommunicate request_size=4 [08:44:31]MH_SAM_APDU [08:44:31]CAPDU: 80 0D 01 02 [08:44:31]Write to MH i2c: E2 08 00 1C 3E 80 0D 01 02 00 00 00 00 D3 [08:44:31]Write i2c OK [08:44:31]MH_I2C_Read... [08:44:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:44:31]Read from MH i2c: E2 [08:44:31]MH_I2C_Read... [08:44:31]Read from MH i2c: E2 03 00 [08:44:31]MH_I2C_Read... [08:44:31]Read from MH i2c: E2 03 00 1C 3E 00 90 00 CE [08:44:31]RAPDU: 90 00 [08:44:31]wFMCommunicate OK [08:44:31]wFMCommunicate request_size=255 [08:44:31]MH_SAM_APDU [08:44:31]CAPDU: 80 0D 02 02 FA 03 00 0C 02 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 35 30 35 33 39 39 30 31 30 31 35 37 33 06 04 30 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 9F D1 80 D0 B8 D0 BD D0 B3 D0 BB D1 81 20 D0 BE D1 80 D0 B8 D0 B3 D0 B8 D0 BD D0 B0 D0 BB 20 31 36 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 10 A4 00 00 00 00 13 04 06 00 20 48 01 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 [08:44:32]Write to MH i2c: E2 02 01 1D 3E 80 0D 02 02 FA 00 03 00 0C 02 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 35 30 35 33 39 39 30 31 30 31 35 37 33 06 04 30 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 9F D1 80 D0 B8 D0 BD D0 B3 D0 BB D1 81 20 D0 BE D1 80 D0 B8 D0 B3 D0 B8 D0 BD D0 B0 D0 BB 20 31 36 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 10 A4 00 00 00 00 13 04 06 00 20 48 01 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 00 00 25 [08:44:32]Write i2c OK [08:44:32]MH_I2C_Read... [08:44:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:32]Read from MH i2c: E2 [08:44:32]MH_I2C_Read... [08:44:32]Read from MH i2c: E2 03 00 [08:44:32]MH_I2C_Read... [08:44:32]Read from MH i2c: E2 03 00 1D 3E 00 90 00 CF [08:44:32]RAPDU: 90 00 [08:44:32]wFMCommunicate OK [08:44:32]wFMCommunicate request_size=255 [08:44:32]MH_SAM_APDU [08:44:32]CAPDU: 80 0D 02 02 FA BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 33 30 30 32 36 35 36 31 34 33 36 06 04 24 00 D0 9A D0 BE D0 BD 2E 42 41 42 59 46 4F 58 20 63 20 D0 BC D0 BE D0 BB 2E D0 BD D0 B0 D1 87 2E 31 32 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 10 9E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 2B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 9E 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 F3 04 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 [08:44:32]Write to MH i2c: E2 02 01 1E 3E 80 0D 02 02 FA 00 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 33 30 30 32 36 35 36 31 34 33 36 06 04 24 00 D0 9A D0 BE D0 BD 2E 42 41 42 59 46 4F 58 20 63 20 D0 BC D0 BE D0 BB 2E D0 BD D0 B0 D1 87 2E 31 32 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 10 9E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 2B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 9E 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 F3 04 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 00 00 1C [08:44:32]Write i2c OK [08:44:32]MH_I2C_Read... [08:44:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:32]Read from MH i2c: E2 [08:44:32]MH_I2C_Read... [08:44:32]Read from MH i2c: E2 03 00 [08:44:32]MH_I2C_Read... [08:44:32]Read from MH i2c: E2 03 00 1E 3E 00 90 00 D0 [08:44:32]RAPDU: 90 00 [08:44:32]wFMCommunicate OK [08:44:32]wFMCommunicate request_size=33 [08:44:32]MH_SAM_APDU [08:44:32]CAPDU: 80 0D 02 02 1C 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D7 07 00 00 35 04 06 00 53 E2 CC 5D 90 27 [08:44:32]Write to MH i2c: E2 24 00 1F 3E 80 0D 02 02 1C 00 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D7 07 00 00 35 04 06 00 53 E2 CC 5D 90 27 00 00 56 [08:44:32]Write i2c OK [08:44:32]MH_I2C_Read... [08:44:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:32]Read from MH i2c: E2 [08:44:32]MH_I2C_Read... [08:44:32]Read from MH i2c: E2 03 00 [08:44:32]MH_I2C_Read... [08:44:32]Read from MH i2c: E2 03 00 1F 3E 00 90 00 D1 [08:44:32]RAPDU: 90 00 [08:44:32]wFMCommunicate OK [08:44:32]wFMCommunicate request_size=4 [08:44:32]MH_SAM_APDU [08:44:32]CAPDU: 80 0D 03 02 [08:44:32]Write to MH i2c: E2 08 00 20 3E 80 0D 03 02 00 00 00 00 D9 [08:44:32]Write i2c OK [08:44:32]MH_I2C_Read... [08:44:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:44:32]Read from MH i2c: E2 [08:44:32]MH_I2C_Read... [08:44:32]Read from MH i2c: E2 0B 00 [08:44:32]MH_I2C_Read... [08:44:32]Read from MH i2c: E2 0B 00 20 3E 00 A6 58 CF FD BA B8 EC 11 90 00 13 [08:44:32]RAPDU: A6 58 CF FD BA B8 EC 11 90 00 [08:44:32]wFMCommunicate OK [08:44:32]SAM_PROTO_SignData done [08:44:32]FM_MakeSignedData done [08:44:32]CreateOFDProtocolMessage [08:44:32]wFMCommunicate request_size=4 [08:44:32]MH_SAM_APDU [08:44:32]CAPDU: 80 11 00 00 [08:44:32]Write to MH i2c: E2 08 00 21 3E 80 11 00 00 00 00 00 00 D9 [08:44:32]Write i2c OK [08:44:32]MH_I2C_Read... [08:44:32]Read from MH i2c: E2 [08:44:33]MH_I2C_Read... [08:44:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:33]Read from MH i2c: E2 17 00 [08:44:33]MH_I2C_Read... [08:44:33]Read from MH i2c: E2 17 00 21 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 29 [08:44:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [08:44:33]wFMCommunicate OK [08:44:33]CreateOFDProtocolMessage done [08:44:33]OFDSenderStorePacket 2007 [08:44:33]StoreOFDPacket docnum=2007 [08:44:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 20 02 00 00 B3 46 18 02 3C 64 5A 03 01 00 03 00 0C 02 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 35 30 35 33 39 39 30 31 30 31 35 37 33 06 04 30 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 9F D1 80 D0 B8 D0 BD D0 B3 D0 BB D1 81 20 D0 BE D1 80 D0 B8 D0 B3 D0 B8 D0 BD D0 B0 D0 BB 20 31 36 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 10 A4 00 00 00 00 13 04 06 00 20 48 01 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 23 04 68 00 8A 04 0D 00 34 36 33 30 30 32 36 35 36 31 34 33 36 06 04 24 00 D0 9A D0 BE D0 BD 2E 42 41 42 59 46 4F 58 20 63 20 D0 BC D0 BE D0 BB 2E D0 BD D0 B0 D1 87 2E 31 32 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 10 9E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 2B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 9E 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 F3 04 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D7 07 00 00 35 04 06 00 53 E2 CC 5D 90 27 A6 58 CF FD BA B8 EC 11 [08:44:33]CheckFolder [08:44:33]dirname=/storage/ofd_packets [08:44:33]CheckFolder done [08:44:33]ProducePacketName [08:44:33]name=ofd_packets/00002007 [08:44:33]NVStorageSaveData ofd_packets/00002007 [08:44:33]File name is /storage/ofd_packets/00002007 [08:44:33]Write 574 bytes [08:44:33]NVStorageSaveData done [08:44:33]OFDSenderStorePacket done [08:44:33]KKMCreateOFDPacket done [08:44:33]NVStorageSaveData kkm_last_timestamp [08:44:33]File name is /storage/kkm_last_timestamp [08:44:33]Write 4 bytes [08:44:33]NVStorageSaveData done [08:44:33]ExternCall_PrintAddStr [08:44:33]wPrintStart [08:44:33]Write to MH i2c: 01 00 00 22 3E 60 [08:44:33]Write i2c OK [08:44:33]MH_I2C_Read... [08:44:33]Read from MH i2c: 01 [08:44:33]MH_I2C_Read... [08:44:33]Read from MH i2c: 01 07 00 [08:44:33]MH_I2C_Read... [08:44:33]Read from MH i2c: 01 07 00 22 3E 00 00 00 00 00 FF 0F 75 [08:44:33]RasterBufferAndPrint [08:44:33]line Счет N : (3)126314 [08:44:33]line ИНН: 02508201610067 [08:44:33]line Контрольно-Кассовый Чек [08:44:33]line ПРОДАЖА [08:44:33]line Товар: 5053990101573 [08:44:33]line Чипсы Принглс оригинал 165г [08:44:33]line 2.000 * 420.00 [08:44:33]line = 840.00 [08:44:33]line НДС 12% НСП 1% [08:44:33]line > о реализуемом товаре [08:44:33]line Товар: 4870112002782 [08:44:33]line Печенье Ulker Biskrem какао-крем 180г [08:44:33]line 1.000 * 110.00 [08:44:33]line = 110.00 [08:44:33]line НДС 12% НСП 1% [08:44:33]line > о реализуемом товаре [08:44:33]line Товар: 4630026561436 [08:44:33]line Кон.BABYFOX c мол.нач.120г [08:44:33]line 1.000 * 110.00 [08:44:33]line = 110.00 [08:44:33]line НДС 12% НСП 1% [08:44:33]line > о реализуемом товаре [08:44:33]line ИТОГО: 1060.00 [08:44:33]line НСП 1% : 9.37 [08:44:33]line НДС 12% : 112.56 [08:44:33]line Наличными: 0.00 [08:44:33]line Безнал.: 1060.00 [08:44:33]line Место: АЗС № 127 "Партнер Нефть" [08:44:33]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [08:44:33]line СНО: Общий режим [08:44:33]line Чек 58 28.07.2024 08:44 [08:44:33]line Смена: 13 ФФД: 1.0 [08:44:33]line ЗНМ: 0300000161 [08:44:33]line РНМ: 0000000000189667 [08:44:33]line Версия ККМ: v1.0 [08:44:33]line Платежная система: O! деньги [08:44:33]line ФМ: 0000000002094248 [08:44:33]line ФД: 2007 [08:44:33]line ФПД: 92233556398119 [08:44:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T084435&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2007&fm=92233556398119&tin=02508201610067®Number=0000000000189667&sum=106000 [08:44:33]line 0 [08:44:33]written 0, free lines is 4095 [08:44:33]OFD Sender: Processing packet 2007 [packets to send 1, broken 0] [08:44:33]ProducePacketName [08:44:33]name=ofd_packets/00002007 [08:44:33]OFD Sender: To server: pG, [08:44:33]CommunicateWithHost lk.salyk.kg:30040 [08:44:33]ConnectInit lk.salyk.kg [08:44:33]Connected sock=10 [08:44:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 20 02 00 00 B3 46 18 02 3C 64 5A 03 01 00 03 00 0C 02 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 35 30 35 33 39 39 30 31 30 31 35 37 33 06 04 30 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 9F D1 80 D0 B8 D0 BD D0 B3 D0 BB D1 81 20 D0 BE D1 80 D0 B8 D0 B3 D0 B8 D0 BD D0 B0 D0 BB 20 31 36 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 10 A4 00 00 00 00 13 04 06 00 20 48 01 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 23 04 68 00 8A 04 0D 00 34 36 33 30 30 32 36 35 36 31 34 33 36 06 04 24 00 D0 9A D0 BE D0 BD 2E 42 41 42 59 46 4F 58 20 63 20 D0 BC D0 BE D0 BB 2E D0 BD D0 B0 D1 87 2E 31 32 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 10 9E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 2B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 9E 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 F3 04 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D7 07 00 00 35 04 06 00 53 E2 CC 5D 90 27 A6 58 CF FD BA B8 EC 11 [08:44:33]Write to MH i2c: 01 00 00 59 3E 97 [08:44:33]Write i2c OK [08:44:33]MH_I2C_Read... [08:44:33]Read from MH i2c: 01 [08:44:33]MH_I2C_Read... [08:44:33]Read from MH i2c: 01 07 00 [08:44:33]MH_I2C_Read... [08:44:33]Read from MH i2c: 01 07 00 59 3E 00 00 00 00 00 4E 0C F8 [08:44:33]RasterBufferAndPrint [08:44:33]line [08:44:33]line [08:44:33]line [08:44:33]line [08:44:33]line [08:44:33]written 0, free lines is 3157 [08:44:33]MH_Cut [08:44:33]Write to MH i2c: D1 01 00 60 3E 01 70 [08:44:33]Write i2c OK [08:44:33]MH_I2C_Read... [08:44:33]Read from MH i2c: D1 [08:44:33]MH_I2C_Read... [08:44:33]Read from MH i2c: D1 01 00 [08:44:33]MH_I2C_Read... [08:44:33]Read from MH i2c: D1 01 00 60 3E 00 6F [08:44:33]Write to MH i2c: 01 00 00 61 3E 9F [08:44:33]Write i2c OK [08:44:33]MH_I2C_Read... [08:44:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 A4 A0 47 00 1E A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D7 07 00 00 F4 03 04 00 64 B0 A5 66 B6 04 01 00 00 23 B3 14 E9 08 99 F1 6A [08:44:33]CommunicateWithHost err = 0 [08:44:33]CheckOFDResponse [08:44:33]1017 (14) - 77093643461234 [08:44:33]1041 (16) - 0000000002094248 [08:44:33]1040 (4) - 2007 [08:44:33]1012 (4) - 28.07.2024 02:43 [08:44:33]1206 (1) - 0 [08:44:33]OFD Sender: Remove packet 2007 [08:44:33]ProducePacketName [08:44:33]name=ofd_packets/00002007 [08:44:33]NVStorageDeleteData [08:44:34]*** Cut start [08:44:34]*** Partial cut [08:44:34]*** CUTSNS_PIN = 1 [08:44:34]*** CUTSNS_PIN = 0 [08:44:34]OFD Sender: No OFD packet to send [08:44:34]*** Brake cut motor [08:44:35]Read from MH i2c: 01 [08:44:35]MH_I2C_Read... [08:44:35]*** Stop cut motor [08:44:35]*** Cut end [08:44:35]Read from MH i2c: 01 07 00 [08:44:35]MH_I2C_Read... [08:44:35]Read from MH i2c: 01 07 00 61 3E 00 00 00 00 00 FF 0F B4 [08:44:35]process_action close_receipt done [08:44:35]requested_data is exist [08:44:35]produce_requested_data [08:44:35]requested_item fm.sn is exist - process it [08:44:35]wFMCommunicate request_size=4 [08:44:35]MH_SAM_APDU [08:44:35]CAPDU: 80 11 00 00 [08:44:35]Write to MH i2c: E2 08 00 62 3E 80 11 00 00 00 00 00 00 1A [08:44:35]Write i2c OK [08:44:35]MH_I2C_Read... [08:44:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:35]Read from MH i2c: E2 [08:44:35]MH_I2C_Read... [08:44:35]Read from MH i2c: E2 17 00 [08:44:35]MH_I2C_Read... [08:44:35]Read from MH i2c: E2 17 00 62 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 6A [08:44:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [08:44:35]wFMCommunicate OK [08:44:35]requested_item fd.num is exist - process it [08:44:35]SAM_PROTO_GetFieldsCounters [08:44:35]wFMCommunicate request_size=4 [08:44:35]MH_SAM_APDU [08:44:35]CAPDU: 80 13 00 00 [08:44:35]Write to MH i2c: E2 08 00 63 3E 80 13 00 00 00 00 00 00 1D [08:44:35]Write i2c OK [08:44:35]MH_I2C_Read... [08:44:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:44:35]Read from MH i2c: E2 [08:44:35]MH_I2C_Read... [08:44:35]Read from MH i2c: E2 62 00 [08:44:35]MH_I2C_Read... [08:44:35]Read from MH i2c: E2 62 00 63 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 D7 07 00 00 0E 04 04 00 0D 00 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 E0 [08:44:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 D7 07 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:44:35]wFMCommunicate OK [08:44:35]SAM_PROTO_GetFieldsCounters done [08:44:35]requested_item shift.num is exist - process it [08:44:35]requested_item shift.opened is exist - process it [08:44:35]req_shift_opened [08:44:35]FM_GetShiftState [08:44:35]SAM_PROTO_GetShiftState [08:44:35]wFMCommunicate request_size=4 [08:44:35]MH_SAM_APDU [08:44:35]CAPDU: 80 13 01 00 [08:44:35]Write to MH i2c: E2 08 00 64 3E 80 13 01 00 00 00 00 00 1F [08:44:35]Write i2c OK [08:44:35]MH_I2C_Read... [08:44:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:35]Read from MH i2c: E2 [08:44:35]MH_I2C_Read... [08:44:35]Read from MH i2c: E2 0E 00 [08:44:35]MH_I2C_Read... [08:44:35]Read from MH i2c: E2 0E 00 64 3E 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 13 [08:44:35]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [08:44:35]wFMCommunicate OK [08:44:35]SAM_PROTO_GetShiftState done [08:44:35]FM_GetShiftState done [08:44:35]req_shift_opened done [08:44:35]requested_item shift.open_date is exist - process it [08:44:35]req_shift_open_date [08:44:35]req_shift_open_date done [08:44:35]produce_requested_data done [08:44:35]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2007,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [08:44:35]process_action_free close_receipt [08:44:35]json_value_free [08:44:35]json_value_free done [08:44:35]process_json_proto returns [08:44:35]Send response to host [08:44:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2007,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [08:44:35]free response buf [08:44:35]execute_script done [08:44:35]execute_script returns [08:44:35]free content buf [08:44:35]Sock 8.Close socket [08:44:35]Sock 8.Thread stoped [08:44:39]OFD Sender: No OFD packet to send [08:44:44]OFD Sender: No OFD packet to send [08:44:49]OFD Sender: No OFD packet to send [08:44:54]OFD Sender: No OFD packet to send [08:44:59]OFD Sender: No OFD packet to send [08:45:04]OFD Sender: No OFD packet to send [08:45:09]OFD Sender: No OFD packet to send [08:45:14]OFD Sender: No OFD packet to send [08:45:19]OFD Sender: No OFD packet to send [08:45:24]OFD Sender: No OFD packet to send [08:45:29]OFD Sender: No OFD packet to send [08:45:34]OFD Sender: No OFD packet to send [08:45:39]OFD Sender: No OFD packet to send [08:45:44]OFD Sender: No OFD packet to send [08:45:49]OFD Sender: No OFD packet to send [08:45:54]OFD Sender: No OFD packet to send [08:45:59]OFD Sender: No OFD packet to send [08:46:04]OFD Sender: No OFD packet to send [08:46:09]OFD Sender: No OFD packet to send [08:46:14]OFD Sender: No OFD packet to send [08:46:19]OFD Sender: No OFD packet to send [08:46:24]OFD Sender: No OFD packet to send [08:46:29]OFD Sender: No OFD packet to send [08:46:34]OFD Sender: No OFD packet to send [08:46:39]OFD Sender: No OFD packet to send [08:46:44]OFD Sender: No OFD packet to send [08:46:49]OFD Sender: No OFD packet to send [08:46:54]OFD Sender: No OFD packet to send [08:46:59]OFD Sender: No OFD packet to send [08:47:04]OFD Sender: No OFD packet to send [08:47:09]OFD Sender: No OFD packet to send [08:47:14]OFD Sender: No OFD packet to send [08:47:19]OFD Sender: No OFD packet to send [08:47:24]OFD Sender: No OFD packet to send [08:47:29]OFD Sender: No OFD packet to send [08:47:34]OFD Sender: No OFD packet to send [08:47:39]OFD Sender: No OFD packet to send [08:47:44]OFD Sender: No OFD packet to send [08:47:49]OFD Sender: No OFD packet to send [08:47:54]OFD Sender: No OFD packet to send [08:47:59]OFD Sender: No OFD packet to send [08:48:04]OFD Sender: No OFD packet to send [08:48:09]OFD Sender: No OFD packet to send [08:48:14]OFD Sender: No OFD packet to send [08:48:19]OFD Sender: No OFD packet to send [08:48:24]OFD Sender: No OFD packet to send [08:48:29]OFD Sender: No OFD packet to send [08:48:34]OFD Sender: No OFD packet to send [08:48:39]OFD Sender: No OFD packet to send [08:48:44]OFD Sender: No OFD packet to send [08:48:49]OFD Sender: No OFD packet to send [08:48:54]OFD Sender: No OFD packet to send [08:48:59]OFD Sender: No OFD packet to send [08:49:04]OFD Sender: No OFD packet to send [08:49:09]OFD Sender: No OFD packet to send [08:49:14]OFD Sender: No OFD packet to send [08:49:19]OFD Sender: No OFD packet to send [08:49:24]OFD Sender: No OFD packet to send [08:49:29]OFD Sender: No OFD packet to send [08:49:34]OFD Sender: No OFD packet to send [08:49:39]OFD Sender: No OFD packet to send [08:49:44]OFD Sender: No OFD packet to send [08:49:49]OFD Sender: No OFD packet to send [08:49:54]OFD Sender: No OFD packet to send [08:49:59]OFD Sender: No OFD packet to send [08:50:04]OFD Sender: No OFD packet to send [08:50:09]OFD Sender: No OFD packet to send [08:50:14]OFD Sender: No OFD packet to send [08:50:19]OFD Sender: No OFD packet to send [08:50:24]OFD Sender: No OFD packet to send [08:50:29]OFD Sender: No OFD packet to send [08:50:34]OFD Sender: No OFD packet to send [08:50:39]OFD Sender: No OFD packet to send [08:50:44]OFD Sender: No OFD packet to send [08:50:49]OFD Sender: No OFD packet to send [08:50:54]OFD Sender: No OFD packet to send [08:50:59]OFD Sender: No OFD packet to send [08:51:04]OFD Sender: No OFD packet to send [08:51:09]OFD Sender: No OFD packet to send [08:51:14]OFD Sender: No OFD packet to send [08:51:19]OFD Sender: No OFD packet to send [08:51:24]OFD Sender: No OFD packet to send [08:51:29]OFD Sender: No OFD packet to send [08:51:34]OFD Sender: No OFD packet to send [08:51:39]OFD Sender: No OFD packet to send [08:51:43]accept exits with 9 [08:51:43]New connection [08:51:43]New thread 3067317604 created [08:51:43]Thread 3067460964 joined [08:51:43]Waiting for new connection... [08:51:43] Sock 9.Parse request [08:51:43]Sock 9.Check first char [08:51:43]Sock 9.First char is OK [08:51:43]request: POST /json_proto HTTP/1.0 [08:51:43]Method: POST [08:51:43]URL: /json_proto [08:51:43]Method is POST - this is cgi request [08:51:43]url: /json_proto [08:51:43]query_string will be loaded in cgi processing [08:51:43]execute_cgi json_proto POST (null) [08:51:43]execute_cgi path=json_proto method=POST [08:51:43]POST find Content-Length [08:51:43]Host: 172.17.45.132:8080 [08:51:43]Content-Length: 638 [08:51:43]Content-Type: application/json [08:51:43] [08:51:43]POST finish read [08:51:43]Found Content-Length = 638 [08:51:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)609133", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 2", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 75.70, "quantity" : 13.210, "sum" : 1000.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:51:43]execute_script... [08:51:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)609133", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 2", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 75.70, "quantity" : 13.210, "sum" : 1000.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:51:43]POST & json_proto [08:51:43]process_json_proto [08:51:43]json parsed OK: [08:51:43]protocol is kg_v1.0 [08:51:43]action value=close_receipt [08:51:43]process_action close_receipt [08:51:43]cmd_close_receipt [08:51:43]MH_GetDate [08:51:43]Write to MH i2c: F0 00 00 65 3E 92 [08:51:43]Write i2c OK [08:51:43]MH_I2C_Read... [08:51:43]Read from MH i2c: F0 [08:51:43]MH_I2C_Read... [08:51:43]Read from MH i2c: F0 09 00 [08:51:43]MH_I2C_Read... [08:51:43]Read from MH i2c: F0 09 00 65 3E 00 A4 06 A6 66 E3 0B 90 66 35 [08:51:43]GetLastDocTimeStamp 1722156275 [08:51:43]current date 1722156708 [08:51:43]FM_GetShiftState [08:51:43]SAM_PROTO_GetShiftState [08:51:43]wFMCommunicate request_size=4 [08:51:43]MH_SAM_APDU [08:51:43]CAPDU: 80 13 01 00 [08:51:43]Write to MH i2c: E2 08 00 66 3E 80 13 01 00 00 00 00 00 21 [08:51:43]Write i2c OK [08:51:43]MH_I2C_Read... [08:51:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:51:43]Read from MH i2c: E2 [08:51:43]MH_I2C_Read... [08:51:43]Read from MH i2c: E2 0E 00 [08:51:43]MH_I2C_Read... [08:51:43]Read from MH i2c: E2 0E 00 66 3E 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 15 [08:51:43]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [08:51:43]wFMCommunicate OK [08:51:43]SAM_PROTO_GetShiftState done [08:51:43]FM_GetShiftState done [08:51:43]opened in 1722125648 [08:51:43]opened+sec_in_day 1722212048 [08:51:43]quantity*price = 99999 [08:51:43]sum+1 = 100001 [08:51:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.19 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 59 28.07.2024 08:51 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2008 ФПД: 76770041317187 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T085148&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2008&fm=76770041317187&tin=02508201610067®Number=0000000000189667&sum=100000 [08:51:45]StoreToDocumentArchive [08:51:45]shift 13 fd 2008 [08:51:45]save to /storage/0013/doc_00002008 [08:51:45]save last doc name /storage/0013/doc_00002008 to /storage/kkm_last_doc_name [08:51:45]save OK [08:51:45]Clear old archive folders... [08:51:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:51:45]tlvbuf is 020336B0 [08:51:45]SAM_PROTO_ClearQueue [08:51:45]wFMCommunicate request_size=4 [08:51:45]MH_SAM_APDU [08:51:45]CAPDU: 80 09 00 00 [08:51:45]Write to MH i2c: E2 08 00 73 3E 80 09 00 00 00 00 00 00 23 [08:51:45]Write i2c OK [08:51:45]MH_I2C_Read... [08:51:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:51:45]Read from MH i2c: E2 [08:51:45]MH_I2C_Read... [08:51:45]Read from MH i2c: E2 03 00 [08:51:45]MH_I2C_Read... [08:51:45]Read from MH i2c: E2 03 00 73 3E 00 90 00 25 [08:51:45]RAPDU: 90 00 [08:51:45]wFMCommunicate OK [08:51:45]SAM_PROTO_ClearQueue done [08:51:45]KKMCreateOFDPacket [08:51:45]OFDProtocolAddRootSTLVToBuf [08:51:45]FM_MakeSignedData [08:51:45]FM_MakeSignedData [08:51:45]SAM_PROTO_SignData [08:51:45]wFMCommunicate request_size=4 [08:51:45]MH_SAM_APDU [08:51:45]CAPDU: 80 0D 01 02 [08:51:45]Write to MH i2c: E2 08 00 74 3E 80 0D 01 02 00 00 00 00 2B [08:51:45]Write i2c OK [08:51:45]MH_I2C_Read... [08:51:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:51:45]Read from MH i2c: E2 [08:51:45]MH_I2C_Read... [08:51:45]Read from MH i2c: E2 03 00 [08:51:45]MH_I2C_Read... [08:51:45]Read from MH i2c: E2 03 00 74 3E 00 90 00 26 [08:51:45]RAPDU: 90 00 [08:51:45]wFMCommunicate OK [08:51:45]wFMCommunicate request_size=255 [08:51:45]MH_SAM_APDU [08:51:45]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 9A 33 00 00 00 00 00 37 04 06 00 92 1D 00 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 A4 06 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D8 07 00 00 35 04 06 00 45 D2 6B 0A [08:51:45]Write to MH i2c: E2 02 01 75 3E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 9A 33 00 00 00 00 00 37 04 06 00 92 1D 00 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 A4 06 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D8 07 00 00 35 04 06 00 45 D2 6B 0A 00 00 04 [08:51:45]Write i2c OK [08:51:45]MH_I2C_Read... [08:51:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:51:45]Read from MH i2c: E2 [08:51:45]MH_I2C_Read... [08:51:45]Read from MH i2c: E2 03 00 [08:51:45]MH_I2C_Read... [08:51:45]Read from MH i2c: E2 03 00 75 3E 00 90 00 27 [08:51:45]RAPDU: 90 00 [08:51:45]wFMCommunicate OK [08:51:45]wFMCommunicate request_size=7 [08:51:45]MH_SAM_APDU [08:51:45]CAPDU: 80 0D 02 02 02 C7 43 [08:51:45]Write to MH i2c: E2 0A 00 76 3E 80 0D 02 02 02 00 C7 43 00 00 3C [08:51:45]Write i2c OK [08:51:45]MH_I2C_Read... [08:51:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:51:45]Read from MH i2c: E2 [08:51:45]MH_I2C_Read... [08:51:45]Read from MH i2c: E2 03 00 [08:51:45]MH_I2C_Read... [08:51:45]Read from MH i2c: E2 03 00 76 3E 00 90 00 28 [08:51:45]RAPDU: 90 00 [08:51:45]wFMCommunicate OK [08:51:45]wFMCommunicate request_size=4 [08:51:45]MH_SAM_APDU [08:51:45]CAPDU: 80 0D 03 02 [08:51:45]Write to MH i2c: E2 08 00 77 3E 80 0D 03 02 00 00 00 00 30 [08:51:45]Write i2c OK [08:51:45]MH_I2C_Read... [08:51:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:51:45]Read from MH i2c: E2 [08:51:45]MH_I2C_Read... [08:51:45]Read from MH i2c: E2 0B 00 [08:51:45]MH_I2C_Read... [08:51:45]Read from MH i2c: E2 0B 00 77 3E 00 54 F0 E0 43 9D 2C FC 94 90 00 F1 [08:51:45]RAPDU: 54 F0 E0 43 9D 2C FC 94 90 00 [08:51:45]wFMCommunicate OK [08:51:45]SAM_PROTO_SignData done [08:51:45]FM_MakeSignedData done [08:51:45]CreateOFDProtocolMessage [08:51:45]wFMCommunicate request_size=4 [08:51:45]MH_SAM_APDU [08:51:45]CAPDU: 80 11 00 00 [08:51:45]Write to MH i2c: E2 08 00 78 3E 80 11 00 00 00 00 00 00 30 [08:51:45]Write i2c OK [08:51:45]MH_I2C_Read... [08:51:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:51:45]Read from MH i2c: E2 [08:51:45]MH_I2C_Read... [08:51:45]Read from MH i2c: E2 17 00 [08:51:45]MH_I2C_Read... [08:51:45]Read from MH i2c: E2 17 00 78 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 80 [08:51:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [08:51:45]wFMCommunicate OK [08:51:45]CreateOFDProtocolMessage done [08:51:45]OFDSenderStorePacket 2008 [08:51:45]StoreOFDPacket docnum=2008 [08:51:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0C 01 00 00 67 90 04 01 93 FC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 9A 33 00 00 00 00 00 37 04 06 00 92 1D 00 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 A4 06 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D8 07 00 00 35 04 06 00 45 D2 6B 0A C7 43 54 F0 E0 43 9D 2C FC 94 [08:51:45]CheckFolder [08:51:45]dirname=/storage/ofd_packets [08:51:45]CheckFolder done [08:51:45]ProducePacketName [08:51:45]name=ofd_packets/00002008 [08:51:45]NVStorageSaveData ofd_packets/00002008 [08:51:45]File name is /storage/ofd_packets/00002008 [08:51:45]Write 298 bytes [08:51:45]NVStorageSaveData done [08:51:45]OFDSenderStorePacket done [08:51:45]KKMCreateOFDPacket done [08:51:45]NVStorageSaveData kkm_last_timestamp [08:51:45]File name is /storage/kkm_last_timestamp [08:51:45]Write 4 bytes [08:51:45]NVStorageSaveData done [08:51:45]ExternCall_PrintAddStr [08:51:45]wPrintStart [08:51:45]Write to MH i2c: 01 00 00 79 3E B7 [08:51:45]Write i2c OK [08:51:45]MH_I2C_Read... [08:51:45]Read from MH i2c: 01 [08:51:45]MH_I2C_Read... [08:51:45]Read from MH i2c: 01 07 00 [08:51:45]MH_I2C_Read... [08:51:45]Read from MH i2c: 01 07 00 79 3E 00 00 00 00 00 FF 0F CC [08:51:45]RasterBufferAndPrint [08:51:45]line Счет N : (1)609133 [08:51:45]line ИНН: 02508201610067 [08:51:45]line Контрольно-Кассовый Чек [08:51:45]line ПРОДАЖА [08:51:45]line ТРК (МРК, ГНК) : 2 [08:51:45]line Товар: 2710194210 [08:51:45]line ДТ-К-2 [08:51:45]line 13.210 * 75.70 [08:51:45]line = 1000.00 [08:51:45]line НДС 12% НСП 1% [08:51:45]line > о реализуемом товаре [08:51:45]line ИТОГО: 1000.00 [08:51:45]line НСП 1% : 8.85 [08:51:45]line НДС 12% : 106.19 [08:51:45]line Наличными: 1000.00 [08:51:45]line Безнал.: 0.00 [08:51:45]line Место: АЗС № 127 "Партнер Нефть" [08:51:45]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [08:51:45]line СНО: Общий режим [08:51:45]line Чек 59 28.07.2024 08:51 [08:51:45]line Смена: 13 ФФД: 1.0 [08:51:45]line ЗНМ: 0300000161 [08:51:45]line РНМ: 0000000000189667 [08:51:45]line Версия ККМ: v1.0 [08:51:45]line ФМ: 0000000002094248 [08:51:45]line ФД: 2008 [08:51:45]line ФПД: 76770041317187 [08:51:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T085148&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2008&fm=76770041317187&tin=02508201610067®Number=0000000000189667&sum=100000 [08:51:45]OFD Sender: Processing packet 2008 [packets to send 1, broken 0] [08:51:45]ProducePacketName [08:51:45]name=ofd_packets/00002008 [08:51:45]OFD Sender: To server: pG, [08:51:45]CommunicateWithHost lk.salyk.kg:30040 [08:51:45]ConnectInit lk.salyk.kg [08:51:45]written 0, free lines is 4095 [08:51:46]Connected sock=10 [08:51:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0C 01 00 00 67 90 04 01 93 FC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 9A 33 00 00 00 00 00 37 04 06 00 92 1D 00 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 A4 06 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D8 07 00 00 35 04 06 00 45 D2 6B 0A C7 43 54 F0 E0 43 9D 2C FC 94 [08:51:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 EF 88 47 00 C9 C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D8 07 00 00 F4 03 04 00 14 B2 A5 66 B6 04 01 00 00 D9 02 1C 7F F1 6C D4 B3 [08:51:46]CommunicateWithHost err = 0 [08:51:46]CheckOFDResponse [08:51:46]1017 (14) - 77093643461234 [08:51:46]1041 (16) - 0000000002094248 [08:51:46]1040 (4) - 2008 [08:51:46]1012 (4) - 28.07.2024 02:51 [08:51:46]1206 (1) - 0 [08:51:46]OFD Sender: Remove packet 2008 [08:51:46]ProducePacketName [08:51:46]name=ofd_packets/00002008 [08:51:46]NVStorageDeleteData [08:51:46]Write to MH i2c: 01 00 00 A1 3E DF [08:51:46]Write i2c OK [08:51:46]MH_I2C_Read... [08:51:46]Read from MH i2c: 01 [08:51:46]MH_I2C_Read... [08:51:46]Read from MH i2c: 01 07 00 [08:51:46]MH_I2C_Read... [08:51:46]Read from MH i2c: 01 07 00 A1 3E 00 00 00 00 00 23 0D 16 [08:51:46]RasterBufferAndPrint [08:51:46]line [08:51:46]line [08:51:46]line [08:51:46]line [08:51:46]line [08:51:46]written 0, free lines is 3369 [08:51:46]MH_Cut [08:51:46]Write to MH i2c: D1 01 00 A8 3E 01 B8 [08:51:46]Write i2c OK [08:51:46]MH_I2C_Read... [08:51:46]Read from MH i2c: D1 [08:51:46]MH_I2C_Read... [08:51:46]Read from MH i2c: D1 01 00 [08:51:46]MH_I2C_Read... [08:51:46]Read from MH i2c: D1 01 00 A8 3E 00 B7 [08:51:46]Write to MH i2c: 01 00 00 A9 3E E7 [08:51:46]Write i2c OK [08:51:46]MH_I2C_Read... [08:51:46]OFD Sender: No OFD packet to send [08:51:47]*** Cut start [08:51:47]*** Partial cut [08:51:47]*** CUTSNS_PIN = 1 [08:51:47]*** CUTSNS_PIN = 0 [08:51:47]*** Brake cut motor [08:51:47]Read from MH i2c: 01 [08:51:47]MH_I2C_Read... [08:51:47]*** Stop cut motor [08:51:47]*** Cut end [08:51:47]Read from MH i2c: 01 07 00 [08:51:47]MH_I2C_Read... [08:51:47]Read from MH i2c: 01 07 00 A9 3E 00 00 00 00 00 FF 0F FC [08:51:47]process_action close_receipt done [08:51:47]requested_data is exist [08:51:47]produce_requested_data [08:51:47]requested_item fm.sn is exist - process it [08:51:47]wFMCommunicate request_size=4 [08:51:47]MH_SAM_APDU [08:51:47]CAPDU: 80 11 00 00 [08:51:47]Write to MH i2c: E2 08 00 AA 3E 80 11 00 00 00 00 00 00 62 [08:51:47]Write i2c OK [08:51:47]MH_I2C_Read... [08:51:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:51:47]Read from MH i2c: E2 [08:51:47]MH_I2C_Read... [08:51:47]Read from MH i2c: E2 17 00 [08:51:47]MH_I2C_Read... [08:51:47]Read from MH i2c: E2 17 00 AA 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 B2 [08:51:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [08:51:47]wFMCommunicate OK [08:51:47]requested_item fd.num is exist - process it [08:51:47]SAM_PROTO_GetFieldsCounters [08:51:47]wFMCommunicate request_size=4 [08:51:47]MH_SAM_APDU [08:51:47]CAPDU: 80 13 00 00 [08:51:47]Write to MH i2c: E2 08 00 AB 3E 80 13 00 00 00 00 00 00 65 [08:51:47]Write i2c OK [08:51:47]MH_I2C_Read... [08:51:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:51:47]Read from MH i2c: E2 [08:51:47]MH_I2C_Read... [08:51:47]Read from MH i2c: E2 62 00 [08:51:47]MH_I2C_Read... [08:51:47]Read from MH i2c: E2 62 00 AB 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 D8 07 00 00 0E 04 04 00 0D 00 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 2C [08:51:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 D8 07 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:51:47]wFMCommunicate OK [08:51:47]SAM_PROTO_GetFieldsCounters done [08:51:47]requested_item shift.num is exist - process it [08:51:47]requested_item shift.opened is exist - process it [08:51:47]req_shift_opened [08:51:47]FM_GetShiftState [08:51:47]SAM_PROTO_GetShiftState [08:51:47]wFMCommunicate request_size=4 [08:51:47]MH_SAM_APDU [08:51:47]CAPDU: 80 13 01 00 [08:51:47]Write to MH i2c: E2 08 00 AC 3E 80 13 01 00 00 00 00 00 67 [08:51:47]Write i2c OK [08:51:47]MH_I2C_Read... [08:51:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:51:47]Read from MH i2c: E2 [08:51:47]MH_I2C_Read... [08:51:47]Read from MH i2c: E2 0E 00 [08:51:47]MH_I2C_Read... [08:51:47]Read from MH i2c: E2 0E 00 AC 3E 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 5B [08:51:47]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [08:51:47]wFMCommunicate OK [08:51:47]SAM_PROTO_GetShiftState done [08:51:47]FM_GetShiftState done [08:51:47]req_shift_opened done [08:51:47]requested_item shift.open_date is exist - process it [08:51:47]req_shift_open_date [08:51:47]req_shift_open_date done [08:51:47]produce_requested_data done [08:51:47]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2008,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [08:51:47]process_action_free close_receipt [08:51:47]json_value_free [08:51:47]json_value_free done [08:51:47]process_json_proto returns [08:51:47]Send response to host [08:51:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2008,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [08:51:47]free response buf [08:51:47]execute_script done [08:51:47]execute_script returns [08:51:47]free content buf [08:51:47]Sock 9.Close socket [08:51:47]Sock 9.Thread stoped [08:51:51]OFD Sender: No OFD packet to send [08:51:56]OFD Sender: No OFD packet to send [08:52:01]OFD Sender: No OFD packet to send [08:52:06]OFD Sender: No OFD packet to send [08:52:11]OFD Sender: No OFD packet to send [08:52:16]OFD Sender: No OFD packet to send [08:52:21]OFD Sender: No OFD packet to send [08:52:26]OFD Sender: No OFD packet to send [08:52:31]OFD Sender: No OFD packet to send [08:52:36]OFD Sender: No OFD packet to send [08:52:41]OFD Sender: No OFD packet to send [08:52:46]OFD Sender: No OFD packet to send [08:52:51]OFD Sender: No OFD packet to send [08:52:56]OFD Sender: No OFD packet to send [08:53:01]OFD Sender: No OFD packet to send [08:53:06]OFD Sender: No OFD packet to send [08:53:11]OFD Sender: No OFD packet to send [08:53:16]OFD Sender: No OFD packet to send [08:53: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:37]OFD Sender: No OFD packet to send [08:54:42]OFD Sender: No OFD packet to send [08:54:47]OFD Sender: No OFD packet to send [08:54:52]OFD Sender: No OFD packet to send [08:54:57]OFD Sender: No OFD packet to send [08:55:02]OFD Sender: No OFD packet to send [08:55:07]OFD Sender: No OFD packet to send [08:55:12]OFD Sender: No OFD packet to send [08:55:17]OFD Sender: No OFD packet to send [08:55:22]OFD Sender: No OFD packet to send [08:55:27]OFD Sender: No OFD packet to send [08:55:32]OFD Sender: No OFD packet to send [08:55:37]OFD Sender: No OFD packet to send [08:55:42]OFD Sender: No OFD packet to send [08:55:47]OFD Sender: No OFD packet to send [08:55:52]OFD Sender: No OFD packet to send [08:55:57]OFD Sender: No OFD packet to send [08:56:02]OFD Sender: No OFD packet to send [08:56:07]OFD Sender: No OFD packet to send [08:56:12]OFD Sender: No OFD packet to send [08:56:17]OFD Sender: No OFD packet to send [08:56:22]OFD Sender: No OFD packet to send [08:56:27]OFD Sender: No OFD packet to send [08:56:32]OFD Sender: No OFD packet to send [08:56:37]OFD Sender: No OFD packet to send [08:56:42]OFD Sender: No OFD packet to send [08:56:47]OFD Sender: No OFD packet to send [08:56:52]OFD Sender: No OFD packet to send [08:56:57]OFD Sender: No OFD packet to send [08:57:02]OFD Sender: No OFD packet to send [08:57:07]OFD Sender: No OFD packet to send [08:57:12]OFD Sender: No OFD packet to send [08:57: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:27]OFD Sender: No OFD packet to send [09:01:32]OFD Sender: No OFD packet to send [09:01:37]OFD Sender: No OFD packet to send [09:01:42]OFD Sender: No OFD packet to send [09:01:47]OFD Sender: No OFD packet to send [09:01:52]OFD Sender: No OFD packet to send [09:01:57]OFD Sender: No OFD packet to send [09:02:02]OFD Sender: No OFD packet to send [09:02:07]OFD Sender: No OFD packet to send [09:02:12]OFD Sender: No OFD packet to send [09:02:17]OFD Sender: No OFD packet to send [09:02:22]OFD Sender: No OFD packet to send [09:02:27]OFD Sender: No OFD packet to send [09:02:32]OFD Sender: No OFD packet to send [09:02:37]OFD Sender: No OFD packet to send [09:02:42]OFD Sender: No OFD packet to send [09:02:47]OFD Sender: No OFD packet to send [09:02:52]OFD Sender: No OFD packet to send [09:02:57]OFD Sender: No OFD packet to send [09:03:02]OFD Sender: No OFD packet to send [09:03:07]OFD Sender: No OFD packet to send [09:03:12]OFD Sender: No OFD packet to send [09:03:17]OFD Sender: No OFD packet to send [09:03:22]OFD Sender: No OFD packet to send [09:03:27]OFD Sender: No OFD packet to send [09:03:32]OFD Sender: No OFD packet to send [09:03:37]OFD Sender: No OFD packet to send [09:03:42]OFD Sender: No OFD packet to send [09:03:47]OFD Sender: No OFD packet to send [09:03:52]OFD Sender: No OFD packet to send [09:03:57]OFD Sender: No OFD packet to send [09:04:02]OFD Sender: No OFD packet to send [09:04:07]OFD Sender: No OFD packet to send [09:04:12]OFD Sender: No OFD packet to send [09:04:17]OFD Sender: No OFD packet to send [09:04:22]OFD Sender: No OFD packet to send [09:04:27]OFD Sender: No OFD packet to send [09:04:32]OFD Sender: No OFD packet to send [09:04:37]OFD Sender: No OFD packet to send [09:04:40]accept exits with 8 [09:04:40]New connection [09:04:40]New thread 3067460964 created [09:04:40]Thread 3067317604 joined [09:04:40]Waiting for new connection... [09:04:40] Sock 8.Parse request [09:04:40]Sock 8.Check first char [09:04:40]Sock 8.First char is OK [09:04:40]request: POST /json_proto HTTP/1.0 [09:04:40]Method: POST [09:04:40]URL: /json_proto [09:04:40]Method is POST - this is cgi request [09:04:40]url: /json_proto [09:04:40]query_string will be loaded in cgi processing [09:04:40]execute_cgi json_proto POST (null) [09:04:40]execute_cgi path=json_proto method=POST [09:04:40]POST find Content-Length [09:04:40]Host: 172.17.45.132:8080 [09:04:40]Content-Length: 2195 [09:04:40]Content-Type: application/json [09:04:40] [09:04:40]POST finish read [09:04:40]Found Content-Length = 2195 [09:04:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126315", "tax_sys" : 0, "items" : [ { "code": "4870235681369", "name": "\u0427\u0418\u041F\u0421\u042B SLANG \u0421\u041E \u0412\u041A\u0423\u0421\u041E\u041C \u0421\u042B\u0420 60\u0413", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4771173208758", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 Jega \u0441\u044B\u0440,\u043B\u0443\u043A 200\u0433", "price" : 245.00, "quantity" : 1.000, "sum" : 245.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4000417703002", "name": "\u0428\u043E\u043A\u043E\u043B\u0430\u0434 Ritter SPORT EN \u0446\u0435\u043B.\u043C\u0438\u043D\u0434 100\u0433", "price" : 255.00, "quantity" : 1.000, "sum" : 255.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4000417702005", "name": "\u0428\u043E\u043A\u043E\u043B\u0430\u0434 Ritter SPORT EN \u043B\u0435\u0449,\u043B\u0435\u0441.\u043E\u0440 100\u0433", "price" : 255.00, "quantity" : 1.000, "sum" : 255.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065000868", "name": "\u0428\u043E\u043A M\u0026M`s \u0441 \u0448\u043E\u043A\u043E\u043B\u0430\u0434\u043E\u043C 45\u0433", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4011100156364", "name": "\u0414\u0440\u0430\u0436\u0435 Skittles \u0444\u0440\u0443\u043A\u0442\u044B", "price" : 47.00, "quantity" : 1.000, "sum" : 47.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" : 1062.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:04:40]execute_script... [09:04: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)126315", "tax_sys" : 0, "items" : [ { "code": "4870235681369", "name": "\u0427\u0418\u041F\u0421\u042B SLANG \u0421\u041E \u0412\u041A\u0423\u0421\u041E\u041C \u0421\u042B\u0420 60\u0413", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4771173208758", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 Jega \u0441\u044B\u0440,\u043B\u0443\u043A 200\u0433", "price" : 245.00, "quantity" : 1.000, "sum" : 245.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4000417703002", "name": "\u0428\u043E\u043A\u043E\u043B\u0430\u0434 Ritter SPORT EN \u0446\u0435\u043B.\u043C\u0438\u043D\u0434 100\u0433", "price" : 255.00, "quantity" : 1.000, "sum" : 255.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4000417702005", "name": "\u0428\u043E\u043A\u043E\u043B\u0430\u0434 Ritter SPORT EN \u043B\u0435\u0449,\u043B\u0435\u0441.\u043E\u0440 100\u0433", "price" : 255.00, "quantity" : 1.000, "sum" : 255.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065000868", "name": "\u0428\u043E\u043A M\u0026M`s \u0441 \u0448\u043E\u043A\u043E\u043B\u0430\u0434\u043E\u043C 45\u0433", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4011100156364", "name": "\u0414\u0440\u0430\u0436\u0435 Skittles \u0444\u0440\u0443\u043A\u0442\u044B", "price" : 47.00, "quantity" : 1.000, "sum" : 47.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" : 1062.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:04:40]POST & json_proto [09:04:40]process_json_proto [09:04:40]json parsed OK: [09:04:40]protocol is kg_v1.0 [09:04:40]action value=close_receipt [09:04:40]process_action close_receipt [09:04:40]cmd_close_receipt [09:04:40]MH_GetDate [09:04:40]Write to MH i2c: F0 00 00 AD 3E DA [09:04:40]Write i2c OK [09:04:40]MH_I2C_Read... [09:04:40]Read from MH i2c: F0 [09:04:40]MH_I2C_Read... [09:04:40]Read from MH i2c: F0 09 00 [09:04:40]MH_I2C_Read... [09:04:40]Read from MH i2c: F0 09 00 AD 3E 00 AD 09 A6 66 E3 0B 90 66 89 [09:04:40]GetLastDocTimeStamp 1722156708 [09:04:40]current date 1722157485 [09:04:40]FM_GetShiftState [09:04:40]SAM_PROTO_GetShiftState [09:04:40]wFMCommunicate request_size=4 [09:04:40]MH_SAM_APDU [09:04:40]CAPDU: 80 13 01 00 [09:04:40]Write to MH i2c: E2 08 00 AE 3E 80 13 01 00 00 00 00 00 69 [09:04:40]Write i2c OK [09:04:40]MH_I2C_Read... [09:04:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:04:40]Read from MH i2c: E2 [09:04:40]MH_I2C_Read... [09:04:40]Read from MH i2c: E2 0E 00 [09:04:40]MH_I2C_Read... [09:04:40]Read from MH i2c: E2 0E 00 AE 3E 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 5D [09:04:40]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [09:04:40]wFMCommunicate OK [09:04:40]SAM_PROTO_GetShiftState done [09:04:40]FM_GetShiftState done [09:04:40]opened in 1722125648 [09:04:40]opened+sec_in_day 1722212048 [09:04:40]quantity*price = 19000 [09:04:40]sum+1 = 19001 [09:04:40]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4771173208758 Арахис Jega сыр,лук 200г 1.000 * 245.00 = 245.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4000417703002 Шоколад Ritter SPORT EN цел.минд 100г 1.000 * 255.00 = 255.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4000417702005 Шоколад Ritter SPORT EN лещ,лес.ор 100г 1.000 * 255.00 = 255.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607065000868 Шок M&M`s с шоколадом 45г 1.000 * 70.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4011100156364 Драже Skittles фрукты 1.000 * 47.00 = 47.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 1062.00 НСП 1% : 9.41 НДС 12% : 112.78 Наличными: 0.00 Безнал.: 1062.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 60 28.07.2024 09:04 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2009 ФПД: 29197796244613 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T090445&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2009&fm=29197796244613&tin=02508201610067®Number=0000000000189667&sum=106200 0 [09:04:42]StoreToDocumentArchive [09:04:42]shift 13 fd 2009 [09:04:42]save to /storage/0013/doc_00002009 [09:04:42]save last doc name /storage/0013/doc_00002009 to /storage/kkm_last_doc_name [09:04:42]save OK [09:04:42]Clear old archive folders... [09:04:42]ProcessDocumentItem done err = 0, tmpTLVsize=863 [09:04:42]tlvbuf is 01F75610 [09:04:42]SAM_PROTO_ClearQueue [09:04:42]wFMCommunicate request_size=4 [09:04:42]MH_SAM_APDU [09:04:42]CAPDU: 80 09 00 00 [09:04:42]Write to MH i2c: E2 08 00 BB 3E 80 09 00 00 00 00 00 00 6B [09:04:42]Write i2c OK [09:04:42]MH_I2C_Read... [09:04:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:04:42]Read from MH i2c: E2 [09:04:42]MH_I2C_Read... [09:04:42]Read from MH i2c: E2 03 00 [09:04:42]MH_I2C_Read... [09:04:42]Read from MH i2c: E2 03 00 BB 3E 00 90 00 6D [09:04:42]RAPDU: 90 00 [09:04:42]wFMCommunicate OK [09:04:42]SAM_PROTO_ClearQueue done [09:04:42]KKMCreateOFDPacket [09:04:42]OFDProtocolAddRootSTLVToBuf [09:04:42]FM_MakeSignedData [09:04:42]FM_MakeSignedData [09:04:42]SAM_PROTO_SignData [09:04:42]wFMCommunicate request_size=4 [09:04:42]MH_SAM_APDU [09:04:42]CAPDU: 80 0D 01 02 [09:04:42]Write to MH i2c: E2 08 00 BC 3E 80 0D 01 02 00 00 00 00 73 [09:04:42]Write i2c OK [09:04:42]MH_I2C_Read... [09:04:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:04:42]Read from MH i2c: E2 [09:04:42]MH_I2C_Read... [09:04:42]Read from MH i2c: E2 03 00 [09:04:42]MH_I2C_Read... [09:04:42]Read from MH i2c: E2 03 00 BC 3E 00 90 00 6E [09:04:42]RAPDU: 90 00 [09:04:42]wFMCommunicate OK [09:04:42]wFMCommunicate request_size=255 [09:04:42]MH_SAM_APDU [09:04:42]CAPDU: 80 0D 02 02 FA 03 00 5F 03 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 36 39 06 04 2E 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 A1 D0 AB D0 A0 20 36 30 D0 93 FF 03 08 00 03 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 69 00 8A 04 0D 00 34 37 37 31 31 37 33 32 30 38 37 35 38 06 04 25 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 4A 65 67 61 20 D1 81 D1 8B D1 80 2C D0 BB D1 83 D0 BA 20 32 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B4 5F 00 00 00 00 13 04 06 00 B4 5F 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 30 30 30 34 31 [09:04:42]Write to MH i2c: E2 02 01 BD 3E 80 0D 02 02 FA 00 03 00 5F 03 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 36 39 06 04 2E 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 A1 D0 AB D0 A0 20 36 30 D0 93 FF 03 08 00 03 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 69 00 8A 04 0D 00 34 37 37 31 31 37 33 32 30 38 37 35 38 06 04 25 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 4A 65 67 61 20 D1 81 D1 8B D1 80 2C D0 BB D1 83 D0 BA 20 32 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B4 5F 00 00 00 00 13 04 06 00 B4 5F 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 30 30 30 34 31 00 00 1D [09:04:42]Write i2c OK [09:04:42]MH_I2C_Read... [09:04:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:04:42]Read from MH i2c: E2 [09:04:42]MH_I2C_Read... [09:04:42]Read from MH i2c: E2 03 00 [09:04:42]MH_I2C_Read... [09:04:42]Read from MH i2c: E2 03 00 BD 3E 00 90 00 6F [09:04:42]RAPDU: 90 00 [09:04:42]wFMCommunicate OK [09:04:42]wFMCommunicate request_size=255 [09:04:42]MH_SAM_APDU [09:04:42]CAPDU: 80 0D 02 02 FA 37 37 30 33 30 30 32 06 04 34 00 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 52 69 74 74 65 72 20 53 50 4F 52 54 20 45 4E 20 D1 86 D0 B5 D0 BB 2E D0 BC D0 B8 D0 BD D0 B4 20 31 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 9C 63 00 00 00 00 13 04 06 00 9C 63 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 30 30 30 34 31 37 37 30 32 30 30 35 06 04 37 00 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 52 69 74 74 65 72 20 53 50 4F 52 54 20 45 4E 20 D0 BB D0 B5 D1 89 2C D0 BB D0 B5 D1 81 2E D0 BE D1 80 20 31 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 9C 63 00 00 00 00 13 04 06 00 9C 63 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 [09:04:42]Write to MH i2c: E2 02 01 BE 3E 80 0D 02 02 FA 00 37 37 30 33 30 30 32 06 04 34 00 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 52 69 74 74 65 72 20 53 50 4F 52 54 20 45 4E 20 D1 86 D0 B5 D0 BB 2E D0 BC D0 B8 D0 BD D0 B4 20 31 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 9C 63 00 00 00 00 13 04 06 00 9C 63 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 30 30 30 34 31 37 37 30 32 30 30 35 06 04 37 00 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 52 69 74 74 65 72 20 53 50 4F 52 54 20 45 4E 20 D0 BB D0 B5 D1 89 2C D0 BB D0 B5 D1 81 2E D0 BE D1 80 20 31 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 9C 63 00 00 00 00 13 04 06 00 9C 63 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 00 00 21 [09:04:42]Write i2c OK [09:04:42]MH_I2C_Read... [09:04:42]OFD Sender: No OFD packet to send [09:04:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:04:42]Read from MH i2c: E2 [09:04:42]MH_I2C_Read... [09:04:42]Read from MH i2c: E2 03 00 [09:04:42]MH_I2C_Read... [09:04:42]Read from MH i2c: E2 03 00 BE 3E 00 90 00 70 [09:04:42]RAPDU: 90 00 [09:04:42]wFMCommunicate OK [09:04:42]wFMCommunicate request_size=255 [09:04:42]MH_SAM_APDU [09:04:42]CAPDU: 80 0D 02 02 FA 36 35 30 30 30 38 36 38 06 04 27 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 30 31 31 31 30 30 31 35 36 33 36 34 06 04 20 00 D0 94 D1 80 D0 B0 D0 B6 D0 B5 20 53 6B 69 74 74 6C 65 73 20 D1 84 D1 80 D1 83 D0 BA D1 82 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 12 00 00 00 00 13 04 06 00 5C 12 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 9E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 2C [09:04:42]Write to MH i2c: E2 02 01 BF 3E 80 0D 02 02 FA 00 36 35 30 30 30 38 36 38 06 04 27 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 30 31 31 31 30 30 31 35 36 33 36 34 06 04 20 00 D0 94 D1 80 D0 B0 D0 B6 D0 B5 20 53 6B 69 74 74 6C 65 73 20 D1 84 D1 80 D1 83 D0 BA D1 82 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 12 00 00 00 00 13 04 06 00 5C 12 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 9E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 2C 00 00 EC [09:04:42]Write i2c OK [09:04:42]MH_I2C_Read... [09:04:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:04:43]Read from MH i2c: E2 [09:04:43]MH_I2C_Read... [09:04:43]Read from MH i2c: E2 03 00 [09:04:43]MH_I2C_Read... [09:04:43]Read from MH i2c: E2 03 00 BF 3E 00 90 00 71 [09:04:43]RAPDU: 90 00 [09:04:43]wFMCommunicate OK [09:04:43]wFMCommunicate request_size=122 [09:04:43]MH_SAM_APDU [09:04:43]CAPDU: 80 0D 02 02 75 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 9E 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 AD 09 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D9 07 00 00 35 04 06 00 1A 8E 24 45 FC 85 [09:04:43]Write to MH i2c: E2 7D 00 C0 3E 80 0D 02 02 75 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 9E 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 AD 09 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D9 07 00 00 35 04 06 00 1A 8E 24 45 FC 85 00 00 99 [09:04:43]Write i2c OK [09:04:43]MH_I2C_Read... [09:04:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:04:43]Read from MH i2c: E2 [09:04:43]MH_I2C_Read... [09:04:43]Read from MH i2c: E2 03 00 [09:04:43]MH_I2C_Read... [09:04:43]Read from MH i2c: E2 03 00 C0 3E 00 90 00 72 [09:04:43]RAPDU: 90 00 [09:04:43]wFMCommunicate OK [09:04:43]wFMCommunicate request_size=4 [09:04:43]MH_SAM_APDU [09:04:43]CAPDU: 80 0D 03 02 [09:04:43]Write to MH i2c: E2 08 00 C1 3E 80 0D 03 02 00 00 00 00 7A [09:04:43]Write i2c OK [09:04:43]MH_I2C_Read... [09:04:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:04:43]Read from MH i2c: E2 [09:04:43]MH_I2C_Read... [09:04:43]Read from MH i2c: E2 0B 00 [09:04:43]MH_I2C_Read... [09:04:43]Read from MH i2c: E2 0B 00 C1 3E 00 EF AA 93 ED 53 02 92 E0 90 00 5B [09:04:43]RAPDU: EF AA 93 ED 53 02 92 E0 90 00 [09:04:43]wFMCommunicate OK [09:04:43]SAM_PROTO_SignData done [09:04:43]FM_MakeSignedData done [09:04:43]CreateOFDProtocolMessage [09:04:43]wFMCommunicate request_size=4 [09:04:43]MH_SAM_APDU [09:04:43]CAPDU: 80 11 00 00 [09:04:43]Write to MH i2c: E2 08 00 C2 3E 80 11 00 00 00 00 00 00 7A [09:04:43]Write i2c OK [09:04:43]MH_I2C_Read... [09:04:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:04:43]Read from MH i2c: E2 [09:04:43]MH_I2C_Read... [09:04:43]Read from MH i2c: E2 17 00 [09:04:43]MH_I2C_Read... [09:04:43]Read from MH i2c: E2 17 00 C2 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 CA [09:04:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [09:04:43]wFMCommunicate OK [09:04:43]CreateOFDProtocolMessage done [09:04:43]OFDSenderStorePacket 2009 [09:04:43]StoreOFDPacket docnum=2009 [09:04:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 73 03 00 00 4D 26 6B 03 FB D5 5A 03 01 00 03 00 5F 03 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 36 39 06 04 2E 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 A1 D0 AB D0 A0 20 36 30 D0 93 FF 03 08 00 03 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 69 00 8A 04 0D 00 34 37 37 31 31 37 33 32 30 38 37 35 38 06 04 25 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 4A 65 67 61 20 D1 81 D1 8B D1 80 2C D0 BB D1 83 D0 BA 20 32 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B4 5F 00 00 00 00 13 04 06 00 B4 5F 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 30 30 30 34 31 37 37 30 33 30 30 32 06 04 34 00 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 52 69 74 74 65 72 20 53 50 4F 52 54 20 45 4E 20 D1 86 D0 B5 D0 BB 2E D0 BC D0 B8 D0 BD D0 B4 20 31 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 9C 63 00 00 00 00 13 04 06 00 9C 63 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 30 30 30 34 31 37 37 30 32 30 30 35 06 04 37 00 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 52 69 74 74 65 72 20 53 50 4F 52 54 20 45 4E 20 D0 BB D0 B5 D1 89 2C D0 BB D0 B5 D1 81 2E D0 BE D1 80 20 31 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 9C 63 00 00 00 00 13 04 06 00 9C 63 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 38 36 38 06 04 27 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 30 31 31 31 30 30 31 35 36 33 36 34 06 04 20 00 D0 94 D1 80 D0 B0 D0 B6 D0 B5 20 53 6B 69 74 74 6C 65 73 20 D1 84 D1 80 D1 83 D0 BA D1 82 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 12 00 00 00 00 13 04 06 00 5C 12 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 9E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 2C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 9E 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 AD 09 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D9 07 00 00 35 04 06 00 1A 8E 24 45 FC 85 EF AA 93 ED 53 02 92 E0 [09:04:43]CheckFolder [09:04:43]dirname=/storage/ofd_packets [09:04:43]CheckFolder done [09:04:43]ProducePacketName [09:04:43]name=ofd_packets/00002009 [09:04:43]NVStorageSaveData ofd_packets/00002009 [09:04:43]File name is /storage/ofd_packets/00002009 [09:04:43]Write 913 bytes [09:04:43]NVStorageSaveData done [09:04:43]OFDSenderStorePacket done [09:04:43]KKMCreateOFDPacket done [09:04:43]NVStorageSaveData kkm_last_timestamp [09:04:43]File name is /storage/kkm_last_timestamp [09:04:43]Write 4 bytes [09:04:43]NVStorageSaveData done [09:04:43]ExternCall_PrintAddStr [09:04:43]wPrintStart [09:04:43]Write to MH i2c: 01 00 00 C3 3E 01 [09:04:43]Write i2c OK [09:04:43]MH_I2C_Read... [09:04:43]Read from MH i2c: 01 [09:04:43]MH_I2C_Read... [09:04:43]Read from MH i2c: 01 07 00 [09:04:43]MH_I2C_Read... [09:04:43]OFD Sender: Processing packet 2009 [packets to send 1, broken 0] [09:04:43]ProducePacketName [09:04:43]name=ofd_packets/00002009 [09:04:43]OFD Sender: To server: pG, [09:04:43]CommunicateWithHost lk.salyk.kg:30040 [09:04:43]ConnectInit lk.salyk.kg [09:04:43]Read from MH i2c: 01 07 00 C3 3E 00 00 00 00 00 FF 0F 16 [09:04:43]RasterBufferAndPrint [09:04:43]line Счет N : (3)126315 [09:04:43]line ИНН: 02508201610067 [09:04:43]line Контрольно-Кассовый Чек [09:04:43]line ПРОДАЖА [09:04:43]line Товар: 4870235681369 [09:04:43]line ЧИПСЫ SLANG СО ВКУСОМ СЫР 60Г [09:04:43]line 2.000 * 95.00 [09:04:43]line = 190.00 [09:04:43]line НДС 12% НСП 1% [09:04:43]line > о реализуемом товаре [09:04:43]line Товар: 4771173208758 [09:04:43]line Арахис Jega сыр,лук 200г [09:04:43]line 1.000 * 245.00 [09:04:43]line = 245.00 [09:04:43]line НДС 12% НСП 1% [09:04:43]line > о реализуемом товаре [09:04:43]line Товар: 4000417703002 [09:04:43]line Шоколад Ritter SPORT EN цел.минд 100г [09:04:43]line 1.000 * 255.00 [09:04:43]line = 255.00 [09:04:43]line НДС 12% НСП 1% [09:04:43]line > о реализуемом товаре [09:04:43]line Товар: 4000417702005 [09:04:43]line Шоколад Ritter SPORT EN лещ,лес.ор 100г [09:04:43]line 1.000 * 255.00 [09:04:43]line = 255.00 [09:04:43]line НДС 12% НСП 1% [09:04:43]line > о реализуемом товаре [09:04:43]line Товар: 4607065000868 [09:04:43]line Шок M&M`s с шоколадом 45г [09:04:43]line 1.000 * 70.00 [09:04:43]line = 70.00 [09:04:43]line НДС 12% НСП 1% [09:04:43]line > о реализуемом товаре [09:04:43]line Товар: 4011100156364 [09:04:43]line Драже Skittles фрукты [09:04:43]line 1.000 * 47.00 [09:04:43]line = 47.00 [09:04:43]line НДС 12% НСП 1% [09:04:43]line > о реализуемом товаре [09:04:43]line ИТОГО: 1062.00 [09:04:43]line НСП 1% : 9.41 [09:04:43]line НДС 12% : 112.78 [09:04:43]line Наличными: 0.00 [09:04:43]line Безнал.: 1062.00 [09:04:43]line Место: АЗС № 127 "Партнер Нефть" [09:04:43]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [09:04:43]line СНО: Общий режим [09:04:43]line Чек 60 28.07.2024 09:04 [09:04:43]line Смена: 13 ФФД: 1.0 [09:04:43]line ЗНМ: 0300000161 [09:04:43]line РНМ: 0000000000189667 [09:04:43]line Версия ККМ: v1.0 [09:04:43]line Платежная система: O! деньги [09:04:43]line ФМ: 0000000002094248 [09:04:43]line ФД: 2009 [09:04:43]line ФПД: 29197796244613 [09:04:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T090445&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2009&fm=29197796244613&tin=02508201610067®Number=0000000000189667&sum=106200 [09:04:43]line 0 [09:04:43]written 0, free lines is 4095 [09:04:43]Connected sock=10 [09:04:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 73 03 00 00 4D 26 6B 03 FB D5 5A 03 01 00 03 00 5F 03 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 36 39 06 04 2E 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 A1 D0 AB D0 A0 20 36 30 D0 93 FF 03 08 00 03 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 69 00 8A 04 0D 00 34 37 37 31 31 37 33 32 30 38 37 35 38 06 04 25 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 4A 65 67 61 20 D1 81 D1 8B D1 80 2C D0 BB D1 83 D0 BA 20 32 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B4 5F 00 00 00 00 13 04 06 00 B4 5F 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 30 30 30 34 31 37 37 30 33 30 30 32 06 04 34 00 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 52 69 74 74 65 72 20 53 50 4F 52 54 20 45 4E 20 D1 86 D0 B5 D0 BB 2E D0 BC D0 B8 D0 BD D0 B4 20 31 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 9C 63 00 00 00 00 13 04 06 00 9C 63 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 30 30 30 34 31 37 37 30 32 30 30 35 06 04 37 00 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 52 69 74 74 65 72 20 53 50 4F 52 54 20 45 4E 20 D0 BB D0 B5 D1 89 2C D0 BB D0 B5 D1 81 2E D0 BE D1 80 20 31 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 9C 63 00 00 00 00 13 04 06 00 9C 63 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 38 36 38 06 04 27 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 30 31 31 31 30 30 31 35 36 33 36 34 06 04 20 00 D0 94 D1 80 D0 B0 D0 B6 D0 B5 20 53 6B 69 74 74 6C 65 73 20 D1 84 D1 80 D1 83 D0 BA D1 82 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 12 00 00 00 00 13 04 06 00 5C 12 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 9E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 2C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 9E 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 AD 09 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D9 07 00 00 35 04 06 00 1A 8E 24 45 FC 85 EF AA 93 ED 53 02 92 E0 [09:04:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 44 F8 47 00 6A 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D9 07 00 00 F4 03 04 00 1E B5 A5 66 B6 04 01 00 00 22 31 A6 C1 CA AC 25 00 [09:04:44]CommunicateWithHost err = 0 [09:04:44]CheckOFDResponse [09:04:44]1017 (14) - 77093643461234 [09:04:44]1041 (16) - 0000000002094248 [09:04:44]1040 (4) - 2009 [09:04:44]1012 (4) - 28.07.2024 03:03 [09:04:44]1206 (1) - 0 [09:04:44]OFD Sender: Remove packet 2009 [09:04:44]ProducePacketName [09:04:44]name=ofd_packets/00002009 [09:04:44]NVStorageDeleteData [09:04:44]Write to MH i2c: 01 00 00 0E 3F 4D [09:04:44]Write i2c OK [09:04:44]MH_I2C_Read... [09:04:44]Read from MH i2c: 01 [09:04:44]MH_I2C_Read... [09:04:44]Read from MH i2c: 01 07 00 [09:04:44]MH_I2C_Read... [09:04:44]Read from MH i2c: 01 07 00 0E 3F 00 00 00 00 00 6D 0B CC [09:04:44]RasterBufferAndPrint [09:04:44]line [09:04:44]line [09:04:44]line [09:04:44]line [09:04:44]line [09:04:44]written 0, free lines is 2937 [09:04:44]MH_Cut [09:04:44]Write to MH i2c: D1 01 00 15 3F 01 26 [09:04:44]Write i2c OK [09:04:44]MH_I2C_Read... [09:04:44]Read from MH i2c: D1 [09:04:44]MH_I2C_Read... [09:04:44]Read from MH i2c: D1 01 00 [09:04:44]MH_I2C_Read... [09:04:44]Read from MH i2c: D1 01 00 15 3F 00 25 [09:04:44]Write to MH i2c: 01 00 00 16 3F 55 [09:04:44]Write i2c OK [09:04:44]MH_I2C_Read... [09:04:44]OFD Sender: No OFD packet to send [09:04:45]*** Cut start [09:04:45]*** Partial cut [09:04:45]*** CUTSNS_PIN = 1 [09:04:45]*** CUTSNS_PIN = 0 [09:04:45]*** Brake cut motor [09:04:46]Read from MH i2c: 01 [09:04:46]MH_I2C_Read... [09:04:46]*** Stop cut motor [09:04:46]*** Cut end [09:04:46]Read from MH i2c: 01 07 00 [09:04:46]MH_I2C_Read... [09:04:46]Read from MH i2c: 01 07 00 16 3F 00 00 00 00 00 FF 0F 6A [09:04:46]process_action close_receipt done [09:04:46]requested_data is exist [09:04:46]produce_requested_data [09:04:46]requested_item fm.sn is exist - process it [09:04:46]wFMCommunicate request_size=4 [09:04:46]MH_SAM_APDU [09:04:46]CAPDU: 80 11 00 00 [09:04:46]Write to MH i2c: E2 08 00 17 3F 80 11 00 00 00 00 00 00 D0 [09:04:46]Write i2c OK [09:04:46]MH_I2C_Read... [09:04:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:04:46]Read from MH i2c: E2 [09:04:46]MH_I2C_Read... [09:04:46]Read from MH i2c: E2 17 00 [09:04:46]MH_I2C_Read... [09:04:46]Read from MH i2c: E2 17 00 17 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 20 [09:04:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [09:04:46]wFMCommunicate OK [09:04:46]requested_item fd.num is exist - process it [09:04:46]SAM_PROTO_GetFieldsCounters [09:04:46]wFMCommunicate request_size=4 [09:04:46]MH_SAM_APDU [09:04:46]CAPDU: 80 13 00 00 [09:04:46]Write to MH i2c: E2 08 00 18 3F 80 13 00 00 00 00 00 00 D3 [09:04:46]Write i2c OK [09:04:46]MH_I2C_Read... [09:04:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:04:46]Read from MH i2c: E2 [09:04:46]MH_I2C_Read... [09:04:46]Read from MH i2c: E2 62 00 [09:04:46]MH_I2C_Read... [09:04:46]Read from MH i2c: E2 62 00 18 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 D9 07 00 00 0E 04 04 00 0D 00 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 9E [09:04:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 D9 07 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:04:46]wFMCommunicate OK [09:04:46]SAM_PROTO_GetFieldsCounters done [09:04:46]requested_item shift.num is exist - process it [09:04:46]requested_item shift.opened is exist - process it [09:04:46]req_shift_opened [09:04:46]FM_GetShiftState [09:04:46]SAM_PROTO_GetShiftState [09:04:46]wFMCommunicate request_size=4 [09:04:46]MH_SAM_APDU [09:04:46]CAPDU: 80 13 01 00 [09:04:46]Write to MH i2c: E2 08 00 19 3F 80 13 01 00 00 00 00 00 D5 [09:04:46]Write i2c OK [09:04:46]MH_I2C_Read... [09:04:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:04:46]Read from MH i2c: E2 [09:04:46]MH_I2C_Read... [09:04:46]Read from MH i2c: E2 0E 00 [09:04:46]MH_I2C_Read... [09:04:46]Read from MH i2c: E2 0E 00 19 3F 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 C9 [09:04:46]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [09:04:46]wFMCommunicate OK [09:04:46]SAM_PROTO_GetShiftState done [09:04:46]FM_GetShiftState done [09:04:46]req_shift_opened done [09:04:46]requested_item shift.open_date is exist - process it [09:04:46]req_shift_open_date [09:04:46]req_shift_open_date done [09:04:46]produce_requested_data done [09:04:46]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2009,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [09:04:46]process_action_free close_receipt [09:04:46]json_value_free [09:04:46]json_value_free done [09:04:46]process_json_proto returns [09:04:46]Send response to host [09:04:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2009,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [09:04:46]free response buf [09:04:46]execute_script done [09:04:46]execute_script returns [09:04:46]free content buf [09:04:46]Sock 8.Close socket [09:04:46]Sock 8.Thread stoped [09:04:49]OFD Sender: No OFD packet to send [09:04:54]OFD Sender: No OFD packet to send [09:04:58]accept exits with 9 [09:04:58]New connection [09:04:58]New thread 3067317604 created [09:04:58]Thread 3067460964 joined [09:04:58]Waiting for new connection... [09:04:58] Sock 9.Parse request [09:04:58]Sock 9.Check first char [09:04:58]Sock 9.First char is OK [09:04:58]request: POST /json_proto HTTP/1.0 [09:04:58]Method: POST [09:04:58]URL: /json_proto [09:04:58]Method is POST - this is cgi request [09:04:58]url: /json_proto [09:04:58]query_string will be loaded in cgi processing [09:04:58]execute_cgi json_proto POST (null) [09:04:58]execute_cgi path=json_proto method=POST [09:04:58]POST find Content-Length [09:04:58]Host: 172.17.45.132:8080 [09:04:58]Content-Length: 621 [09:04:58]Content-Type: application/json [09:04:58] [09:04:58]POST finish read [09:04:58]Found Content-Length = 621 [09:04:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126316", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "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" ] } } [09:04:58]execute_script... [09:04:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126316", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "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" ] } } [09:04:58]POST & json_proto [09:04:58]process_json_proto [09:04:58]json parsed OK: [09:04:58]protocol is kg_v1.0 [09:04:58]action value=close_receipt [09:04:58]process_action close_receipt [09:04:58]cmd_close_receipt [09:04:58]MH_GetDate [09:04:58]Write to MH i2c: F0 00 00 1A 3F 48 [09:04:58]Write i2c OK [09:04:58]MH_I2C_Read... [09:04:58]Read from MH i2c: F0 [09:04:58]MH_I2C_Read... [09:04:58]Read from MH i2c: F0 09 00 [09:04:58]MH_I2C_Read... [09:04:58]Read from MH i2c: F0 09 00 1A 3F 00 BE 09 A6 66 E3 0B 90 66 08 [09:04:58]GetLastDocTimeStamp 1722157485 [09:04:58]current date 1722157502 [09:04:58]FM_GetShiftState [09:04:58]SAM_PROTO_GetShiftState [09:04:58]wFMCommunicate request_size=4 [09:04:58]MH_SAM_APDU [09:04:58]CAPDU: 80 13 01 00 [09:04:58]Write to MH i2c: E2 08 00 1B 3F 80 13 01 00 00 00 00 00 D7 [09:04:58]Write i2c OK [09:04:58]MH_I2C_Read... [09:04:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:04:58]Read from MH i2c: E2 [09:04:58]MH_I2C_Read... [09:04:58]Read from MH i2c: E2 0E 00 [09:04:58]MH_I2C_Read... [09:04:58]Read from MH i2c: E2 0E 00 1B 3F 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 CB [09:04:58]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [09:04:58]wFMCommunicate OK [09:04:58]SAM_PROTO_GetShiftState done [09:04:58]FM_GetShiftState done [09:04:58]opened in 1722125648 [09:04:58]opened+sec_in_day 1722212048 [09:04:58]quantity*price = 28000 [09:04:58]sum+1 = 28001 [09:04:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 280.00 НСП 1% : 2.48 НДС 12% : 29.73 Наличными: 280.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 61 28.07.2024 09:05 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2010 ФПД: 183042417428873 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T090502&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2010&fm=183042417428873&tin=02508201610067®Number=0000000000189667&sum=28000 0 [09:04:58]StoreToDocumentArchive [09:04:58]shift 13 fd 2010 [09:04:58]save to /storage/0013/doc_00002010 [09:04:58]save last doc name /storage/0013/doc_00002010 to /storage/kkm_last_doc_name [09:04:58]save OK [09:04:58]Clear old archive folders... [09:04:58]ProcessDocumentItem done err = 0, tmpTLVsize=273 [09:04:58]tlvbuf is 020A68E0 [09:04:58]SAM_PROTO_ClearQueue [09:04:58]wFMCommunicate request_size=4 [09:04:58]MH_SAM_APDU [09:04:58]CAPDU: 80 09 00 00 [09:04:58]Write to MH i2c: E2 08 00 28 3F 80 09 00 00 00 00 00 00 D9 [09:04:58]Write i2c OK [09:04:58]MH_I2C_Read... [09:04:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:04:59]Read from MH i2c: E2 [09:04:59]MH_I2C_Read... [09:04:59]Read from MH i2c: E2 03 00 [09:04:59]MH_I2C_Read... [09:04:59]Read from MH i2c: E2 03 00 28 3F 00 90 00 DB [09:04:59]RAPDU: 90 00 [09:04:59]wFMCommunicate OK [09:04:59]SAM_PROTO_ClearQueue done [09:04:59]KKMCreateOFDPacket [09:04:59]OFDProtocolAddRootSTLVToBuf [09:04:59]FM_MakeSignedData [09:04:59]FM_MakeSignedData [09:04:59]SAM_PROTO_SignData [09:04:59]wFMCommunicate request_size=4 [09:04:59]MH_SAM_APDU [09:04:59]CAPDU: 80 0D 01 02 [09:04:59]Write to MH i2c: E2 08 00 29 3F 80 0D 01 02 00 00 00 00 E1 [09:04:59]Write i2c OK [09:04:59]MH_I2C_Read... [09:04:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:04:59]Read from MH i2c: E2 [09:04:59]MH_I2C_Read... [09:04:59]Read from MH i2c: E2 03 00 [09:04:59]MH_I2C_Read... [09:04:59]Read from MH i2c: E2 03 00 29 3F 00 90 00 DC [09:04:59]RAPDU: 90 00 [09:04:59]wFMCommunicate OK [09:04:59]wFMCommunicate request_size=255 [09:04:59]MH_SAM_APDU [09:04:59]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 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 3D 00 00 00 F4 03 04 00 BE 09 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 [09:04:59]Write to MH i2c: E2 02 01 2A 3F 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 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 3D 00 00 00 F4 03 04 00 BE 09 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 00 00 F0 [09:04:59]Write i2c OK [09:04:59]MH_I2C_Read... [09:04:59]OFD Sender: No OFD packet to send [09:04:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:04:59]Read from MH i2c: E2 [09:04:59]MH_I2C_Read... [09:04:59]Read from MH i2c: E2 03 00 [09:04:59]MH_I2C_Read... [09:04:59]Read from MH i2c: E2 03 00 2A 3F 00 90 00 DD [09:04:59]RAPDU: 90 00 [09:04:59]wFMCommunicate OK [09:04:59]wFMCommunicate request_size=32 [09:04:59]MH_SAM_APDU [09:04:59]CAPDU: 80 0D 02 02 1B 30 30 32 30 39 34 32 34 38 10 04 04 00 DA 07 00 00 35 04 06 00 A6 79 E2 45 09 89 [09:04:59]Write to MH i2c: E2 23 00 2B 3F 80 0D 02 02 1B 00 30 30 32 30 39 34 32 34 38 10 04 04 00 DA 07 00 00 35 04 06 00 A6 79 E2 45 09 89 00 00 F7 [09:04:59]Write i2c OK [09:04:59]MH_I2C_Read... [09:04:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:04:59]Read from MH i2c: E2 [09:04:59]MH_I2C_Read... [09:04:59]Read from MH i2c: E2 03 00 [09:04:59]MH_I2C_Read... [09:04:59]Read from MH i2c: E2 03 00 2B 3F 00 90 00 DE [09:04:59]RAPDU: 90 00 [09:04:59]wFMCommunicate OK [09:04:59]wFMCommunicate request_size=4 [09:04:59]MH_SAM_APDU [09:04:59]CAPDU: 80 0D 03 02 [09:04:59]Write to MH i2c: E2 08 00 2C 3F 80 0D 03 02 00 00 00 00 E6 [09:04:59]Write i2c OK [09:04:59]MH_I2C_Read... [09:04:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:04:59]Read from MH i2c: E2 [09:04:59]MH_I2C_Read... [09:04:59]Read from MH i2c: E2 0B 00 [09:04:59]MH_I2C_Read... [09:04:59]Read from MH i2c: E2 0B 00 2C 3F 00 D3 1E D4 7A 4B D5 B3 0C 90 00 05 [09:04:59]RAPDU: D3 1E D4 7A 4B D5 B3 0C 90 00 [09:04:59]wFMCommunicate OK [09:04:59]SAM_PROTO_SignData done [09:04:59]FM_MakeSignedData done [09:04:59]CreateOFDProtocolMessage [09:04:59]wFMCommunicate request_size=4 [09:04:59]MH_SAM_APDU [09:04:59]CAPDU: 80 11 00 00 [09:04:59]Write to MH i2c: E2 08 00 2D 3F 80 11 00 00 00 00 00 00 E6 [09:04:59]Write i2c OK [09:04:59]MH_I2C_Read... [09:04:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:04:59]Read from MH i2c: E2 [09:04:59]MH_I2C_Read... [09:04:59]Read from MH i2c: E2 17 00 [09:04:59]MH_I2C_Read... [09:04:59]Read from MH i2c: E2 17 00 2D 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 36 [09:04:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [09:04:59]wFMCommunicate OK [09:04:59]CreateOFDProtocolMessage done [09:04:59]OFDSenderStorePacket 2010 [09:04:59]StoreOFDPacket docnum=2010 [09:04:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 25 01 00 00 DC 43 1D 01 E1 A6 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 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 3D 00 00 00 F4 03 04 00 BE 09 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 DA 07 00 00 35 04 06 00 A6 79 E2 45 09 89 D3 1E D4 7A 4B D5 B3 0C [09:04:59]CheckFolder [09:04:59]dirname=/storage/ofd_packets [09:04:59]CheckFolder done [09:04:59]ProducePacketName [09:04:59]name=ofd_packets/00002010 [09:04:59]NVStorageSaveData ofd_packets/00002010 [09:04:59]File name is /storage/ofd_packets/00002010 [09:04:59]Write 323 bytes [09:04:59]NVStorageSaveData done [09:04:59]OFDSenderStorePacket done [09:04:59]KKMCreateOFDPacket done [09:04:59]NVStorageSaveData kkm_last_timestamp [09:04:59]File name is /storage/kkm_last_timestamp [09:04:59]Write 4 bytes [09:04:59]NVStorageSaveData done [09:04:59]ExternCall_PrintAddStr [09:04:59]wPrintStart [09:04:59]Write to MH i2c: 01 00 00 2E 3F 6D [09:04:59]Write i2c OK [09:04:59]MH_I2C_Read... [09:04:59]Read from MH i2c: 01 [09:04:59]MH_I2C_Read... [09:04:59]Read from MH i2c: 01 07 00 [09:04:59]MH_I2C_Read... [09:04:59]Read from MH i2c: 01 07 00 2E 3F 00 00 00 00 00 FF 0F 82 [09:04:59]RasterBufferAndPrint [09:04:59]line Счет N : (3)126316 [09:04:59]line ИНН: 02508201610067 [09:04:59]line Контрольно-Кассовый Чек [09:04:59]line ПРОДАЖА [09:04:59]line Товар: 48743570 [09:04:59]line Сигареты Winston XStyle Blue [09:04:59]line 2.000 * 140.00 [09:04:59]line = 280.00 [09:04:59]line НДС 12% НСП 1% [09:04:59]line > о реализуемом товаре [09:04:59]line ИТОГО: 280.00 [09:04:59]line НСП 1% : 2.48 [09:04:59]line НДС 12% : 29.73 [09:04:59]line Наличными: 280.00 [09:04:59]line Безнал.: 0.00 [09:04:59]line Место: АЗС № 127 "Партнер Нефть" [09:04:59]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [09:04:59]line СНО: Общий режим [09:04:59]line Чек 61 28.07.2024 09:05 [09:04:59]line Смена: 13 ФФД: 1.0 [09:04:59]line ЗНМ: 0300000161 [09:04:59]line РНМ: 0000000000189667 [09:04:59]line Версия ККМ: v1.0 [09:04:59]line ФМ: 0000000002094248 [09:04:59]line ФД: 2010 [09:04:59]line ФПД: 183042417428873 [09:04:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T090502&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2010&fm=183042417428873&tin=02508201610067®Number=0000000000189667&sum=28000 [09:04:59]line 0 [09:04:59]written 0, free lines is 4095 [09:04:59]OFD Sender: Processing packet 2010 [packets to send 1, broken 0] [09:04:59]ProducePacketName [09:04:59]name=ofd_packets/00002010 [09:04:59]OFD Sender: To server: pG, [09:04:59]CommunicateWithHost lk.salyk.kg:30040 [09:04:59]ConnectInit lk.salyk.kg [09:05:00]Connected sock=10 [09:05:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 25 01 00 00 DC 43 1D 01 E1 A6 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 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 3D 00 00 00 F4 03 04 00 BE 09 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 DA 07 00 00 35 04 06 00 A6 79 E2 45 09 89 D3 1E D4 7A 4B D5 B3 0C [09:05:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 9D ED 47 00 A3 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 DA 07 00 00 F4 03 04 00 2E B5 A5 66 B6 04 01 00 00 B5 F7 6A F0 4E B7 3D 24 [09:05:00]CommunicateWithHost err = 0 [09:05:00]CheckOFDResponse [09:05:00]1017 (14) - 77093643461234 [09:05:00]1041 (16) - 0000000002094248 [09:05:00]1040 (4) - 2010 [09:05:00]1012 (4) - 28.07.2024 03:04 [09:05:00]1206 (1) - 0 [09:05:00]OFD Sender: Remove packet 2010 [09:05:00]ProducePacketName [09:05:00]name=ofd_packets/00002010 [09:05:00]NVStorageDeleteData [09:05:00]Write to MH i2c: 01 00 00 56 3F 95 [09:05:00]Write i2c OK [09:05:00]MH_I2C_Read... [09:05:00]Read from MH i2c: 01 [09:05:00]MH_I2C_Read... [09:05:00]Read from MH i2c: 01 07 00 [09:05:00]MH_I2C_Read... [09:05:00]Read from MH i2c: 01 07 00 56 3F 00 00 00 00 00 2D 0D D6 [09:05:00]RasterBufferAndPrint [09:05:00]line [09:05:00]line [09:05:00]line [09:05:00]line [09:05:00]line [09:05:00]written 0, free lines is 3387 [09:05:00]MH_Cut [09:05:00]Write to MH i2c: D1 01 00 5D 3F 01 6E [09:05:00]Write i2c OK [09:05:00]MH_I2C_Read... [09:05:00]Read from MH i2c: D1 [09:05:00]MH_I2C_Read... [09:05:00]Read from MH i2c: D1 01 00 [09:05:00]MH_I2C_Read... [09:05:00]Read from MH i2c: D1 01 00 5D 3F 00 6D [09:05:00]Write to MH i2c: 01 00 00 5E 3F 9D [09:05:00]Write i2c OK [09:05:00]MH_I2C_Read... [09:05:00]OFD Sender: No OFD packet to send [09:05:00]*** Cut start [09:05:00]*** Partial cut [09:05:00]*** CUTSNS_PIN = 1 [09:05:01]*** CUTSNS_PIN = 0 [09:05:01]*** Brake cut motor [09:05:01]Read from MH i2c: 01 [09:05:01]MH_I2C_Read... [09:05:01]*** Stop cut motor [09:05:01]*** Cut end [09:05:01]Read from MH i2c: 01 07 00 [09:05:01]MH_I2C_Read... [09:05:01]Read from MH i2c: 01 07 00 5E 3F 00 00 00 00 00 FF 0F B2 [09:05:01]process_action close_receipt done [09:05:01]requested_data is exist [09:05:01]produce_requested_data [09:05:01]requested_item fm.sn is exist - process it [09:05:01]wFMCommunicate request_size=4 [09:05:01]MH_SAM_APDU [09:05:01]CAPDU: 80 11 00 00 [09:05:01]Write to MH i2c: E2 08 00 5F 3F 80 11 00 00 00 00 00 00 18 [09:05:01]Write i2c OK [09:05:01]MH_I2C_Read... [09:05:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:05:01]Read from MH i2c: E2 [09:05:01]MH_I2C_Read... [09:05:01]Read from MH i2c: E2 17 00 [09:05:01]MH_I2C_Read... [09:05:01]Read from MH i2c: E2 17 00 5F 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 68 [09:05:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [09:05:01]wFMCommunicate OK [09:05:01]requested_item fd.num is exist - process it [09:05:01]SAM_PROTO_GetFieldsCounters [09:05:01]wFMCommunicate request_size=4 [09:05:01]MH_SAM_APDU [09:05:01]CAPDU: 80 13 00 00 [09:05:01]Write to MH i2c: E2 08 00 60 3F 80 13 00 00 00 00 00 00 1B [09:05:01]Write i2c OK [09:05:01]MH_I2C_Read... [09:05:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:05:01]Read from MH i2c: E2 [09:05:01]MH_I2C_Read... [09:05:01]Read from MH i2c: E2 62 00 [09:05:01]MH_I2C_Read... [09:05:01]Read from MH i2c: E2 62 00 60 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 DA 07 00 00 0E 04 04 00 0D 00 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 EA [09:05:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 DA 07 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:05:01]wFMCommunicate OK [09:05:01]SAM_PROTO_GetFieldsCounters done [09:05:01]requested_item shift.num is exist - process it [09:05:01]requested_item shift.opened is exist - process it [09:05:01]req_shift_opened [09:05:01]FM_GetShiftState [09:05:01]SAM_PROTO_GetShiftState [09:05:01]wFMCommunicate request_size=4 [09:05:01]MH_SAM_APDU [09:05:01]CAPDU: 80 13 01 00 [09:05:01]Write to MH i2c: E2 08 00 61 3F 80 13 01 00 00 00 00 00 1D [09:05:01]Write i2c OK [09:05:01]MH_I2C_Read... [09:05:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:05:01]Read from MH i2c: E2 [09:05:01]MH_I2C_Read... [09:05:01]Read from MH i2c: E2 0E 00 [09:05:01]MH_I2C_Read... [09:05:01]Read from MH i2c: E2 0E 00 61 3F 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 11 [09:05:01]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [09:05:01]wFMCommunicate OK [09:05:01]SAM_PROTO_GetShiftState done [09:05:01]FM_GetShiftState done [09:05:01]req_shift_opened done [09:05:01]requested_item shift.open_date is exist - process it [09:05:01]req_shift_open_date [09:05:01]req_shift_open_date done [09:05:01]produce_requested_data done [09:05:01]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2010,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [09:05:01]process_action_free close_receipt [09:05:01]json_value_free [09:05:01]json_value_free done [09:05:01]process_json_proto returns [09:05:01]Send response to host [09:05:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2010,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [09:05:01]free response buf [09:05:01]execute_script done [09:05:01]execute_script returns [09:05:01]free content buf [09:05:01]Sock 9.Close socket [09:05:01]Sock 9.Thread stoped [09:05:05]OFD Sender: No OFD packet to send [09:05:10]OFD Sender: No OFD packet to send [09:05:15]OFD Sender: No OFD packet to send [09:05:20]OFD Sender: No OFD packet to send [09:05:25]OFD Sender: No OFD packet to send [09:05:30]OFD Sender: No OFD packet to send [09:05:35]OFD Sender: No OFD packet to send [09:05:40]OFD Sender: No OFD packet to send [09:05:45]OFD Sender: No OFD packet to send [09:05:50]OFD Sender: No OFD packet to send [09:05:55]OFD Sender: No OFD packet to send [09:06:00]OFD Sender: No OFD packet to send [09:06:05]OFD Sender: No OFD packet to send [09:06:10]OFD Sender: No OFD packet to send [09:06:15]OFD Sender: No OFD packet to send [09:06:20]OFD Sender: No OFD packet to send [09:06:25]OFD Sender: No OFD packet to send [09:06:30]OFD Sender: No OFD packet to send [09:06:35]OFD Sender: No OFD packet to send [09:06:40]OFD Sender: No OFD packet to send [09:06:45]OFD Sender: No OFD packet to send [09:06:50]OFD Sender: No OFD packet to send [09:06:55]OFD Sender: No OFD packet to send [09:07:00]OFD Sender: No OFD packet to send [09:07:05]OFD Sender: No OFD packet to send [09:07:10]OFD Sender: No OFD packet to send [09:07:15]OFD Sender: No OFD packet to send [09:07:20]OFD Sender: No OFD packet to send [09:07:25]OFD Sender: No OFD packet to send [09:07:30]OFD Sender: No OFD packet to send [09:07:35]OFD Sender: No OFD packet to send [09:07:40]OFD Sender: No OFD packet to send [09:07:45]OFD Sender: No OFD packet to send [09:07:50]OFD Sender: No OFD packet to send [09:07:55]OFD Sender: No OFD packet to send [09:08:00]OFD Sender: No OFD packet to send [09:08:05]OFD Sender: No OFD packet to send [09:08:10]OFD Sender: No OFD packet to send [09:08:15]OFD Sender: No OFD packet to send [09:08:20]OFD Sender: No OFD packet to send [09:08:25]OFD Sender: No OFD packet to send [09:08:30]OFD Sender: No OFD packet to send [09:08:35]OFD Sender: No OFD packet to send [09:08:40]OFD Sender: No OFD packet to send [09:08:45]OFD Sender: No OFD packet to send [09:08:51]OFD Sender: No OFD packet to send [09:08:56]OFD Sender: No OFD packet to send [09:09:01]OFD Sender: No OFD packet to send [09:09:06]OFD Sender: No OFD packet to send [09:09:11]OFD Sender: No OFD packet to send [09:09:16]OFD Sender: No OFD packet to send [09:09:21]OFD Sender: No OFD packet to send [09:09:26]OFD Sender: No OFD packet to send [09:09:31]OFD Sender: No OFD packet to send [09:09:36]OFD Sender: No OFD packet to send [09:09:41]OFD Sender: No OFD packet to send [09:09:46]OFD Sender: No OFD packet to send [09:09:51]OFD Sender: No OFD packet to send [09:09:56]OFD Sender: No OFD packet to send [09:10:01]OFD Sender: No OFD packet to send [09:10:06]OFD Sender: No OFD packet to send [09:10:11]OFD Sender: No OFD packet to send [09:10:16]OFD Sender: No OFD packet to send [09:10:21]OFD Sender: No OFD packet to send [09:10:26]OFD Sender: No OFD packet to send [09:10:31]OFD Sender: No OFD packet to send [09:10:36]OFD Sender: No OFD packet to send [09:10:41]OFD Sender: No OFD packet to send [09:10:46]OFD Sender: No OFD packet to send [09:10:51]OFD Sender: No OFD packet to send [09:10:56]OFD Sender: No OFD packet to send [09:11:01]OFD Sender: No OFD packet to send [09:11:06]OFD Sender: No OFD packet to send [09:11:11]OFD Sender: No OFD packet to send [09:11:16]OFD Sender: No OFD packet to send [09:11:21]OFD Sender: No OFD packet to send [09:11:26]OFD Sender: No OFD packet to send [09:11:31]OFD Sender: No OFD packet to send [09:11:36]OFD Sender: No OFD packet to send [09:11:46]OFD Sender: No OFD packet to send [09:11:51]OFD Sender: No OFD packet to send [09:11:56]OFD Sender: No OFD packet to send [09:12:01]OFD Sender: No OFD packet to send [09:12:06]OFD Sender: No OFD packet to send [09:12:11]OFD Sender: No OFD packet to send [09:12:16]OFD Sender: No OFD packet to send [09:12:21]OFD Sender: No OFD packet to send [09:12:26]OFD Sender: No OFD packet to send [09:12:31]OFD Sender: No OFD packet to send [09:12:36]OFD Sender: No OFD packet to send [09:12:37]accept exits with 8 [09:12:37]New connection [09:12:37]New thread 3067460964 created [09:12:37]Thread 3067317604 joined [09:12:37]Waiting for new connection... [09:12:37] Sock 8.Parse request [09:12:37]Sock 8.Check first char [09:12:37]Sock 8.First char is OK [09:12:37]request: POST /json_proto HTTP/1.0 [09:12:37]Method: POST [09:12:37]URL: /json_proto [09:12:37]Method is POST - this is cgi request [09:12:37]url: /json_proto [09:12:37]query_string will be loaded in cgi processing [09:12:37]execute_cgi json_proto POST (null) [09:12:37]execute_cgi path=json_proto method=POST [09:12:37]POST find Content-Length [09:12:37]Host: 172.17.45.132:8080 [09:12:37]Content-Length: 684 [09:12:37]Content-Type: application/json [09:12:37] [09:12:37]POST finish read [09:12:37]Found Content-Length = 684 [09:12:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)609144", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 37.00, "quantity" : 27.030, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:12:37]execute_script... [09:12:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)609144", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 37.00, "quantity" : 27.030, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:12:37]POST & json_proto [09:12:37]process_json_proto [09:12:37]json parsed OK: [09:12:37]protocol is kg_v1.0 [09:12:37]action value=close_receipt [09:12:37]process_action close_receipt [09:12:37]cmd_close_receipt [09:12:37]MH_GetDate [09:12:37]Write to MH i2c: F0 00 00 62 3F 90 [09:12:37]Write i2c OK [09:12:37]MH_I2C_Read... [09:12:37]Read from MH i2c: F0 [09:12:37]MH_I2C_Read... [09:12:37]Read from MH i2c: F0 09 00 [09:12:37]MH_I2C_Read... [09:12:37]Read from MH i2c: F0 09 00 62 3F 00 8A 0B A6 66 E3 0B 90 66 1E [09:12:37]GetLastDocTimeStamp 1722157502 [09:12:37]current date 1722157962 [09:12:37]FM_GetShiftState [09:12:37]SAM_PROTO_GetShiftState [09:12:37]wFMCommunicate request_size=4 [09:12:37]MH_SAM_APDU [09:12:37]CAPDU: 80 13 01 00 [09:12:37]Write to MH i2c: E2 08 00 63 3F 80 13 01 00 00 00 00 00 1F [09:12:37]Write i2c OK [09:12:37]MH_I2C_Read... [09:12:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:37]Read from MH i2c: E2 [09:12:37]MH_I2C_Read... [09:12:37]Read from MH i2c: E2 0E 00 [09:12:37]MH_I2C_Read... [09:12:37]Read from MH i2c: E2 0E 00 63 3F 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 13 [09:12:37]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [09:12:37]wFMCommunicate OK [09:12:37]SAM_PROTO_GetShiftState done [09:12:37]FM_GetShiftState done [09:12:37]opened in 1722125648 [09:12:37]opened+sec_in_day 1722212048 [09:12:37]quantity*price = 100011 [09:12:37]sum+1 = 100012 [09:12:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 62 28.07.2024 09:12 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2011 ФПД: 79832009811087 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T091242&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2011&fm=79832009811087&tin=02508201610067®Number=0000000000189667&sum=100000 [09:12:38]StoreToDocumentArchive [09:12:38]shift 13 fd 2011 [09:12:38]save to /storage/0013/doc_00002011 [09:12:38]save last doc name /storage/0013/doc_00002011 to /storage/kkm_last_doc_name [09:12:38]save OK [09:12:38]Clear old archive folders... [09:12:38]ProcessDocumentItem done err = 0, tmpTLVsize=250 [09:12:38]tlvbuf is 020BAB40 [09:12:38]SAM_PROTO_ClearQueue [09:12:38]wFMCommunicate request_size=4 [09:12:38]MH_SAM_APDU [09:12:38]CAPDU: 80 09 00 00 [09:12:38]Write to MH i2c: E2 08 00 70 3F 80 09 00 00 00 00 00 00 21 [09:12:38]Write i2c OK [09:12:38]MH_I2C_Read... [09:12:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:12:38]Read from MH i2c: E2 [09:12:38]MH_I2C_Read... [09:12:38]Read from MH i2c: E2 03 00 [09:12:38]MH_I2C_Read... [09:12:38]Read from MH i2c: E2 03 00 70 3F 00 90 00 23 [09:12:38]RAPDU: 90 00 [09:12:38]wFMCommunicate OK [09:12:38]SAM_PROTO_ClearQueue done [09:12:38]KKMCreateOFDPacket [09:12:38]OFDProtocolAddRootSTLVToBuf [09:12:38]FM_MakeSignedData [09:12:38]FM_MakeSignedData [09:12:38]SAM_PROTO_SignData [09:12:38]wFMCommunicate request_size=4 [09:12:38]MH_SAM_APDU [09:12:38]CAPDU: 80 0D 01 02 [09:12:38]Write to MH i2c: E2 08 00 71 3F 80 0D 01 02 00 00 00 00 29 [09:12:38]Write i2c OK [09:12:38]MH_I2C_Read... [09:12:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:12:38]Read from MH i2c: E2 [09:12:38]MH_I2C_Read... [09:12:38]Read from MH i2c: E2 03 00 [09:12:38]MH_I2C_Read... [09:12:38]Read from MH i2c: E2 03 00 71 3F 00 90 00 24 [09:12:38]RAPDU: 90 00 [09:12:38]wFMCommunicate OK [09:12:38]wFMCommunicate request_size=255 [09:12:38]MH_SAM_APDU [09:12:38]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 96 69 00 00 00 00 00 37 04 06 00 74 0E 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 8A 0B A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 DB 07 00 00 35 04 06 00 48 9B [09:12:38]Write to MH i2c: E2 02 01 72 3F 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 96 69 00 00 00 00 00 37 04 06 00 74 0E 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 8A 0B A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 DB 07 00 00 35 04 06 00 48 9B 00 00 B1 [09:12:38]Write i2c OK [09:12:38]MH_I2C_Read... [09:12:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:12:38]Read from MH i2c: E2 [09:12:38]MH_I2C_Read... [09:12:38]Read from MH i2c: E2 03 00 [09:12:38]MH_I2C_Read... [09:12:38]Read from MH i2c: E2 03 00 72 3F 00 90 00 25 [09:12:38]RAPDU: 90 00 [09:12:38]wFMCommunicate OK [09:12:38]wFMCommunicate request_size=9 [09:12:38]MH_SAM_APDU [09:12:38]CAPDU: 80 0D 02 02 04 56 96 24 8F [09:12:38]Write to MH i2c: E2 0C 00 73 3F 80 0D 02 02 04 00 56 96 24 8F 00 00 D3 [09:12:38]Write i2c OK [09:12:38]MH_I2C_Read... [09:12:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:12:39]Read from MH i2c: E2 [09:12:39]MH_I2C_Read... [09:12:39]Read from MH i2c: E2 03 00 [09:12:39]MH_I2C_Read... [09:12:39]Read from MH i2c: E2 03 00 73 3F 00 90 00 26 [09:12:39]RAPDU: 90 00 [09:12:39]wFMCommunicate OK [09:12:39]wFMCommunicate request_size=4 [09:12:39]MH_SAM_APDU [09:12:39]CAPDU: 80 0D 03 02 [09:12:39]Write to MH i2c: E2 08 00 74 3F 80 0D 03 02 00 00 00 00 2E [09:12:39]Write i2c OK [09:12:39]MH_I2C_Read... [09:12:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:12:39]Read from MH i2c: E2 [09:12:39]MH_I2C_Read... [09:12:39]Read from MH i2c: E2 0B 00 [09:12:39]MH_I2C_Read... [09:12:39]Read from MH i2c: E2 0B 00 74 3F 00 EE 7C 40 49 E5 B4 75 C9 90 00 F9 [09:12:39]RAPDU: EE 7C 40 49 E5 B4 75 C9 90 00 [09:12:39]wFMCommunicate OK [09:12:39]SAM_PROTO_SignData done [09:12:39]FM_MakeSignedData done [09:12:39]CreateOFDProtocolMessage [09:12:39]wFMCommunicate request_size=4 [09:12:39]MH_SAM_APDU [09:12:39]CAPDU: 80 11 00 00 [09:12:39]Write to MH i2c: E2 08 00 75 3F 80 11 00 00 00 00 00 00 2E [09:12:39]Write i2c OK [09:12:39]MH_I2C_Read... [09:12:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:39]Read from MH i2c: E2 [09:12:39]MH_I2C_Read... [09:12:39]Read from MH i2c: E2 17 00 [09:12:39]MH_I2C_Read... [09:12:39]Read from MH i2c: E2 17 00 [09:13:02]Sock 10.Check first char [09:13:02]Sock 10.First char is OK [09:13:02]request: POST /json_proto HTTP/1.0 [09:13:02]Method: POST [09:13:02]URL: /json_proto [09:13:02]Method is POST - this is cgi request [09:13:02]url: /json_proto [09:13:02]query_string will be loaded in cgi processing [09:13:02]execute_cgi json_proto POST (null) [09:13:02]execute_cgi path=json_proto method=POST [09:13:02]POST find Content-Length [09:13:02]Host: 172.17.45.132:8080 [09:13:02]Content-Length: 800 [09:13:02]Content-Type: application/json [09:13:02] [09:13:02]POST finish read [09:13:02]Found Content-Length = 800 [09:13:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)609146", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.70, "quantity" : 6.700, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 500.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:13:02]execute_script... [09:13:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)609146", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.70, "quantity" : 6.700, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 500.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:13:02]POST & json_proto [09:13:02]process_json_proto [09:13:02]json parsed OK: [09:13:02]protocol is kg_v1.0 [09:13:02]action value=close_receipt [09:13:02]process_action close_receipt [09:13:02]cmd_close_receipt [09:13:02]MH_GetDate [09:13:02]Write to MH i2c: F0 00 00 AD 3F DB [09:13:02]Write i2c OK [09:13:02]MH_I2C_Read... [09:13:02]Read from MH i2c: F0 [09:13:02]MH_I2C_Read... [09:13:02]Read from MH i2c: F0 09 00 [09:13:02]MH_I2C_Read... [09:13:02]Read from MH i2c: F0 09 00 AD 3F 00 A3 0B A6 66 E3 0B 90 66 82 [09:13:02]GetLastDocTimeStamp 1722157962 [09:13:02]current date 1722157987 [09:13:02]FM_GetShiftState [09:13:02]SAM_PROTO_GetShiftState [09:13:02]wFMCommunicate request_size=4 [09:13:02]MH_SAM_APDU [09:13:02]CAPDU: 80 13 01 00 [09:13:02]Write to MH i2c: E2 08 00 AE 3F 80 13 01 00 00 00 00 00 6A [09:13:02]Write i2c OK [09:13:02]MH_I2C_Read... [09:13:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:13:02]Read from MH i2c: E2 [09:13:02]MH_I2C_Read... [09:13:02]Read from MH i2c: E2 0E 00 [09:13:02]MH_I2C_Read... [09:13:02]Read from MH i2c: E2 0E 00 AE 3F 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 5E [09:13:02]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [09:13:02]wFMCommunicate OK [09:13:02]SAM_PROTO_GetShiftState done [09:13:02]FM_GetShiftState done [09:13:02]opened in 1722125648 [09:13:02]opened+sec_in_day 1722212048 [09:13:02]quantity*price = 50049 [09:13:02]sum+1 = 50050 [09:13:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.49 НСП 1% : 4.43 НДС 12% : 53.15 Наличными: 0.00 Безнал.: 500.49 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 63 28.07.2024 09:13 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2012 ФПД: 111521861413677 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T091307&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2012&fm=111521861413677&tin=02508201610067®Number=0000000000189667&sum=50049 [09:13:04]StoreToDocumentArchive [09:13:04]shift 13 fd 2012 [09:13:04]save to /storage/0013/doc_00002012 [09:13:04]save last doc name /storage/0013/doc_00002012 to /storage/kkm_last_doc_name [09:13:04]save OK [09:13:04]Clear old archive folders... [09:13:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:13:04]tlvbuf is 01F1E550 [09:13:04]SAM_PROTO_ClearQueue [09:13:04]wFMCommunicate request_size=4 [09:13:04]MH_SAM_APDU [09:13:04]CAPDU: 80 09 00 00 [09:13:04]Write to MH i2c: E2 08 00 BB 3F 80 09 00 00 00 00 00 00 6C [09:13:04]Write i2c OK [09:13:04]MH_I2C_Read... [09:13:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:13:04]Read from MH i2c: E2 [09:13:04]MH_I2C_Read... [09:13:04]Read from MH i2c: E2 03 00 [09:13:04]MH_I2C_Read... [09:13:04]Read from MH i2c: E2 03 00 BB 3F 00 90 00 6E [09:13:04]RAPDU: 90 00 [09:13:04]wFMCommunicate OK [09:13:04]SAM_PROTO_ClearQueue done [09:13:04]KKMCreateOFDPacket [09:13:04]OFDProtocolAddRootSTLVToBuf [09:13:04]FM_MakeSignedData [09:13:04]FM_MakeSignedData [09:13:04]SAM_PROTO_SignData [09:13:04]wFMCommunicate request_size=4 [09:13:04]MH_SAM_APDU [09:13:04]CAPDU: 80 0D 01 02 [09:13:04]Write to MH i2c: E2 08 00 BC 3F 80 0D 01 02 00 00 00 00 74 [09:13:04]Write i2c OK [09:13:04]MH_I2C_Read... [09:13:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:13:04]Read from MH i2c: E2 [09:13:04]MH_I2C_Read... [09:13:04]Read from MH i2c: E2 03 00 [09:13:04]MH_I2C_Read... [09:13:04]Read from MH i2c: E2 03 00 BC 3F 00 90 00 6F [09:13:04]RAPDU: 90 00 [09:13:04]wFMCommunicate OK [09:13:04]wFMCommunicate request_size=255 [09:13:04]MH_SAM_APDU [09:13:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 2C 1A 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 81 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 81 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 A3 0B A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 DC 07 00 00 35 04 06 00 65 [09:13:04]Write to MH i2c: E2 02 01 BD 3F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 2C 1A 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 81 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 81 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 A3 0B A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 DC 07 00 00 35 04 06 00 65 00 00 C7 [09:13:04]Write i2c OK [09:13:04]MH_I2C_Read... [09:13:04]ConnectInit Can't take IP for lk.salyk.kg [09:13:04]CommunicateWithHost connect error [09:13:04]CommunicateWithHost err = -1 [09:13:04]OFD Sender: Server communicate error [09:13:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:13:04]Read from MH i2c: E2 [09:13:04]MH_I2C_Read... [09:13:04]Read from MH i2c: E2 03 00 [09:13:04]MH_I2C_Read... [09:13:04]Read from MH i2c: E2 03 00 BD 3F 00 90 00 70 [09:13:04]RAPDU: 90 00 [09:13:04]wFMCommunicate OK [09:13:04]wFMCommunicate request_size=10 [09:13:04]MH_SAM_APDU [09:13:04]CAPDU: 80 0D 02 02 05 6D B4 EF 2B 2D [09:13:04]Write to MH i2c: E2 0D 00 BE 3F 80 0D 02 02 05 00 6D B4 EF 2B 2D 00 00 E9 [09:13:04]Write i2c OK [09:13:04]MH_I2C_Read... [09:13:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:13:04]Read from MH i2c: E2 [09:13:04]MH_I2C_Read... [09:13:04]Read from MH i2c: E2 03 00 [09:13:04]MH_I2C_Read... [09:13:04]Read from MH i2c: E2 03 00 BE 3F 00 90 00 71 [09:13:04]RAPDU: 90 00 [09:13:04]wFMCommunicate OK [09:13:04]wFMCommunicate request_size=4 [09:13:04]MH_SAM_APDU [09:13:04]CAPDU: 80 0D 03 02 [09:13:04]Write to MH i2c: E2 08 00 BF 3F 80 0D 03 02 00 00 00 00 79 [09:13:04]Write i2c OK [09:13:04]MH_I2C_Read... [09:13:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:13:04]Read from MH i2c: E2 [09:13:04]MH_I2C_Read... [09:13:04]Read from MH i2c: E2 0B 00 [09:13:04]MH_I2C_Read... [09:13:04]Read from MH i2c: E2 0B 00 BF 3F 00 E4 B1 E5 E2 E7 9F 4F 42 90 00 ED [09:13:04]RAPDU: E4 B1 E5 E2 E7 9F 4F 42 90 00 [09:13:04]wFMCommunicate OK [09:13:04]SAM_PROTO_SignData done [09:13:04]FM_MakeSignedData done [09:13:04]CreateOFDProtocolMessage [09:13:04]wFMCommunicate request_size=4 [09:13:04]MH_SAM_APDU [09:13:04]CAPDU: 80 11 00 00 [09:13:04]Write to MH i2c: E2 08 00 C0 3F 80 11 00 00 00 00 00 00 79 [09:13:04]Write i2c OK [09:13:04]MH_I2C_Read... [09:13:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:13:04]Read from MH i2c: E2 [09:13:04]MH_I2C_Read... [09:13:04]Read from MH i2c: E2 17 00 [09:13:04]MH_I2C_Read... [09:13:04]Read from MH i2c: E2 17 00 C0 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 C9 [09:13:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [09:13:04]wFMCommunicate OK [09:13:04]CreateOFDProtocolMessage done [09:13:04]OFDSenderStorePacket 2012 [09:13:04]StoreOFDPacket docnum=2012 [09:13:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 A3 EC 07 01 A4 E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 2C 1A 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 81 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 81 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 A3 0B A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 DC 07 00 00 35 04 06 00 65 6D B4 EF 2B 2D E4 B1 E5 E2 E7 9F 4F 42 [09:13:04]CheckFolder [09:13:04]dirname=/storage/ofd_packets [09:13:04]CheckFolder done [09:13:04]ProducePacketName [09:13:04]name=ofd_packets/00002012 [09:13:04]NVStorageSaveData ofd_packets/00002012 [09:13:04]File name is /storage/ofd_packets/00002012 [09:13:04]Write 301 bytes [09:13:04]NVStorageSaveData done [09:13:04]OFDSenderStorePacket done [09:13:04]KKMCreateOFDPacket done [09:13:04]NVStorageSaveData kkm_last_timestamp [09:13:04]File name is /storage/kkm_last_timestamp [09:13:04]Write 4 bytes [09:13:04]NVStorageSaveData done [09:13:04]ExternCall_PrintAddStr [09:13:04]wPrintStart [09:13:04]Write to MH i2c: 01 00 00 C1 3F 00 [09:13:04]Write i2c OK [09:13:04]MH_I2C_Read... [09:13:04]Read from MH i2c: 01 [09:13:04]MH_I2C_Read... [09:13:04]Read from MH i2c: 01 07 00 [09:13:04]MH_I2C_Read... [09:13:04]Read from MH i2c: 01 07 00 C1 3F 00 00 00 00 00 FF 0F 15 [09:13:04]RasterBufferAndPrint [09:13:04]line Счет N : (1)609146 [09:13:04]line ИНН: 02508201610067 [09:13:04]line Контрольно-Кассовый Чек [09:13:04]line ПРОДАЖА [09:13:04]line ТРК (МРК, ГНК) : 53 [09:13:04]line Товар: 2710124500 [09:13:04]line Аи-95-К-3 [09:13:04]line 6.700 * 74.70 [09:13:04]line = 500.49 [09:13:04]line НДС 12% НСП 1% [09:13:04]line > о реализуемом товаре [09:13:04]line ИТОГО: 500.49 [09:13:04]line НСП 1% : 4.43 [09:13:04]line НДС 12% : 53.15 [09:13:04]line Наличными: 0.00 [09:13:04]line Безнал.: 500.49 [09:13:04]line Место: АЗС № 127 "Партнер Нефть" [09:13:04]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [09:13:04]line СНО: Общий режим [09:13:04]line Чек 63 28.07.2024 09:13 [09:13:04]line Смена: 13 ФФД: 1.0 [09:13:04]line ЗНМ: 0300000161 [09:13:04]line РНМ: 0000000000189667 [09:13:04]line Версия ККМ: v1.0 [09:13:04]line Платежная система: O! деньги [09:13:04]line ФМ: 0000000002094248 [09:13:04]line ФД: 2012 [09:13:04]line ФПД: 111521861413677 [09:13:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T091307&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2012&fm=111521861413677&tin=02508201610067®Number=0000000000189667&sum=50049 [09:13:04]written 0, free lines is 4095 [09:13:04]OFD Sender: Processing packet 2011 [packets to send 2, broken 0] [09:13:04]ProducePacketName [09:13:04]name=ofd_packets/00002011 [09:13:04]OFD Sender: To server: pG, [09:13:04]CommunicateWithHost lk.salyk.kg:30040 [09:13:04]ConnectInit lk.salyk.kg [09:13:05]Write to MH i2c: 01 00 00 EB 3F 2A [09:13:05]Write i2c OK [09:13:05]MH_I2C_Read... [09:13:05]Read from MH i2c: 01 [09:13:05]MH_I2C_Read... [09:13:05]Read from MH i2c: 01 07 00 [09:13:05]MH_I2C_Read... [09:13:05]Read from MH i2c: 01 07 00 EB 3F 00 00 00 00 00 FB 0C 38 [09:13:05]RasterBufferAndPrint [09:13:05]line [09:13:05]line [09:13:05]line [09:13:05]line [09:13:05]line [09:13:05]written 0, free lines is 3338 [09:13:05]MH_Cut [09:13:05]Write to MH i2c: D1 01 00 F2 3F 01 03 [09:13:05]Write i2c OK [09:13:05]MH_I2C_Read... [09:13:05]Read from MH i2c: D1 [09:13:05]MH_I2C_Read... [09:13:05]Read from MH i2c: D1 01 00 [09:13:05]MH_I2C_Read... [09:13:05]Read from MH i2c: D1 01 00 F2 3F 00 02 [09:13:05]Write to MH i2c: 01 00 00 F3 3F 32 [09:13:05]Write i2c OK [09:13:05]MH_I2C_Read... [09:13:05]*** Cut start [09:13:05]*** Partial cut [09:13:05]*** CUTSNS_PIN = 1 [09:13:05]*** CUTSNS_PIN = 0 [09:13:06]*** Brake cut motor [09:13:06]Read from MH i2c: 01 [09:13:06]MH_I2C_Read... [09:13:06]*** Stop cut motor [09:13:06]*** Cut end [09:13:06]Read from MH i2c: 01 07 00 [09:13:06]MH_I2C_Read... [09:13:06]Read from MH i2c: 01 07 00 F3 3F 00 00 00 00 00 FF 0F 47 [09:13:06]process_action close_receipt done [09:13:06]requested_data is exist [09:13:06]produce_requested_data [09:13:06]requested_item fm.sn is exist - process it [09:13:06]wFMCommunicate request_size=4 [09:13:06]MH_SAM_APDU [09:13:06]CAPDU: 80 11 00 00 [09:13:06]Write to MH i2c: E2 08 00 F4 3F 80 11 00 00 00 00 00 00 AD [09:13:06]Write i2c OK [09:13:06]MH_I2C_Read... [09:13:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:13:06]Read from MH i2c: E2 [09:13:06]MH_I2C_Read... [09:13:06]Read from MH i2c: E2 17 00 [09:13:06]MH_I2C_Read... [09:13:06]Read from MH i2c: E2 17 00 F4 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 FD [09:13:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [09:13:06]wFMCommunicate OK [09:13:06]requested_item fd.num is exist - process it [09:13:06]SAM_PROTO_GetFieldsCounters [09:13:06]wFMCommunicate request_size=4 [09:13:06]MH_SAM_APDU [09:13:06]CAPDU: 80 13 00 00 [09:13:06]Write to MH i2c: E2 08 00 F5 3F 80 13 00 00 00 00 00 00 B0 [09:13:06]Write i2c OK [09:13:06]MH_I2C_Read... [09:13:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:13:06]Read from MH i2c: E2 [09:13:06]MH_I2C_Read... [09:13:06]Read from MH i2c: E2 62 00 [09:13:06]MH_I2C_Read... [09:13:06]Read from MH i2c: E2 62 00 F5 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 DC 07 00 00 0E 04 04 00 0D 00 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 87 [09:13:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 DC 07 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:13:06]wFMCommunicate OK [09:13:06]SAM_PROTO_GetFieldsCounters done [09:13:06]requested_item shift.num is exist - process it [09:13:06]requested_item shift.opened is exist - process it [09:13:06]req_shift_opened [09:13:06]FM_GetShiftState [09:13:06]SAM_PROTO_GetShiftState [09:13:06]wFMCommunicate request_size=4 [09:13:06]MH_SAM_APDU [09:13:06]CAPDU: 80 13 01 00 [09:13:06]Write to MH i2c: E2 08 00 F6 3F 80 13 01 00 00 00 00 00 B2 [09:13:06]Write i2c OK [09:13:06]MH_I2C_Read... [09:13:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:13:06]Read from MH i2c: E2 [09:13:06]MH_I2C_Read... [09:13:06]Read from MH i2c: E2 0E 00 [09:13:06]MH_I2C_Read... [09:13:06]Read from MH i2c: E2 0E 00 F6 3F 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 A6 [09:13:06]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [09:13:06]wFMCommunicate OK [09:13:06]SAM_PROTO_GetShiftState done [09:13:06]FM_GetShiftState done [09:13:06]req_shift_opened done [09:13:06]requested_item shift.open_date is exist - process it [09:13:06]req_shift_open_date [09:13:06]req_shift_open_date done [09:13:06]produce_requested_data done [09:13:06]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2012,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [09:13:06]process_action_free close_receipt [09:13:06]json_value_free [09:13:06]json_value_free done [09:13:06]process_json_proto returns [09:13:06]Send response to host [09:13:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2012,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [09:13:06]free response buf [09:13:06]execute_script done [09:13:06]execute_script returns [09:13:06]free content buf [09:13:06]Sock 10.Close socket [09:13:06]Sock 10.Thread stoped [09:13:09]ConnectInit Can't take IP for lk.salyk.kg [09:13:09]CommunicateWithHost connect error [09:13:09]CommunicateWithHost err = -1 [09:13:09]OFD Sender: Server communicate error [09:13:14]OFD Sender: Processing packet 2011 [packets to send 2, broken 0] [09:13:14]ProducePacketName [09:13:14]name=ofd_packets/00002011 [09:13:14]OFD Sender: To server: pG, [09:13:14]CommunicateWithHost lk.salyk.kg:30040 [09:13:14]ConnectInit lk.salyk.kg [09:13:19]ConnectInit Can't take IP for lk.salyk.kg [09:13:19]CommunicateWithHost connect error [09:13:19]CommunicateWithHost err = -1 [09:13:19]OFD Sender: Server communicate error [09:13:24]OFD Sender: Processing packet 2011 [packets to send 2, broken 0] [09:13:24]ProducePacketName [09:13:24]name=ofd_packets/00002011 [09:13:24]OFD Sender: To server: pG, [09:13:24]CommunicateWithHost lk.salyk.kg:30040 [09:13:24]ConnectInit lk.salyk.kg [09:13:29]ConnectInit Can't take IP for lk.salyk.kg [09:13:29]CommunicateWithHost connect error [09:13:29]CommunicateWithHost err = -1 [09:13:29]OFD Sender: Server communicate error [09:13:34]OFD Sender: Processing packet 2011 [packets to send 2, broken 0] [09:13:34]ProducePacketName [09:13:34]name=ofd_packets/00002011 [09:13:34]OFD Sender: To server: pG, [09:13:34]CommunicateWithHost lk.salyk.kg:30040 [09:13:34]ConnectInit lk.salyk.kg [09:13:39]ConnectInit Can't take IP for lk.salyk.kg [09:13:39]CommunicateWithHost connect error [09:13:39]CommunicateWithHost err = -1 [09:13:39]OFD Sender: Server communicate error [09:13:44]OFD Sender: Processing packet 2011 [packets to send 2, broken 0] [09:13:44]ProducePacketName [09:13:44]name=ofd_packets/00002011 [09:13:44]OFD Sender: To server: pG, [09:13:44]CommunicateWithHost lk.salyk.kg:30040 [09:13:44]ConnectInit lk.salyk.kg [09:13:49]ConnectInit Can't take IP for lk.salyk.kg [09:13:49]CommunicateWithHost connect error [09:13:49]CommunicateWithHost err = -1 [09:13:49]OFD Sender: Server communicate error [09:13:54]OFD Sender: Processing packet 2011 [packets to send 2, broken 0] [09:13:54]ProducePacketName [09:13:54]name=ofd_packets/00002011 [09:13:54]OFD Sender: To server: pG, [09:13:54]CommunicateWithHost lk.salyk.kg:30040 [09:13:54]ConnectInit lk.salyk.kg [09:13:54]ConnectInit Can't connect to host [09:13:55]Connected sock=8 [09:13:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0E 01 00 00 28 44 06 01 6F 5D 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 96 69 00 00 00 00 00 37 04 06 00 74 0E 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 8A 0B A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 DB 07 00 00 35 04 06 00 48 9B 56 96 24 8F EE 7C 40 49 E5 B4 75 C9 [09:13:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 08 55 47 00 89 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 32 30 39 34 32 34 38 10 04 04 00 DB 07 00 00 F4 03 04 00 45 B7 A5 66 B6 04 01 00 00 48 55 26 62 04 59 07 61 [09:13:55]CommunicateWithHost err = 0 [09:13:55]CheckOFDResponse [09:13:55]1017 (14) - 77093643461234 [09:13:55]1041 (16) - 0000000002094248 [09:13:55]1040 (4) - 2011 [09:13:55]1012 (4) - 28.07.2024 03:13 [09:13:55]1206 (1) - 0 [09:13:55]OFD Sender: Remove packet 2011 [09:13:55]ProducePacketName [09:13:55]name=ofd_packets/00002011 [09:13:55]NVStorageDeleteData [09:13:55]OFD Sender: Processing packet 2012 [packets to send 1, broken 0] [09:13:55]ProducePacketName [09:13:55]name=ofd_packets/00002012 [09:13:55]OFD Sender: To server: pG, [09:13:55]CommunicateWithHost lk.salyk.kg:30040 [09:13:55]ConnectInit lk.salyk.kg [09:13:56]Connected sock=8 [09:13:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 A3 EC 07 01 A4 E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 2C 1A 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 81 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 81 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 A3 0B A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 DC 07 00 00 35 04 06 00 65 6D B4 EF 2B 2D E4 B1 E5 E2 E7 9F 4F 42 [09:13:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 25 36 47 00 9B 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 DC 07 00 00 F4 03 04 00 46 B7 A5 66 B6 04 01 00 00 DB C6 38 77 74 D6 54 CA [09:13:56]CommunicateWithHost err = 0 [09:13:56]CheckOFDResponse [09:13:56]1017 (14) - 77093643461234 [09:13:56]1041 (16) - 0000000002094248 [09:13:56]1040 (4) - 2012 [09:13:56]1012 (4) - 28.07.2024 03:13 [09:13:56]1206 (1) - 0 [09:13:56]OFD Sender: Remove packet 2012 [09:13:56]ProducePacketName [09:13:56]name=ofd_packets/00002012 [09:13:56]NVStorageDeleteData [09:13:56]OFD Sender: No OFD packet to send [09:14:01]OFD Sender: No OFD packet to send [09:14:06]OFD Sender: No OFD packet to send [09:14:10]ConnectInit Can't connect to host [09:14:11]OFD Sender: No OFD packet to send [09:14:16]OFD Sender: No OFD packet to send [09:14:21]OFD Sender: No OFD packet to send [09:14:26]OFD Sender: No OFD packet to send [09:14:31]OFD Sender: No OFD packet to send [09:14:36]OFD Sender: No OFD packet to send [09:14:41]OFD Sender: No OFD packet to send [09:14:46]OFD Sender: No OFD packet to send [09:14:51]OFD Sender: No OFD packet to send [09:14:56]OFD Sender: No OFD packet to send [09:15:01]OFD Sender: No OFD packet to send [09:15:06]OFD Sender: No OFD packet to send [09:15:11]OFD Sender: No OFD packet to send [09:15:16]OFD Sender: No OFD packet to send [09:15:21]OFD Sender: No OFD packet to send [09:15:26]OFD Sender: No OFD packet to send [09:15:31]OFD Sender: No OFD packet to send [09:15:36]OFD Sender: No OFD packet to send [09:15:41]OFD Sender: No OFD packet to send [09:15:46]OFD Sender: No OFD packet to send [09:15:51]accept exits with 12 [09:15:51]New connection [09:15:51]New thread 3067460964 created [09:15:51]Thread 3067317604 joined [09:15:51]Waiting for new connection... [09:15:51] Sock 12.Parse request [09:15:51]Sock 12.Check first char [09:15:51]Sock 12.First char is OK [09:15:51]request: POST /json_proto HTTP/1.0 [09:15:51]Method: POST [09:15:51]URL: /json_proto [09:15:51]Method is POST - this is cgi request [09:15:51]url: /json_proto [09:15:51]query_string will be loaded in cgi processing [09:15:51]execute_cgi json_proto POST (null) [09:15:51]execute_cgi path=json_proto method=POST [09:15:51]POST find Content-Length [09:15:51]Host: 172.17.45.132:8080 [09:15:51]Content-Length: 977 [09:15:51]Content-Type: application/json [09:15:51] [09:15:51]POST finish read [09:15:51]Found Content-Length = 977 [09:15:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)609147", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 2", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 74.70, "quantity" : 80.330, "sum" : 6000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 127\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 80.33 \u0441\u043E\u043C", "deposit" : 6000.00, "total" : 6000.00, "payments": [ { "type": 0, "sum" : 6000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:51]execute_script... [09:15:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)609147", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 2", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 74.70, "quantity" : 80.330, "sum" : 6000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 127\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 80.33 \u0441\u043E\u043C", "deposit" : 6000.00, "total" : 6000.00, "payments": [ { "type": 0, "sum" : 6000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:51]POST & json_proto [09:15:51]process_json_proto [09:15:51]json parsed OK: [09:15:51]protocol is kg_v1.0 [09:15:51]action value=close_receipt [09:15:51]process_action close_receipt [09:15:51]cmd_close_receipt [09:15:51]MH_GetDate [09:15:51]Write to MH i2c: F0 00 00 F7 3F 25 [09:15:51]Write i2c OK [09:15:51]MH_I2C_Read... [09:15:51]Read from MH i2c: F0 [09:15:51]MH_I2C_Read... [09:15:51]Read from MH i2c: F0 09 00 [09:15:51]MH_I2C_Read... [09:15:51]Read from MH i2c: F0 09 00 F7 3F 00 4C 0C A6 66 E3 0B 90 66 76 [09:15:51]GetLastDocTimeStamp 1722157987 [09:15:51]current date 1722158156 [09:15:51]FM_GetShiftState [09:15:51]SAM_PROTO_GetShiftState [09:15:51]wFMCommunicate request_size=4 [09:15:51]MH_SAM_APDU [09:15:51]CAPDU: 80 13 01 00 [09:15:51]Write to MH i2c: E2 08 00 F8 3F 80 13 01 00 00 00 00 00 B4 [09:15:51]Write i2c OK [09:15:51]MH_I2C_Read... [09:15:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:51]Read from MH i2c: E2 [09:15:51]MH_I2C_Read... [09:15:51]Read from MH i2c: E2 0E 00 [09:15:51]MH_I2C_Read... [09:15:51]Read from MH i2c: E2 0E 00 F8 3F 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 A8 [09:15:51]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [09:15:51]wFMCommunicate OK [09:15:51]SAM_PROTO_GetShiftState done [09:15:51]FM_GetShiftState done [09:15:51]opened in 1722125648 [09:15:51]opened+sec_in_day 1722212048 [09:15:51]quantity*price = 600065 [09:15:51]sum+1 = 600066 [09:15:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 6000.00 Внесено: 6000.00 СДАЧА: 0.00 НСП 1% : 53.10 НДС 12% : 637.24 Наличными: 6000.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 64 28.07.2024 09:15 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Дисконтная программа ДТ номер 127 сэкономлено 80.33 сом ФМ: 0000000002094248 ФД: 2013 ФПД: 21586639925122 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T091556&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2013&fm=21586639925122&tin=02508201610067®Number=0000000000189667&sum=600000 [09:15:52]StoreToDocumentArchive [09:15:52]shift 13 fd 2013 [09:15:52]save to /storage/0013/doc_00002013 [09:15:52]save last doc name /storage/0013/doc_00002013 to /storage/kkm_last_doc_name [09:15:52]save OK [09:15:52]Clear old archive folders... [09:15:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:15:52]tlvbuf is 0207E4C0 [09:15:52]SAM_PROTO_ClearQueue [09:15:52]wFMCommunicate request_size=4 [09:15:52]MH_SAM_APDU [09:15:52]CAPDU: 80 09 00 00 [09:15:52]Write to MH i2c: E2 08 00 05 40 80 09 00 00 00 00 00 00 B7 [09:15:52]Write i2c OK [09:15:52]MH_I2C_Read... [09:15:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:15:52]Read from MH i2c: E2 [09:15:52]MH_I2C_Read... [09:15:52]Read from MH i2c: E2 03 00 [09:15:52]MH_I2C_Read... [09:15:52]Read from MH i2c: E2 03 00 05 40 00 90 00 B9 [09:15:52]RAPDU: 90 00 [09:15:52]wFMCommunicate OK [09:15:52]SAM_PROTO_ClearQueue done [09:15:52]KKMCreateOFDPacket [09:15:52]OFDProtocolAddRootSTLVToBuf [09:15:52]FM_MakeSignedData [09:15:52]FM_MakeSignedData [09:15:52]SAM_PROTO_SignData [09:15:52]wFMCommunicate request_size=4 [09:15:52]MH_SAM_APDU [09:15:52]CAPDU: 80 0D 01 02 [09:15:52]Write to MH i2c: E2 08 00 06 40 80 0D 01 02 00 00 00 00 BF [09:15:52]Write i2c OK [09:15:52]MH_I2C_Read... [09:15:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:15:52]Read from MH i2c: E2 [09:15:52]MH_I2C_Read... [09:15:52]Read from MH i2c: E2 03 00 [09:15:52]MH_I2C_Read... [09:15:52]Read from MH i2c: E2 03 00 06 40 00 90 00 BA [09:15:52]RAPDU: 90 00 [09:15:52]wFMCommunicate OK [09:15:52]wFMCommunicate request_size=255 [09:15:52]MH_SAM_APDU [09:15:52]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 CA 39 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 01 28 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 4C 0C A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 DD 07 00 00 35 04 06 00 13 A2 08 01 [09:15:52]Write to MH i2c: E2 02 01 07 40 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 CA 39 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 01 28 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 4C 0C A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 DD 07 00 00 35 04 06 00 13 A2 08 01 00 00 8C [09:15:52]Write i2c OK [09:15:52]MH_I2C_Read... [09:15:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:53]Read from MH i2c: E2 [09:15:53]MH_I2C_Read... [09:15:53]Read from MH i2c: E2 03 00 [09:15:53]MH_I2C_Read... [09:15:53]Read from MH i2c: E2 03 00 07 40 00 90 00 BB [09:15:53]RAPDU: 90 00 [09:15:53]wFMCommunicate OK [09:15:53]wFMCommunicate request_size=7 [09:15:53]MH_SAM_APDU [09:15:53]CAPDU: 80 0D 02 02 02 2F 82 [09:15:53]Write to MH i2c: E2 0A 00 08 40 80 0D 02 02 02 00 2F 82 00 00 77 [09:15:53]Write i2c OK [09:15:53]MH_I2C_Read... [09:15:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:53]Read from MH i2c: E2 [09:15:53]MH_I2C_Read... [09:15:53]Read from MH i2c: E2 03 00 [09:15:53]MH_I2C_Read... [09:15:53]Read from MH i2c: E2 03 00 08 40 00 90 00 BC [09:15:53]RAPDU: 90 00 [09:15:53]wFMCommunicate OK [09:15:53]wFMCommunicate request_size=4 [09:15:53]MH_SAM_APDU [09:15:53]CAPDU: 80 0D 03 02 [09:15:53]Write to MH i2c: E2 08 00 09 40 80 0D 03 02 00 00 00 00 C4 [09:15:53]Write i2c OK [09:15:53]MH_I2C_Read... [09:15:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:15:53]Read from MH i2c: E2 [09:15:53]MH_I2C_Read... [09:15:53]Read from MH i2c: E2 0B 00 [09:15:53]MH_I2C_Read... [09:15:53]Read from MH i2c: E2 0B 00 09 40 00 03 E9 BB 5D 99 E0 62 A8 90 00 4C [09:15:53]RAPDU: 03 E9 BB 5D 99 E0 62 A8 90 00 [09:15:53]wFMCommunicate OK [09:15:53]SAM_PROTO_SignData done [09:15:53]FM_MakeSignedData done [09:15:53]CreateOFDProtocolMessage [09:15:53]wFMCommunicate request_size=4 [09:15:53]MH_SAM_APDU [09:15:53]CAPDU: 80 11 00 00 [09:15:53]Write to MH i2c: E2 08 00 0A 40 80 11 00 00 00 00 00 00 C4 [09:15:53]Write i2c OK [09:15:53]MH_I2C_Read... [09:15:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:53]Read from MH i2c: E2 [09:15:53]MH_I2C_Read... [09:15:53]Read from MH i2c: E2 17 00 [09:15:53]MH_I2C_Read... [09:15:53]Read from MH i2c: E2 17 00 0A 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 14 [09:15:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [09:15:53]wFMCommunicate OK [09:15:53]CreateOFDProtocolMessage done [09:15:53]OFDSenderStorePacket 2013 [09:15:53]StoreOFDPacket docnum=2013 [09:15:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0C 01 00 00 58 AA 04 01 DD 13 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 CA 39 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 01 28 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 4C 0C A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 DD 07 00 00 35 04 06 00 13 A2 08 01 2F 82 03 E9 BB 5D 99 E0 62 A8 [09:15:53]CheckFolder [09:15:53]dirname=/storage/ofd_packets [09:15:53]CheckFolder done [09:15:53]ProducePacketName [09:15:53]name=ofd_packets/00002013 [09:15:53]NVStorageSaveData ofd_packets/00002013 [09:15:53]File name is /storage/ofd_packets/00002013 [09:15:53]Write 298 bytes [09:15:53]NVStorageSaveData done [09:15:53]OFDSenderStorePacket done [09:15:53]KKMCreateOFDPacket done [09:15:53]NVStorageSaveData kkm_last_timestamp [09:15:53]File name is /storage/kkm_last_timestamp [09:15:53]Write 4 bytes [09:15:53]NVStorageSaveData done [09:15:53]ExternCall_PrintAddStr [09:15:53]wPrintStart [09:15:53]Write to MH i2c: 01 00 00 0B 40 4B [09:15:53]Write i2c OK [09:15:53]MH_I2C_Read... [09:15:53]Read from MH i2c: 01 [09:15:53]MH_I2C_Read... [09:15:53]Read from MH i2c: 01 07 00 [09:15:53]MH_I2C_Read... [09:15:53]Read from MH i2c: 01 07 00 0B 40 00 00 00 00 00 FF 0F 60 [09:15:53]RasterBufferAndPrint [09:15:53]line Счет N : (1)609147 [09:15:53]line ИНН: 02508201610067 [09:15:53]line Контрольно-Кассовый Чек [09:15:53]line ПРОДАЖА [09:15:53]line ТРК (МРК, ГНК) : 2 [09:15:53]line Товар: 2710194210 [09:15:53]line ДТ-К-2 [09:15:53]line 80.330 * 74.70 [09:15:53]line = 6000.65 [09:15:53]line НДС 12% НСП 1% [09:15:53]line > о реализуемом товаре [09:15:53]line ОКРУГЛЕНИЕ: -0.65 [09:15:53]line ИТОГО: 6000.00 [09:15:53]line Внесено: 6000.00 [09:15:53]line СДАЧА: 0.00 [09:15:53]line НСП 1% : 53.10 [09:15:53]line НДС 12% : 637.24 [09:15:53]line Наличными: 6000.00 [09:15:53]line Безнал.: 0.00 [09:15:53]line Место: АЗС № 127 "Партнер Нефть" [09:15:53]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [09:15:53]line СНО: Общий режим [09:15:53]line Чек 64 28.07.2024 09:15 [09:15:53]line Смена: 13 ФФД: 1.0 [09:15:53]line ЗНМ: 0300000161 [09:15:53]line РНМ: 0000000000189667 [09:15:53]line Версия ККМ: v1.0 [09:15:53]line [09:15:53]line Дисконтная программа [09:15:53]line ДТ [09:15:53]line номер 127 [09:15:53]line сэкономлено 80.33 сом [09:15:53]line ФМ: 0000000002094248 [09:15:53]line ФД: 2013 [09:15:53]line ФПД: 21586639925122 [09:15:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T091556&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2013&fm=21586639925122&tin=02508201610067®Number=0000000000189667&sum=600000 [09:15:53]OFD Sender: Processing packet 2013 [packets to send 1, broken 0] [09:15:53]ProducePacketName [09:15:53]name=ofd_packets/00002013 [09:15:53]OFD Sender: To server: pG, [09:15:53]CommunicateWithHost lk.salyk.kg:30040 [09:15:53]ConnectInit lk.salyk.kg [09:15:53]written 0, free lines is 4095 [09:15:53]Connected sock=9 [09:15:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0C 01 00 00 58 AA 04 01 DD 13 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 CA 39 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 01 28 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 4C 0C A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 DD 07 00 00 35 04 06 00 13 A2 08 01 2F 82 03 E9 BB 5D 99 E0 62 A8 [09:15:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 28 19 47 00 ED D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 DD 07 00 00 F4 03 04 00 BC B7 A5 66 B6 04 01 00 00 D0 DB 52 7E D4 AC 99 11 [09:15:53]CommunicateWithHost err = 0 [09:15:53]CheckOFDResponse [09:15:53]1017 (14) - 77093643461234 [09:15:53]1041 (16) - 0000000002094248 [09:15:53]1040 (4) - 2013 [09:15:53]1012 (4) - 28.07.2024 03:15 [09:15:53]1206 (1) - 0 [09:15:53]OFD Sender: Remove packet 2013 [09:15:53]ProducePacketName [09:15:53]name=ofd_packets/00002013 [09:15:53]NVStorageDeleteData [09:15:53]Write to MH i2c: 01 00 00 3B 40 7B [09:15:53]Write i2c OK [09:15:53]MH_I2C_Read... [09:15:53]Read from MH i2c: 01 [09:15:53]MH_I2C_Read... [09:15:53]Read from MH i2c: 01 07 00 [09:15:53]MH_I2C_Read... [09:15:53]Read from MH i2c: 01 07 00 3B 40 00 00 00 00 00 A1 0C 2F [09:15:53]RasterBufferAndPrint [09:15:53]line [09:15:53]line [09:15:53]line [09:15:53]line [09:15:53]line [09:15:53]written 0, free lines is 3239 [09:15:53]MH_Cut [09:15:53]Write to MH i2c: D1 01 00 42 40 01 54 [09:15:53]Write i2c OK [09:15:53]MH_I2C_Read... [09:15:53]Read from MH i2c: D1 [09:15:53]MH_I2C_Read... [09:15:53]Read from MH i2c: D1 01 00 [09:15:53]MH_I2C_Read... [09:15:53]Read from MH i2c: D1 01 00 42 40 00 53 [09:15:53]Write to MH i2c: 01 00 00 43 40 83 [09:15:53]Write i2c OK [09:15:53]MH_I2C_Read... [09:15:54]OFD Sender: No OFD packet to send [09:15:54]*** Cut start [09:15:54]*** Partial cut [09:15:54]*** CUTSNS_PIN = 1 [09:15:54]*** CUTSNS_PIN = 0 [09:15:55]*** Brake cut motor [09:15:55]Read from MH i2c: 01 [09:15:55]MH_I2C_Read... [09:15:55]*** Stop cut motor [09:15:55]*** Cut end [09:15:55]Read from MH i2c: 01 07 00 [09:15:55]MH_I2C_Read... [09:15:55]Read from MH i2c: 01 07 00 43 40 00 00 00 00 00 FF 0F 98 [09:15:55]process_action close_receipt done [09:15:55]requested_data is exist [09:15:55]produce_requested_data [09:15:55]requested_item fm.sn is exist - process it [09:15:55]wFMCommunicate request_size=4 [09:15:55]MH_SAM_APDU [09:15:55]CAPDU: 80 11 00 00 [09:15:55]Write to MH i2c: E2 08 00 44 40 80 11 00 00 00 00 00 00 FE [09:15:55]Write i2c OK [09:15:55]MH_I2C_Read... [09:15:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:55]Read from MH i2c: E2 [09:15:55]MH_I2C_Read... [09:15:55]Read from MH i2c: E2 17 00 [09:15:55]MH_I2C_Read... [09:15:55]Read from MH i2c: E2 17 00 44 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 4E [09:15:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [09:15:55]wFMCommunicate OK [09:15:55]requested_item fd.num is exist - process it [09:15:55]SAM_PROTO_GetFieldsCounters [09:15:55]wFMCommunicate request_size=4 [09:15:55]MH_SAM_APDU [09:15:55]CAPDU: 80 13 00 00 [09:15:55]Write to MH i2c: E2 08 00 45 40 80 13 00 00 00 00 00 00 01 [09:15:55]Write i2c OK [09:15:55]MH_I2C_Read... [09:15:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:15:55]Read from MH i2c: E2 [09:15:55]MH_I2C_Read... [09:15:55]Read from MH i2c: E2 62 00 [09:15:55]MH_I2C_Read... [09:15:55]Read from MH i2c: E2 62 00 45 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 DD 07 00 00 0E 04 04 00 0D 00 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 DC [09:15:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 DD 07 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:15:55]wFMCommunicate OK [09:15:55]SAM_PROTO_GetFieldsCounters done [09:15:55]requested_item shift.num is exist - process it [09:15:55]requested_item shift.opened is exist - process it [09:15:55]req_shift_opened [09:15:55]FM_GetShiftState [09:15:55]SAM_PROTO_GetShiftState [09:15:55]wFMCommunicate request_size=4 [09:15:55]MH_SAM_APDU [09:15:55]CAPDU: 80 13 01 00 [09:15:55]Write to MH i2c: E2 08 00 46 40 80 13 01 00 00 00 00 00 03 [09:15:55]Write i2c OK [09:15:55]MH_I2C_Read... [09:15:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:55]Read from MH i2c: E2 [09:15:55]MH_I2C_Read... [09:15:55]Read from MH i2c: E2 0E 00 [09:15:55]MH_I2C_Read... [09:15:55]Read from MH i2c: E2 0E 00 46 40 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 F7 [09:15:55]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [09:15:55]wFMCommunicate OK [09:15:55]SAM_PROTO_GetShiftState done [09:15:55]FM_GetShiftState done [09:15:55]req_shift_opened done [09:15:55]requested_item shift.open_date is exist - process it [09:15:55]req_shift_open_date [09:15:55]req_shift_open_date done [09:15:55]produce_requested_data done [09:15:55]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2013,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [09:15:55]process_action_free close_receipt [09:15:55]json_value_free [09:15:55]json_value_free done [09:15:55]process_json_proto returns [09:15:55]Send response to host [09:15:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2013,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [09:15:55]free response buf [09:15:55]execute_script done [09:15:55]execute_script returns [09:15:55]free content buf [09:15:55]Sock 12.Close socket [09:15:55]Sock 12.Thread stoped [09:15:59]OFD Sender: No OFD packet to send [09:16:04]OFD Sender: No OFD packet to send [09:16:09]OFD Sender: No OFD packet to send [09:16:14]OFD Sender: No OFD packet to send [09:16:19]OFD Sender: No OFD packet to send [09:16:24]OFD Sender: No OFD packet to send [09:16:29]OFD Sender: No OFD packet to send [09:16:34]OFD Sender: No OFD packet to send [09:16:39]OFD Sender: No OFD packet to send [09:16:44]OFD Sender: No OFD packet to send [09:16:49]OFD Sender: No OFD packet to send [09:16:54]OFD Sender: No OFD packet to send [09:16:59]OFD Sender: No OFD packet to send [09:17:04]OFD Sender: No OFD packet to send [09:17:09]OFD Sender: No OFD packet to send [09:17:14]OFD Sender: No OFD packet to send [09:17:19]OFD Sender: No OFD packet to send [09:17:24]OFD Sender: No OFD packet to send [09:17:29]OFD Sender: No OFD packet to send [09:17:34]OFD Sender: No OFD packet to send [09:17:39]OFD Sender: No OFD packet to send [09:17:44]OFD Sender: No OFD packet to send [09:17:49]OFD Sender: No OFD packet to send [09:17:54]OFD Sender: No OFD packet to send [09:17:59]OFD Sender: No OFD packet to send [09:18:04]OFD Sender: No OFD packet to send [09:18:09]OFD Sender: No OFD packet to send [09:18:14]OFD Sender: No OFD packet to send [09:18:19]OFD Sender: No OFD packet to send [09:18:24]OFD Sender: No OFD packet to send [09:18:29]OFD Sender: No OFD packet to send [09:18:34]OFD Sender: No OFD packet to send [09:18:39]OFD Sender: No OFD packet to send [09:18:44]OFD Sender: No OFD packet to send [09:18:49]OFD Sender: No OFD packet to send [09:18:54]OFD Sender: No OFD packet to send [09:18:59]OFD Sender: No OFD packet to send [09:19:04]OFD Sender: No OFD packet to send [09:19:09]OFD Sender: No OFD packet to send [09:19:14]OFD Sender: No OFD packet to send [09:19:19]OFD Sender: No OFD packet to send [09:19:24]OFD Sender: No OFD packet to send [09:19:29]OFD Sender: No OFD packet to send [09:19:34]OFD Sender: No OFD packet to send [09:19:39]OFD Sender: No OFD packet to send [09:19:44]OFD Sender: No OFD packet to send [09:19:49]OFD Sender: No OFD packet to send [09:19:54]OFD Sender: No OFD packet to send [09:19:59]OFD Sender: No OFD packet to send [09:20:04]OFD Sender: No OFD packet to send [09:20:09]OFD Sender: No OFD packet to send [09:20:14]OFD Sender: No OFD packet to send [09:20:19]OFD Sender: No OFD packet to send [09:20:24]OFD Sender: No OFD packet to send [09:20:29]OFD Sender: No OFD packet to send [09:20:34]OFD Sender: No OFD packet to send [09:20:39]OFD Sender: No OFD packet to send [09:20:44]OFD Sender: No OFD packet to send [09:20:49]OFD Sender: No OFD packet to send [09:20:54]OFD Sender: No OFD packet to send [09:20:59]OFD Sender: No OFD packet to send [09:21:04]OFD Sender: No OFD packet to send [09:21:09]OFD Sender: No OFD packet to send [09:21:14]OFD Sender: No OFD packet to send [09:21:19]OFD Sender: No OFD packet to send [09:21:24]OFD Sender: No OFD packet to send [09:21:29]OFD Sender: No OFD packet to send [09:21:34]OFD Sender: No OFD packet to send [09:21:39]OFD Sender: No OFD packet to send [09:21:44]OFD Sender: No OFD packet to send [09:21:49]OFD Sender: No OFD packet to send [09:21:54]OFD Sender: No OFD packet to send [09:21:59]OFD Sender: No OFD packet to send [09:22:04]OFD Sender: No OFD packet to send [09:22:09]OFD Sender: No OFD packet to send [09:22:14]OFD Sender: No OFD packet to send [09:22:19]OFD Sender: No OFD packet to send [09:22:24]OFD Sender: No OFD packet to send [09:22:29]OFD Sender: No OFD packet to send [09:22:34]OFD Sender: No OFD packet to send [09:22:39]OFD Sender: No OFD packet to send [09:22:44]OFD Sender: No OFD packet to send [09:22:46]accept exits with 8 [09:22:46]New connection [09:22:46]New thread 3067317604 created [09:22:46]Thread 3067460964 joined [09:22:46]Waiting for new connection... [09:22:46] Sock 8.Parse request [09:22:46]Sock 8.Check first char [09:22:46]Sock 8.First char is OK [09:22:46]request: POST /json_proto HTTP/1.0 [09:22:46]Method: POST [09:22:46]URL: /json_proto [09:22:46]Method is POST - this is cgi request [09:22:46]url: /json_proto [09:22:46]query_string will be loaded in cgi processing [09:22:46]execute_cgi json_proto POST (null) [09:22:46]execute_cgi path=json_proto method=POST [09:22:46]POST find Content-Length [09:22:46]Host: 172.17.45.132:8080 [09:22:46]Content-Length: 641 [09:22:46]Content-Type: application/json [09:22:46] [09:22:46]POST finish read [09:22:46]Found Content-Length = 641 [09:22:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126317", "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" ] } } [09:22:46]execute_script... [09:22: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)126317", "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" ] } } [09:22:46]POST & json_proto [09:22:46]process_json_proto [09:22:46]json parsed OK: [09:22:46]protocol is kg_v1.0 [09:22:46]action value=close_receipt [09:22:46]process_action close_receipt [09:22:46]cmd_close_receipt [09:22:46]MH_GetDate [09:22:46]Write to MH i2c: F0 00 00 47 40 76 [09:22:46]Write i2c OK [09:22:46]MH_I2C_Read... [09:22:46]Read from MH i2c: F0 [09:22:46]MH_I2C_Read... [09:22:46]Read from MH i2c: F0 09 00 [09:22:46]MH_I2C_Read... [09:22:46]Read from MH i2c: F0 09 00 47 40 00 EB 0D A6 66 E3 0B 90 66 67 [09:22:46]GetLastDocTimeStamp 1722158156 [09:22:46]current date 1722158571 [09:22:46]FM_GetShiftState [09:22:46]SAM_PROTO_GetShiftState [09:22:46]wFMCommunicate request_size=4 [09:22:46]MH_SAM_APDU [09:22:46]CAPDU: 80 13 01 00 [09:22:46]Write to MH i2c: E2 08 00 48 40 80 13 01 00 00 00 00 00 05 [09:22:46]Write i2c OK [09:22:46]MH_I2C_Read... [09:22:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:46]Read from MH i2c: E2 [09:22:46]MH_I2C_Read... [09:22:46]Read from MH i2c: E2 0E 00 [09:22:46]MH_I2C_Read... [09:22:46]Read from MH i2c: E2 0E 00 48 40 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 F9 [09:22:46]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [09:22:46]wFMCommunicate OK [09:22:46]SAM_PROTO_GetShiftState done [09:22:46]FM_GetShiftState done [09:22:46]opened in 1722125648 [09:22:46]opened+sec_in_day 1722212048 [09:22:46]quantity*price = 4000 [09:22:46]sum+1 = 4001 [09:22:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 40.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 65 28.07.2024 09:22 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2014 ФПД: 12466234289120 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T092251&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2014&fm=12466234289120&tin=02508201610067®Number=0000000000189667&sum=4000 0 [09:22:47]StoreToDocumentArchive [09:22:47]shift 13 fd 2014 [09:22:47]save to /storage/0013/doc_00002014 [09:22:47]save last doc name /storage/0013/doc_00002014 to /storage/kkm_last_doc_name [09:22:47]save OK [09:22:47]Clear old archive folders... [09:22:47]ProcessDocumentItem done err = 0, tmpTLVsize=272 [09:22:47]tlvbuf is 02079DA0 [09:22:47]SAM_PROTO_ClearQueue [09:22:47]wFMCommunicate request_size=4 [09:22:47]MH_SAM_APDU [09:22:47]CAPDU: 80 09 00 00 [09:22:47]Write to MH i2c: E2 08 00 55 40 80 09 00 00 00 00 00 00 07 [09:22:47]Write i2c OK [09:22:47]MH_I2C_Read... [09:22:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:22:47]Read from MH i2c: E2 [09:22:47]MH_I2C_Read... [09:22:47]Read from MH i2c: E2 03 00 [09:22:47]MH_I2C_Read... [09:22:47]Read from MH i2c: E2 03 00 55 40 00 90 00 09 [09:22:47]RAPDU: 90 00 [09:22:47]wFMCommunicate OK [09:22:47]SAM_PROTO_ClearQueue done [09:22:47]KKMCreateOFDPacket [09:22:47]OFDProtocolAddRootSTLVToBuf [09:22:47]FM_MakeSignedData [09:22:47]FM_MakeSignedData [09:22:47]SAM_PROTO_SignData [09:22:47]wFMCommunicate request_size=4 [09:22:47]MH_SAM_APDU [09:22:47]CAPDU: 80 0D 01 02 [09:22:47]Write to MH i2c: E2 08 00 56 40 80 0D 01 02 00 00 00 00 0F [09:22:47]Write i2c OK [09:22:47]MH_I2C_Read... [09:22:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:22:47]Read from MH i2c: E2 [09:22:47]MH_I2C_Read... [09:22:47]Read from MH i2c: E2 03 00 [09:22:47]MH_I2C_Read... [09:22:47]Read from MH i2c: E2 03 00 56 40 00 90 00 0A [09:22:47]RAPDU: 90 00 [09:22:47]wFMCommunicate OK [09:22:47]wFMCommunicate request_size=255 [09:22:47]MH_SAM_APDU [09:22:47]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 41 00 00 00 F4 03 04 00 EB 0D A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 [09:22:47]Write to MH i2c: E2 02 01 57 40 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 41 00 00 00 F4 03 04 00 EB 0D A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 00 00 8D [09:22:47]Write i2c OK [09:22:47]MH_I2C_Read... [09:22:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:47]Read from MH i2c: E2 [09:22:47]MH_I2C_Read... [09:22:47]Read from MH i2c: E2 03 00 [09:22:47]MH_I2C_Read... [09:22:47]Read from MH i2c: E2 03 00 57 40 00 90 00 0B [09:22:47]RAPDU: 90 00 [09:22:47]wFMCommunicate OK [09:22:47]wFMCommunicate request_size=31 [09:22:47]MH_SAM_APDU [09:22:47]CAPDU: 80 0D 02 02 1A 30 32 30 39 34 32 34 38 10 04 04 00 DE 07 00 00 35 04 06 00 0B 56 85 77 6B E0 [09:22:47]Write to MH i2c: E2 22 00 58 40 80 0D 02 02 1A 00 30 32 30 39 34 32 34 38 10 04 04 00 DE 07 00 00 35 04 06 00 0B 56 85 77 6B E0 00 00 C7 [09:22:47]Write i2c OK [09:22:47]MH_I2C_Read... [09:22:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:47]Read from MH i2c: E2 [09:22:47]MH_I2C_Read... [09:22:47]Read from MH i2c: E2 03 00 [09:22:47]MH_I2C_Read... [09:22:47]Read from MH i2c: E2 03 00 58 40 00 90 00 0C [09:22:47]RAPDU: 90 00 [09:22:47]wFMCommunicate OK [09:22:47]wFMCommunicate request_size=4 [09:22:47]MH_SAM_APDU [09:22:47]CAPDU: 80 0D 03 02 [09:22:47]Write to MH i2c: E2 08 00 59 40 80 0D 03 02 00 00 00 00 14 [09:22:47]Write i2c OK [09:22:47]MH_I2C_Read... [09:22:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:22:47]Read from MH i2c: E2 [09:22:47]MH_I2C_Read... [09:22:47]Read from MH i2c: E2 0B 00 [09:22:47]MH_I2C_Read... [09:22:47]Read from MH i2c: E2 0B 00 59 40 00 B6 0E 9D D9 2F 3E 11 27 90 00 F4 [09:22:47]RAPDU: B6 0E 9D D9 2F 3E 11 27 90 00 [09:22:47]wFMCommunicate OK [09:22:47]SAM_PROTO_SignData done [09:22:47]FM_MakeSignedData done [09:22:47]CreateOFDProtocolMessage [09:22:47]wFMCommunicate request_size=4 [09:22:47]MH_SAM_APDU [09:22:47]CAPDU: 80 11 00 00 [09:22:47]Write to MH i2c: E2 08 00 5A 40 80 11 00 00 00 00 00 00 14 [09:22:47]Write i2c OK [09:22:47]MH_I2C_Read... [09:22:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:47]Read from MH i2c: E2 [09:22:47]MH_I2C_Read... [09:22:47]Read from MH i2c: E2 17 00 [09:22:47]MH_I2C_Read... [09:22:47]Read from MH i2c: E2 17 00 5A 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 64 [09:22:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [09:22:47]wFMCommunicate OK [09:22:47]CreateOFDProtocolMessage done [09:22:47]OFDSenderStorePacket 2014 [09:22:47]StoreOFDPacket docnum=2014 [09:22:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 24 01 00 00 BD FB 1C 01 75 8A 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 41 00 00 00 F4 03 04 00 EB 0D A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 DE 07 00 00 35 04 06 00 0B 56 85 77 6B E0 B6 0E 9D D9 2F 3E 11 27 [09:22:47]CheckFolder [09:22:47]dirname=/storage/ofd_packets [09:22:47]CheckFolder done [09:22:47]ProducePacketName [09:22:47]name=ofd_packets/00002014 [09:22:47]NVStorageSaveData ofd_packets/00002014 [09:22:47]File name is /storage/ofd_packets/00002014 [09:22:47]Write 322 bytes [09:22:47]NVStorageSaveData done [09:22:47]OFDSenderStorePacket done [09:22:47]KKMCreateOFDPacket done [09:22:47]NVStorageSaveData kkm_last_timestamp [09:22:47]File name is /storage/kkm_last_timestamp [09:22:47]Write 4 bytes [09:22:47]NVStorageSaveData done [09:22:47]ExternCall_PrintAddStr [09:22:47]wPrintStart [09:22:47]Write to MH i2c: 01 00 00 5B 40 9B [09:22:47]Write i2c OK [09:22:47]MH_I2C_Read... [09:22:47]Read from MH i2c: 01 [09:22:47]MH_I2C_Read... [09:22:47]Read from MH i2c: 01 07 00 [09:22:47]MH_I2C_Read... [09:22:47]Read from MH i2c: 01 07 00 5B 40 00 00 00 00 00 FF 0F B0 [09:22:47]RasterBufferAndPrint [09:22:47]line Счет N : (3)126317 [09:22:47]line ИНН: 02508201610067 [09:22:47]line Контрольно-Кассовый Чек [09:22:47]line ПРОДАЖА [09:22:47]line Товар: 40822426 [09:22:47]line Вода Бонаква 0,5л б/г [09:22:47]line 1.000 * 40.00 [09:22:47]line = 40.00 [09:22:47]line НДС 12% НСП 1% [09:22:47]line > о реализуемом товаре [09:22:47]line ИТОГО: 40.00 [09:22:47]line НСП 1% : 0.35 [09:22:47]line НДС 12% : 4.25 [09:22:47]line Наличными: 40.00 [09:22:47]line Безнал.: 0.00 [09:22:47]line Место: АЗС № 127 "Партнер Нефть" [09:22:47]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [09:22:47]line СНО: Общий режим [09:22:47]line Чек 65 28.07.2024 09:22 [09:22:47]line Смена: 13 ФФД: 1.0 [09:22:47]line ЗНМ: 0300000161 [09:22:47]line РНМ: 0000000000189667 [09:22:47]line Версия ККМ: v1.0 [09:22:47]line ФМ: 0000000002094248 [09:22:47]line ФД: 2014 [09:22:47]line ФПД: 12466234289120 [09:22:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T092251&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2014&fm=12466234289120&tin=02508201610067®Number=0000000000189667&sum=4000 [09:22:48]OFD Sender: Processing packet 2014 [packets to send 1, broken 0] [09:22:48]ProducePacketName [09:22:48]name=ofd_packets/00002014 [09:22:48]OFD Sender: To server: pG, [09:22:48]CommunicateWithHost lk.salyk.kg:30040 [09:22:48]ConnectInit lk.salyk.kg [09:22:48]line 0 [09:22:48]written 0, free lines is 4095 [09:22:48]Connected sock=10 [09:22:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 24 01 00 00 BD FB 1C 01 75 8A 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 41 00 00 00 F4 03 04 00 EB 0D A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 DE 07 00 00 35 04 06 00 0B 56 85 77 6B E0 B6 0E 9D D9 2F 3E 11 27 [09:22:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 3C D5 47 00 5B 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 DE 07 00 00 F4 03 04 00 5B B9 A5 66 B6 04 01 00 00 E2 9A 80 54 7D C2 62 0D [09:22:48]CommunicateWithHost err = 0 [09:22:48]CheckOFDResponse [09:22:48]1017 (14) - 77093643461234 [09:22:48]1041 (16) - 0000000002094248 [09:22:48]1040 (4) - 2014 [09:22:48]1012 (4) - 28.07.2024 03:22 [09:22:48]1206 (1) - 0 [09:22:48]OFD Sender: Remove packet 2014 [09:22:48]ProducePacketName [09:22:48]name=ofd_packets/00002014 [09:22:48]NVStorageDeleteData [09:22:48]Write to MH i2c: 01 00 00 83 40 C3 [09:22:48]Write i2c OK [09:22:48]MH_I2C_Read... [09:22:48]Read from MH i2c: 01 [09:22:48]MH_I2C_Read... [09:22:48]Read from MH i2c: 01 07 00 [09:22:48]MH_I2C_Read... [09:22:48]Read from MH i2c: 01 07 00 83 40 00 00 00 00 00 24 0D FB [09:22:48]RasterBufferAndPrint [09:22:48]line [09:22:48]line [09:22:48]line [09:22:48]line [09:22:48]line [09:22:48]written 0, free lines is 3370 [09:22:48]MH_Cut [09:22:48]Write to MH i2c: D1 01 00 8A 40 01 9C [09:22:48]Write i2c OK [09:22:48]MH_I2C_Read... [09:22:48]Read from MH i2c: D1 [09:22:48]MH_I2C_Read... [09:22:48]Read from MH i2c: D1 01 00 [09:22:48]MH_I2C_Read... [09:22:48]Read from MH i2c: D1 01 00 8A 40 00 9B [09:22:48]Write to MH i2c: 01 00 00 8B 40 CB [09:22:48]Write i2c OK [09:22:48]MH_I2C_Read... [09:22:49]OFD Sender: No OFD packet to send [09:22:49]*** Cut start [09:22:49]*** Partial cut [09:22:49]*** CUTSNS_PIN = 1 [09:22:49]*** CUTSNS_PIN = 0 [09:22:49]*** Brake cut motor [09:22:49]Read from MH i2c: 01 [09:22:49]MH_I2C_Read... [09:22:49]*** Stop cut motor [09:22:49]*** Cut end [09:22:49]Read from MH i2c: 01 07 00 [09:22:49]MH_I2C_Read... [09:22:49]Read from MH i2c: 01 07 00 8B 40 00 00 00 00 00 FF 0F E0 [09:22:49]process_action close_receipt done [09:22:49]requested_data is exist [09:22:49]produce_requested_data [09:22:49]requested_item fm.sn is exist - process it [09:22:49]wFMCommunicate request_size=4 [09:22:49]MH_SAM_APDU [09:22:49]CAPDU: 80 11 00 00 [09:22:49]Write to MH i2c: E2 08 00 8C 40 80 11 00 00 00 00 00 00 46 [09:22:49]Write i2c OK [09:22:49]MH_I2C_Read... [09:22:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:50]Read from MH i2c: E2 [09:22:50]MH_I2C_Read... [09:22:50]Read from MH i2c: E2 17 00 [09:22:50]MH_I2C_Read... [09:22:50]Read from MH i2c: E2 17 00 8C 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 96 [09:22:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [09:22:50]wFMCommunicate OK [09:22:50]requested_item fd.num is exist - process it [09:22:50]SAM_PROTO_GetFieldsCounters [09:22:50]wFMCommunicate request_size=4 [09:22:50]MH_SAM_APDU [09:22:50]CAPDU: 80 13 00 00 [09:22:50]Write to MH i2c: E2 08 00 8D 40 80 13 00 00 00 00 00 00 49 [09:22:50]Write i2c OK [09:22:50]MH_I2C_Read... [09:22:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:22:50]Read from MH i2c: E2 [09:22:50]MH_I2C_Read... [09:22:50]Read from MH i2c: E2 62 00 [09:22:50]MH_I2C_Read... [09:22:50]Read from MH i2c: E2 62 00 8D 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 DE 07 00 00 0E 04 04 00 0D 00 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 28 [09:22:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 DE 07 00 00 0E 04 04 00 0D 00 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 [09:22:50]wFMCommunicate OK [09:22:50]SAM_PROTO_GetFieldsCounters done [09:22:50]requested_item shift.num is exist - process it [09:22:50]requested_item shift.opened is exist - process it [09:22:50]req_shift_opened [09:22:50]FM_GetShiftState [09:22:50]SAM_PROTO_GetShiftState [09:22:50]wFMCommunicate request_size=4 [09:22:50]MH_SAM_APDU [09:22:50]CAPDU: 80 13 01 00 [09:22:50]Write to MH i2c: E2 08 00 8E 40 80 13 01 00 00 00 00 00 4B [09:22:50]Write i2c OK [09:22:50]MH_I2C_Read... [09:22:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:50]Read from MH i2c: E2 [09:22:50]MH_I2C_Read... [09:22:50]Read from MH i2c: E2 0E 00 [09:22:50]MH_I2C_Read... [09:22:50]Read from MH i2c: E2 0E 00 8E 40 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 3F [09:22:50]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [09:22:50]wFMCommunicate OK [09:22:50]SAM_PROTO_GetShiftState done [09:22:50]FM_GetShiftState done [09:22:50]req_shift_opened done [09:22:50]requested_item shift.open_date is exist - process it [09:22:50]req_shift_open_date [09:22:50]req_shift_open_date done [09:22:50]produce_requested_data done [09:22:50]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2014,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [09:22:50]process_action_free close_receipt [09:22:50]json_value_free [09:22:50]json_value_free done [09:22:50]process_json_proto returns [09:22:50]Send response to host [09:22:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2014,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [09:22:50]free response buf [09:22:50]execute_script done [09:22:50]execute_script returns [09:22:50]free content buf [09:22:50]Sock 8.Close socket [09:22:50]Sock 8.Thread stoped [09:22:54]OFD Sender: No OFD packet to send [09:22:59]OFD Sender: No OFD packet to send [09:23:04]OFD Sender: No OFD packet to send [09:23:09]OFD Sender: No OFD packet to send [09:23:14]OFD Sender: No OFD packet to send [09:23:19]OFD Sender: No OFD packet to send [09:23:24]OFD Sender: No OFD packet to send [09:23:29]OFD Sender: No OFD packet to send [09:23:34]OFD Sender: No OFD packet to send [09:23:39]OFD Sender: No OFD packet to send [09:23:44]OFD Sender: No OFD packet to send [09:23:49]OFD Sender: No OFD packet to send [09:23:49]accept exits with 9 [09:23:49]New connection [09:23:49]New thread 3067460964 created [09:23:49]Thread 3067317604 joined [09:23:49]Waiting for new connection... [09:23:49] Sock 9.Parse request [09:23:49]Sock 9.Check first char [09:23:49]Sock 9.First char is OK [09:23:49]request: POST /json_proto HTTP/1.0 [09:23:49]Method: POST [09:23:49]URL: /json_proto [09:23:49]Method is POST - this is cgi request [09:23:49]url: /json_proto [09:23:49]query_string will be loaded in cgi processing [09:23:49]execute_cgi json_proto POST (null) [09:23:49]execute_cgi path=json_proto method=POST [09:23:49]POST find Content-Length [09:23:49]Host: 172.17.45.132:8080 [09:23:49]Content-Length: 1259 [09:23:49]Content-Type: application/json [09:23:49] [09:23:49]POST finish read [09:23:49]Found Content-Length = 1259 [09:23:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126318", "tax_sys" : 0, "items" : [ { "code": "5449000133328", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 Zero 1\u043B", "price" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ,{ "code": "50173372", "name": "\u0416\u0435\u0432 Orbit \u0434\u043B\u044F \u0434\u0435\u0442\u0435\u0439 Classic", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 252.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:23:49]execute_script... [09:23:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126318", "tax_sys" : 0, "items" : [ { "code": "5449000133328", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 Zero 1\u043B", "price" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ,{ "code": "50173372", "name": "\u0416\u0435\u0432 Orbit \u0434\u043B\u044F \u0434\u0435\u0442\u0435\u0439 Classic", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 252.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:23:49]POST & json_proto [09:23:49]process_json_proto [09:23:49]json parsed OK: [09:23:49]protocol is kg_v1.0 [09:23:49]action value=close_receipt [09:23:49]process_action close_receipt [09:23:49]cmd_close_receipt [09:23:49]MH_GetDate [09:23:49]Write to MH i2c: F0 00 00 8F 40 BE [09:23:49]Write i2c OK [09:23:49]MH_I2C_Read... [09:23:49]Read from MH i2c: F0 [09:23:49]MH_I2C_Read... [09:23:49]Read from MH i2c: F0 09 00 [09:23:49]MH_I2C_Read... [09:23:49]Read from MH i2c: F0 09 00 8F 40 00 2A 0E A6 66 E3 0B 90 66 EF [09:23:49]GetLastDocTimeStamp 1722158571 [09:23:49]current date 1722158634 [09:23:49]FM_GetShiftState [09:23:49]SAM_PROTO_GetShiftState [09:23:49]wFMCommunicate request_size=4 [09:23:49]MH_SAM_APDU [09:23:49]CAPDU: 80 13 01 00 [09:23:49]Write to MH i2c: E2 08 00 90 40 80 13 01 00 00 00 00 00 4D [09:23:49]Write i2c OK [09:23:49]MH_I2C_Read... [09:23:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:49]Read from MH i2c: E2 [09:23:49]MH_I2C_Read... [09:23:49]Read from MH i2c: E2 0E 00 [09:23:49]MH_I2C_Read... [09:23:49]Read from MH i2c: E2 0E 00 90 40 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 41 [09:23:49]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [09:23:49]wFMCommunicate OK [09:23:49]SAM_PROTO_GetShiftState done [09:23:49]FM_GetShiftState done [09:23:49]opened in 1722125648 [09:23:49]opened+sec_in_day 1722212048 [09:23:49]quantity*price = 10700 [09:23:49]sum+1 = 10701 [09:23:49]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4607018771791 Минеральная вода Ессентуки 17 0,45л ст 1.000 * 105.00 = 105.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 50173372 Жев Orbit для детей Classic 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 252.00 НСП 1% : 2.23 НДС 12% : 26.76 Наличными: 252.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 66 28.07.2024 09:23 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2015 ФПД: 210666598596097 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T092354&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2015&fm=210666598596097&tin=02508201610067®Number=0000000000189667&sum=25200 0 [09:23:50]StoreToDocumentArchive [09:23:50]shift 13 fd 2015 [09:23:50]save to /storage/0013/doc_00002015 [09:23:50]save last doc name /storage/0013/doc_00002015 to /storage/kkm_last_doc_name [09:23:50]save OK [09:23:50]Clear old archive folders... [09:23:50]ProcessDocumentItem done err = 0, tmpTLVsize=525 [09:23:50]tlvbuf is 020BABA0 [09:23:50]SAM_PROTO_ClearQueue [09:23:50]wFMCommunicate request_size=4 [09:23:50]MH_SAM_APDU [09:23:50]CAPDU: 80 09 00 00 [09:23:50]Write to MH i2c: E2 08 00 9D 40 80 09 00 00 00 00 00 00 4F [09:23:50]Write i2c OK [09:23:50]MH_I2C_Read... [09:23:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:23:50]Read from MH i2c: E2 [09:23:50]MH_I2C_Read... [09:23:50]Read from MH i2c: E2 03 00 [09:23:50]MH_I2C_Read... [09:23:50]Read from MH i2c: E2 03 00 9D 40 00 90 00 51 [09:23:50]RAPDU: 90 00 [09:23:50]wFMCommunicate OK [09:23:50]SAM_PROTO_ClearQueue done [09:23:50]KKMCreateOFDPacket [09:23:50]OFDProtocolAddRootSTLVToBuf [09:23:50]FM_MakeSignedData [09:23:50]FM_MakeSignedData [09:23:50]SAM_PROTO_SignData [09:23:50]wFMCommunicate request_size=4 [09:23:50]MH_SAM_APDU [09:23:50]CAPDU: 80 0D 01 02 [09:23:50]Write to MH i2c: E2 08 00 9E 40 80 0D 01 02 00 00 00 00 57 [09:23:50]Write i2c OK [09:23:50]MH_I2C_Read... [09:23:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:23:50]Read from MH i2c: E2 [09:23:50]MH_I2C_Read... [09:23:50]Read from MH i2c: E2 03 00 [09:23:50]MH_I2C_Read... [09:23:50]Read from MH i2c: E2 03 00 9E 40 00 90 00 52 [09:23:50]RAPDU: 90 00 [09:23:50]wFMCommunicate OK [09:23:50]wFMCommunicate request_size=255 [09:23:50]MH_SAM_APDU [09:23:50]CAPDU: 80 0D 02 02 FA 03 00 0D 02 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 35 34 34 39 30 30 30 31 33 33 33 32 38 06 04 29 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 5A 65 72 6F 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 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 [09:23:51]Write to MH i2c: E2 02 01 9F 40 80 0D 02 02 FA 00 03 00 0D 02 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 35 34 34 39 30 30 30 31 33 33 33 32 38 06 04 29 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 5A 65 72 6F 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 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 00 00 BB [09:23:51]Write i2c OK [09:23:51]MH_I2C_Read... [09:23:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:51]Read from MH i2c: E2 [09:23:51]MH_I2C_Read... [09:23:51]Read from MH i2c: E2 03 00 [09:23:51]MH_I2C_Read... [09:23:51]Read from MH i2c: E2 03 00 9F 40 00 90 00 53 [09:23:51]RAPDU: 90 00 [09:23:51]wFMCommunicate OK [09:23:51]wFMCommunicate request_size=255 [09:23:51]MH_SAM_APDU [09:23:51]CAPDU: 80 0D 02 02 FA 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 35 30 31 37 33 33 37 32 06 04 26 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B4 D0 BB D1 8F 20 D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 43 6C 61 73 73 69 63 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 70 62 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0A 00 00 00 00 07 04 06 00 70 62 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 2A 0E A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 [09:23:51]Write to MH i2c: E2 02 01 A0 40 80 0D 02 02 FA 00 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 35 30 31 37 33 33 37 32 06 04 26 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B4 D0 BB D1 8F 20 D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 43 6C 61 73 73 69 63 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 70 62 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0A 00 00 00 00 07 04 06 00 70 62 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 2A 0E A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 00 00 4F [09:23:51]Write i2c OK [09:23:51]MH_I2C_Read... [09:23:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:51]Read from MH i2c: E2 [09:23:51]MH_I2C_Read... [09:23:51]Read from MH i2c: E2 03 00 [09:23:51]MH_I2C_Read... [09:23:51]Read from MH i2c: E2 03 00 A0 40 00 90 00 54 [09:23:51]RAPDU: 90 00 [09:23:51]wFMCommunicate OK [09:23:51]wFMCommunicate request_size=34 [09:23:51]MH_SAM_APDU [09:23:51]CAPDU: 80 0D 02 02 1D 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 DF 07 00 00 35 04 06 00 BF 99 A3 C6 7E 01 [09:23:51]Write to MH i2c: E2 25 00 A1 40 80 0D 02 02 1D 00 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 DF 07 00 00 35 04 06 00 BF 99 A3 C6 7E 01 00 00 3F [09:23:51]Write i2c OK [09:23:51]MH_I2C_Read... [09:23:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:51]Read from MH i2c: E2 [09:23:51]MH_I2C_Read... [09:23:51]Read from MH i2c: E2 03 00 [09:23:51]MH_I2C_Read... [09:23:51]Read from MH i2c: E2 03 00 A1 40 00 90 00 55 [09:23:51]RAPDU: 90 00 [09:23:51]wFMCommunicate OK [09:23:51]wFMCommunicate request_size=4 [09:23:51]MH_SAM_APDU [09:23:51]CAPDU: 80 0D 03 02 [09:23:51]Write to MH i2c: E2 08 00 A2 40 80 0D 03 02 00 00 00 00 5D [09:23:51]Write i2c OK [09:23:51]MH_I2C_Read... [09:23:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:23:51]Read from MH i2c: E2 [09:23:51]MH_I2C_Read... [09:23:51]Read from MH i2c: E2 0B 00 [09:23:51]MH_I2C_Read... [09:23:51]Read from MH i2c: E2 0B 00 A2 40 00 51 57 22 42 66 F2 49 79 90 00 84 [09:23:51]RAPDU: 51 57 22 42 66 F2 49 79 90 00 [09:23:51]wFMCommunicate OK [09:23:51]SAM_PROTO_SignData done [09:23:51]FM_MakeSignedData done [09:23:51]CreateOFDProtocolMessage [09:23:51]wFMCommunicate request_size=4 [09:23:51]MH_SAM_APDU [09:23:51]CAPDU: 80 11 00 00 [09:23:51]Write to MH i2c: E2 08 00 A3 40 80 11 00 00 00 00 00 00 5D [09:23:51]Write i2c OK [09:23:51]MH_I2C_Read... [09:23:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:51]Read from MH i2c: E2 [09:23:51]MH_I2C_Read... [09:23:51]Read from MH i2c: E2 17 00 [09:23:51]MH_I2C_Read... [09:23:51]Read from MH i2c: E2 17 00 A3 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 AD [09:23:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [09:23:51]wFMCommunicate OK [09:23:51]CreateOFDProtocolMessage done [09:23:51]OFDSenderStorePacket 2015 [09:23:51]StoreOFDPacket docnum=2015 [09:23:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 21 02 00 00 74 15 19 02 16 B1 5A 03 01 00 03 00 0D 02 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 35 34 34 39 30 30 30 31 33 33 33 32 38 06 04 29 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 5A 65 72 6F 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 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 23 04 65 00 8A 04 08 00 35 30 31 37 33 33 37 32 06 04 26 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B4 D0 BB D1 8F 20 D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 43 6C 61 73 73 69 63 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 70 62 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0A 00 00 00 00 07 04 06 00 70 62 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 2A 0E A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 DF 07 00 00 35 04 06 00 BF 99 A3 C6 7E 01 51 57 22 42 66 F2 49 79 [09:23:51]CheckFolder [09:23:51]dirname=/storage/ofd_packets [09:23:51]CheckFolder done [09:23:51]ProducePacketName [09:23:51]name=ofd_packets/00002015 [09:23:51]NVStorageSaveData ofd_packets/00002015 [09:23:51]File name is /storage/ofd_packets/00002015 [09:23:51]Write 575 bytes [09:23:51]NVStorageSaveData done [09:23:51]OFDSenderStorePacket done [09:23:51]KKMCreateOFDPacket done [09:23:51]NVStorageSaveData kkm_last_timestamp [09:23:51]File name is /storage/kkm_last_timestamp [09:23:51]Write 4 bytes [09:23:51]NVStorageSaveData done [09:23:51]ExternCall_PrintAddStr [09:23:51]wPrintStart [09:23:51]Write to MH i2c: 01 00 00 A4 40 E4 [09:23:51]Write i2c OK [09:23:51]MH_I2C_Read... [09:23:51]Read from MH i2c: 01 [09:23:51]MH_I2C_Read... [09:23:51]Read from MH i2c: 01 07 00 [09:23:51]MH_I2C_Read... [09:23:51]Read from MH i2c: 01 07 00 A4 40 00 00 00 00 00 FF 0F F9 [09:23:51]RasterBufferAndPrint [09:23:51]line Счет N : (3)126318 [09:23:51]line ИНН: 02508201610067 [09:23:51]line Контрольно-Кассовый Чек [09:23:51]line ПРОДАЖА [09:23:51]line Товар: 5449000133328 [09:23:51]line Напиток Кока-Кола Zero 1л [09:23:51]line 1.000 * 107.00 [09:23:51]line = 107.00 [09:23:51]line НДС 12% НСП 1% [09:23:51]line > о реализуемом товаре [09:23:51]line Товар: 4607018771791 [09:23:51]line Минеральная вода Ессентуки 17 0,45л ст [09:23:51]line 1.000 * 105.00 [09:23:51]line = 105.00 [09:23:51]line НДС 12% НСП 1% [09:23:51]line > о реализуемом товаре [09:23:51]line Товар: 50173372 [09:23:51]line Жев Orbit для детей Classic [09:23:51]line 1.000 * 40.00 [09:23:51]line = 40.00 [09:23:51]line НДС 12% НСП 1% [09:23:51]line > о реализуемом товаре [09:23:51]line ИТОГО: 252.00 [09:23:51]line НСП 1% : 2.23 [09:23:51]line НДС 12% : 26.76 [09:23:51]line Наличными: 252.00 [09:23:51]line Безнал.: 0.00 [09:23:51]line Место: АЗС № 127 "Партнер Нефть" [09:23:51]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [09:23:51]line СНО: Общий режим [09:23:51]line Чек 66 28.07.2024 09:23 [09:23:51]line Смена: 13 ФФД: 1.0 [09:23:51]line ЗНМ: 0300000161 [09:23:51]line РНМ: 0000000000189667 [09:23:51]line Версия ККМ: v1.0 [09:23:51]line ФМ: 0000000002094248 [09:23:51]line ФД: 2015 [09:23:51]line ФПД: 210666598596097 [09:23:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T092354&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2015&fm=210666598596097&tin=02508201610067®Number=0000000000189667&sum=25200 [09:23:51]line 0 [09:23:51]written 0, free lines is 4095 [09:23:51]OFD Sender: Processing packet 2015 [packets to send 1, broken 0] [09:23:51]ProducePacketName [09:23:51]name=ofd_packets/00002015 [09:23:51]OFD Sender: To server: pG, [09:23:51]CommunicateWithHost lk.salyk.kg:30040 [09:23:51]ConnectInit lk.salyk.kg [09:23:52]Connected sock=10 [09:23:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 21 02 00 00 74 15 19 02 16 B1 5A 03 01 00 03 00 0D 02 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 35 34 34 39 30 30 30 31 33 33 33 32 38 06 04 29 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 5A 65 72 6F 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 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 23 04 65 00 8A 04 08 00 35 30 31 37 33 33 37 32 06 04 26 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B4 D0 BB D1 8F 20 D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 43 6C 61 73 73 69 63 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 70 62 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0A 00 00 00 00 07 04 06 00 70 62 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 2A 0E A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 DF 07 00 00 35 04 06 00 BF 99 A3 C6 7E 01 51 57 22 42 66 F2 49 79 [09:23:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 93 B5 47 00 70 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 32 30 39 34 32 34 38 10 04 04 00 DF 07 00 00 F4 03 04 00 9A B9 A5 66 B6 04 01 00 00 BD DE C5 33 07 04 6C 2D [09:23:52]CommunicateWithHost err = 0 [09:23:52]CheckOFDResponse [09:23:52]1017 (14) - 77093643461234 [09:23:52]1041 (16) - 0000000002094248 [09:23:52]1040 (4) - 2015 [09:23:52]1012 (4) - 28.07.2024 03:23 [09:23:52]1206 (1) - 0 [09:23:52]OFD Sender: Remove packet 2015 [09:23:52]ProducePacketName [09:23:52]name=ofd_packets/00002015 [09:23:52]NVStorageDeleteData [09:23:52]Write to MH i2c: 01 00 00 D9 40 19 [09:23:52]Write i2c OK [09:23:52]MH_I2C_Read... [09:23:52]Read from MH i2c: 01 [09:23:52]MH_I2C_Read... [09:23:52]Read from MH i2c: 01 07 00 [09:23:52]MH_I2C_Read... [09:23:52]Read from MH i2c: 01 07 00 D9 40 00 00 00 00 00 7D 0C A9 [09:23:52]RasterBufferAndPrint [09:23:52]line [09:23:52]line [09:23:52]line [09:23:52]line [09:23:52]line [09:23:52]written 0, free lines is 3210 [09:23:52]MH_Cut [09:23:52]Write to MH i2c: D1 01 00 E0 40 01 F2 [09:23:52]Write i2c OK [09:23:52]MH_I2C_Read... [09:23:52]Read from MH i2c: D1 [09:23:52]MH_I2C_Read... [09:23:52]Read from MH i2c: D1 01 00 [09:23:52]MH_I2C_Read... [09:23:52]Read from MH i2c: D1 01 00 E0 40 00 F1 [09:23:52]Write to MH i2c: 01 00 00 E1 40 21 [09:23:52]Write i2c OK [09:23:52]MH_I2C_Read... [09:23:52]OFD Sender: No OFD packet to send [09:23:53]*** Cut start [09:23:53]*** Partial cut [09:23:53]*** CUTSNS_PIN = 1 [09:23:53]*** CUTSNS_PIN = 0 [09:23:53]*** Brake cut motor [09:23:53]Read from MH i2c: 01 [09:23:53]MH_I2C_Read... [09:23:53]*** Stop cut motor [09:23:53]*** Cut end [09:23:53]Read from MH i2c: 01 07 00 [09:23:53]MH_I2C_Read... [09:23:53]Read from MH i2c: 01 07 00 E1 40 00 00 00 00 00 FF 0F 36 [09:23:53]process_action close_receipt done [09:23:53]requested_data is exist [09:23:53]produce_requested_data [09:23:53]requested_item fm.sn is exist - process it [09:23:53]wFMCommunicate request_size=4 [09:23:53]MH_SAM_APDU [09:23:53]CAPDU: 80 11 00 00 [09:23:53]Write to MH i2c: E2 08 00 E2 40 80 11 00 00 00 00 00 00 9C [09:23:53]Write i2c OK [09:23:53]MH_I2C_Read... [09:23:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:53]Read from MH i2c: E2 [09:23:53]MH_I2C_Read... [09:23:53]Read from MH i2c: E2 17 00 [09:23:53]MH_I2C_Read... [09:23:53]Read from MH i2c: E2 17 00 E2 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 EC [09:23:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [09:23:53]wFMCommunicate OK [09:23:53]requested_item fd.num is exist - process it [09:23:53]SAM_PROTO_GetFieldsCounters [09:23:53]wFMCommunicate request_size=4 [09:23:53]MH_SAM_APDU [09:23:53]CAPDU: 80 13 00 00 [09:23:53]Write to MH i2c: E2 08 00 E3 40 80 13 00 00 00 00 00 00 9F [09:23:53]Write i2c OK [09:23:53]MH_I2C_Read... [09:23:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:23:54]Read from MH i2c: E2 [09:23:54]MH_I2C_Read... [09:23:54]Read from MH i2c: E2 62 00 [09:23:54]MH_I2C_Read... [09:23:54]Read from MH i2c: E2 62 00 E3 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 DF 07 00 00 0E 04 04 00 0D 00 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 82 [09:23:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 DF 07 00 00 0E 04 04 00 0D 00 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 [09:23:54]wFMCommunicate OK [09:23:54]SAM_PROTO_GetFieldsCounters done [09:23:54]requested_item shift.num is exist - process it [09:23:54]requested_item shift.opened is exist - process it [09:23:54]req_shift_opened [09:23:54]FM_GetShiftState [09:23:54]SAM_PROTO_GetShiftState [09:23:54]wFMCommunicate request_size=4 [09:23:54]MH_SAM_APDU [09:23:54]CAPDU: 80 13 01 00 [09:23:54]Write to MH i2c: E2 08 00 E4 40 80 13 01 00 00 00 00 00 A1 [09:23:54]Write i2c OK [09:23:54]MH_I2C_Read... [09:23:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:54]Read from MH i2c: E2 [09:23:54]MH_I2C_Read... [09:23:54]Read from MH i2c: E2 0E 00 [09:23:54]MH_I2C_Read... [09:23:54]Read from MH i2c: E2 0E 00 E4 40 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 95 [09:23:54]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [09:23:54]wFMCommunicate OK [09:23:54]SAM_PROTO_GetShiftState done [09:23:54]FM_GetShiftState done [09:23:54]req_shift_opened done [09:23:54]requested_item shift.open_date is exist - process it [09:23:54]req_shift_open_date [09:23:54]req_shift_open_date done [09:23:54]produce_requested_data done [09:23:54]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2015,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [09:23:54]process_action_free close_receipt [09:23:54]json_value_free [09:23:54]json_value_free done [09:23:54]process_json_proto returns [09:23:54]Send response to host [09:23:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2015,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [09:23:54]free response buf [09:23:54]execute_script done [09:23:54]execute_script returns [09:23:54]free content buf [09:23:54]Sock 9.Close socket [09:23:54]Sock 9.Thread stoped [09:23:57]OFD Sender: No OFD packet to send [09:24:02]OFD Sender: No OFD packet to send [09:24:07]OFD Sender: No OFD packet to send [09:24:12]OFD Sender: No OFD packet to send [09:24:17]OFD Sender: No OFD packet to send [09:24:22]OFD Sender: No OFD packet to send [09:24:27]OFD Sender: No OFD packet to send [09:24:32]OFD Sender: No OFD packet to send [09:24:37]OFD Sender: No OFD packet to send [09:24:42]OFD Sender: No OFD packet to send [09:24:47]OFD Sender: No OFD packet to send [09:24:52]OFD Sender: No OFD packet to send [09:24:57]OFD Sender: No OFD packet to send [09:25:02]OFD Sender: No OFD packet to send [09:25:07]OFD Sender: No OFD packet to send [09:25:12]OFD Sender: No OFD packet to send [09:25:17]OFD Sender: No OFD packet to send [09:25:22]OFD Sender: No OFD packet to send [09:25:27]OFD Sender: No OFD packet to send [09:25:32]OFD Sender: No OFD packet to send [09:25:37]OFD Sender: No OFD packet to send [09:25:42]OFD Sender: No OFD packet to send [09:25:47]OFD Sender: No OFD packet to send [09:25:52]OFD Sender: No OFD packet to send [09:25:57]OFD Sender: No OFD packet to send [09:26:02]OFD Sender: No OFD packet to send [09:26:07]OFD Sender: No OFD packet to send [09:26:12]OFD Sender: No OFD packet to send [09:26:17]OFD Sender: No OFD packet to send [09:26:22]OFD Sender: No OFD packet to send [09:26:27]OFD Sender: No OFD packet to send [09:26:32]OFD Sender: No OFD packet to send [09:26:37]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:11]accept exits with 8 [09:29:11]New connection [09:29:11]New thread 3067317604 created [09:29:11]Thread 3067460964 joined [09:29:11]Waiting for new connection... [09:29:11] Sock 8.Parse request [09:29:11]Sock 8.Check first char [09:29:11]Sock 8.First char is OK [09:29:11]request: POST /json_proto HTTP/1.0 [09:29:11]Method: POST [09:29:11]URL: /json_proto [09:29:11]Method is POST - this is cgi request [09:29:11]url: /json_proto [09:29:11]query_string will be loaded in cgi processing [09:29:11]execute_cgi json_proto POST (null) [09:29:11]execute_cgi path=json_proto method=POST [09:29:11]POST find Content-Length [09:29:11]Host: 172.17.45.132:8080 [09:29:11]Content-Length: 623 [09:29:11]Content-Type: application/json [09:29:11] [09:29:11]POST finish read [09:29:11]Found Content-Length = 623 [09:29:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126319", "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" ] } } [09:29:11]execute_script... [09:29: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)126319", "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" ] } } [09:29:11]POST & json_proto [09:29:11]process_json_proto [09:29:11]json parsed OK: [09:29:11]protocol is kg_v1.0 [09:29:11]action value=close_receipt [09:29:11]process_action close_receipt [09:29:11]cmd_close_receipt [09:29:11]MH_GetDate [09:29:11]Write to MH i2c: F0 00 00 E5 40 14 [09:29:11]Write i2c OK [09:29:11]MH_I2C_Read... [09:29:11]Read from MH i2c: F0 [09:29:11]MH_I2C_Read... [09:29:11]Read from MH i2c: F0 09 00 [09:29:11]MH_I2C_Read... [09:29:11]Read from MH i2c: F0 09 00 E5 40 00 6B 0F A6 66 E3 0B 90 66 87 [09:29:11]GetLastDocTimeStamp 1722158634 [09:29:11]current date 1722158955 [09:29:11]FM_GetShiftState [09:29:11]SAM_PROTO_GetShiftState [09:29:11]wFMCommunicate request_size=4 [09:29:11]MH_SAM_APDU [09:29:11]CAPDU: 80 13 01 00 [09:29:11]Write to MH i2c: E2 08 00 E6 40 80 13 01 00 00 00 00 00 A3 [09:29:11]Write i2c OK [09:29:11]MH_I2C_Read... [09:29:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:29:11]Read from MH i2c: E2 [09:29:11]MH_I2C_Read... [09:29:11]Read from MH i2c: E2 0E 00 [09:29:11]MH_I2C_Read... [09:29:11]Read from MH i2c: E2 0E 00 E6 40 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 97 [09:29:11]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [09:29:11]wFMCommunicate OK [09:29:11]SAM_PROTO_GetShiftState done [09:29:11]FM_GetShiftState done [09:29:11]opened in 1722125648 [09:29:11]opened+sec_in_day 1722212048 [09:29:11]quantity*price = 42500 [09:29:11]sum+1 = 42501 [09:29:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 425.00 НСП 1% : 3.76 НДС 12% : 45.13 Наличными: 425.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 67 28.07.2024 09:29 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2016 ФПД: 173293238029044 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T092916&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2016&fm=173293238029044&tin=02508201610067®Number=0000000000189667&sum=42500 0 [09:29:12]StoreToDocumentArchive [09:29:12]shift 13 fd 2016 [09:29:12]save to /storage/0013/doc_00002016 [09:29:12]save last doc name /storage/0013/doc_00002016 to /storage/kkm_last_doc_name [09:29:12]save OK [09:29:12]Clear old archive folders... [09:29:12]ProcessDocumentItem done err = 0, tmpTLVsize=267 [09:29:12]tlvbuf is 0208D290 [09:29:12]SAM_PROTO_ClearQueue [09:29:12]wFMCommunicate request_size=4 [09:29:12]MH_SAM_APDU [09:29:12]CAPDU: 80 09 00 00 [09:29:12]Write to MH i2c: E2 08 00 F3 40 80 09 00 00 00 00 00 00 A5 [09:29:12]Write i2c OK [09:29:12]MH_I2C_Read... [09:29:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:29:12]Read from MH i2c: E2 [09:29:12]MH_I2C_Read... [09:29:12]Read from MH i2c: E2 03 00 [09:29:12]MH_I2C_Read... [09:29:12]Read from MH i2c: E2 03 00 F3 40 00 90 00 A7 [09:29:12]RAPDU: 90 00 [09:29:12]wFMCommunicate OK [09:29:12]SAM_PROTO_ClearQueue done [09:29:12]KKMCreateOFDPacket [09:29:12]OFDProtocolAddRootSTLVToBuf [09:29:12]FM_MakeSignedData [09:29:12]FM_MakeSignedData [09:29:12]SAM_PROTO_SignData [09:29:12]wFMCommunicate request_size=4 [09:29:12]MH_SAM_APDU [09:29:12]CAPDU: 80 0D 01 02 [09:29:12]Write to MH i2c: E2 08 00 F4 40 80 0D 01 02 00 00 00 00 AD [09:29:12]Write i2c OK [09:29:12]MH_I2C_Read... [09:29:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:29:12]Read from MH i2c: E2 [09:29:12]MH_I2C_Read... [09:29:12]Read from MH i2c: E2 03 00 [09:29:12]MH_I2C_Read... [09:29:12]Read from MH i2c: E2 03 00 F4 40 00 90 00 A8 [09:29:12]RAPDU: 90 00 [09:29:12]wFMCommunicate OK [09:29:12]wFMCommunicate request_size=255 [09:29:12]MH_SAM_APDU [09:29:12]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 43 00 00 00 F4 03 04 00 6C 0F A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 [09:29:12]Write to MH i2c: E2 02 01 F5 40 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 43 00 00 00 F4 03 04 00 6C 0F A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 00 00 70 [09:29:12]Write i2c OK [09:29:12]MH_I2C_Read... [09:29:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:29:12]Read from MH i2c: E2 [09:29:12]MH_I2C_Read... [09:29:12]Read from MH i2c: E2 03 00 [09:29:12]MH_I2C_Read... [09:29:12]Read from MH i2c: E2 03 00 F5 40 00 90 00 A9 [09:29:12]RAPDU: 90 00 [09:29:12]wFMCommunicate OK [09:29:12]wFMCommunicate request_size=26 [09:29:12]MH_SAM_APDU [09:29:12]CAPDU: 80 0D 02 02 15 32 34 38 10 04 04 00 E0 07 00 00 35 04 06 00 9D 9B F9 E5 0A F4 [09:29:12]Write to MH i2c: E2 1D 00 F6 40 80 0D 02 02 15 00 32 34 38 10 04 04 00 E0 07 00 00 35 04 06 00 9D 9B F9 E5 0A F4 00 00 CA [09:29:12]Write i2c OK [09:29:12]MH_I2C_Read... [09:29:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:29:12]Read from MH i2c: E2 [09:29:12]MH_I2C_Read... [09:29:12]Read from MH i2c: E2 03 00 [09:29:12]MH_I2C_Read... [09:29:12]Read from MH i2c: E2 03 00 F6 40 00 90 00 AA [09:29:12]RAPDU: 90 00 [09:29:12]wFMCommunicate OK [09:29:12]wFMCommunicate request_size=4 [09:29:12]MH_SAM_APDU [09:29:12]CAPDU: 80 0D 03 02 [09:29:12]Write to MH i2c: E2 08 00 F7 40 80 0D 03 02 00 00 00 00 B2 [09:29:12]Write i2c OK [09:29:12]MH_I2C_Read... [09:29:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:29:12]Read from MH i2c: E2 [09:29:12]MH_I2C_Read... [09:29:12]Read from MH i2c: E2 0B 00 [09:29:12]MH_I2C_Read... [09:29:12]Read from MH i2c: E2 0B 00 F7 40 00 11 CC 81 93 8D 76 4D 3C 90 00 30 [09:29:12]RAPDU: 11 CC 81 93 8D 76 4D 3C 90 00 [09:29:12]wFMCommunicate OK [09:29:12]SAM_PROTO_SignData done [09:29:12]FM_MakeSignedData done [09:29:12]CreateOFDProtocolMessage [09:29:12]wFMCommunicate request_size=4 [09:29:12]MH_SAM_APDU [09:29:12]CAPDU: 80 11 00 00 [09:29:12]Write to MH i2c: E2 08 00 F8 40 80 11 00 00 00 00 00 00 B2 [09:29:12]Write i2c OK [09:29:12]MH_I2C_Read... [09:29:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:29:12]Read from MH i2c: E2 [09:29:12]MH_I2C_Read... [09:29:12]Read from MH i2c: E2 17 00 [09:29:12]MH_I2C_Read... [09:29:12]Read from MH i2c: E2 17 00 F8 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 02 [09:29:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [09:29:12]wFMCommunicate OK [09:29:12]CreateOFDProtocolMessage done [09:29:12]OFDSenderStorePacket 2016 [09:29:12]StoreOFDPacket docnum=2016 [09:29:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 1F 01 00 00 98 A7 17 01 AC F4 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 43 00 00 00 F4 03 04 00 6C 0F A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 E0 07 00 00 35 04 06 00 9D 9B F9 E5 0A F4 11 CC 81 93 8D 76 4D 3C [09:29:12]CheckFolder [09:29:12]dirname=/storage/ofd_packets [09:29:12]CheckFolder done [09:29:12]ProducePacketName [09:29:12]name=ofd_packets/00002016 [09:29:12]NVStorageSaveData ofd_packets/00002016 [09:29:12]File name is /storage/ofd_packets/00002016 [09:29:12]Write 317 bytes [09:29:12]NVStorageSaveData done [09:29:12]OFDSenderStorePacket done [09:29:12]KKMCreateOFDPacket done [09:29:12]NVStorageSaveData kkm_last_timestamp [09:29:12]File name is /storage/kkm_last_timestamp [09:29:12]Write 4 bytes [09:29:12]NVStorageSaveData done [09:29:12]ExternCall_PrintAddStr [09:29:12]wPrintStart [09:29:12]Write to MH i2c: 01 00 00 F9 40 39 [09:29:12]OFD Sender: Processing packet 2016 [packets to send 1, broken 0] [09:29:12]ProducePacketName [09:29:12]name=ofd_packets/00002016 [09:29:12]OFD Sender: To server: pG, [09:29:12]CommunicateWithHost lk.salyk.kg:30040 [09:29:12]ConnectInit lk.salyk.kg [09:29:12]Write i2c OK [09:29:12]MH_I2C_Read... [09:29:12]Read from MH i2c: 01 [09:29:12]MH_I2C_Read... [09:29:12]Read from MH i2c: 01 07 00 [09:29:12]MH_I2C_Read... [09:29:12]Read from MH i2c: 01 07 00 F9 40 00 00 00 00 00 FF 0F 4E [09:29:12]RasterBufferAndPrint [09:29:12]line Счет N : (3)126319 [09:29:12]line ИНН: 02508201610067 [09:29:12]line Контрольно-Кассовый Чек [09:29:12]line ПРОДАЖА [09:29:12]line Товар: 4700003150486 [09:29:12]line Водка Ороон 0,5 [09:29:12]line 1.000 * 425.00 [09:29:12]line = 425.00 [09:29:12]line НДС 12% НСП 1% [09:29:12]line > о реализуемом товаре [09:29:12]line ИТОГО: 425.00 [09:29:12]line НСП 1% : 3.76 [09:29:12]line НДС 12% : 45.13 [09:29:12]line Наличными: 425.00 [09:29:12]line Безнал.: 0.00 [09:29:12]line Место: АЗС № 127 "Партнер Нефть" [09:29:12]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [09:29:12]line СНО: Общий режим [09:29:12]line Чек 67 28.07.2024 09:29 [09:29:12]line Смена: 13 ФФД: 1.0 [09:29:12]line ЗНМ: 0300000161 [09:29:12]line РНМ: 0000000000189667 [09:29:12]line Версия ККМ: v1.0 [09:29:12]line ФМ: 0000000002094248 [09:29:12]line ФД: 2016 [09:29:12]line ФПД: 173293238029044 [09:29:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T092916&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2016&fm=173293238029044&tin=02508201610067®Number=0000000000189667&sum=42500 [09:29:13]line 0 [09:29:13]Connected sock=10 [09:29:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 1F 01 00 00 98 A7 17 01 AC F4 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 43 00 00 00 F4 03 04 00 6C 0F A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 E0 07 00 00 35 04 06 00 9D 9B F9 E5 0A F4 11 CC 81 93 8D 76 4D 3C [09:29:13]written 0, free lines is 4095 [09:29:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 EE F2 47 00 86 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 32 30 39 34 32 34 38 10 04 04 00 E0 07 00 00 F4 03 04 00 DB BA A5 66 B6 04 01 00 00 60 34 15 5E E3 66 A9 5B [09:29:13]CommunicateWithHost err = 0 [09:29:13]CheckOFDResponse [09:29:13]1017 (14) - 77093643461234 [09:29:13]1041 (16) - 0000000002094248 [09:29:13]1040 (4) - 2016 [09:29:13]1012 (4) - 28.07.2024 03:28 [09:29:13]1206 (1) - 0 [09:29:13]OFD Sender: Remove packet 2016 [09:29:13]ProducePacketName [09:29:13]name=ofd_packets/00002016 [09:29:13]NVStorageDeleteData [09:29:13]Write to MH i2c: 01 00 00 21 41 62 [09:29:13]Write i2c OK [09:29:13]MH_I2C_Read... [09:29:13]Read from MH i2c: 01 [09:29:13]MH_I2C_Read... [09:29:13]Read from MH i2c: 01 07 00 [09:29:13]MH_I2C_Read... [09:29:13]Read from MH i2c: 01 07 00 21 41 00 00 00 00 00 23 0D 99 [09:29:13]RasterBufferAndPrint [09:29:13]line [09:29:13]line [09:29:13]line [09:29:13]line [09:29:13]line [09:29:13]written 0, free lines is 3372 [09:29:13]MH_Cut [09:29:13]Write to MH i2c: D1 01 00 28 41 01 3B [09:29:13]Write i2c OK [09:29:13]MH_I2C_Read... [09:29:13]Read from MH i2c: D1 [09:29:13]MH_I2C_Read... [09:29:13]Read from MH i2c: D1 01 00 [09:29:13]MH_I2C_Read... [09:29:13]Read from MH i2c: D1 01 00 28 41 00 3A [09:29:13]Write to MH i2c: 01 00 00 29 41 6A [09:29:13]Write i2c OK [09:29:13]MH_I2C_Read... [09:29:13]OFD Sender: No OFD packet to send [09:29:14]*** Cut start [09:29:14]*** Partial cut [09:29:14]*** CUTSNS_PIN = 1 [09:29:14]*** CUTSNS_PIN = 0 [09:29:14]*** Brake cut motor [09:29:14]Read from MH i2c: 01 [09:29:14]MH_I2C_Read... [09:29:14]*** Stop cut motor [09:29:14]*** Cut end [09:29:14]Read from MH i2c: 01 07 00 [09:29:14]MH_I2C_Read... [09:29:14]Read from MH i2c: 01 07 00 29 41 00 00 00 00 00 FF 0F 7F [09:29:14]process_action close_receipt done [09:29:14]requested_data is exist [09:29:14]produce_requested_data [09:29:14]requested_item fm.sn is exist - process it [09:29:14]wFMCommunicate request_size=4 [09:29:14]MH_SAM_APDU [09:29:14]CAPDU: 80 11 00 00 [09:29:14]Write to MH i2c: E2 08 00 2A 41 80 11 00 00 00 00 00 00 E5 [09:29:14]Write i2c OK [09:29:14]MH_I2C_Read... [09:29:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:29:14]Read from MH i2c: E2 [09:29:14]MH_I2C_Read... [09:29:14]Read from MH i2c: E2 17 00 [09:29:14]MH_I2C_Read... [09:29:14]Read from MH i2c: E2 17 00 2A 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 35 [09:29:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [09:29:14]wFMCommunicate OK [09:29:14]requested_item fd.num is exist - process it [09:29:14]SAM_PROTO_GetFieldsCounters [09:29:14]wFMCommunicate request_size=4 [09:29:14]MH_SAM_APDU [09:29:14]CAPDU: 80 13 00 00 [09:29:14]Write to MH i2c: E2 08 00 2B 41 80 13 00 00 00 00 00 00 E8 [09:29:14]Write i2c OK [09:29:14]MH_I2C_Read... [09:29:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:29:15]Read from MH i2c: E2 [09:29:15]MH_I2C_Read... [09:29:15]Read from MH i2c: E2 62 00 [09:29:15]MH_I2C_Read... [09:29:15]Read from MH i2c: E2 62 00 2B 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 E0 07 00 00 0E 04 04 00 0D 00 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 CF [09:29:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 E0 07 00 00 0E 04 04 00 0D 00 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 [09:29:15]wFMCommunicate OK [09:29:15]SAM_PROTO_GetFieldsCounters done [09:29:15]requested_item shift.num is exist - process it [09:29:15]requested_item shift.opened is exist - process it [09:29:15]req_shift_opened [09:29:15]FM_GetShiftState [09:29:15]SAM_PROTO_GetShiftState [09:29:15]wFMCommunicate request_size=4 [09:29:15]MH_SAM_APDU [09:29:15]CAPDU: 80 13 01 00 [09:29:15]Write to MH i2c: E2 08 00 2C 41 80 13 01 00 00 00 00 00 EA [09:29:15]Write i2c OK [09:29:15]MH_I2C_Read... [09:29:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:29:15]Read from MH i2c: E2 [09:29:15]MH_I2C_Read... [09:29:15]Read from MH i2c: E2 0E 00 [09:29:15]MH_I2C_Read... [09:29:15]Read from MH i2c: E2 0E 00 2C 41 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 DE [09:29:15]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [09:29:15]wFMCommunicate OK [09:29:15]SAM_PROTO_GetShiftState done [09:29:15]FM_GetShiftState done [09:29:15]req_shift_opened done [09:29:15]requested_item shift.open_date is exist - process it [09:29:15]req_shift_open_date [09:29:15]req_shift_open_date done [09:29:15]produce_requested_data done [09:29:15]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2016,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [09:29:15]process_action_free close_receipt [09:29:15]json_value_free [09:29:15]json_value_free done [09:29:15]process_json_proto returns [09:29:15]Send response to host [09:29:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2016,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [09:29:15]free response buf [09:29:15]execute_script done [09:29:15]execute_script returns [09:29:15]free content buf [09:29:15]Sock 8.Close socket [09:29:15]Sock 8.Thread stoped [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:13]OFD Sender: No OFD packet to send [09:31:18]OFD Sender: No OFD packet to send [09:31:23]OFD Sender: No OFD packet to send [09:31:28]OFD Sender: No OFD packet to send [09:31:33]OFD Sender: No OFD packet to send [09:31:38]OFD Sender: No OFD packet to send [09:31:43]OFD Sender: No OFD packet to send [09:31:48]OFD Sender: No OFD packet to send [09:31:53]OFD Sender: No OFD packet to send [09:31:58]OFD Sender: No OFD packet to send [09:32:03]OFD Sender: No OFD packet to send [09:32:08]OFD Sender: No OFD packet to send [09:32:13]OFD Sender: No OFD packet to send [09:32:18]OFD Sender: No OFD packet to send [09:32:23]OFD Sender: No OFD packet to send [09:32:28]OFD Sender: No OFD packet to send [09:32:33]OFD Sender: No OFD packet to send [09:32:38]OFD Sender: No OFD packet to send [09:32:43]OFD Sender: No OFD packet to send [09:32:49]OFD Sender: No OFD packet to send [09:32:54]OFD Sender: No OFD packet to send [09:32:59]OFD Sender: No OFD packet to send [09:33:04]OFD Sender: No OFD packet to send [09:33:09]OFD Sender: No OFD packet to send [09:33:14]OFD Sender: No OFD packet to send [09:33:19]OFD Sender: No OFD packet to send [09:33:24]OFD Sender: No OFD packet to send [09:33:29]OFD Sender: No OFD packet to send [09:33:34]OFD Sender: No OFD packet to send [09:33:39]OFD Sender: No OFD packet to send [09:33:44]OFD Sender: No OFD packet to send [09:33:49]OFD Sender: No OFD packet to send [09:33:54]OFD Sender: No OFD packet to send [09:33:59]OFD Sender: No OFD packet to send [09:34:04]OFD Sender: No OFD packet to send [09:34:09]OFD Sender: No OFD packet to send [09:34:14]OFD Sender: No OFD packet to send [09:34:19]OFD Sender: No OFD packet to send [09:34:24]OFD Sender: No OFD packet to send [09:34:29]OFD Sender: No OFD packet to send [09:34:34]OFD Sender: No OFD packet to send [09:34:39]OFD Sender: No OFD packet to send [09:34:44]OFD Sender: No OFD packet to send [09:34:49]OFD Sender: No OFD packet to send [09:34:54]OFD Sender: No OFD packet to send [09:34:59]OFD Sender: No OFD packet to send [09:35:04]OFD Sender: No OFD packet to send [09:35:09]OFD Sender: No OFD packet to send [09:35:14]OFD Sender: No OFD packet to send [09:35:19]OFD Sender: No OFD packet to send [09:35:24]OFD Sender: No OFD packet to send [09:35:29]OFD Sender: No OFD packet to send [09:35:34]OFD Sender: No OFD packet to send [09:35:39]OFD Sender: No OFD packet to send [09:35:44]OFD Sender: No OFD packet to send [09:35:49]OFD Sender: No OFD packet to send [09:35:54]OFD Sender: No OFD packet to send [09:35:59]OFD Sender: No OFD packet to send [09:36:04]OFD Sender: No OFD packet to send [09:36:09]OFD Sender: No OFD packet to send [09:36:14]OFD Sender: No OFD packet to send [09:36:19]OFD Sender: No OFD packet to send [09:36:24]OFD Sender: No OFD packet to send [09:36:29]OFD Sender: No OFD packet to send [09:36:34]OFD Sender: No OFD packet to send [09:36:39]OFD Sender: No OFD packet to send [09:36:44]OFD Sender: No OFD packet to send [09:36:49]OFD Sender: No OFD packet to send [09:36:54]OFD Sender: No OFD packet to send [09:36:59]OFD Sender: No OFD packet to send [09:37:04]OFD Sender: No OFD packet to send [09:37:09]OFD Sender: No OFD packet to send [09:37:14]OFD Sender: No OFD packet to send [09:37:19]OFD Sender: No OFD packet to send [09:37:24]OFD Sender: No OFD packet to send [09:37:29]OFD Sender: No OFD packet to send [09:37:34]OFD Sender: No OFD packet to send [09:37:39]OFD Sender: No OFD packet to send [09:37:44]OFD Sender: No OFD packet to send [09:37:49]OFD Sender: No OFD packet to send [09:37:54]OFD Sender: No OFD packet to send [09:37:59]OFD Sender: No OFD packet to send [09:38:04]OFD Sender: No OFD packet to send [09:38:09]OFD Sender: No OFD packet to send [09:38:14]OFD Sender: No OFD packet to send [09:38:19]OFD Sender: No OFD packet to send [09:38:24]OFD Sender: No OFD packet to send [09:38:29]OFD Sender: No OFD packet to send [09:38:34]OFD Sender: No OFD packet to send [09:38:39]OFD Sender: No OFD packet to send [09:38:44]OFD Sender: No OFD packet to send [09:38:49]OFD Sender: No OFD packet to send [09:38:54]OFD Sender: No OFD packet to send [09:38:59]OFD Sender: No OFD packet to send [09:39:04]OFD Sender: No OFD packet to send [09:39:09]OFD Sender: No OFD packet to send [09:39:14]OFD Sender: No OFD packet to send [09:39:19]OFD Sender: No OFD packet to send [09:39:24]OFD Sender: No OFD packet to send [09:39:29]OFD Sender: No OFD packet to send [09:39:34]OFD Sender: No OFD packet to send [09:39:39]OFD Sender: No OFD packet to send [09:39:44]OFD Sender: No OFD packet to send [09:39:49]OFD Sender: No OFD packet to send [09:39:54]OFD Sender: No OFD packet to send [09:39:59]OFD Sender: No OFD packet to send [09:40:04]OFD Sender: No OFD packet to send [09:40:09]accept exits with 9 [09:40:09]New connection [09:40:09]New thread 3067460964 created [09:40:09]Thread 3067317604 joined [09:40:09]Waiting for new connection... [09:40:09] Sock 9.Parse request [09:40:09]Sock 9.Check first char [09:40:09]Sock 9.First char is OK [09:40:09]request: POST /json_proto HTTP/1.0 [09:40:09]Method: POST [09:40:09]URL: /json_proto [09:40:09]Method is POST - this is cgi request [09:40:09]url: /json_proto [09:40:09]query_string will be loaded in cgi processing [09:40:09]execute_cgi json_proto POST (null) [09:40:09]execute_cgi path=json_proto method=POST [09:40:09]POST find Content-Length [09:40:09]Host: 172.17.45.132:8080 [09:40:09]Content-Length: 645 [09:40:09]Content-Type: application/json [09:40:09] [09:40:09]POST finish read [09:40:09]Found Content-Length = 645 [09:40:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126320", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\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" ] } } [09:40:09]execute_script... [09:40:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126320", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\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" ] } } [09:40:09]POST & json_proto [09:40:09]process_json_proto [09:40:09]json parsed OK: [09:40:09]protocol is kg_v1.0 [09:40:09]action value=close_receipt [09:40:09]process_action close_receipt [09:40:09]cmd_close_receipt [09:40:09]MH_GetDate [09:40:09]Write to MH i2c: F0 00 00 2D 41 5D [09:40:09]Write i2c OK [09:40:09]MH_I2C_Read... [09:40:09]Read from MH i2c: F0 [09:40:09]MH_I2C_Read... [09:40:09]Read from MH i2c: F0 09 00 [09:40:09]MH_I2C_Read... [09:40:09]Read from MH i2c: F0 09 00 2D 41 00 FE 11 A6 66 E3 0B 90 66 65 [09:40:09]GetLastDocTimeStamp 1722158956 [09:40:09]current date 1722159614 [09:40:09]FM_GetShiftState [09:40:09]SAM_PROTO_GetShiftState [09:40:09]wFMCommunicate request_size=4 [09:40:09]MH_SAM_APDU [09:40:09]CAPDU: 80 13 01 00 [09:40:09]Write to MH i2c: E2 08 00 2E 41 80 13 01 00 00 00 00 00 EC [09:40:09]Write i2c OK [09:40:09]MH_I2C_Read... [09:40:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:09]Read from MH i2c: E2 [09:40:09]MH_I2C_Read... [09:40:09]Read from MH i2c: E2 0E 00 [09:40:09]MH_I2C_Read... [09:40:09]Read from MH i2c: E2 0E 00 2E 41 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 E0 [09:40:09]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [09:40:09]wFMCommunicate OK [09:40:09]SAM_PROTO_GetShiftState done [09:40:09]FM_GetShiftState done [09:40:09]opened in 1722125648 [09:40:09]opened+sec_in_day 1722212048 [09:40:09]quantity*price = 6500 [09:40:09]sum+1 = 6501 [09:40:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 68 28.07.2024 09:40 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2017 ФПД: 101836969050319 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T094014&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2017&fm=101836969050319&tin=02508201610067®Number=0000000000189667&sum=6500 0 [09:40:10]StoreToDocumentArchive [09:40:10]shift 13 fd 2017 [09:40:10]save to /storage/0013/doc_00002017 [09:40:10]save last doc name /storage/0013/doc_00002017 to /storage/kkm_last_doc_name [09:40:10]save OK [09:40:10]Clear old archive folders... [09:40:10]ProcessDocumentItem done err = 0, tmpTLVsize=272 [09:40:10]tlvbuf is 02033700 [09:40:10]SAM_PROTO_ClearQueue [09:40:10]wFMCommunicate request_size=4 [09:40:10]MH_SAM_APDU [09:40:10]CAPDU: 80 09 00 00 [09:40:10]Write to MH i2c: E2 08 00 3B 41 80 09 00 00 00 00 00 00 EE [09:40:10]Write i2c OK [09:40:10]MH_I2C_Read... [09:40:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:40:10]Read from MH i2c: E2 [09:40:10]MH_I2C_Read... [09:40:10]Read from MH i2c: E2 03 00 [09:40:10]MH_I2C_Read... [09:40:10]Read from MH i2c: E2 03 00 3B 41 00 90 00 F0 [09:40:10]RAPDU: 90 00 [09:40:10]wFMCommunicate OK [09:40:10]SAM_PROTO_ClearQueue done [09:40:10]KKMCreateOFDPacket [09:40:10]OFDProtocolAddRootSTLVToBuf [09:40:10]FM_MakeSignedData [09:40:10]FM_MakeSignedData [09:40:10]SAM_PROTO_SignData [09:40:10]wFMCommunicate request_size=4 [09:40:10]MH_SAM_APDU [09:40:10]CAPDU: 80 0D 01 02 [09:40:10]Write to MH i2c: E2 08 00 3C 41 80 0D 01 02 00 00 00 00 F6 [09:40:10]Write i2c OK [09:40:10]MH_I2C_Read... [09:40:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:40:10]Read from MH i2c: E2 [09:40:10]MH_I2C_Read... [09:40:10]Read from MH i2c: E2 03 00 [09:40:10]MH_I2C_Read... [09:40:10]Read from MH i2c: E2 03 00 3C 41 00 90 00 F1 [09:40:10]RAPDU: 90 00 [09:40:10]wFMCommunicate OK [09:40:10]wFMCommunicate request_size=255 [09:40:10]MH_SAM_APDU [09:40:10]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD 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 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 44 00 00 00 F4 03 04 00 FE 11 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 [09:40:10]Write to MH i2c: E2 02 01 3D 41 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD 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 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 44 00 00 00 F4 03 04 00 FE 11 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 00 00 BA [09:40:10]Write i2c OK [09:40:10]MH_I2C_Read... [09:40:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:10]Read from MH i2c: E2 [09:40:10]MH_I2C_Read... [09:40:10]Read from MH i2c: E2 03 00 [09:40:10]MH_I2C_Read... [09:40:10]Read from MH i2c: E2 03 00 3D 41 00 90 00 F2 [09:40:10]RAPDU: 90 00 [09:40:10]wFMCommunicate OK [09:40:10]wFMCommunicate request_size=31 [09:40:10]MH_SAM_APDU [09:40:10]CAPDU: 80 0D 02 02 1A 30 32 30 39 34 32 34 38 10 04 04 00 E1 07 00 00 35 04 06 00 5C 9E C4 5D 80 CF [09:40:10]Write to MH i2c: E2 22 00 3E 41 80 0D 02 02 1A 00 30 32 30 39 34 32 34 38 10 04 04 00 E1 07 00 00 35 04 06 00 5C 9E C4 5D 80 CF 00 00 73 [09:40:10]Write i2c OK [09:40:10]MH_I2C_Read... [09:40:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:10]Read from MH i2c: E2 [09:40:10]MH_I2C_Read... [09:40:10]Read from MH i2c: E2 03 00 [09:40:10]MH_I2C_Read... [09:40:10]Read from MH i2c: E2 03 00 3E 41 00 90 00 F3 [09:40:10]RAPDU: 90 00 [09:40:10]wFMCommunicate OK [09:40:10]wFMCommunicate request_size=4 [09:40:10]MH_SAM_APDU [09:40:10]CAPDU: 80 0D 03 02 [09:40:10]Write to MH i2c: E2 08 00 3F 41 80 0D 03 02 00 00 00 00 FB [09:40:10]Write i2c OK [09:40:10]MH_I2C_Read... [09:40:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:40:10]Read from MH i2c: E2 [09:40:10]MH_I2C_Read... [09:40:10]Read from MH i2c: E2 0B 00 [09:40:10]MH_I2C_Read... [09:40:10]Read from MH i2c: E2 0B 00 3F 41 00 E8 C2 7E C1 38 16 E7 0A 90 00 24 [09:40:10]RAPDU: E8 C2 7E C1 38 16 E7 0A 90 00 [09:40:10]wFMCommunicate OK [09:40:10]SAM_PROTO_SignData done [09:40:10]FM_MakeSignedData done [09:40:10]CreateOFDProtocolMessage [09:40:10]wFMCommunicate request_size=4 [09:40:10]MH_SAM_APDU [09:40:10]CAPDU: 80 11 00 00 [09:40:10]Write to MH i2c: E2 08 00 40 41 80 11 00 00 00 00 00 00 FB [09:40:10]Write i2c OK [09:40:10]MH_I2C_Read... [09:40:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:10]Read from MH i2c: E2 [09:40:10]MH_I2C_Read... [09:40:10]Read from MH i2c: E2 17 00 [09:40:10]MH_I2C_Read... [09:40:10]Read from MH i2c: E2 17 00 40 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 4B [09:40:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [09:40:10]wFMCommunicate OK [09:40:10]CreateOFDProtocolMessage done [09:40:10]OFDSenderStorePacket 2017 [09:40:10]StoreOFDPacket docnum=2017 [09:40:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 24 01 00 00 1D D6 1C 01 77 46 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD 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 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 44 00 00 00 F4 03 04 00 FE 11 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 E1 07 00 00 35 04 06 00 5C 9E C4 5D 80 CF E8 C2 7E C1 38 16 E7 0A [09:40:10]CheckFolder [09:40:10]dirname=/storage/ofd_packets [09:40:10]CheckFolder done [09:40:10]ProducePacketName [09:40:10]name=ofd_packets/00002017 [09:40:10]NVStorageSaveData ofd_packets/00002017 [09:40:10]File name is /storage/ofd_packets/00002017 [09:40:10]Write 322 bytes [09:40:10]NVStorageSaveData done [09:40:10]OFDSenderStorePacket done [09:40:10]KKMCreateOFDPacket done [09:40:10]NVStorageSaveData kkm_last_timestamp [09:40:10]File name is /storage/kkm_last_timestamp [09:40:10]Write 4 bytes [09:40:10]NVStorageSaveData done [09:40:10]ExternCall_PrintAddStr [09:40:10]wPrintStart [09:40:10]Write to MH i2c: 01 00 00 41 41 82 [09:40:10]Write i2c OK [09:40:10]MH_I2C_Read... [09:40:10]Read from MH i2c: 01 [09:40:10]MH_I2C_Read... [09:40:10]Read from MH i2c: 01 07 00 [09:40:10]MH_I2C_Read... [09:40:10]Read from MH i2c: 01 07 00 41 41 00 00 00 00 00 FF 0F 97 [09:40:10]RasterBufferAndPrint [09:40:10]line Счет N : (3)126320 [09:40:10]line ИНН: 02508201610067 [09:40:10]line Контрольно-Кассовый Чек [09:40:10]line ПРОДАЖА [09:40:10]line Товар: 47011656 [09:40:10]line Водка Пшеничная 0,1л [09:40:10]line 1.000 * 65.00 [09:40:10]line = 65.00 [09:40:10]line НДС 12% НСП 1% [09:40:10]line > о реализуемом товаре [09:40:10]line ИТОГО: 65.00 [09:40:10]line НСП 1% : 0.57 [09:40:10]line НДС 12% : 6.90 [09:40:10]line Наличными: 65.00 [09:40:10]line Безнал.: 0.00 [09:40:10]line Место: АЗС № 127 "Партнер Нефть" [09:40:10]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [09:40:10]line СНО: Общий режим [09:40:10]line Чек 68 28.07.2024 09:40 [09:40:10]line Смена: 13 ФФД: 1.0 [09:40:10]line ЗНМ: 0300000161 [09:40:10]line РНМ: 0000000000189667 [09:40:10]line Версия ККМ: v1.0 [09:40:10]line ФМ: 0000000002094248 [09:40:10]line ФД: 2017 [09:40:10]line ФПД: 101836969050319 [09:40:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T094014&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2017&fm=101836969050319&tin=02508201610067®Number=0000000000189667&sum=6500 [09:40:11]line 0 [09:40:11]OFD Sender: Processing packet 2017 [packets to send 1, broken 0] [09:40:11]ProducePacketName [09:40:11]name=ofd_packets/00002017 [09:40:11]OFD Sender: To server: pG, [09:40:11]CommunicateWithHost lk.salyk.kg:30040 [09:40:11]ConnectInit lk.salyk.kg [09:40:11]written 0, free lines is 4095 [09:40:11]Connected sock=10 [09:40:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 24 01 00 00 1D D6 1C 01 77 46 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD 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 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 44 00 00 00 F4 03 04 00 FE 11 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 E1 07 00 00 35 04 06 00 5C 9E C4 5D 80 CF E8 C2 7E C1 38 16 E7 0A [09:40:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 F5 AE 47 00 22 A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 E1 07 00 00 F4 03 04 00 6E BD A5 66 B6 04 01 00 00 ED 3D BF A7 B8 77 9A E6 [09:40:11]CommunicateWithHost err = 0 [09:40:11]CheckOFDResponse [09:40:11]1017 (14) - 77093643461234 [09:40:11]1041 (16) - 0000000002094248 [09:40:11]1040 (4) - 2017 [09:40:11]1012 (4) - 28.07.2024 03:39 [09:40:11]1206 (1) - 0 [09:40:11]OFD Sender: Remove packet 2017 [09:40:11]ProducePacketName [09:40:11]name=ofd_packets/00002017 [09:40:11]NVStorageDeleteData [09:40:11]Write to MH i2c: 01 00 00 69 41 AA [09:40:11]Write i2c OK [09:40:11]MH_I2C_Read... [09:40:11]Read from MH i2c: 01 [09:40:11]MH_I2C_Read... [09:40:11]Read from MH i2c: 01 07 00 [09:40:11]MH_I2C_Read... [09:40:11]Read from MH i2c: 01 07 00 69 41 00 00 00 00 00 18 0D D6 [09:40:11]RasterBufferAndPrint [09:40:11]line [09:40:11]line [09:40:11]line [09:40:11]line [09:40:11]line [09:40:11]written 0, free lines is 3362 [09:40:11]MH_Cut [09:40:11]Write to MH i2c: D1 01 00 70 41 01 83 [09:40:11]Write i2c OK [09:40:11]MH_I2C_Read... [09:40:11]Read from MH i2c: D1 [09:40:11]MH_I2C_Read... [09:40:11]Read from MH i2c: D1 01 00 [09:40:11]MH_I2C_Read... [09:40:11]Read from MH i2c: D1 01 00 70 41 00 82 [09:40:11]Write to MH i2c: 01 00 00 71 41 B2 [09:40:11]Write i2c OK [09:40:11]MH_I2C_Read... [09:40:12]OFD Sender: No OFD packet to send [09:40:12]*** Cut start [09:40:12]*** Partial cut [09:40:12]*** CUTSNS_PIN = 1 [09:40:12]*** CUTSNS_PIN = 0 [09:40:12]*** Brake cut motor [09:40:12]Read from MH i2c: 01 [09:40:12]MH_I2C_Read... [09:40:12]*** Stop cut motor [09:40:12]*** Cut end [09:40:12]Read from MH i2c: 01 07 00 [09:40:12]MH_I2C_Read... [09:40:12]Read from MH i2c: 01 07 00 71 41 00 00 00 00 00 FF 0F C7 [09:40:12]process_action close_receipt done [09:40:12]requested_data is exist [09:40:12]produce_requested_data [09:40:12]requested_item fm.sn is exist - process it [09:40:12]wFMCommunicate request_size=4 [09:40:12]MH_SAM_APDU [09:40:12]CAPDU: 80 11 00 00 [09:40:12]Write to MH i2c: E2 08 00 72 41 80 11 00 00 00 00 00 00 2D [09:40:12]Write i2c OK [09:40:12]MH_I2C_Read... [09:40:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:12]Read from MH i2c: E2 [09:40:12]MH_I2C_Read... [09:40:12]Read from MH i2c: E2 17 00 [09:40:12]MH_I2C_Read... [09:40:12]Read from MH i2c: E2 17 00 72 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 7D [09:40:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [09:40:12]wFMCommunicate OK [09:40:12]requested_item fd.num is exist - process it [09:40:12]SAM_PROTO_GetFieldsCounters [09:40:12]wFMCommunicate request_size=4 [09:40:12]MH_SAM_APDU [09:40:12]CAPDU: 80 13 00 00 [09:40:12]Write to MH i2c: E2 08 00 73 41 80 13 00 00 00 00 00 00 30 [09:40:12]Write i2c OK [09:40:12]MH_I2C_Read... [09:40:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:40:13]Read from MH i2c: E2 [09:40:13]MH_I2C_Read... [09:40:13]Read from MH i2c: E2 62 00 [09:40:13]MH_I2C_Read... [09:40:13]Read from MH i2c: E2 62 00 73 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 E1 07 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 1B [09:40:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 E1 07 00 00 0E 04 04 00 0D 00 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 [09:40:13]wFMCommunicate OK [09:40:13]SAM_PROTO_GetFieldsCounters done [09:40:13]requested_item shift.num is exist - process it [09:40:13]requested_item shift.opened is exist - process it [09:40:13]req_shift_opened [09:40:13]FM_GetShiftState [09:40:13]SAM_PROTO_GetShiftState [09:40:13]wFMCommunicate request_size=4 [09:40:13]MH_SAM_APDU [09:40:13]CAPDU: 80 13 01 00 [09:40:13]Write to MH i2c: E2 08 00 74 41 80 13 01 00 00 00 00 00 32 [09:40:13]Write i2c OK [09:40:13]MH_I2C_Read... [09:40:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:13]Read from MH i2c: E2 [09:40:13]MH_I2C_Read... [09:40:13]Read from MH i2c: E2 0E 00 [09:40:13]MH_I2C_Read... [09:40:13]Read from MH i2c: E2 0E 00 74 41 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 26 [09:40:13]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [09:40:13]wFMCommunicate OK [09:40:13]SAM_PROTO_GetShiftState done [09:40:13]FM_GetShiftState done [09:40:13]req_shift_opened done [09:40:13]requested_item shift.open_date is exist - process it [09:40:13]req_shift_open_date [09:40:13]req_shift_open_date done [09:40:13]produce_requested_data done [09:40:13]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2017,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [09:40:13]process_action_free close_receipt [09:40:13]json_value_free [09:40:13]json_value_free done [09:40:13]process_json_proto returns [09:40:13]Send response to host [09:40:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2017,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [09:40:13]free response buf [09:40:13]execute_script done [09:40:13]execute_script returns [09:40:13]free content buf [09:40:13]Sock 9.Close socket [09:40:13]Sock 9.Thread stoped [09:40:17]OFD Sender: No OFD packet to send [09:40:22]OFD Sender: No OFD packet to send [09:40:27]OFD Sender: No OFD packet to send [09:40:32]OFD Sender: No OFD packet to send [09:40:37]OFD Sender: No OFD packet to send [09:40:42]OFD Sender: No OFD packet to send [09:40:47]OFD Sender: No OFD packet to send [09:40:52]OFD Sender: No OFD packet to send [09:40:57]OFD Sender: No OFD packet to send [09:41:02]OFD Sender: No OFD packet to send [09:41:07]OFD Sender: No OFD packet to send [09:41:12]OFD Sender: No OFD packet to send [09:41:17]OFD Sender: No OFD packet to send [09:41:22]OFD Sender: No OFD packet to send [09:41:27]OFD Sender: No OFD packet to send [09:41:32]OFD Sender: No OFD packet to send [09:41:37]OFD Sender: No OFD packet to send [09:41:42]OFD Sender: No OFD packet to send [09:41:47]OFD Sender: No OFD packet to send [09:41:52]OFD Sender: No OFD packet to send [09:41:57]OFD Sender: No OFD packet to send [09:42:02]OFD Sender: No OFD packet to send [09:42:07]OFD Sender: No OFD packet to send [09:42:12]OFD Sender: No OFD packet to send [09:42:17]OFD Sender: No OFD packet to send [09:42:22]OFD Sender: No OFD packet to send [09:42:27]OFD Sender: No OFD packet to send [09:42:32]OFD Sender: No OFD packet to send [09:42:37]OFD Sender: No OFD packet to send [09:42:42]OFD Sender: No OFD packet to send [09:42:47]OFD Sender: No OFD packet to send [09:42:52]OFD Sender: No OFD packet to send [09:42:57]OFD Sender: No OFD packet to send [09:43:02]OFD Sender: No OFD packet to send [09:43:07]OFD Sender: No OFD packet to send [09:43:12]OFD Sender: No OFD packet to send [09:43:17]OFD Sender: No OFD packet to send [09:43:22]OFD Sender: No OFD packet to send [09:43:27]OFD Sender: No OFD packet to send [09:43:32]OFD Sender: No OFD packet to send [09:43:37]OFD Sender: No OFD packet to send [09:43:42]OFD Sender: No OFD packet to send [09:43:47]OFD Sender: No OFD packet to send [09:43:52]OFD Sender: No OFD packet to send [09:43:57]OFD Sender: No OFD packet to send [09:44:02]OFD Sender: No OFD packet to send [09:44:07]OFD Sender: No OFD packet to send [09:44:12]OFD Sender: No OFD packet to send [09:44:17]OFD Sender: No OFD packet to send [09:44:22]OFD Sender: No OFD packet to send [09:44:27]OFD Sender: No OFD packet to send [09:44:32]OFD Sender: No OFD packet to send [09:44:37]OFD Sender: No OFD packet to send [09:44:42]OFD Sender: No OFD packet to send [09:44:47]OFD Sender: No OFD packet to send [09:44:52]OFD Sender: No OFD packet to send [09:44:57]OFD Sender: No OFD packet to send [09:45:02]OFD Sender: No OFD packet to send [09:45:07]OFD Sender: No OFD packet to send [09:45:12]OFD Sender: No OFD packet to send [09:45:17]OFD Sender: No OFD packet to send [09:45:22]OFD Sender: No OFD packet to send [09:45:27]OFD Sender: No OFD packet to send [09:45:32]OFD Sender: No OFD packet to send [09:45:37]OFD Sender: No OFD packet to send [09:45:42]OFD Sender: No OFD packet to send [09:45:47]OFD Sender: No OFD packet to send [09:45:52]OFD Sender: No OFD packet to send [09:45:57]OFD Sender: No OFD packet to send [09:46:02]OFD Sender: No OFD packet to send [09:46:07]OFD Sender: No OFD packet to send [09:46:12]OFD Sender: No OFD packet to send [09:46:17]OFD Sender: No OFD packet to send [09:46:22]OFD Sender: No OFD packet to send [09:46:27]OFD Sender: No OFD packet to send [09:46:32]OFD Sender: No OFD packet to send [09:46:37]OFD Sender: No OFD packet to send [09:46:42]OFD Sender: No OFD packet to send [09:46:47]OFD Sender: No OFD packet to send [09:46:52]OFD Sender: No OFD packet to send [09:46:57]OFD Sender: No OFD packet to send [09:47:02]OFD Sender: No OFD packet to send [09:47:07]OFD Sender: No OFD packet to send [09:47:12]OFD Sender: No OFD packet to send [09:47:17]OFD Sender: No OFD packet to send [09:47:22]OFD Sender: No OFD packet to send [09:47:27]OFD Sender: No OFD packet to send [09:47:32]OFD Sender: No OFD packet to send [09:47:37]OFD Sender: No OFD packet to send [09:47:42]OFD Sender: No OFD packet to send [09:47:47]OFD Sender: No OFD packet to send [09:47:52]OFD Sender: No OFD packet to send [09:47:57]OFD Sender: No OFD packet to send [09:48:02]OFD Sender: No OFD packet to send [09:48:07]OFD Sender: No OFD packet to send [09:48:12]OFD Sender: No OFD packet to send [09:48:17]OFD Sender: No OFD packet to send [09:48:22]OFD Sender: No OFD packet to send [09:48:27]OFD Sender: No OFD packet to send [09:48:32]OFD Sender: No OFD packet to send [09:48:37]OFD Sender: No OFD packet to send [09:48:42]OFD Sender: No OFD packet to send [09:48:47]OFD Sender: No OFD packet to send [09:48:52]OFD Sender: No OFD packet to send [09:48:57]OFD Sender: No OFD packet to send [09:49:02]OFD Sender: No OFD packet to send [09:49:07]OFD Sender: No OFD packet to send [09:49:12]OFD Sender: No OFD packet to send [09:49:17]OFD Sender: No OFD packet to send [09:49:22]OFD Sender: No OFD packet to send [09:49:27]OFD Sender: No OFD packet to send [09:49:32]OFD Sender: No OFD packet to send [09:49:37]OFD Sender: No OFD packet to send [09:49:42]OFD Sender: No OFD packet to send [09:49:47]OFD Sender: No OFD packet to send [09:49:52]OFD Sender: No OFD packet to send [09:49:57]OFD Sender: No OFD packet to send [09:50:02]OFD Sender: No OFD packet to send [09:50:07]OFD Sender: No OFD packet to send [09:50:12]OFD Sender: No OFD packet to send [09:50:17]OFD Sender: No OFD packet to send [09:50:22]OFD Sender: No OFD packet to send [09:50:27]OFD Sender: No OFD packet to send [09:50:32]OFD Sender: No OFD packet to send [09:50:37]OFD Sender: No OFD packet to send [09:50:42]OFD Sender: No OFD packet to send [09:50:47]OFD Sender: No OFD packet to send [09:50:52]OFD Sender: No OFD packet to send [09:50:57]OFD Sender: No OFD packet to send [09:51:02]OFD Sender: No OFD packet to send [09:51:07]OFD Sender: No OFD packet to send [09:51:12]OFD Sender: No OFD packet to send [09:51:17]OFD Sender: No OFD packet to send [09:51:22]OFD Sender: No OFD packet to send [09:51:27]OFD Sender: No OFD packet to send [09:51:32]OFD Sender: No OFD packet to send [09:51:37]OFD Sender: No OFD packet to send [09:51:42]OFD Sender: No OFD packet to send [09:51:47]OFD Sender: No OFD packet to send [09:51:52]OFD Sender: No OFD packet to send [09:51:57]OFD Sender: No OFD packet to send [09:52:02]OFD Sender: No OFD packet to send [09:52:07]OFD Sender: No OFD packet to send [09:52:12]OFD Sender: No OFD packet to send [09:52:17]OFD Sender: No OFD packet to send [09:52:22]OFD Sender: No OFD packet to send [09:52:27]OFD Sender: No OFD packet to send [09:52:32]OFD Sender: No OFD packet to send [09:52:37]OFD Sender: No OFD packet to send [09:52:42]OFD Sender: No OFD packet to send [09:52:47]OFD Sender: No OFD packet to send [09:52:52]OFD Sender: No OFD packet to send [09:52:57]OFD Sender: No OFD packet to send [09:53:02]OFD Sender: No OFD packet to send [09:53:07]OFD Sender: No OFD packet to send [09:53:12]OFD Sender: No OFD packet to send [09:53:17]OFD Sender: No OFD packet to send [09:53:22]OFD Sender: No OFD packet to send [09:53:27]OFD Sender: No OFD packet to send [09:53:32]OFD Sender: No OFD packet to send [09:53:37]OFD Sender: No OFD packet to send [09:53:42]OFD Sender: No OFD packet to send [09:53:47]OFD Sender: No OFD packet to send [09:53:52]OFD Sender: No OFD packet to send [09:53:57]OFD Sender: No OFD packet to send [09:54:02]OFD Sender: No OFD packet to send [09:54:07]OFD Sender: No OFD packet to send [09:54:12]OFD Sender: No OFD packet to send [09:54:17]OFD Sender: No OFD packet to send [09:54:22]OFD Sender: No OFD packet to send [09:54:27]OFD Sender: No OFD packet to send [09:54:32]OFD Sender: No OFD packet to send [09:54:37]OFD Sender: No OFD packet to send [09:54:42]OFD Sender: No OFD packet to send [09:54:47]OFD Sender: No OFD packet to send [09:54:52]OFD Sender: No OFD packet to send [09:54:57]OFD Sender: No OFD packet to send [09:55:02]OFD Sender: No OFD packet to send [09:55:07]OFD Sender: No OFD packet to send [09:55:12]OFD Sender: No OFD packet to send [09:55:17]OFD Sender: No OFD packet to send [09:55:22]OFD Sender: No OFD packet to send [09:55:27]OFD Sender: No OFD packet to send [09:55:32]OFD Sender: No OFD packet to send [09:55:33]accept exits with 8 [09:55:33]New connection [09:55:33]New thread 3067317604 created [09:55:33]Thread 3067460964 joined [09:55:33]Waiting for new connection... [09:55:33] Sock 8.Parse request [09:55:33]Sock 8.Check first char [09:55:33]Sock 8.First char is OK [09:55:33]request: POST /json_proto HTTP/1.0 [09:55:33]Method: POST [09:55:33]URL: /json_proto [09:55:33]Method is POST - this is cgi request [09:55:33]url: /json_proto [09:55:33]query_string will be loaded in cgi processing [09:55:33]execute_cgi json_proto POST (null) [09:55:33]execute_cgi path=json_proto method=POST [09:55:33]POST find Content-Length [09:55:33]Host: 172.17.45.132:8080 [09:55:33]Content-Length: 655 [09:55:33]Content-Type: application/json [09:55:33] [09:55:33]POST finish read [09:55:33]Found Content-Length = 655 [09:55:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126321", "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" ] } } [09:55:33]execute_script... [09:55:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126321", "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" ] } } [09:55:33]POST & json_proto [09:55:33]process_json_proto [09:55:33]json parsed OK: [09:55:33]protocol is kg_v1.0 [09:55:33]action value=close_receipt [09:55:33]process_action close_receipt [09:55:33]cmd_close_receipt [09:55:33]MH_GetDate [09:55:33]Write to MH i2c: F0 00 00 75 41 A5 [09:55:33]Write i2c OK [09:55:33]MH_I2C_Read... [09:55:33]Read from MH i2c: F0 [09:55:33]MH_I2C_Read... [09:55:33]Read from MH i2c: F0 09 00 [09:55:33]MH_I2C_Read... [09:55:33]Read from MH i2c: F0 09 00 75 41 00 9A 15 A6 66 E3 0B 90 66 4D [09:55:33]GetLastDocTimeStamp 1722159614 [09:55:33]current date 1722160538 [09:55:33]FM_GetShiftState [09:55:33]SAM_PROTO_GetShiftState [09:55:33]wFMCommunicate request_size=4 [09:55:33]MH_SAM_APDU [09:55:33]CAPDU: 80 13 01 00 [09:55:33]Write to MH i2c: E2 08 00 76 41 80 13 01 00 00 00 00 00 34 [09:55:33]Write i2c OK [09:55:33]MH_I2C_Read... [09:55:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:33]Read from MH i2c: E2 [09:55:33]MH_I2C_Read... [09:55:33]Read from MH i2c: E2 0E 00 [09:55:33]MH_I2C_Read... [09:55:33]Read from MH i2c: E2 0E 00 76 41 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 28 [09:55:33]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [09:55:33]wFMCommunicate OK [09:55:33]SAM_PROTO_GetShiftState done [09:55:33]FM_GetShiftState done [09:55:33]opened in 1722125648 [09:55:33]opened+sec_in_day 1722212048 [09:55:33]quantity*price = 12700 [09:55:33]sum+1 = 12701 [09:55:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 127.00 НСП 1% : 1.12 НДС 12% : 13.49 Наличными: 127.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 69 28.07.2024 09:55 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2018 ФПД: 98559429490336 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T095538&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2018&fm=98559429490336&tin=02508201610067®Number=0000000000189667&sum=12700 0 [09:55:34]StoreToDocumentArchive [09:55:34]shift 13 fd 2018 [09:55:34]save to /storage/0013/doc_00002018 [09:55:34]save last doc name /storage/0013/doc_00002018 to /storage/kkm_last_doc_name [09:55:34]save OK [09:55:34]Clear old archive folders... [09:55:34]ProcessDocumentItem done err = 0, tmpTLVsize=279 [09:55:34]tlvbuf is 020339D0 [09:55:34]SAM_PROTO_ClearQueue [09:55:34]wFMCommunicate request_size=4 [09:55:34]MH_SAM_APDU [09:55:34]CAPDU: 80 09 00 00 [09:55:34]Write to MH i2c: E2 08 00 83 41 80 09 00 00 00 00 00 00 36 [09:55:34]Write i2c OK [09:55:34]MH_I2C_Read... [09:55:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:55:34]Read from MH i2c: E2 [09:55:34]MH_I2C_Read... [09:55:34]Read from MH i2c: E2 03 00 [09:55:34]MH_I2C_Read... [09:55:34]Read from MH i2c: E2 03 00 83 41 00 90 00 38 [09:55:34]RAPDU: 90 00 [09:55:34]wFMCommunicate OK [09:55:34]SAM_PROTO_ClearQueue done [09:55:34]KKMCreateOFDPacket [09:55:34]OFDProtocolAddRootSTLVToBuf [09:55:34]FM_MakeSignedData [09:55:34]FM_MakeSignedData [09:55:34]SAM_PROTO_SignData [09:55:34]wFMCommunicate request_size=4 [09:55:34]MH_SAM_APDU [09:55:34]CAPDU: 80 0D 01 02 [09:55:34]Write to MH i2c: E2 08 00 84 41 80 0D 01 02 00 00 00 00 3E [09:55:34]Write i2c OK [09:55:34]MH_I2C_Read... [09:55:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:55:34]Read from MH i2c: E2 [09:55:34]MH_I2C_Read... [09:55:34]Read from MH i2c: E2 03 00 [09:55:34]MH_I2C_Read... [09:55:34]Read from MH i2c: E2 03 00 84 41 00 90 00 39 [09:55:34]RAPDU: 90 00 [09:55:34]wFMCommunicate OK [09:55:34]wFMCommunicate request_size=255 [09:55:34]MH_SAM_APDU [09:55:34]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 45 00 00 00 F4 03 04 00 9A 15 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 [09:55:34]Write to MH i2c: E2 02 01 85 41 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 45 00 00 00 F4 03 04 00 9A 15 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 00 00 DD [09:55:34]Write i2c OK [09:55:34]MH_I2C_Read... [09:55:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:34]Read from MH i2c: E2 [09:55:34]MH_I2C_Read... [09:55:34]Read from MH i2c: E2 03 00 [09:55:34]MH_I2C_Read... [09:55:34]Read from MH i2c: E2 03 00 85 41 00 90 00 3A [09:55:34]RAPDU: 90 00 [09:55:34]wFMCommunicate OK [09:55:34]wFMCommunicate request_size=38 [09:55:34]MH_SAM_APDU [09:55:34]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 E2 07 00 00 35 04 06 00 59 A3 A7 C8 B6 A0 [09:55:34]Write to MH i2c: E2 29 00 86 41 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 E2 07 00 00 35 04 06 00 59 A3 A7 C8 B6 A0 00 00 71 [09:55:34]Write i2c OK [09:55:34]MH_I2C_Read... [09:55:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:34]Read from MH i2c: E2 [09:55:34]MH_I2C_Read... [09:55:34]Read from MH i2c: E2 03 00 [09:55:34]MH_I2C_Read... [09:55:34]Read from MH i2c: E2 03 00 86 41 00 90 00 3B [09:55:34]RAPDU: 90 00 [09:55:34]wFMCommunicate OK [09:55:34]wFMCommunicate request_size=4 [09:55:34]MH_SAM_APDU [09:55:34]CAPDU: 80 0D 03 02 [09:55:34]Write to MH i2c: E2 08 00 87 41 80 0D 03 02 00 00 00 00 43 [09:55:34]Write i2c OK [09:55:34]MH_I2C_Read... [09:55:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:55:34]Read from MH i2c: E2 [09:55:34]MH_I2C_Read... [09:55:34]Read from MH i2c: E2 0B 00 [09:55:34]MH_I2C_Read... [09:55:34]Read from MH i2c: E2 0B 00 87 41 00 36 83 EE 91 0F B8 08 20 90 00 6B [09:55:34]RAPDU: 36 83 EE 91 0F B8 08 20 90 00 [09:55:34]wFMCommunicate OK [09:55:34]SAM_PROTO_SignData done [09:55:34]FM_MakeSignedData done [09:55:34]CreateOFDProtocolMessage [09:55:34]wFMCommunicate request_size=4 [09:55:34]MH_SAM_APDU [09:55:34]CAPDU: 80 11 00 00 [09:55:34]Write to MH i2c: E2 08 00 88 41 80 11 00 00 00 00 00 00 43 [09:55:34]Write i2c OK [09:55:34]MH_I2C_Read... [09:55:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:34]Read from MH i2c: E2 [09:55:34]MH_I2C_Read... [09:55:34]Read from MH i2c: E2 17 00 [09:55:34]MH_I2C_Read... [09:55:34]Read from MH i2c: E2 17 00 88 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 93 [09:55:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [09:55:34]wFMCommunicate OK [09:55:34]CreateOFDProtocolMessage done [09:55:34]OFDSenderStorePacket 2018 [09:55:34]StoreOFDPacket docnum=2018 [09:55:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2B 01 00 00 6A EC 23 01 3A 93 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 45 00 00 00 F4 03 04 00 9A 15 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 E2 07 00 00 35 04 06 00 59 A3 A7 C8 B6 A0 36 83 EE 91 0F B8 08 20 [09:55:34]CheckFolder [09:55:34]dirname=/storage/ofd_packets [09:55:34]CheckFolder done [09:55:34]ProducePacketName [09:55:34]name=ofd_packets/00002018 [09:55:34]NVStorageSaveData ofd_packets/00002018 [09:55:34]File name is /storage/ofd_packets/00002018 [09:55:34]Write 329 bytes [09:55:34]NVStorageSaveData done [09:55:34]OFDSenderStorePacket done [09:55:34]KKMCreateOFDPacket done [09:55:34]NVStorageSaveData kkm_last_timestamp [09:55:34]File name is /storage/kkm_last_timestamp [09:55:34]OFD Sender: Processing packet 2018 [packets to send 1, broken 0] [09:55:34]ProducePacketName [09:55:34]name=ofd_packets/00002018 [09:55:34]OFD Sender: To server: pG, [09:55:34]CommunicateWithHost lk.salyk.kg:30040 [09:55:34]ConnectInit lk.salyk.kg [09:55:34]Write 4 bytes [09:55:34]NVStorageSaveData done [09:55:34]ExternCall_PrintAddStr [09:55:34]wPrintStart [09:55:34]Write to MH i2c: 01 00 00 89 41 CA [09:55:34]Write i2c OK [09:55:34]MH_I2C_Read... [09:55:34]Read from MH i2c: 01 [09:55:34]MH_I2C_Read... [09:55:34]Read from MH i2c: 01 07 00 [09:55:34]MH_I2C_Read... [09:55:34]Read from MH i2c: 01 07 00 89 41 00 00 00 00 00 FF 0F DF [09:55:34]RasterBufferAndPrint [09:55:34]line Счет N : (3)126321 [09:55:34]line ИНН: 02508201610067 [09:55:34]line Контрольно-Кассовый Чек [09:55:34]line ПРОДАЖА [09:55:34]line Товар: 4860019001414 [09:55:34]line Вода Боржоми 0,75л ПЭТ [09:55:34]line 1.000 * 127.00 [09:55:34]line = 127.00 [09:55:34]line НДС 12% НСП 1% [09:55:34]line > о реализуемом товаре [09:55:34]line ИТОГО: 127.00 [09:55:34]line НСП 1% : 1.12 [09:55:34]line НДС 12% : 13.49 [09:55:34]line Наличными: 127.00 [09:55:34]line Безнал.: 0.00 [09:55:34]line Место: АЗС № 127 "Партнер Нефть" [09:55:34]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [09:55:34]line СНО: Общий режим [09:55:34]line Чек 69 28.07.2024 09:55 [09:55:34]line Смена: 13 ФФД: 1.0 [09:55:34]line ЗНМ: 0300000161 [09:55:34]line РНМ: 0000000000189667 [09:55:34]line Версия ККМ: v1.0 [09:55:34]line ФМ: 0000000002094248 [09:55:34]line ФД: 2018 [09:55:34]line ФПД: 98559429490336 [09:55:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T095538&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2018&fm=98559429490336&tin=02508201610067®Number=0000000000189667&sum=12700 [09:55:35]line 0 [09:55:35]Connected sock=10 [09:55:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2B 01 00 00 6A EC 23 01 3A 93 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 45 00 00 00 F4 03 04 00 9A 15 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 E2 07 00 00 35 04 06 00 59 A3 A7 C8 B6 A0 36 83 EE 91 0F B8 08 20 [09:55:35]written 0, free lines is 4095 [09:55:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 B7 AD 47 00 43 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 32 30 39 34 32 34 38 10 04 04 00 E2 07 00 00 F4 03 04 00 09 C1 A5 66 B6 04 01 00 00 7A FE 24 9F B5 12 39 B8 [09:55:35]CommunicateWithHost err = 0 [09:55:35]CheckOFDResponse [09:55:35]1017 (14) - 77093643461234 [09:55:35]1041 (16) - 0000000002094248 [09:55:35]1040 (4) - 2018 [09:55:35]1012 (4) - 28.07.2024 03:54 [09:55:35]1206 (1) - 0 [09:55:35]OFD Sender: Remove packet 2018 [09:55:35]ProducePacketName [09:55:35]name=ofd_packets/00002018 [09:55:35]NVStorageDeleteData [09:55:35]Write to MH i2c: 01 00 00 B1 41 F2 [09:55:35]Write i2c OK [09:55:35]MH_I2C_Read... [09:55:35]Read from MH i2c: 01 [09:55:35]MH_I2C_Read... [09:55:35]Read from MH i2c: 01 07 00 [09:55:35]MH_I2C_Read... [09:55:35]Read from MH i2c: 01 07 00 B1 41 00 00 00 00 00 11 0D 17 [09:55:35]RasterBufferAndPrint [09:55:35]line [09:55:35]line [09:55:35]line [09:55:35]line [09:55:35]line [09:55:35]written 0, free lines is 3354 [09:55:35]MH_Cut [09:55:35]Write to MH i2c: D1 01 00 B8 41 01 CB [09:55:35]Write i2c OK [09:55:35]MH_I2C_Read... [09:55:35]Read from MH i2c: D1 [09:55:35]MH_I2C_Read... [09:55:35]Read from MH i2c: D1 01 00 [09:55:35]MH_I2C_Read... [09:55:35]Read from MH i2c: D1 01 00 B8 41 00 CA [09:55:35]Write to MH i2c: 01 00 00 B9 41 FA [09:55:35]Write i2c OK [09:55:35]MH_I2C_Read... [09:55:35]OFD Sender: No OFD packet to send [09:55:36]*** Cut start [09:55:36]*** Partial cut [09:55:36]*** CUTSNS_PIN = 1 [09:55:36]*** CUTSNS_PIN = 0 [09:55:36]*** Brake cut motor [09:55:36]Read from MH i2c: 01 [09:55:36]MH_I2C_Read... [09:55:36]*** Stop cut motor [09:55:36]*** Cut end [09:55:36]Read from MH i2c: 01 07 00 [09:55:36]MH_I2C_Read... [09:55:36]Read from MH i2c: 01 07 00 B9 41 00 00 00 00 00 FF 0F 0F [09:55:36]process_action close_receipt done [09:55:36]requested_data is exist [09:55:36]produce_requested_data [09:55:36]requested_item fm.sn is exist - process it [09:55:36]wFMCommunicate request_size=4 [09:55:36]MH_SAM_APDU [09:55:36]CAPDU: 80 11 00 00 [09:55:36]Write to MH i2c: E2 08 00 BA 41 80 11 00 00 00 00 00 00 75 [09:55:36]Write i2c OK [09:55:36]MH_I2C_Read... [09:55:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:36]Read from MH i2c: E2 [09:55:36]MH_I2C_Read... [09:55:36]Read from MH i2c: E2 17 00 [09:55:36]MH_I2C_Read... [09:55:36]Read from MH i2c: E2 17 00 BA 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 C5 [09:55:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [09:55:36]wFMCommunicate OK [09:55:36]requested_item fd.num is exist - process it [09:55:36]SAM_PROTO_GetFieldsCounters [09:55:36]wFMCommunicate request_size=4 [09:55:36]MH_SAM_APDU [09:55:36]CAPDU: 80 13 00 00 [09:55:36]Write to MH i2c: E2 08 00 BB 41 80 13 00 00 00 00 00 00 78 [09:55:36]Write i2c OK [09:55:36]MH_I2C_Read... [09:55:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:55:37]Read from MH i2c: E2 [09:55:37]MH_I2C_Read... [09:55:37]Read from MH i2c: E2 62 00 [09:55:37]MH_I2C_Read... [09:55:37]Read from MH i2c: E2 62 00 BB 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 E2 07 00 00 0E 04 04 00 0D 00 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 67 [09:55:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 E2 07 00 00 0E 04 04 00 0D 00 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 [09:55:37]wFMCommunicate OK [09:55:37]SAM_PROTO_GetFieldsCounters done [09:55:37]requested_item shift.num is exist - process it [09:55:37]requested_item shift.opened is exist - process it [09:55:37]req_shift_opened [09:55:37]FM_GetShiftState [09:55:37]SAM_PROTO_GetShiftState [09:55:37]wFMCommunicate request_size=4 [09:55:37]MH_SAM_APDU [09:55:37]CAPDU: 80 13 01 00 [09:55:37]Write to MH i2c: E2 08 00 BC 41 80 13 01 00 00 00 00 00 7A [09:55:37]Write i2c OK [09:55:37]MH_I2C_Read... [09:55:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:37]Read from MH i2c: E2 [09:55:37]MH_I2C_Read... [09:55:37]Read from MH i2c: E2 0E 00 [09:55:37]MH_I2C_Read... [09:55:37]Read from MH i2c: E2 0E 00 BC 41 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 6E [09:55:37]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [09:55:37]wFMCommunicate OK [09:55:37]SAM_PROTO_GetShiftState done [09:55:37]FM_GetShiftState done [09:55:37]req_shift_opened done [09:55:37]requested_item shift.open_date is exist - process it [09:55:37]req_shift_open_date [09:55:37]req_shift_open_date done [09:55:37]produce_requested_data done [09:55:37]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2018,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [09:55:37]process_action_free close_receipt [09:55:37]json_value_free [09:55:37]json_value_free done [09:55:37]process_json_proto returns [09:55:37]Send response to host [09:55:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2018,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [09:55:37]free response buf [09:55:37]execute_script done [09:55:37]execute_script returns [09:55:37]free content buf [09:55:37]Sock 8.Close socket [09:55:37]Sock 8.Thread stoped [09:55:40]OFD Sender: No OFD packet to send [09:55:45]OFD Sender: No OFD packet to send [09:55:50]OFD Sender: No OFD packet to send [09:55:55]OFD Sender: No OFD packet to send [09:56:00]OFD Sender: No OFD packet to send [09:56:05]OFD Sender: No OFD packet to send [09:56:10]OFD Sender: No OFD packet to send [09:56:15]OFD Sender: No OFD packet to send [09:56:20]OFD Sender: No OFD packet to send [09:56:25]OFD Sender: No OFD packet to send [09:56:30]OFD Sender: No OFD packet to send [09:56:35]OFD Sender: No OFD packet to send [09:56:40]OFD Sender: No OFD packet to send [09:56:45]OFD Sender: No OFD packet to send [09:56:50]OFD Sender: No OFD packet to send [09:56:55]OFD Sender: No OFD packet to send [09:57:00]OFD Sender: No OFD packet to send [09:57:05]OFD Sender: No OFD packet to send [09:57:10]OFD Sender: No OFD packet to send [09:57:15]OFD Sender: No OFD packet to send [09:57:20]OFD Sender: No OFD packet to send [09:57:25]OFD Sender: No OFD packet to send [09:57:30]OFD Sender: No OFD packet to send [09:57:35]OFD Sender: No OFD packet to send [09:57:40]OFD Sender: No OFD packet to send [09:57:45]OFD Sender: No OFD packet to send [09:57:50]OFD Sender: No OFD packet to send [09:57:55]OFD Sender: No OFD packet to send [09:58:00]OFD Sender: No OFD packet to send [09:58:05]OFD Sender: No OFD packet to send [09:58:10]OFD Sender: No OFD packet to send [09:58:15]OFD Sender: No OFD packet to send [09:58:20]OFD Sender: No OFD packet to send [09:58:25]OFD Sender: No OFD packet to send [09:58:30]OFD Sender: No OFD packet to send [09:58:35]OFD Sender: No OFD packet to send [09:58:40]OFD Sender: No OFD packet to send [09:58:46]OFD Sender: No OFD packet to send [09:58:51]OFD Sender: No OFD packet to send [09:58:56]OFD Sender: No OFD packet to send [09:59:01]OFD Sender: No OFD packet to send [09:59:06]OFD Sender: No OFD packet to send [09:59:11]OFD Sender: No OFD packet to send [09:59:16]OFD Sender: No OFD packet to send [09:59:21]OFD Sender: No OFD packet to send [09:59:26]OFD Sender: No OFD packet to send [09:59:31]OFD Sender: No OFD packet to send [09:59:36]OFD Sender: No OFD packet to send [09:59:41]OFD Sender: No OFD packet to send [09:59:46]OFD Sender: No OFD packet to send [09:59:51]OFD Sender: No OFD packet to send [09:59:56]OFD Sender: No OFD packet to send [10:00:01]OFD Sender: No OFD packet to send [10:00:06]OFD Sender: No OFD packet to send [10:00:11]OFD Sender: No OFD packet to send [10:00:16]OFD Sender: No OFD packet to send [10:00:21]OFD Sender: No OFD packet to send [10:00:26]OFD Sender: No OFD packet to send [10:00:31]OFD Sender: No OFD packet to send [10:00:35]accept exits with 9 [10:00:35]New connection [10:00:35]New thread 3067460964 created [10:00:35]Thread 3067317604 joined [10:00:35]Waiting for new connection... [10:00:35] Sock 9.Parse request [10:00:35]Sock 9.Check first char [10:00:35]Sock 9.First char is OK [10:00:35]request: POST /json_proto HTTP/1.0 [10:00:35]Method: POST [10:00:35]URL: /json_proto [10:00:35]Method is POST - this is cgi request [10:00:35]url: /json_proto [10:00:35]query_string will be loaded in cgi processing [10:00:35]execute_cgi json_proto POST (null) [10:00:35]execute_cgi path=json_proto method=POST [10:00:35]POST find Content-Length [10:00:35]Host: 172.17.45.132:8080 [10:00:35]Content-Length: 2066 [10:00:35]Content-Type: application/json [10:00:35] [10:00:35]POST finish read [10:00:35]Found Content-Length = 2066 [10:00:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126322", "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" : 5.000, "sum" : 650.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620017453130", "name": "\u0422\u0430\u0440\u0430\u043B\u043B\u0438\u043D\u0438 NF 180\u0433 \u043A\u043B\u0430\u0441", "price" : 90.00, "quantity" : 2.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620017453536", "name": "\u0422\u0430\u0440\u0430\u043B\u043B\u0438\u043D\u0438 NF 180\u0433 \u0447\u0435\u0441\u043D\u043E\u043A", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4602606010924", "name": "\u041A\u043E\u043D\u0444 Fruit-tella \u0441\u0442\u0438\u043A \u0430\u0441\u0441\u043E\u0440\u0442\u0438 16*20*42,5", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46156686", "name": "\u041A\u043E\u043D\u0444 Fruit-tella \u0441\u0442\u0438\u043A \u043A\u043B\u0443\u0431\u043D\u0438\u0447\u043D\u044B\u0439 \u0439\u043E\u0433\u0443\u0440\u0442", "price" : 75.00, "quantity" : 1.000, "sum" : 75.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 }]} ], "payments": [ { "type": 0, "sum" : 1119.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:35]execute_script... [10:00: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)126322", "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" : 5.000, "sum" : 650.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620017453130", "name": "\u0422\u0430\u0440\u0430\u043B\u043B\u0438\u043D\u0438 NF 180\u0433 \u043A\u043B\u0430\u0441", "price" : 90.00, "quantity" : 2.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620017453536", "name": "\u0422\u0430\u0440\u0430\u043B\u043B\u0438\u043D\u0438 NF 180\u0433 \u0447\u0435\u0441\u043D\u043E\u043A", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4602606010924", "name": "\u041A\u043E\u043D\u0444 Fruit-tella \u0441\u0442\u0438\u043A \u0430\u0441\u0441\u043E\u0440\u0442\u0438 16*20*42,5", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46156686", "name": "\u041A\u043E\u043D\u0444 Fruit-tella \u0441\u0442\u0438\u043A \u043A\u043B\u0443\u0431\u043D\u0438\u0447\u043D\u044B\u0439 \u0439\u043E\u0433\u0443\u0440\u0442", "price" : 75.00, "quantity" : 1.000, "sum" : 75.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 }]} ], "payments": [ { "type": 0, "sum" : 1119.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:35]POST & json_proto [10:00:35]process_json_proto [10:00:35]json parsed OK: [10:00:35]protocol is kg_v1.0 [10:00:35]action value=close_receipt [10:00:35]process_action close_receipt [10:00:35]cmd_close_receipt [10:00:35]MH_GetDate [10:00:35]Write to MH i2c: F0 00 00 BD 41 ED [10:00:35]Write i2c OK [10:00:35]MH_I2C_Read... [10:00:35]Read from MH i2c: F0 [10:00:35]MH_I2C_Read... [10:00:35]Read from MH i2c: F0 09 00 [10:00:35]MH_I2C_Read... [10:00:35]Read from MH i2c: F0 09 00 BD 41 00 C8 16 A6 66 E3 0B 90 66 C4 [10:00:35]GetLastDocTimeStamp 1722160538 [10:00:35]current date 1722160840 [10:00:35]FM_GetShiftState [10:00:35]SAM_PROTO_GetShiftState [10:00:35]wFMCommunicate request_size=4 [10:00:35]MH_SAM_APDU [10:00:35]CAPDU: 80 13 01 00 [10:00:35]Write to MH i2c: E2 08 00 BE 41 80 13 01 00 00 00 00 00 7C [10:00:35]Write i2c OK [10:00:35]MH_I2C_Read... [10:00:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:35]Read from MH i2c: E2 [10:00:35]MH_I2C_Read... [10:00:35]Read from MH i2c: E2 0E 00 [10:00:35]MH_I2C_Read... [10:00:35]Read from MH i2c: E2 0E 00 BE 41 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 70 [10:00:35]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [10:00:35]wFMCommunicate OK [10:00:35]SAM_PROTO_GetShiftState done [10:00:35]FM_GetShiftState done [10:00:35]opened in 1722125648 [10:00:35]opened+sec_in_day 1722212048 [10:00:35]quantity*price = 65000 [10:00:35]sum+1 = 65001 [10:00:35]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4620017453130 Тараллини NF 180г клас 2.000 * 90.00 = 180.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4620017453536 Тараллини NF 180г чеснок 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4602606010924 Конф Fruit-tella стик ассорти 16*20*42,5 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 46156686 Конф Fruit-tella стик клубничный йогурт 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 46227737 Р/ж mentos pure fresh арбуз ролл 15,5г 1.000 * 49.00 = 49.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 1119.00 НСП 1% : 9.89 НДС 12% : 118.82 Наличными: 1119.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 70 28.07.2024 10:00 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2019 ФПД: 190225962941302 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T100040&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2019&fm=190225962941302&tin=02508201610067®Number=0000000000189667&sum=111900 0 [10:00:36]StoreToDocumentArchive [10:00:36]shift 13 fd 2019 [10:00:36]save to /storage/0013/doc_00002019 [10:00:36]save last doc name /storage/0013/doc_00002019 to /storage/kkm_last_doc_name [10:00:36]save OK [10:00:36]Clear old archive folders... [10:00:36]ProcessDocumentItem done err = 0, tmpTLVsize=876 [10:00:36]tlvbuf is 01F444F0 [10:00:36]SAM_PROTO_ClearQueue [10:00:36]wFMCommunicate request_size=4 [10:00:36]MH_SAM_APDU [10:00:36]CAPDU: 80 09 00 00 [10:00:36]Write to MH i2c: E2 08 00 CB 41 80 09 00 00 00 00 00 00 7E [10:00:36]Write i2c OK [10:00:36]MH_I2C_Read... [10:00:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:00:37]Read from MH i2c: E2 [10:00:37]MH_I2C_Read... [10:00:37]Read from MH i2c: E2 03 00 [10:00:37]MH_I2C_Read... [10:00:37]Read from MH i2c: E2 03 00 CB 41 00 90 00 80 [10:00:37]RAPDU: 90 00 [10:00:37]wFMCommunicate OK [10:00:37]SAM_PROTO_ClearQueue done [10:00:37]KKMCreateOFDPacket [10:00:37]OFDProtocolAddRootSTLVToBuf [10:00:37]FM_MakeSignedData [10:00:37]FM_MakeSignedData [10:00:37]SAM_PROTO_SignData [10:00:37]wFMCommunicate request_size=4 [10:00:37]MH_SAM_APDU [10:00:37]CAPDU: 80 0D 01 02 [10:00:37]Write to MH i2c: E2 08 00 CC 41 80 0D 01 02 00 00 00 00 86 [10:00:37]Write i2c OK [10:00:37]MH_I2C_Read... [10:00:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:00:37]Read from MH i2c: E2 [10:00:37]MH_I2C_Read... [10:00:37]Read from MH i2c: E2 03 00 [10:00:37]MH_I2C_Read... [10:00:37]Read from MH i2c: E2 03 00 CC 41 00 90 00 81 [10:00:37]RAPDU: 90 00 [10:00:37]wFMCommunicate OK [10:00:37]wFMCommunicate request_size=255 [10:00:37]MH_SAM_APDU [10:00:37]CAPDU: 80 0D 02 02 FA 03 00 6C 03 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 88 13 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 E8 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 33 31 33 30 06 04 24 00 D0 A2 D0 B0 D1 80 D0 B0 D0 BB D0 BB D0 B8 D0 BD D0 B8 20 4E 46 20 31 38 30 D0 B3 20 D0 BA D0 BB D0 B0 D1 81 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 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 34 36 32 30 30 31 37 34 35 33 35 33 36 [10:00:37]Write to MH i2c: E2 02 01 CD 41 80 0D 02 02 FA 00 03 00 6C 03 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 88 13 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 E8 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 33 31 33 30 06 04 24 00 D0 A2 D0 B0 D1 80 D0 B0 D0 BB D0 BB D0 B8 D0 BD D0 B8 20 4E 46 20 31 38 30 D0 B3 20 D0 BA D0 BB D0 B0 D1 81 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 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 34 36 32 30 30 31 37 34 35 33 35 33 36 00 00 F5 [10:00:37]Write i2c OK [10:00:37]MH_I2C_Read... [10:00:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:37]Read from MH i2c: E2 [10:00:37]MH_I2C_Read... [10:00:37]Read from MH i2c: E2 03 00 [10:00:37]MH_I2C_Read... [10:00:37]Read from MH i2c: E2 03 00 CD 41 00 90 00 82 [10:00:37]RAPDU: 90 00 [10:00:37]wFMCommunicate OK [10:00:37]wFMCommunicate request_size=255 [10:00:37]MH_SAM_APDU [10:00:37]CAPDU: 80 0D 02 02 FA 06 04 28 00 D0 A2 D0 B0 D1 80 D0 B0 D0 BB D0 BB D0 B8 D0 BD D0 B8 20 4E 46 20 31 38 30 D0 B3 20 D1 87 D0 B5 D1 81 D0 BD D0 BE D0 BA 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 7B 00 8A 04 0D 00 34 36 30 32 36 30 36 30 31 30 39 32 34 06 04 37 00 D0 9A D0 BE D0 BD D1 84 20 46 72 75 69 74 2D 74 65 6C 6C 61 20 D1 81 D1 82 D0 B8 D0 BA 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 20 31 36 2A 32 30 2A 34 32 2C 35 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 7E 00 8A 04 08 00 34 36 31 35 36 36 38 36 06 04 3F 00 D0 9A D0 BE D0 BD D1 84 20 46 72 75 [10:00:37]Write to MH i2c: E2 02 01 CE 41 80 0D 02 02 FA 00 06 04 28 00 D0 A2 D0 B0 D1 80 D0 B0 D0 BB D0 BB D0 B8 D0 BD D0 B8 20 4E 46 20 31 38 30 D0 B3 20 D1 87 D0 B5 D1 81 D0 BD D0 BE D0 BA 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 7B 00 8A 04 0D 00 34 36 30 32 36 30 36 30 31 30 39 32 34 06 04 37 00 D0 9A D0 BE D0 BD D1 84 20 46 72 75 69 74 2D 74 65 6C 6C 61 20 D1 81 D1 82 D0 B8 D0 BA 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 20 31 36 2A 32 30 2A 34 32 2C 35 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 7E 00 8A 04 08 00 34 36 31 35 36 36 38 36 06 04 3F 00 D0 9A D0 BE D0 BD D1 84 20 46 72 75 00 00 0D [10:00:37]Write i2c OK [10:00:37]MH_I2C_Read... [10:00:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:37]Read from MH i2c: E2 [10:00:37]MH_I2C_Read... [10:00:37]Read from MH i2c: E2 03 00 [10:00:37]MH_I2C_Read... [10:00:37]Read from MH i2c: E2 03 00 CE 41 00 90 00 83 [10:00:37]RAPDU: 90 00 [10:00:37]wFMCommunicate OK [10:00:37]wFMCommunicate request_size=255 [10:00:37]MH_SAM_APDU [10:00:37]CAPDU: 80 0D 02 02 FA 69 74 2D 74 65 6C 6C 61 20 D1 81 D1 82 D0 B8 D0 BA 20 D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D1 87 D0 BD D1 8B D0 B9 20 D0 B9 D0 BE D0 B3 D1 83 D1 80 D1 82 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 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 1C B5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 03 00 00 00 00 EE 03 [10:00:37]Write to MH i2c: E2 02 01 CF 41 80 0D 02 02 FA 00 69 74 2D 74 65 6C 6C 61 20 D1 81 D1 82 D0 B8 D0 BA 20 D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D1 87 D0 BD D1 8B D0 B9 20 D0 B9 D0 BE D0 B3 D1 83 D1 80 D1 82 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 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 1C B5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 03 00 00 00 00 EE 03 00 00 E4 [10:00:37]Write i2c OK [10:00:37]MH_I2C_Read... [10:00:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:37]Read from MH i2c: E2 [10:00:37]MH_I2C_Read... [10:00:37]Read from MH i2c: E2 03 00 [10:00:37]MH_I2C_Read... [10:00:37]Read from MH i2c: E2 03 00 CF 41 00 90 00 84 [10:00:37]RAPDU: 90 00 [10:00:37]wFMCommunicate OK [10:00:37]wFMCommunicate request_size=135 [10:00:37]MH_SAM_APDU [10:00:37]CAPDU: 80 0D 02 02 82 0F 00 F2 03 01 00 01 F3 03 06 00 6A 2E 00 00 00 00 07 04 06 00 1C B5 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 C8 16 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 E3 07 00 00 35 04 06 00 AD 02 6E F2 BB 76 [10:00:37]Write to MH i2c: E2 8A 00 D0 41 80 0D 02 02 82 00 0F 00 F2 03 01 00 01 F3 03 06 00 6A 2E 00 00 00 00 07 04 06 00 1C B5 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 C8 16 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 E3 07 00 00 35 04 06 00 AD 02 6E F2 BB 76 00 00 A5 [10:00:37]Write i2c OK [10:00:37]MH_I2C_Read... [10:00:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:38]Read from MH i2c: E2 [10:00:38]MH_I2C_Read... [10:00:38]Read from MH i2c: E2 03 00 [10:00:38]MH_I2C_Read... [10:00:38]Read from MH i2c: E2 03 00 D0 41 00 90 00 85 [10:00:38]RAPDU: 90 00 [10:00:38]wFMCommunicate OK [10:00:38]wFMCommunicate request_size=4 [10:00:38]MH_SAM_APDU [10:00:38]CAPDU: 80 0D 03 02 [10:00:38]Write to MH i2c: E2 08 00 D1 41 80 0D 03 02 00 00 00 00 8D [10:00:38]Write i2c OK [10:00:38]MH_I2C_Read... [10:00:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:00:38]Read from MH i2c: E2 [10:00:38]MH_I2C_Read... [10:00:38]Read from MH i2c: E2 0B 00 [10:00:38]MH_I2C_Read... [10:00:38]Read from MH i2c: E2 0B 00 D1 41 00 63 56 B8 6F D8 CC 83 6F 90 00 04 [10:00:38]RAPDU: 63 56 B8 6F D8 CC 83 6F 90 00 [10:00:38]wFMCommunicate OK [10:00:38]SAM_PROTO_SignData done [10:00:38]FM_MakeSignedData done [10:00:38]CreateOFDProtocolMessage [10:00:38]wFMCommunicate request_size=4 [10:00:38]MH_SAM_APDU [10:00:38]CAPDU: 80 11 00 00 [10:00:38]Write to MH i2c: E2 08 00 D2 41 80 11 00 00 00 00 00 00 8D [10:00:38]Write i2c OK [10:00:38]MH_I2C_Read... [10:00:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:38]Read from MH i2c: E2 [10:00:38]MH_I2C_Read... [10:00:38]Read from MH i2c: E2 17 00 [10:00:38]MH_I2C_Read... [10:00:38]Read from MH i2c: E2 17 00 D2 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 DD [10:00:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [10:00:38]wFMCommunicate OK [10:00:38]CreateOFDProtocolMessage done [10:00:38]OFDSenderStorePacket 2019 [10:00:38]StoreOFDPacket docnum=2019 [10:00:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 80 03 00 00 BB 20 78 03 24 76 5A 03 01 00 03 00 6C 03 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 88 13 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 E8 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 33 31 33 30 06 04 24 00 D0 A2 D0 B0 D1 80 D0 B0 D0 BB D0 BB D0 B8 D0 BD D0 B8 20 4E 46 20 31 38 30 D0 B3 20 D0 BA D0 BB D0 B0 D1 81 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 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 34 36 32 30 30 31 37 34 35 33 35 33 36 06 04 28 00 D0 A2 D0 B0 D1 80 D0 B0 D0 BB D0 BB D0 B8 D0 BD D0 B8 20 4E 46 20 31 38 30 D0 B3 20 D1 87 D0 B5 D1 81 D0 BD D0 BE D0 BA 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 7B 00 8A 04 0D 00 34 36 30 32 36 30 36 30 31 30 39 32 34 06 04 37 00 D0 9A D0 BE D0 BD D1 84 20 46 72 75 69 74 2D 74 65 6C 6C 61 20 D1 81 D1 82 D0 B8 D0 BA 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 20 31 36 2A 32 30 2A 34 32 2C 35 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 7E 00 8A 04 08 00 34 36 31 35 36 36 38 36 06 04 3F 00 D0 9A D0 BE D0 BD D1 84 20 46 72 75 69 74 2D 74 65 6C 6C 61 20 D1 81 D1 82 D0 B8 D0 BA 20 D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D1 87 D0 BD D1 8B D0 B9 20 D0 B9 D0 BE D0 B3 D1 83 D1 80 D1 82 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 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 1C B5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 2E 00 00 00 00 07 04 06 00 1C B5 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 C8 16 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 E3 07 00 00 35 04 06 00 AD 02 6E F2 BB 76 63 56 B8 6F D8 CC 83 6F [10:00:38]CheckFolder [10:00:38]dirname=/storage/ofd_packets [10:00:38]CheckFolder done [10:00:38]ProducePacketName [10:00:38]name=ofd_packets/00002019 [10:00:38]NVStorageSaveData ofd_packets/00002019 [10:00:38]File name is /storage/ofd_packets/00002019 [10:00:38]Write 926 bytes [10:00:38]NVStorageSaveData done [10:00:38]OFDSenderStorePacket done [10:00:38]KKMCreateOFDPacket done [10:00:38]NVStorageSaveData kkm_last_timestamp [10:00:38]File name is /storage/kkm_last_timestamp [10:00:38]Write 4 bytes [10:00:38]NVStorageSaveData done [10:00:38]ExternCall_PrintAddStr [10:00:38]wPrintStart [10:00:38]Write to MH i2c: 01 00 00 D3 41 14 [10:00:38]Write i2c OK [10:00:38]MH_I2C_Read... [10:00:38]Read from MH i2c: 01 [10:00:38]MH_I2C_Read... [10:00:38]OFD Sender: Processing packet 2019 [packets to send 1, broken 0] [10:00:38]ProducePacketName [10:00:38]name=ofd_packets/00002019 [10:00:38]OFD Sender: To server: pG, [10:00:38]CommunicateWithHost lk.salyk.kg:30040 [10:00:38]ConnectInit lk.salyk.kg [10:00:38]Read from MH i2c: 01 07 00 [10:00:38]MH_I2C_Read... [10:00:38]Read from MH i2c: 01 07 00 D3 41 00 00 00 00 00 FF 0F 29 [10:00:38]RasterBufferAndPrint [10:00:38]line Счет N : (3)126322 [10:00:38]line ИНН: 02508201610067 [10:00:38]line Контрольно-Кассовый Чек [10:00:38]line ПРОДАЖА [10:00:38]line Товар: 2000036220012 [10:00:38]line Кофе Капучино XL(GABB TRADE) [10:00:38]line 5.000 * 130.00 [10:00:38]line = 650.00 [10:00:38]line НДС 12% НСП 1% [10:00:38]line > о реализуемом товаре [10:00:38]line Товар: 4620017453130 [10:00:38]line Тараллини NF 180г клас [10:00:38]line 2.000 * 90.00 [10:00:38]line = 180.00 [10:00:38]line НДС 12% НСП 1% [10:00:38]line > о реализуемом товаре [10:00:38]line Товар: 4620017453536 [10:00:38]line Тараллини NF 180г чеснок [10:00:38]line 1.000 * 90.00 [10:00:38]line = 90.00 [10:00:38]line НДС 12% НСП 1% [10:00:38]line > о реализуемом товаре [10:00:38]line Товар: 4602606010924 [10:00:38]line Конф Fruit-tella стик ассорти 16*20*42,5 [10:00:38]line 1.000 * 75.00 [10:00:38]line = 75.00 [10:00:38]line НДС 12% НСП 1% [10:00:38]line > о реализуемом товаре [10:00:38]line Товар: 46156686 [10:00:38]line Конф Fruit-tella стик клубничный йогурт [10:00:38]line 1.000 * 75.00 [10:00:38]line = 75.00 [10:00:38]line НДС 12% НСП 1% [10:00:38]line > о реализуемом товаре [10:00:38]line Товар: 46227737 [10:00:38]line Р/ж mentos pure fresh арбуз ролл 15,5г [10:00:38]line 1.000 * 49.00 [10:00:38]line = 49.00 [10:00:38]line НДС 12% НСП 1% [10:00:38]line > о реализуемом товаре [10:00:38]line ИТОГО: 1119.00 [10:00:38]line НСП 1% : 9.89 [10:00:38]line НДС 12% : 118.82 [10:00:38]line Наличными: 1119.00 [10:00:38]line Безнал.: 0.00 [10:00:38]line Место: АЗС № 127 "Партнер Нефть" [10:00:38]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [10:00:38]line СНО: Общий режим [10:00:38]line Чек 70 28.07.2024 10:00 [10:00:38]line Смена: 13 ФФД: 1.0 [10:00:38]line ЗНМ: 0300000161 [10:00:38]line РНМ: 0000000000189667 [10:00:38]line Версия ККМ: v1.0 [10:00:38]line ФМ: 0000000002094248 [10:00:38]line ФД: 2019 [10:00:38]line ФПД: 190225962941302 [10:00:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T100040&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2019&fm=190225962941302&tin=02508201610067®Number=0000000000189667&sum=111900 [10:00:38]line 0 [10:00:38]written 0, free lines is 4095 [10:00:38]Connected sock=10 [10:00:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 80 03 00 00 BB 20 78 03 24 76 5A 03 01 00 03 00 6C 03 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 88 13 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 E8 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 33 31 33 30 06 04 24 00 D0 A2 D0 B0 D1 80 D0 B0 D0 BB D0 BB D0 B8 D0 BD D0 B8 20 4E 46 20 31 38 30 D0 B3 20 D0 BA D0 BB D0 B0 D1 81 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 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 34 36 32 30 30 31 37 34 35 33 35 33 36 06 04 28 00 D0 A2 D0 B0 D1 80 D0 B0 D0 BB D0 BB D0 B8 D0 BD D0 B8 20 4E 46 20 31 38 30 D0 B3 20 D1 87 D0 B5 D1 81 D0 BD D0 BE D0 BA 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 7B 00 8A 04 0D 00 34 36 30 32 36 30 36 30 31 30 39 32 34 06 04 37 00 D0 9A D0 BE D0 BD D1 84 20 46 72 75 69 74 2D 74 65 6C 6C 61 20 D1 81 D1 82 D0 B8 D0 BA 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 20 31 36 2A 32 30 2A 34 32 2C 35 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 7E 00 8A 04 08 00 34 36 31 35 36 36 38 36 06 04 3F 00 D0 9A D0 BE D0 BD D1 84 20 46 72 75 69 74 2D 74 65 6C 6C 61 20 D1 81 D1 82 D0 B8 D0 BA 20 D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D1 87 D0 BD D1 8B D0 B9 20 D0 B9 D0 BE D0 B3 D1 83 D1 80 D1 82 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 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 1C B5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 2E 00 00 00 00 07 04 06 00 1C B5 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 C8 16 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 E3 07 00 00 35 04 06 00 AD 02 6E F2 BB 76 63 56 B8 6F D8 CC 83 6F [10:00:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 DB 1F 47 00 84 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 32 30 39 34 32 34 38 10 04 04 00 E3 07 00 00 F4 03 04 00 39 C2 A5 66 B6 04 01 00 00 8E 8F D2 67 02 72 DF C7 [10:00:39]CommunicateWithHost err = 0 [10:00:39]CheckOFDResponse [10:00:39]1017 (14) - 77093643461234 [10:00:39]1041 (16) - 0000000002094248 [10:00:39]1040 (4) - 2019 [10:00:39]1012 (4) - 28.07.2024 03:59 [10:00:39]1206 (1) - 0 [10:00:39]OFD Sender: Remove packet 2019 [10:00:39]ProducePacketName [10:00:39]name=ofd_packets/00002019 [10:00:39]NVStorageDeleteData [10:00:39]Write to MH i2c: 01 00 00 1D 42 5F [10:00:39]Write i2c OK [10:00:39]MH_I2C_Read... [10:00:39]Read from MH i2c: 01 [10:00:39]MH_I2C_Read... [10:00:39]Read from MH i2c: 01 07 00 [10:00:39]MH_I2C_Read... [10:00:39]Read from MH i2c: 01 07 00 1D 42 00 00 00 00 00 8D 0B FE [10:00:39]RasterBufferAndPrint [10:00:39]line [10:00:39]line [10:00:39]line [10:00:39]line [10:00:39]line [10:00:39]written 0, free lines is 2969 [10:00:39]MH_Cut [10:00:39]Write to MH i2c: D1 01 00 24 42 01 38 [10:00:39]Write i2c OK [10:00:39]MH_I2C_Read... [10:00:39]Read from MH i2c: D1 [10:00:39]MH_I2C_Read... [10:00:39]Read from MH i2c: D1 01 00 [10:00:39]MH_I2C_Read... [10:00:39]Read from MH i2c: D1 01 00 24 42 00 37 [10:00:39]Write to MH i2c: 01 00 00 25 42 67 [10:00:39]Write i2c OK [10:00:39]MH_I2C_Read... [10:00:39]OFD Sender: No OFD packet to send [10:00:40]*** Cut start [10:00:40]*** Partial cut [10:00:40]*** CUTSNS_PIN = 1 [10:00:40]*** CUTSNS_PIN = 0 [10:00:40]*** Brake cut motor [10:00:40]Read from MH i2c: 01 [10:00:40]MH_I2C_Read... [10:00:40]*** Stop cut motor [10:00:40]*** Cut end [10:00:40]Read from MH i2c: 01 07 00 [10:00:40]MH_I2C_Read... [10:00:40]Read from MH i2c: 01 07 00 25 42 00 00 00 00 00 FF 0F 7C [10:00:40]process_action close_receipt done [10:00:40]requested_data is exist [10:00:40]produce_requested_data [10:00:40]requested_item fm.sn is exist - process it [10:00:40]wFMCommunicate request_size=4 [10:00:40]MH_SAM_APDU [10:00:40]CAPDU: 80 11 00 00 [10:00:40]Write to MH i2c: E2 08 00 26 42 80 11 00 00 00 00 00 00 E2 [10:00:40]Write i2c OK [10:00:40]MH_I2C_Read... [10:00:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:41]Read from MH i2c: E2 [10:00:41]MH_I2C_Read... [10:00:41]Read from MH i2c: E2 17 00 [10:00:41]MH_I2C_Read... [10:00:41]Read from MH i2c: E2 17 00 26 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 32 [10:00:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [10:00:41]wFMCommunicate OK [10:00:41]requested_item fd.num is exist - process it [10:00:41]SAM_PROTO_GetFieldsCounters [10:00:41]wFMCommunicate request_size=4 [10:00:41]MH_SAM_APDU [10:00:41]CAPDU: 80 13 00 00 [10:00:41]Write to MH i2c: E2 08 00 27 42 80 13 00 00 00 00 00 00 E5 [10:00:41]Write i2c OK [10:00:41]MH_I2C_Read... [10:00:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:00:41]Read from MH i2c: E2 [10:00:41]MH_I2C_Read... [10:00:41]Read from MH i2c: E2 62 00 [10:00:41]MH_I2C_Read... [10:00:41]Read from MH i2c: E2 62 00 27 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 E3 07 00 00 0E 04 04 00 0D 00 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 D8 [10:00:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 E3 07 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:00:41]wFMCommunicate OK [10:00:41]SAM_PROTO_GetFieldsCounters done [10:00:41]requested_item shift.num is exist - process it [10:00:41]requested_item shift.opened is exist - process it [10:00:41]req_shift_opened [10:00:41]FM_GetShiftState [10:00:41]SAM_PROTO_GetShiftState [10:00:41]wFMCommunicate request_size=4 [10:00:41]MH_SAM_APDU [10:00:41]CAPDU: 80 13 01 00 [10:00:41]Write to MH i2c: E2 08 00 28 42 80 13 01 00 00 00 00 00 E7 [10:00:41]Write i2c OK [10:00:41]MH_I2C_Read... [10:00:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:41]Read from MH i2c: E2 [10:00:41]MH_I2C_Read... [10:00:41]Read from MH i2c: E2 0E 00 [10:00:41]MH_I2C_Read... [10:00:41]Read from MH i2c: E2 0E 00 28 42 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 DB [10:00:41]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [10:00:41]wFMCommunicate OK [10:00:41]SAM_PROTO_GetShiftState done [10:00:41]FM_GetShiftState done [10:00:41]req_shift_opened done [10:00:41]requested_item shift.open_date is exist - process it [10:00:41]req_shift_open_date [10:00:41]req_shift_open_date done [10:00:41]produce_requested_data done [10:00:41]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2019,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [10:00:41]process_action_free close_receipt [10:00:41]json_value_free [10:00:41]json_value_free done [10:00:41]process_json_proto returns [10:00:41]Send response to host [10:00:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2019,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [10:00:41]free response buf [10:00:41]execute_script done [10:00:41]execute_script returns [10:00:41]free content buf [10:00:41]Sock 9.Close socket [10:00:41]Sock 9.Thread stoped [10:00:44]OFD Sender: No OFD packet to send [10:00:49]OFD Sender: No OFD packet to send [10:00:54]OFD Sender: No OFD packet to send [10:00:59]OFD Sender: No OFD packet to send [10:01:04]OFD Sender: No OFD packet to send [10:01:09]OFD Sender: No OFD packet to send [10:01:14]OFD Sender: No OFD packet to send [10:01:19]OFD Sender: No OFD packet to send [10:01:24]OFD Sender: No OFD packet to send [10:01:29]OFD Sender: No OFD packet to send [10:01:34]OFD Sender: No OFD packet to send [10:01:39]OFD Sender: No OFD packet to send [10:01:44]OFD Sender: No OFD packet to send [10:01:49]OFD Sender: No OFD packet to send [10:01:54]OFD Sender: No OFD packet to send [10:01:59]OFD Sender: No OFD packet to send [10:02:04]OFD Sender: No OFD packet to send [10:02:09]OFD Sender: No OFD packet to send [10:02:14]OFD Sender: No OFD packet to send [10:02:19]OFD Sender: No OFD packet to send [10:02:24]OFD Sender: No OFD packet to send [10:02:29]OFD Sender: No OFD packet to send [10:02:34]OFD Sender: No OFD packet to send [10:02:39]OFD Sender: No OFD packet to send [10:02:44]OFD Sender: No OFD packet to send [10:02:49]OFD Sender: No OFD packet to send [10:02:54]OFD Sender: No OFD packet to send [10:02:56]accept exits with 8 [10:02:56]New connection [10:02:56]New thread 3067317604 created [10:02:56]Thread 3067460964 joined [10:02:56]Waiting for new connection... [10:02:56] Sock 8.Parse request [10:02:56]Sock 8.Check first char [10:02:56]Sock 8.First char is OK [10:02:56]request: POST /json_proto HTTP/1.0 [10:02:56]Method: POST [10:02:56]URL: /json_proto [10:02:56]Method is POST - this is cgi request [10:02:56]url: /json_proto [10:02:56]query_string will be loaded in cgi processing [10:02:56]execute_cgi json_proto POST (null) [10:02:56]execute_cgi path=json_proto method=POST [10:02:56]POST find Content-Length [10:02:56]Host: 172.17.45.132:8080 [10:02:56]Content-Length: 619 [10:02:56]Content-Type: application/json [10:02:56] [10:02:56]POST finish read [10:02:56]Found Content-Length = 619 [10:02:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126323", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS 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" ] } } [10:02:56]execute_script... [10:02:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126323", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS 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" ] } } [10:02:56]POST & json_proto [10:02:56]process_json_proto [10:02:56]json parsed OK: [10:02:56]protocol is kg_v1.0 [10:02:56]action value=close_receipt [10:02:56]process_action close_receipt [10:02:56]cmd_close_receipt [10:02:56]MH_GetDate [10:02:56]Write to MH i2c: F0 00 00 29 42 5A [10:02:56]Write i2c OK [10:02:56]MH_I2C_Read... [10:02:56]Read from MH i2c: F0 [10:02:56]MH_I2C_Read... [10:02:56]Read from MH i2c: F0 09 00 [10:02:56]MH_I2C_Read... [10:02:56]Read from MH i2c: F0 09 00 29 42 00 55 17 A6 66 E3 0B 90 66 BF [10:02:56]GetLastDocTimeStamp 1722160840 [10:02:56]current date 1722160981 [10:02:56]FM_GetShiftState [10:02:56]SAM_PROTO_GetShiftState [10:02:56]wFMCommunicate request_size=4 [10:02:56]MH_SAM_APDU [10:02:56]CAPDU: 80 13 01 00 [10:02:56]Write to MH i2c: E2 08 00 2A 42 80 13 01 00 00 00 00 00 E9 [10:02:56]Write i2c OK [10:02:56]MH_I2C_Read... [10:02:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:56]Read from MH i2c: E2 [10:02:56]MH_I2C_Read... [10:02:56]Read from MH i2c: E2 0E 00 [10:02:56]MH_I2C_Read... [10:02:56]Read from MH i2c: E2 0E 00 2A 42 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 DD [10:02:56]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [10:02:56]wFMCommunicate OK [10:02:56]SAM_PROTO_GetShiftState done [10:02:56]FM_GetShiftState done [10:02:56]opened in 1722125648 [10:02:56]opened+sec_in_day 1722212048 [10:02:56]quantity*price = 14000 [10:02:56]sum+1 = 14001 [10:02:56]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре ИТОГО: 465.00 НСП 1% : 4.11 НДС 12% : 49.38 Наличными: 465.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 76 28.07.2024 10:29 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2025 ФПД: 64468149643291 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T102906&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2025&fm=64468149643291&tin=02508201610067®Number=0000000000189667&sum=46500 0 [10:29:02]StoreToDocumentArchive [10:29:02]shift 13 fd 2025 [10:29:02]save to /storage/0013/doc_00002025 [10:29:02]save last doc name /storage/0013/doc_00002025 to /storage/kkm_last_doc_name [10:29:02]save OK [10:29:02]Clear old archive folders... [10:29:02]ProcessDocumentItem done err = 0, tmpTLVsize=268 [10:29:02]tlvbuf is 01FA4620 [10:29:02]SAM_PROTO_ClearQueue [10:29:02]wFMCommunicate request_size=4 [10:29:02]MH_SAM_APDU [10:29:02]CAPDU: 80 09 00 00 [10:29:02]Write to MH i2c: E2 08 00 AA 43 80 09 00 00 00 00 00 00 5F [10:29:02]Write i2c OK [10:29:02]MH_I2C_Read... [10:29:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:29:02]Read from MH i2c: E2 [10:29:02]MH_I2C_Read... [10:29:02]Read from MH i2c: E2 03 00 [10:29:02]MH_I2C_Read... [10:29:02]Read from MH i2c: E2 03 00 AA 43 00 90 00 61 [10:29:02]RAPDU: 90 00 [10:29:02]wFMCommunicate OK [10:29:02]SAM_PROTO_ClearQueue done [10:29:02]KKMCreateOFDPacket [10:29:02]OFDProtocolAddRootSTLVToBuf [10:29:02]FM_MakeSignedData [10:29:02]FM_MakeSignedData [10:29:02]SAM_PROTO_SignData [10:29:02]wFMCommunicate request_size=4 [10:29:02]MH_SAM_APDU [10:29:02]CAPDU: 80 0D 01 02 [10:29:02]Write to MH i2c: E2 08 00 AB 43 80 0D 01 02 00 00 00 00 67 [10:29:02]Write i2c OK [10:29:02]MH_I2C_Read... [10:29:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:29:02]Read from MH i2c: E2 [10:29:02]MH_I2C_Read... [10:29:02]Read from MH i2c: E2 03 00 [10:29:02]MH_I2C_Read... [10:29:02]Read from MH i2c: E2 03 00 AB 43 00 90 00 62 [10:29:02]RAPDU: 90 00 [10:29:02]wFMCommunicate OK [10:29:02]wFMCommunicate request_size=255 [10:29:02]MH_SAM_APDU [10:29:02]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 35 38 34 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 47 6F 6C 64 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 A4 B5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 B5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 13 00 00 00 00 07 04 06 00 A4 B5 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 72 1D A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 [10:29:02]Write to MH i2c: E2 02 01 AC 43 80 0D 02 02 FA 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 35 38 34 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 47 6F 6C 64 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 A4 B5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 B5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 13 00 00 00 00 07 04 06 00 A4 B5 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 72 1D A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 00 00 0D [10:29:02]Write i2c OK [10:29:02]MH_I2C_Read... [10:29:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:02]Read from MH i2c: E2 [10:29:02]MH_I2C_Read... [10:29:02]Read from MH i2c: E2 03 00 [10:29:02]MH_I2C_Read... [10:29:02]Read from MH i2c: E2 03 00 AC 43 00 90 00 63 [10:29:02]RAPDU: 90 00 [10:29:02]wFMCommunicate OK [10:29:02]wFMCommunicate request_size=27 [10:29:02]MH_SAM_APDU [10:29:02]CAPDU: 80 0D 02 02 16 34 32 34 38 10 04 04 00 E9 07 00 00 35 04 06 00 3A A2 29 28 A8 1B [10:29:02]Write to MH i2c: E2 1E 00 AD 43 80 0D 02 02 16 00 34 32 34 38 10 04 04 00 E9 07 00 00 35 04 06 00 3A A2 29 28 A8 1B 00 00 9F [10:29:02]Write i2c OK [10:29:02]MH_I2C_Read... [10:29:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:02]Read from MH i2c: E2 [10:29:02]MH_I2C_Read... [10:29:02]Read from MH i2c: E2 03 00 [10:29:02]MH_I2C_Read... [10:29:02]Read from MH i2c: E2 03 00 AD 43 00 90 00 64 [10:29:02]RAPDU: 90 00 [10:29:02]wFMCommunicate OK [10:29:02]wFMCommunicate request_size=4 [10:29:02]MH_SAM_APDU [10:29:02]CAPDU: 80 0D 03 02 [10:29:02]Write to MH i2c: E2 08 00 AE 43 80 0D 03 02 00 00 00 00 6C [10:29:02]Write i2c OK [10:29:02]MH_I2C_Read... [10:29:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:29:02]Read from MH i2c: E2 [10:29:02]MH_I2C_Read... [10:29:02]Read from MH i2c: E2 0B 00 [10:29:02]MH_I2C_Read... [10:29:02]Read from MH i2c: E2 0B 00 AE 43 00 34 2F 53 A6 5E 3A B2 B9 90 00 CC [10:29:02]RAPDU: 34 2F 53 A6 5E 3A B2 B9 90 00 [10:29:02]wFMCommunicate OK [10:29:02]SAM_PROTO_SignData done [10:29:02]FM_MakeSignedData done [10:29:02]CreateOFDProtocolMessage [10:29:02]wFMCommunicate request_size=4 [10:29:02]MH_SAM_APDU [10:29:02]CAPDU: 80 11 00 00 [10:29:02]Write to MH i2c: E2 08 00 AF 43 80 11 00 00 00 00 00 00 6C [10:29:02]Write i2c OK [10:29:02]MH_I2C_Read... [10:29:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:02]Read from MH i2c: E2 [10:29:02]MH_I2C_Read... [10:29:02]Read from MH i2c: E2 17 00 [10:29:02]MH_I2C_Read... [10:29:02]Read from MH i2c: E2 17 00 AF 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 BC [10:29:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [10:29:02]wFMCommunicate OK [10:29:02]CreateOFDProtocolMessage done [10:29:02]OFDSenderStorePacket 2025 [10:29:02]StoreOFDPacket docnum=2025 [10:29:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 20 01 00 00 49 E3 18 01 4B F2 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 35 38 34 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 47 6F 6C 64 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 A4 B5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 B5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 13 00 00 00 00 07 04 06 00 A4 B5 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 72 1D A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 E9 07 00 00 35 04 06 00 3A A2 29 28 A8 1B 34 2F 53 A6 5E 3A B2 B9 [10:29:02]CheckFolder [10:29:02]dirname=/storage/ofd_packets [10:29:02]CheckFolder done [10:29:02]ProducePacketName [10:29:02]name=ofd_packets/00002025 [10:29:02]NVStorageSaveData ofd_packets/00002025 [10:29:02]File name is /storage/ofd_packets/00002025 [10:29:02]Write 318 bytes [10:29:02]NVStorageSaveData done [10:29:02]OFDSenderStorePacket done [10:29:02]KKMCreateOFDPacket done [10:29:02]NVStorageSaveData kkm_last_timestamp [10:29:02]File name is /storage/kkm_last_timestamp [10:29:02]Write 4 bytes [10:29:02]NVStorageSaveData done [10:29:02]ExternCall_PrintAddStr [10:29:02]wPrintStart [10:29:02]Write to MH i2c: 01 00 00 B0 43 F3 [10:29:02]Write i2c OK [10:29:02]MH_I2C_Read... [10:29:02]Read from MH i2c: 01 [10:29:02]MH_I2C_Read... [10:29:02]Read from MH i2c: 01 07 00 [10:29:02]MH_I2C_Read... [10:29:02]Read from MH i2c: 01 07 00 B0 43 00 00 00 00 00 FF 0F 08 [10:29:02]RasterBufferAndPrint [10:29:02]line Счет N : (3)126328 [10:29:02]line ИНН: 02508201610067 [10:29:02]line Контрольно-Кассовый Чек [10:29:02]line ПРОДАЖА [10:29:02]line Товар: 4640030091584 [10:29:02]line Сигареты Esse Gold [10:29:02]line 3.000 * 155.00 [10:29:02]line = 465.00 [10:29:02]line НДС 12% НСП 1% [10:29:02]line > о реализуемом товаре [10:29:02]line ИТОГО: 465.00 [10:29:02]line НСП 1% : 4.11 [10:29:02]line НДС 12% : 49.38 [10:29:02]line Наличными: 465.00 [10:29:02]line Безнал.: 0.00 [10:29:02]line Место: АЗС № 127 "Партнер Нефть" [10:29:02]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [10:29:02]line СНО: Общий режим [10:29:02]line Чек 76 28.07.2024 10:29 [10:29:02]line Смена: 13 ФФД: 1.0 [10:29:02]line ЗНМ: 0300000161 [10:29:02]line РНМ: 0000000000189667 [10:29:02]line Версия ККМ: v1.0 [10:29:02]line ФМ: 0000000002094248 [10:29:02]line ФД: 2025 [10:29:02]line ФПД: 64468149643291 [10:29:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T102906&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2025&fm=64468149643291&tin=02508201610067®Number=0000000000189667&sum=46500 [10:29:03]line 0 [10:29:03]OFD Sender: Processing packet 2025 [packets to send 1, broken 0] [10:29:03]ProducePacketName [10:29:03]name=ofd_packets/00002025 [10:29:03]OFD Sender: To server: pG, [10:29:03]CommunicateWithHost lk.salyk.kg:30040 [10:29:03]ConnectInit lk.salyk.kg [10:29:03]written 0, free lines is 4095 [10:29:03]Connected sock=9 [10:29:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 20 01 00 00 49 E3 18 01 4B F2 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 35 38 34 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 47 6F 6C 64 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 A4 B5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 B5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 13 00 00 00 00 07 04 06 00 A4 B5 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 72 1D A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 E9 07 00 00 35 04 06 00 3A A2 29 28 A8 1B 34 2F 53 A6 5E 3A B2 B9 [10:29:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 21 BC 47 00 81 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 E9 07 00 00 F4 03 04 00 E2 C8 A5 66 B6 04 01 00 00 B1 D4 E7 5B 29 D5 C1 B7 [10:29:03]CommunicateWithHost err = 0 [10:29:03]CheckOFDResponse [10:29:03]1017 (14) - 77093643461234 [10:29:03]1041 (16) - 0000000002094248 [10:29:03]1040 (4) - 2025 [10:29:03]1012 (4) - 28.07.2024 04:28 [10:29:03]1206 (1) - 0 [10:29:03]OFD Sender: Remove packet 2025 [10:29:03]ProducePacketName [10:29:03]name=ofd_packets/00002025 [10:29:03]NVStorageDeleteData [10:29:03]Write to MH i2c: 01 00 00 D8 43 1B [10:29:03]Write i2c OK [10:29:03]MH_I2C_Read... [10:29:03]Read from MH i2c: 01 [10:29:03]MH_I2C_Read... [10:29:03]Read from MH i2c: 01 07 00 [10:29:03]MH_I2C_Read... [10:29:03]Read from MH i2c: 01 07 00 D8 43 00 00 00 00 00 23 0D 52 [10:29:03]RasterBufferAndPrint [10:29:03]line [10:29:03]line [10:29:03]line [10:29:03]line [10:29:03]line [10:29:03]written 0, free lines is 3369 [10:29:03]MH_Cut [10:29:03]Write to MH i2c: D1 01 00 DF 43 01 F4 [10:29:03]Write i2c OK [10:29:03]MH_I2C_Read... [10:29:03]Read from MH i2c: D1 [10:29:03]MH_I2C_Read... [10:29:03]Read from MH i2c: D1 01 00 [10:29:03]MH_I2C_Read... [10:29:03]Read from MH i2c: D1 01 00 DF 43 00 F3 [10:29:03]Write to MH i2c: 01 00 00 E0 43 23 [10:29:03]Write i2c OK [10:29:03]MH_I2C_Read... [10:29:03]OFD Sender: No OFD packet to send [10:29:04]*** Cut start [10:29:04]*** Partial cut [10:29:04]*** CUTSNS_PIN = 1 [10:29:04]*** CUTSNS_PIN = 0 [10:29:04]*** Brake cut motor [10:29:04]Read from MH i2c: 01 [10:29:04]MH_I2C_Read... [10:29:04]*** Stop cut motor [10:29:04]*** Cut end [10:29:04]Read from MH i2c: 01 07 00 [10:29:04]MH_I2C_Read... [10:29:04]Read from MH i2c: 01 07 00 E0 43 00 00 00 00 00 FF 0F 38 [10:29:04]process_action close_receipt done [10:29:04]requested_data is exist [10:29:04]produce_requested_data [10:29:04]requested_item fm.sn is exist - process it [10:29:04]wFMCommunicate request_size=4 [10:29:04]MH_SAM_APDU [10:29:04]CAPDU: 80 11 00 00 [10:29:04]Write to MH i2c: E2 08 00 E1 43 80 11 00 00 00 00 00 00 9E [10:29:04]Write i2c OK [10:29:04]MH_I2C_Read... [10:29:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:04]Read from MH i2c: E2 [10:29:04]MH_I2C_Read... [10:29:04]Read from MH i2c: E2 17 00 [10:29:04]MH_I2C_Read... [10:29:04]Read from MH i2c: E2 17 00 E1 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 EE [10:29:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [10:29:04]wFMCommunicate OK [10:29:04]requested_item fd.num is exist - process it [10:29:04]SAM_PROTO_GetFieldsCounters [10:29:04]wFMCommunicate request_size=4 [10:29:04]MH_SAM_APDU [10:29:04]CAPDU: 80 13 00 00 [10:29:04]Write to MH i2c: E2 08 00 E2 43 80 13 00 00 00 00 00 00 A1 [10:29:04]Write i2c OK [10:29:04]MH_I2C_Read... [10:29:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:29:05]Read from MH i2c: E2 [10:29:05]MH_I2C_Read... [10:29:05]Read from MH i2c: E2 62 00 [10:29:05]MH_I2C_Read... [10:29:05]Read from MH i2c: E2 62 00 E2 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 E9 07 00 00 0E 04 04 00 0D 00 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 AC [10:29:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 E9 07 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:29:05]wFMCommunicate OK [10:29:05]SAM_PROTO_GetFieldsCounters done [10:29:05]requested_item shift.num is exist - process it [10:29:05]requested_item shift.opened is exist - process it [10:29:05]req_shift_opened [10:29:05]FM_GetShiftState [10:29:05]SAM_PROTO_GetShiftState [10:29:05]wFMCommunicate request_size=4 [10:29:05]MH_SAM_APDU [10:29:05]CAPDU: 80 13 01 00 [10:29:05]Write to MH i2c: E2 08 00 E3 43 80 13 01 00 00 00 00 00 A3 [10:29:05]Write i2c OK [10:29:05]MH_I2C_Read... [10:29:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:05]Read from MH i2c: E2 [10:29:05]MH_I2C_Read... [10:29:05]Read from MH i2c: E2 0E 00 [10:29:05]MH_I2C_Read... [10:29:05]Read from MH i2c: E2 0E 00 E3 43 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 97 [10:29:05]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [10:29:05]wFMCommunicate OK [10:29:05]SAM_PROTO_GetShiftState done [10:29:05]FM_GetShiftState done [10:29:05]req_shift_opened done [10:29:05]requested_item shift.open_date is exist - process it [10:29:05]req_shift_open_date [10:29:05]req_shift_open_date done [10:29:05]produce_requested_data done [10:29:05]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2025,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [10:29:05]process_action_free close_receipt [10:29:05]json_value_free [10:29:05]json_value_free done [10:29:05]process_json_proto returns [10:29:05]Send response to host [10:29:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2025,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [10:29:05]free response buf [10:29:05]execute_script done [10:29:05]execute_script returns [10:29:05]free content buf [10:29:05]Sock 11.Close socket [10:29:05]Sock 11.Thread stoped [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:44]OFD Sender: No OFD packet to send [10:29:49]OFD Sender: No OFD packet to send [10:29:54]OFD Sender: No OFD packet to send [10:29:59]OFD Sender: No OFD packet to send [10:30:04]OFD Sender: No OFD packet to send [10:30:09]OFD Sender: No OFD packet to send [10:30:14]OFD Sender: No OFD packet to send [10:30:19]OFD Sender: No OFD packet to send [10:30:24]OFD Sender: No OFD packet to send [10:30:29]OFD Sender: No OFD packet to send [10:30:34]OFD Sender: No OFD packet to send [10:30:39]OFD Sender: No OFD packet to send [10:30:44]OFD Sender: No OFD packet to send [10:30:49]OFD Sender: No OFD packet to send [10:30:54]OFD Sender: No OFD packet to send [10:30:59]OFD Sender: No OFD packet to send [10:31:04]OFD Sender: No OFD packet to send [10:31:09]OFD Sender: No OFD packet to send [10:31:14]OFD Sender: No OFD packet to send [10:31:19]OFD Sender: No OFD packet to send [10:31:24]OFD Sender: No OFD packet to send [10:31:29]OFD Sender: No OFD packet to send [10:31:34]OFD Sender: No OFD packet to send [10:31:39]OFD Sender: No OFD packet to send [10:31:44]OFD Sender: No OFD packet to send [10:31:49]OFD Sender: No OFD packet to send [10:31:54]OFD Sender: No OFD packet to send [10:31:59]OFD Sender: No OFD packet to send [10:32:04]OFD Sender: No OFD packet to send [10:32:09]OFD Sender: No OFD packet to send [10:32:14]OFD Sender: No OFD packet to send [10:32:19]OFD Sender: No OFD packet to send [10:32:24]OFD Sender: No OFD packet to send [10:32:29]OFD Sender: No OFD packet to send [10:32:34]OFD Sender: No OFD packet to send [10:32:39]OFD Sender: No OFD packet to send [10:32:44]OFD Sender: No OFD packet to send [10:32:49]OFD Sender: No OFD packet to send [10:32:54]OFD Sender: No OFD packet to send [10:32:59]OFD Sender: No OFD packet to send [10:33:04]OFD Sender: No OFD packet to send [10:33:09]OFD Sender: No OFD packet to send [10:33:14]OFD Sender: No OFD packet to send [10:33:19]OFD Sender: No OFD packet to send [10:33:24]OFD Sender: No OFD packet to send [10:33:29]OFD Sender: No OFD packet to send [10:33:34]OFD Sender: No OFD packet to send [10:33:39]OFD Sender: No OFD packet to send [10:39:05]ConnectInit Can't connect to host [10:39:09]OFD Sender: No OFD packet to send [10:39:14]OFD Sender: No OFD packet to send [10:39:19]OFD Sender: No OFD packet to send [10:39:24]OFD Sender: No OFD packet to send [10:39:29]OFD Sender: No OFD packet to send [10:39:34]OFD Sender: No OFD packet to send [10:39:39]OFD Sender: No OFD packet to send [10:39:44]OFD Sender: No OFD packet to send [10:39:49]OFD Sender: No OFD packet to send [10:39:54]OFD Sender: No OFD packet to send [10:39:59]OFD Sender: No OFD packet to send [10:40:04]OFD Sender: No OFD packet to send [10:40:09]OFD Sender: No OFD packet to send [10:40:14]OFD Sender: No OFD packet to send [10:40:19]OFD Sender: No OFD packet to send [10:40:24]OFD Sender: No OFD packet to send [10:40:29]OFD Sender: No OFD packet to send [10:40:34]OFD Sender: No OFD packet to send [10:40:39]OFD Sender: No OFD packet to send [10:40:44]OFD Sender: No OFD packet to send [10:40:49]OFD Sender: No OFD packet to send [10:40:54]OFD Sender: No OFD packet to send [10:40:59]OFD Sender: No OFD packet to send [10:41:04]OFD Sender: No OFD packet to send [10:41:09]OFD Sender: No OFD packet to send [10:41:14]OFD Sender: No OFD packet to send [10:41:19]OFD Sender: No OFD packet to send [10:41:24]OFD Sender: No OFD packet to send [10:41:29]OFD Sender: No OFD packet to send [10:41:34]OFD Sender: No OFD packet to send [10:41:39]OFD Sender: No OFD packet to send [10:41:44]OFD Sender: No OFD packet to send [10:41:49]OFD Sender: No OFD packet to send [10:41:54]OFD Sender: No OFD packet to send [10:41:59]OFD Sender: No OFD packet to send [10:42:04]OFD Sender: No OFD packet to send [10:42:09]OFD Sender: No OFD packet to send [10:42:14]OFD Sender: No OFD packet to send [10:42:19]OFD Sender: No OFD packet to send [10:42:24]OFD Sender: No OFD packet to send [10:42:29]OFD Sender: No OFD packet to send [10:42:34]OFD Sender: No OFD packet to send [10:42:39]OFD Sender: No OFD packet to send [10:42:44]OFD Sender: No OFD packet to send [10:42:49]OFD Sender: No OFD packet to send [10:42:54]OFD Sender: No OFD packet to send [10:42:59]OFD Sender: No OFD packet to send [10:43:04]OFD Sender: No OFD packet to send [10:43:09]OFD Sender: No OFD packet to send [10:43:14]OFD Sender: No OFD packet to send [10:43:19]OFD Sender: No OFD packet to send [10:43:24]OFD Sender: No OFD packet to send [10:43:29]OFD Sender: No OFD packet to send [10:43:34]OFD Sender: No OFD packet to send [10:43:39]OFD Sender: No OFD packet to send [10:43:44]OFD Sender: No OFD packet to send [10:43:49]OFD Sender: No OFD packet to send [10:43:54]OFD Sender: No OFD packet to send [10:43:59]OFD Sender: No OFD packet to send [10:44:04]OFD Sender: No OFD packet to send [10:44:09]OFD Sender: No OFD packet to send [10:44:14]OFD Sender: No OFD packet to send [10:44:19]OFD Sender: No OFD packet to send [10:44:24]OFD Sender: No OFD packet to send [10:44:29]OFD Sender: No OFD packet to send [10:44:34]OFD Sender: No OFD packet to send [10:44:39]OFD Sender: No OFD packet to send [10:44:44]OFD Sender: No OFD packet to send [10:44:49]OFD Sender: No OFD packet to send [10:44:54]OFD Sender: No OFD packet to send [10:44:59]OFD Sender: No OFD packet to send [10:45:04]OFD Sender: No OFD packet to send [10:45:09]OFD Sender: No OFD packet to send [10:45:14]OFD Sender: No OFD packet to send [10:45:19]OFD Sender: No OFD packet to send [10:45:24]OFD Sender: No OFD packet to send [10:45:29]OFD Sender: No OFD packet to send [10:45:34]OFD Sender: No OFD packet to send [10:45:39]OFD Sender: No OFD packet to send [10:45:44]OFD Sender: No OFD packet to send [10:45:49]OFD Sender: No OFD packet to send [10:45:54]OFD Sender: No OFD packet to send [10:45:59]OFD Sender: No OFD packet to send [10:46:04]OFD Sender: No OFD packet to send [10:46:09]OFD Sender: No OFD packet to send [10:46:14]OFD Sender: No OFD packet to send [10:46:19]OFD Sender: No OFD packet to send [10:46:24]OFD Sender: No OFD packet to send [10:46:29]OFD Sender: No OFD packet to send [10:46:34]OFD Sender: No OFD packet to send [10:46:39]OFD Sender: No OFD packet to send [10:46:44]OFD Sender: No OFD packet to send [10:46:49]OFD Sender: No OFD packet to send [10:46:54]OFD Sender: No OFD packet to send [10:46:59]OFD Sender: No OFD packet to send [10:47:04]OFD Sender: No OFD packet to send [10:47:09]OFD Sender: No OFD packet to send [10:47:14]OFD Sender: No OFD packet to send [10:47:19]OFD Sender: No OFD packet to send [10:47:24]OFD Sender: No OFD packet to send [10:47:29]OFD Sender: No OFD packet to send [10:47:34]OFD Sender: No OFD packet to send [10:47:39]OFD Sender: No OFD packet to send [10:47:44]OFD Sender: No OFD packet to send [10:47:49]OFD Sender: No OFD packet to send [10:47:54]OFD Sender: No OFD packet to send [10:47:59]OFD Sender: No OFD packet to send [10:48:04]OFD Sender: No OFD packet to send [10:48:09]OFD Sender: No OFD packet to send [10:48:14]OFD Sender: No OFD packet to send [10:48:19]OFD Sender: No OFD packet to send [10:48:24]OFD Sender: No OFD packet to send [10:48:29]OFD Sender: No OFD packet to send [10:48:34]OFD Sender: No OFD packet to send [10:48:39]OFD Sender: No OFD packet to send [10:48:44]OFD Sender: No OFD packet to send [10:48:49]OFD Sender: No OFD packet to send [10:48:54]OFD Sender: No OFD packet to send [10:48:59]OFD Sender: No OFD packet to send [10:49:04]OFD Sender: No OFD packet to send [10:49:09]OFD Sender: No OFD packet to send [10:49:14]OFD Sender: No OFD packet to send [10:49:19]OFD Sender: No OFD packet to send [10:49:24]OFD Sender: No OFD packet to send [10:49:29]OFD Sender: No OFD packet to send [10:49:34]OFD Sender: No OFD packet to send [10:49:39]OFD Sender: No OFD packet to send [10:49:44]OFD Sender: No OFD packet to send [10:52:17]ConnectInit Can't connect to host [10:52:20]OFD Sender: No OFD packet to send [10:52:25]OFD Sender: No OFD packet to send [10:52:30]OFD Sender: No OFD packet to send [10:52:35]OFD Sender: No OFD packet to send [10:52:40]OFD Sender: No OFD packet to send [10:52:45]OFD Sender: No OFD packet to send [10:52:50]OFD Sender: No OFD packet to send [10:52:55]OFD Sender: No OFD packet to send [10:53:00]OFD Sender: No OFD packet to send [10:53:05]OFD Sender: No OFD packet to send [10:53:10]OFD Sender: No OFD packet to send [10:53:15]OFD Sender: No OFD packet to send [10:53:20]OFD Sender: No OFD packet to send [10:53:25]OFD Sender: No OFD packet to send [10:53:30]OFD Sender: No OFD packet to send [10:53:35]OFD Sender: No OFD packet to send [10:53:40]OFD Sender: No OFD packet to send [10:53:45]OFD Sender: No OFD packet to send [10:53:50]OFD Sender: No OFD packet to send [10:53:55]OFD Sender: No OFD packet to send [10:54:00]OFD Sender: No OFD packet to send [10:54:05]OFD Sender: No OFD packet to send [10:54:10]OFD Sender: No OFD packet to send [10:54:15]OFD Sender: No OFD packet to send [10:54:20]OFD Sender: No OFD packet to send [10:54:25]OFD Sender: No OFD packet to send [10:54:30]OFD Sender: No OFD packet to send [10:54:35]OFD Sender: No OFD packet to send [10:54:40]OFD Sender: No OFD packet to send [10:54:45]OFD Sender: No OFD packet to send [10:54:50]OFD Sender: No OFD packet to send [10:54:55]OFD Sender: No OFD packet to send [10:55:00]OFD Sender: No OFD packet to send [10:55:05]OFD Sender: No OFD packet to send [10:55:10]OFD Sender: No OFD packet to send [10:55:15]OFD Sender: No OFD packet to send [10:55:20]OFD Sender: No OFD packet to send [10:55:25]OFD Sender: No OFD packet to send [10:55:30]OFD Sender: No OFD packet to send [10:55:35]OFD Sender: No OFD packet to send [10:55:40]OFD Sender: No OFD packet to send [10:55:45]OFD Sender: No OFD packet to send [10:55:50]OFD Sender: No OFD packet to send [10:55:55]OFD Sender: No OFD packet to send [10:56:00]OFD Sender: No OFD packet to send [10:56:05]OFD Sender: No OFD packet to send [10:56:10]OFD Sender: No OFD packet to send [10:56:15]OFD Sender: No OFD packet to send [10:56:20]OFD Sender: No OFD packet to send [10:56:21]accept exits with 8 [10:56:21]New connection [10:56:21]New thread 3067317604 created [10:56:21]Thread 3067460964 joined [10:56:21]Waiting for new connection... [10:56:21] Sock 8.Parse request [10:56:21]Sock 8.Check first char [10:56:21]Sock 8.First char is OK [10:56:21]request: POST /json_proto HTTP/1.0 [10:56:21]Method: POST [10:56:21]URL: /json_proto [10:56:21]Method is POST - this is cgi request [10:56:21]url: /json_proto [10:56:21]query_string will be loaded in cgi processing [10:56:21]execute_cgi json_proto POST (null) [10:56:21]execute_cgi path=json_proto method=POST [10:56:21]POST find Content-Length [10:56:21]Host: 172.17.45.132:8080 [10:56:21]Content-Length: 886 [10:56:21]Content-Type: application/json [10:56:21] [10:56:21]POST finish read [10:56:21]Found Content-Length = 886 [10:56:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126329", "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 }]} ,{ "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 165.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:56:21]execute_script... [10:56: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)126329", "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 }]} ,{ "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 165.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:56:21]POST & json_proto [10:56:21]process_json_proto [10:56:21]json parsed OK: [10:56:21]protocol is kg_v1.0 [10:56:21]action value=close_receipt [10:56:21]process_action close_receipt [10:56:21]cmd_close_receipt [10:56:21]MH_GetDate [10:56:21]Write to MH i2c: F0 00 00 E4 43 16 [10:56:21]Write i2c OK [10:56:21]MH_I2C_Read... [10:56:21]Read from MH i2c: F0 [10:56:21]MH_I2C_Read... [10:56:21]Read from MH i2c: F0 09 00 [10:56:21]MH_I2C_Read... [10:56:21]Read from MH i2c: F0 09 00 E4 43 00 DA 23 A6 66 E3 0B 90 66 0C [10:56:21]GetLastDocTimeStamp 1722162546 [10:56:21]current date 1722164186 [10:56:21]FM_GetShiftState [10:56:21]SAM_PROTO_GetShiftState [10:56:21]wFMCommunicate request_size=4 [10:56:21]MH_SAM_APDU [10:56:21]CAPDU: 80 13 01 00 [10:56:21]Write to MH i2c: E2 08 00 E5 43 80 13 01 00 00 00 00 00 A5 [10:56:21]Write i2c OK [10:56:21]MH_I2C_Read... [10:56:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:56:21]Read from MH i2c: E2 [10:56:21]MH_I2C_Read... [10:56:21]Read from MH i2c: E2 0E 00 [10:56:21]MH_I2C_Read... [10:56:21]Read from MH i2c: E2 0E 00 E5 43 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 99 [10:56:21]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [10:56:21]wFMCommunicate OK [10:56:21]SAM_PROTO_GetShiftState done [10:56:21]FM_GetShiftState done [10:56:21]opened in 1722125648 [10:56:21]opened+sec_in_day 1722212048 [10:56:21]quantity*price = 8500 [10:56:21]sum+1 = 8501 [10:56:21]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001570057 Напиток Pepsi 0,5л 1.000 * 80.00 = 80.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 165.00 НСП 1% : 1.46 НДС 12% : 17.53 Наличными: 165.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 77 28.07.2024 10:56 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2026 ФПД: 17772707421473 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T105626&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2026&fm=17772707421473&tin=02508201610067®Number=0000000000189667&sum=16500 0 [10:56:22]StoreToDocumentArchive [10:56:22]shift 13 fd 2026 [10:56:22]save to /storage/0013/doc_00002026 [10:56:22]save last doc name /storage/0013/doc_00002026 to /storage/kkm_last_doc_name [10:56:22]save OK [10:56:22]Clear old archive folders... [10:56:22]ProcessDocumentItem done err = 0, tmpTLVsize=392 [10:56:22]tlvbuf is 01F63C90 [10:56:22]SAM_PROTO_ClearQueue [10:56:22]wFMCommunicate request_size=4 [10:56:22]MH_SAM_APDU [10:56:22]CAPDU: 80 09 00 00 [10:56:22]Write to MH i2c: E2 08 00 F2 43 80 09 00 00 00 00 00 00 A7 [10:56:22]Write i2c OK [10:56:22]MH_I2C_Read... [10:56:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:56:22]Read from MH i2c: E2 [10:56:22]MH_I2C_Read... [10:56:22]Read from MH i2c: E2 03 00 [10:56:22]MH_I2C_Read... [10:56:22]Read from MH i2c: E2 03 00 F2 43 00 90 00 A9 [10:56:22]RAPDU: 90 00 [10:56:22]wFMCommunicate OK [10:56:22]SAM_PROTO_ClearQueue done [10:56:22]KKMCreateOFDPacket [10:56:22]OFDProtocolAddRootSTLVToBuf [10:56:22]FM_MakeSignedData [10:56:22]FM_MakeSignedData [10:56:22]SAM_PROTO_SignData [10:56:22]wFMCommunicate request_size=4 [10:56:22]MH_SAM_APDU [10:56:22]CAPDU: 80 0D 01 02 [10:56:22]Write to MH i2c: E2 08 00 F3 43 80 0D 01 02 00 00 00 00 AF [10:56:22]Write i2c OK [10:56:22]MH_I2C_Read... [10:56:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:56:22]Read from MH i2c: E2 [10:56:22]MH_I2C_Read... [10:56:22]Read from MH i2c: E2 03 00 [10:56:22]MH_I2C_Read... [10:56:22]Read from MH i2c: E2 03 00 F3 43 00 90 00 AA [10:56:22]RAPDU: 90 00 [10:56:22]wFMCommunicate OK [10:56:22]wFMCommunicate request_size=255 [10:56:22]MH_SAM_APDU [10:56:22]CAPDU: 80 0D 02 02 FA 03 00 88 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 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 [10:56:22]Write to MH i2c: E2 02 01 F4 43 80 0D 02 02 FA 00 03 00 88 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 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 00 00 01 [10:56:22]Write i2c OK [10:56:22]MH_I2C_Read... [10:56:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:56:22]Read from MH i2c: E2 [10:56:22]MH_I2C_Read... [10:56:22]Read from MH i2c: E2 03 00 [10:56:22]MH_I2C_Read... [10:56:22]Read from MH i2c: E2 03 00 F4 43 00 90 00 AB [10:56:22]RAPDU: 90 00 [10:56:22]wFMCommunicate OK [10:56:22]wFMCommunicate request_size=151 [10:56:22]MH_SAM_APDU [10:56:22]CAPDU: 80 0D 02 02 92 03 01 00 01 F7 03 06 00 92 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 06 00 00 00 00 07 04 06 00 74 40 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 DA 23 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 EA 07 00 00 35 04 06 00 10 2A 07 E9 9D 21 [10:56:22]Write to MH i2c: E2 9A 00 F5 43 80 0D 02 02 92 00 03 01 00 01 F7 03 06 00 92 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 06 00 00 00 00 07 04 06 00 74 40 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 DA 23 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 EA 07 00 00 35 04 06 00 10 2A 07 E9 9D 21 00 00 72 [10:56:22]Write i2c OK [10:56:22]MH_I2C_Read... [10:56:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:56:22]Read from MH i2c: E2 [10:56:22]MH_I2C_Read... [10:56:22]Read from MH i2c: E2 03 00 [10:56:22]MH_I2C_Read... [10:56:22]Read from MH i2c: E2 03 00 F5 43 00 90 00 AC [10:56:22]RAPDU: 90 00 [10:56:22]wFMCommunicate OK [10:56:22]wFMCommunicate request_size=4 [10:56:22]MH_SAM_APDU [10:56:22]CAPDU: 80 0D 03 02 [10:56:22]Write to MH i2c: E2 08 00 F6 43 80 0D 03 02 00 00 00 00 B4 [10:56:22]Write i2c OK [10:56:22]MH_I2C_Read... [10:56:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:56:22]Read from MH i2c: E2 [10:56:22]MH_I2C_Read... [10:56:22]Read from MH i2c: E2 0B 00 [10:56:22]MH_I2C_Read... [10:56:22]Read from MH i2c: E2 0B 00 F6 43 00 9C 6B 10 89 2B B8 AD 8B 90 00 70 [10:56:22]RAPDU: 9C 6B 10 89 2B B8 AD 8B 90 00 [10:56:22]wFMCommunicate OK [10:56:22]SAM_PROTO_SignData done [10:56:22]FM_MakeSignedData done [10:56:22]CreateOFDProtocolMessage [10:56:22]wFMCommunicate request_size=4 [10:56:22]MH_SAM_APDU [10:56:22]CAPDU: 80 11 00 00 [10:56:22]Write to MH i2c: E2 08 00 F7 43 80 11 00 00 00 00 00 00 B4 [10:56:22]Write i2c OK [10:56:22]MH_I2C_Read... [10:56:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:56:22]Read from MH i2c: E2 [10:56:22]MH_I2C_Read... [10:56:22]Read from MH i2c: E2 17 00 [10:56:22]MH_I2C_Read... [10:56:22]Read from MH i2c: E2 17 00 F7 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 04 [10:56:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [10:56:22]wFMCommunicate OK [10:56:22]CreateOFDProtocolMessage done [10:56:22]OFDSenderStorePacket 2026 [10:56:22]StoreOFDPacket docnum=2026 [10:56:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 9C 01 00 00 B6 CF 94 01 5F E4 5A 03 01 00 03 00 88 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 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 06 00 00 00 00 07 04 06 00 74 40 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 DA 23 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 EA 07 00 00 35 04 06 00 10 2A 07 E9 9D 21 9C 6B 10 89 2B B8 AD 8B [10:56:22]CheckFolder [10:56:22]dirname=/storage/ofd_packets [10:56:22]CheckFolder done [10:56:22]ProducePacketName [10:56:22]name=ofd_packets/00002026 [10:56:22]NVStorageSaveData ofd_packets/00002026 [10:56:22]File name is /storage/ofd_packets/00002026 [10:56:22]Write 442 bytes [10:56:22]NVStorageSaveData done [10:56:22]OFDSenderStorePacket done [10:56:22]KKMCreateOFDPacket done [10:56:22]NVStorageSaveData kkm_last_timestamp [10:56:22]File name is /storage/kkm_last_timestamp [10:56:22]Write 4 bytes [10:56:22]NVStorageSaveData done [10:56:22]ExternCall_PrintAddStr [10:56:22]wPrintStart [10:56:22]Write to MH i2c: 01 00 00 F8 43 3B [10:56:22]Write i2c OK [10:56:22]MH_I2C_Read... [10:56:22]Read from MH i2c: 01 [10:56:22]MH_I2C_Read... [10:56:22]Read from MH i2c: 01 07 00 [10:56:22]MH_I2C_Read... [10:56:22]Read from MH i2c: 01 07 00 F8 43 00 00 00 00 00 FF 0F 50 [10:56:22]RasterBufferAndPrint [10:56:22]line Счет N : (3)126329 [10:56:22]line ИНН: 02508201610067 [10:56:22]line Контрольно-Кассовый Чек [10:56:23]line ПРОДАЖА [10:56:23]line Товар: 4600682557456 [10:56:23]line Напиток FLash up energy эн ж/б 0,5/0,45л [10:56:23]line 1.000 * 85.00 [10:56:23]line = 85.00 [10:56:23]line НДС 12% НСП 1% [10:56:23]line > о реализуемом товаре [10:56:23]line Товар: 4870001570057 [10:56:23]line Напиток Pepsi 0,5л [10:56:23]line 1.000 * 80.00 [10:56:23]line = 80.00 [10:56:23]line НДС 12% НСП 1% [10:56:23]line > о реализуемом товаре [10:56:23]line ИТОГО: 165.00 [10:56:23]line НСП 1% : 1.46 [10:56:23]line НДС 12% : 17.53 [10:56:23]line Наличными: 165.00 [10:56:23]line Безнал.: 0.00 [10:56:23]line Место: АЗС № 127 "Партнер Нефть" [10:56:23]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [10:56:23]line СНО: Общий режим [10:56:23]line Чек 77 28.07.2024 10:56 [10:56:23]line Смена: 13 ФФД: 1.0 [10:56:23]line ЗНМ: 0300000161 [10:56:23]line РНМ: 0000000000189667 [10:56:23]line Версия ККМ: v1.0 [10:56:23]line ФМ: 0000000002094248 [10:56:23]line ФД: 2026 [10:56:23]line ФПД: 17772707421473 [10:56:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T105626&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2026&fm=17772707421473&tin=02508201610067®Number=0000000000189667&sum=16500 [10:56:23]OFD Sender: Processing packet 2026 [packets to send 1, broken 0] [10:56:23]ProducePacketName [10:56:23]name=ofd_packets/00002026 [10:56:23]OFD Sender: To server: pG, [10:56:23]CommunicateWithHost lk.salyk.kg:30040 [10:56:23]ConnectInit lk.salyk.kg [10:56:23]line 0 [10:56:23]written 0, free lines is 4095 [10:56:23]Connected sock=11 [10:56:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 9C 01 00 00 B6 CF 94 01 5F E4 5A 03 01 00 03 00 88 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 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 06 00 00 00 00 07 04 06 00 74 40 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 DA 23 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 EA 07 00 00 35 04 06 00 10 2A 07 E9 9D 21 9C 6B 10 89 2B B8 AD 8B [10:56:23]Write to MH i2c: 01 00 00 27 44 6B [10:56:23]Write i2c OK [10:56:23]MH_I2C_Read... [10:56:23]Read from MH i2c: 01 [10:56:23]MH_I2C_Read... [10:56:23]Read from MH i2c: 01 07 00 [10:56:23]MH_I2C_Read... [10:56:23]Read from MH i2c: 01 07 00 27 44 00 00 00 00 00 B8 0C 36 [10:56:23]RasterBufferAndPrint [10:56:23]line [10:56:23]line [10:56:23]line [10:56:23]line [10:56:23]line [10:56:23]written 0, free lines is 3264 [10:56:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 5B 2D 47 00 03 DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 EA 07 00 00 F4 03 04 00 4A CF A5 66 B6 04 01 00 00 36 BE B4 A6 98 C1 A3 7B [10:56:23]CommunicateWithHost err = 0 [10:56:23]CheckOFDResponse [10:56:23]1017 (14) - 77093643461234 [10:56:23]1041 (16) - 0000000002094248 [10:56:23]1040 (4) - 2026 [10:56:23]1012 (4) - 28.07.2024 04:55 [10:56:23]1206 (1) - 0 [10:56:23]OFD Sender: Remove packet 2026 [10:56:23]ProducePacketName [10:56:23]name=ofd_packets/00002026 [10:56:23]NVStorageDeleteData [10:56:23]MH_Cut [10:56:23]Write to MH i2c: D1 01 00 2E 44 01 44 [10:56:23]Write i2c OK [10:56:23]MH_I2C_Read... [10:56:23]Read from MH i2c: D1 [10:56:23]MH_I2C_Read... [10:56:23]Read from MH i2c: D1 01 00 [10:56:23]MH_I2C_Read... [10:56:23]Read from MH i2c: D1 01 00 2E 44 00 43 [10:56:23]Write to MH i2c: 01 00 00 2F 44 73 [10:56:23]Write i2c OK [10:56:23]MH_I2C_Read... [10:56:24]OFD Sender: No OFD packet to send [10:56:24]*** Cut start [10:56:24]*** Partial cut [10:56:24]*** CUTSNS_PIN = 1 [10:56:24]*** CUTSNS_PIN = 0 [10:56:24]*** Brake cut motor [10:56:25]Read from MH i2c: 01 [10:56:25]MH_I2C_Read... [10:56:25]*** Stop cut motor [10:56:25]*** Cut end [10:56:25]Read from MH i2c: 01 07 00 [10:56:25]MH_I2C_Read... [10:56:25]Read from MH i2c: 01 07 00 2F 44 00 00 00 00 00 FF 0F 88 [10:56:25]process_action close_receipt done [10:56:25]requested_data is exist [10:56:25]produce_requested_data [10:56:25]requested_item fm.sn is exist - process it [10:56:25]wFMCommunicate request_size=4 [10:56:25]MH_SAM_APDU [10:56:25]CAPDU: 80 11 00 00 [10:56:25]Write to MH i2c: E2 08 00 30 44 80 11 00 00 00 00 00 00 EE [10:56:25]Write i2c OK [10:56:25]MH_I2C_Read... [10:56:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:56:25]Read from MH i2c: E2 [10:56:25]MH_I2C_Read... [10:56:25]Read from MH i2c: E2 17 00 [10:56:25]MH_I2C_Read... [10:56:25]Read from MH i2c: E2 17 00 30 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 3E [10:56:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [10:56:25]wFMCommunicate OK [10:56:25]requested_item fd.num is exist - process it [10:56:25]SAM_PROTO_GetFieldsCounters [10:56:25]wFMCommunicate request_size=4 [10:56:25]MH_SAM_APDU [10:56:25]CAPDU: 80 13 00 00 [10:56:25]Write to MH i2c: E2 08 00 31 44 80 13 00 00 00 00 00 00 F1 [10:56:25]Write i2c OK [10:56:25]MH_I2C_Read... [10:56:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:56:25]Read from MH i2c: E2 [10:56:25]MH_I2C_Read... [10:56:25]Read from MH i2c: E2 62 00 [10:56:25]MH_I2C_Read... [10:56:25]Read from MH i2c: E2 62 00 31 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 EA 07 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [10:56:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 EA 07 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:56:25]wFMCommunicate OK [10:56:25]SAM_PROTO_GetFieldsCounters done [10:56:25]requested_item shift.num is exist - process it [10:56:25]requested_item shift.opened is exist - process it [10:56:25]req_shift_opened [10:56:25]FM_GetShiftState [10:56:25]SAM_PROTO_GetShiftState [10:56:25]wFMCommunicate request_size=4 [10:56:25]MH_SAM_APDU [10:56:25]CAPDU: 80 13 01 00 [10:56:25]Write to MH i2c: E2 08 00 32 44 80 13 01 00 00 00 00 00 F3 [10:56:25]Write i2c OK [10:56:25]MH_I2C_Read... [10:56:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:56:25]Read from MH i2c: E2 [10:56:25]MH_I2C_Read... [10:56:25]Read from MH i2c: E2 0E 00 [10:56:25]MH_I2C_Read... [10:56:25]Read from MH i2c: E2 0E 00 32 44 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 E7 [10:56:25]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [10:56:25]wFMCommunicate OK [10:56:25]SAM_PROTO_GetShiftState done [10:56:25]FM_GetShiftState done [10:56:25]req_shift_opened done [10:56:25]requested_item shift.open_date is exist - process it [10:56:25]req_shift_open_date [10:56:25]req_shift_open_date done [10:56:25]produce_requested_data done [10:56:25]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2026,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [10:56:25]process_action_free close_receipt [10:56:25]json_value_free [10:56:25]json_value_free done [10:56:25]process_json_proto returns [10:56:25]Send response to host [10:56:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2026,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [10:56:25]free response buf [10:56:25]execute_script done [10:56:25]execute_script returns [10:56:25]free content buf [10:56:25]Sock 8.Close socket [10:56:25]Sock 8.Thread stoped [10:56:29]OFD Sender: No OFD packet to send [10:56:34]OFD Sender: No OFD packet to send [10:56:39]OFD Sender: No OFD packet to send [10:56:44]OFD Sender: No OFD packet to send [10:56:49]OFD Sender: No OFD packet to send [10:56:54]OFD Sender: No OFD packet to send [10:56:59]OFD Sender: No OFD packet to send [10:57:04]OFD Sender: No OFD packet to send [10:57:05]accept exits with 9 [10:57:05]New connection [10:57:05]New thread 3067460964 created [10:57:05]Thread 3067317604 joined [10:57:05]Waiting for new connection... [10:57:05] Sock 9.Parse request [10:57:05]Sock 9.Check first char [10:57:05]Sock 9.First char is OK [10:57:05]request: POST /json_proto HTTP/1.0 [10:57:05]Method: POST [10:57:05]URL: /json_proto [10:57:05]Method is POST - this is cgi request [10:57:05]url: /json_proto [10:57:05]query_string will be loaded in cgi processing [10:57:05]execute_cgi json_proto POST (null) [10:57:05]execute_cgi path=json_proto method=POST [10:57:05]POST find Content-Length [10:57:05]Host: 172.17.45.132:8080 [10:57:05]Content-Length: 1262 [10:57:05]Content-Type: application/json [10:57:05] [10:57:05]POST finish read [10:57:05]Found Content-Length = 1262 [10:57:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126330", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 170.00, "quantity" : 2.000, "sum" : 340.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" : 450.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:57:05]execute_script... [10:57: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)126330", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 170.00, "quantity" : 2.000, "sum" : 340.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" : 450.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:57:05]POST & json_proto [10:57:05]process_json_proto [10:57:05]json parsed OK: [10:57:05]protocol is kg_v1.0 [10:57:05]action value=close_receipt [10:57:05]process_action close_receipt [10:57:05]cmd_close_receipt [10:57:05]MH_GetDate [10:57:05]Write to MH i2c: F0 00 00 33 44 66 [10:57:05]Write i2c OK [10:57:05]MH_I2C_Read... [10:57:05]Read from MH i2c: F0 [10:57:05]MH_I2C_Read... [10:57:05]Read from MH i2c: F0 09 00 [10:57:05]MH_I2C_Read... [10:57:05]Read from MH i2c: F0 09 00 33 44 00 06 24 A6 66 E3 0B 90 66 89 [10:57:05]GetLastDocTimeStamp 1722164186 [10:57:05]current date 1722164230 [10:57:05]FM_GetShiftState [10:57:05]SAM_PROTO_GetShiftState [10:57:05]wFMCommunicate request_size=4 [10:57:05]MH_SAM_APDU [10:57:05]CAPDU: 80 13 01 00 [10:57:05]Write to MH i2c: E2 08 00 34 44 80 13 01 00 00 00 00 00 F5 [10:57:05]Write i2c OK [10:57:05]MH_I2C_Read... [10:57:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:05]Read from MH i2c: E2 [10:57:05]MH_I2C_Read... [10:57:05]Read from MH i2c: E2 0E 00 [10:57:05]MH_I2C_Read... [10:57:05]Read from MH i2c: E2 0E 00 34 44 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 E9 [10:57:05]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [10:57:05]wFMCommunicate OK [10:57:05]SAM_PROTO_GetShiftState done [10:57:05]FM_GetShiftState done [10:57:05]opened in 1722125648 [10:57:05]opened+sec_in_day 1722212048 [10:57:05]quantity*price = 5000 [10:57:05]sum+1 = 5001 [10:57:05]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000480357 Пиво шахтерское 1л ПЭТ 2.000 * 170.00 = 340.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160792 Снек Курут классический (круглый) 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 450.00 НСП 1% : 3.98 НДС 12% : 47.79 Наличными: 450.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 78 28.07.2024 10:57 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2027 ФПД: 152650873523487 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T105711&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2027&fm=152650873523487&tin=02508201610067®Number=0000000000189667&sum=45000 0 [10:57:06]StoreToDocumentArchive [10:57:06]shift 13 fd 2027 [10:57:06]save to /storage/0013/doc_00002027 [10:57:06]save last doc name /storage/0013/doc_00002027 to /storage/kkm_last_doc_name [10:57:06]save OK [10:57:06]Clear old archive folders... [10:57:06]ProcessDocumentItem done err = 0, tmpTLVsize=514 [10:57:06]tlvbuf is 020336B0 [10:57:06]SAM_PROTO_ClearQueue [10:57:06]wFMCommunicate request_size=4 [10:57:06]MH_SAM_APDU [10:57:06]CAPDU: 80 09 00 00 [10:57:06]Write to MH i2c: E2 08 00 41 44 80 09 00 00 00 00 00 00 F7 [10:57:06]Write i2c OK [10:57:06]MH_I2C_Read... [10:57:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:57:06]Read from MH i2c: E2 [10:57:06]MH_I2C_Read... [10:57:06]Read from MH i2c: E2 03 00 [10:57:06]MH_I2C_Read... [10:57:06]Read from MH i2c: E2 03 00 41 44 00 90 00 F9 [10:57:06]RAPDU: 90 00 [10:57:06]wFMCommunicate OK [10:57:06]SAM_PROTO_ClearQueue done [10:57:06]KKMCreateOFDPacket [10:57:06]OFDProtocolAddRootSTLVToBuf [10:57:06]FM_MakeSignedData [10:57:06]FM_MakeSignedData [10:57:06]SAM_PROTO_SignData [10:57:06]wFMCommunicate request_size=4 [10:57:06]MH_SAM_APDU [10:57:06]CAPDU: 80 0D 01 02 [10:57:06]Write to MH i2c: E2 08 00 42 44 80 0D 01 02 00 00 00 00 FF [10:57:06]Write i2c OK [10:57:06]MH_I2C_Read... [10:57:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:57:06]Read from MH i2c: E2 [10:57:06]MH_I2C_Read... [10:57:06]Read from MH i2c: E2 03 00 [10:57:06]MH_I2C_Read... [10:57:06]Read from MH i2c: E2 03 00 42 44 00 90 00 FA [10:57:06]RAPDU: 90 00 [10:57:06]wFMCommunicate OK [10:57:06]wFMCommunicate request_size=255 [10:57:06]MH_SAM_APDU [10:57:06]CAPDU: 80 0D 02 02 FA 03 00 02 02 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 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 68 42 00 00 00 00 13 04 06 00 D0 84 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 [10:57:07]Write to MH i2c: E2 02 01 43 44 80 0D 02 02 FA 00 03 00 02 02 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 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 68 42 00 00 00 00 13 04 06 00 D0 84 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 00 00 50 [10:57:07]Write i2c OK [10:57:07]MH_I2C_Read... [10:57:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:57:07]Read from MH i2c: E2 [10:57:07]MH_I2C_Read... [10:57:07]Read from MH i2c: E2 03 00 [10:57:07]MH_I2C_Read... [10:57:07]Read from MH i2c: E2 03 00 43 44 00 90 00 FB [10:57:07]RAPDU: 90 00 [10:57:07]wFMCommunicate OK [10:57:07]wFMCommunicate request_size=255 [10:57:07]MH_SAM_APDU [10:57:07]CAPDU: 80 0D 02 02 FA 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 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 4E 00 00 00 F4 03 04 00 07 24 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 [10:57:07]Write to MH i2c: E2 02 01 44 44 80 0D 02 02 FA 00 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 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 4E 00 00 00 F4 03 04 00 07 24 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 00 00 22 [10:57:07]Write i2c OK [10:57:07]MH_I2C_Read... [10:57:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:57:07]Read from MH i2c: E2 [10:57:07]MH_I2C_Read... [10:57:07]Read from MH i2c: E2 03 00 [10:57:07]MH_I2C_Read... [10:57:07]Read from MH i2c: E2 03 00 44 44 00 90 00 FC [10:57:07]RAPDU: 90 00 [10:57:07]wFMCommunicate OK [10:57:07]wFMCommunicate request_size=23 [10:57:07]MH_SAM_APDU [10:57:07]CAPDU: 80 0D 02 02 12 10 04 04 00 EB 07 00 00 35 04 06 00 8A D5 CD 17 4D 1F [10:57:07]Write to MH i2c: E2 1A 00 45 44 80 0D 02 02 12 00 10 04 04 00 EB 07 00 00 35 04 06 00 8A D5 CD 17 4D 1F 00 00 1F [10:57:07]Write i2c OK [10:57:07]MH_I2C_Read... [10:57:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:57:07]Read from MH i2c: E2 [10:57:07]MH_I2C_Read... [10:57:07]Read from MH i2c: E2 03 00 [10:57:07]MH_I2C_Read... [10:57:07]Read from MH i2c: E2 03 00 45 44 00 90 00 FD [10:57:07]RAPDU: 90 00 [10:57:07]wFMCommunicate OK [10:57:07]wFMCommunicate request_size=4 [10:57:07]MH_SAM_APDU [10:57:07]CAPDU: 80 0D 03 02 [10:57:07]Write to MH i2c: E2 08 00 46 44 80 0D 03 02 00 00 00 00 05 [10:57:07]Write i2c OK [10:57:07]MH_I2C_Read... [10:57:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:57:07]Read from MH i2c: E2 [10:57:07]MH_I2C_Read... [10:57:07]Read from MH i2c: E2 0B 00 [10:57:07]MH_I2C_Read... [10:57:07]Read from MH i2c: E2 0B 00 46 44 00 A1 66 00 66 46 73 39 94 90 00 F9 [10:57:07]RAPDU: A1 66 00 66 46 73 39 94 90 00 [10:57:07]wFMCommunicate OK [10:57:07]SAM_PROTO_SignData done [10:57:07]FM_MakeSignedData done [10:57:07]CreateOFDProtocolMessage [10:57:07]wFMCommunicate request_size=4 [10:57:07]MH_SAM_APDU [10:57:07]CAPDU: 80 11 00 00 [10:57:07]Write to MH i2c: E2 08 00 47 44 80 11 00 00 00 00 00 00 05 [10:57:07]Write i2c OK [10:57:07]MH_I2C_Read... [10:57:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:07]Read from MH i2c: E2 [10:57:07]MH_I2C_Read... [10:57:07]Read from MH i2c: E2 17 00 [10:57:07]MH_I2C_Read... [10:57:07]Read from MH i2c: E2 17 00 47 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 55 [10:57:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [10:57:07]wFMCommunicate OK [10:57:07]CreateOFDProtocolMessage done [10:57:07]OFDSenderStorePacket 2027 [10:57:07]StoreOFDPacket docnum=2027 [10:57:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 16 02 00 00 8F E5 0E 02 49 82 5A 03 01 00 03 00 02 02 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 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 68 42 00 00 00 00 13 04 06 00 D0 84 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 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 4E 00 00 00 F4 03 04 00 07 24 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 EB 07 00 00 35 04 06 00 8A D5 CD 17 4D 1F A1 66 00 66 46 73 39 94 [10:57:07]CheckFolder [10:57:07]dirname=/storage/ofd_packets [10:57:07]CheckFolder done [10:57:07]ProducePacketName [10:57:07]name=ofd_packets/00002027 [10:57:07]NVStorageSaveData ofd_packets/00002027 [10:57:07]File name is /storage/ofd_packets/00002027 [10:57:07]Write 564 bytes [10:57:07]NVStorageSaveData done [10:57:07]OFDSenderStorePacket done [10:57:07]KKMCreateOFDPacket done [10:57:07]NVStorageSaveData kkm_last_timestamp [10:57:07]File name is /storage/kkm_last_timestamp [10:57:07]Write 4 bytes [10:57:07]NVStorageSaveData done [10:57:07]ExternCall_PrintAddStr [10:57:07]wPrintStart [10:57:07]Write to MH i2c: 01 00 00 48 44 8C [10:57:07]Write i2c OK [10:57:07]MH_I2C_Read... [10:57:07]Read from MH i2c: 01 [10:57:07]MH_I2C_Read... [10:57:07]Read from MH i2c: 01 07 00 [10:57:07]MH_I2C_Read... [10:57:07]Read from MH i2c: 01 07 00 48 44 00 00 00 00 00 FF 0F A1 [10:57:07]RasterBufferAndPrint [10:57:07]line Счет N : (3)126330 [10:57:07]line ИНН: 02508201610067 [10:57:07]line Контрольно-Кассовый Чек [10:57:07]line ПРОДАЖА [10:57:07]line Товар: 4700000160358 [10:57:07]line Вода Легенда 1л [10:57:07]line 1.000 * 50.00 [10:57:07]line = 50.00 [10:57:07]line НДС 12% НСП 1% [10:57:07]line > о реализуемом товаре [10:57:07]line Товар: 4700000480357 [10:57:07]line Пиво шахтерское 1л ПЭТ [10:57:07]line 2.000 * 170.00 [10:57:07]line = 340.00 [10:57:07]line НДС 12% НСП 1% [10:57:07]line > о реализуемом товаре [10:57:07]line Товар: 4700000160792 [10:57:07]line Снек Курут классический (круглый) [10:57:07]line 1.000 * 60.00 [10:57:07]line = 60.00 [10:57:07]line НДС 12% НСП 1% [10:57:07]line > о реализуемом товаре [10:57:07]line ИТОГО: 450.00 [10:57:07]line НСП 1% : 3.98 [10:57:07]line НДС 12% : 47.79 [10:57:07]line Наличными: 450.00 [10:57:07]line Безнал.: 0.00 [10:57:07]line Место: АЗС № 127 "Партнер Нефть" [10:57:07]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [10:57:07]line СНО: Общий режим [10:57:07]line Чек 78 28.07.2024 10:57 [10:57:07]line Смена: 13 ФФД: 1.0 [10:57:07]line ЗНМ: 0300000161 [10:57:07]line РНМ: 0000000000189667 [10:57:07]line Версия ККМ: v1.0 [10:57:07]line ФМ: 0000000002094248 [10:57:07]line ФД: 2027 [10:57:07]line ФПД: 152650873523487 [10:57:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T105711&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2027&fm=152650873523487&tin=02508201610067®Number=0000000000189667&sum=45000 [10:57:08]line 0 [10:57:08]OFD Sender: Processing packet 2027 [packets to send 1, broken 0] [10:57:08]ProducePacketName [10:57:08]name=ofd_packets/00002027 [10:57:08]OFD Sender: To server: pG, [10:57:08]CommunicateWithHost lk.salyk.kg:30040 [10:57:08]ConnectInit lk.salyk.kg [10:57:08]written 0, free lines is 4095 [10:57:08]Connected sock=10 [10:57:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 16 02 00 00 8F E5 0E 02 49 82 5A 03 01 00 03 00 02 02 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 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 68 42 00 00 00 00 13 04 06 00 D0 84 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 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 4E 00 00 00 F4 03 04 00 07 24 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 EB 07 00 00 35 04 06 00 8A D5 CD 17 4D 1F A1 66 00 66 46 73 39 94 [10:57:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 C0 D6 47 00 1B 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 32 30 39 34 32 34 38 10 04 04 00 EB 07 00 00 F4 03 04 00 77 CF A5 66 B6 04 01 00 00 73 39 DD 4E C1 2A B4 6F [10:57:08]CommunicateWithHost err = 0 [10:57:08]CheckOFDResponse [10:57:08]1017 (14) - 77093643461234 [10:57:08]1041 (16) - 0000000002094248 [10:57:08]1040 (4) - 2027 [10:57:08]1012 (4) - 28.07.2024 04:56 [10:57:08]1206 (1) - 0 [10:57:08]OFD Sender: Remove packet 2027 [10:57:08]ProducePacketName [10:57:08]name=ofd_packets/00002027 [10:57:08]NVStorageDeleteData [10:57:08]Write to MH i2c: 01 00 00 7D 44 C1 [10:57:08]Write i2c OK [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: 01 [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: 01 07 00 [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: 01 07 00 7D 44 00 00 00 00 00 6B 0C 3F [10:57:08]RasterBufferAndPrint [10:57:08]line [10:57:08]line [10:57:08]line [10:57:08]line [10:57:08]line [10:57:08]written 0, free lines is 3188 [10:57:08]MH_Cut [10:57:08]Write to MH i2c: D1 01 00 84 44 01 9A [10:57:08]Write i2c OK [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: D1 [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: D1 01 00 [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: D1 01 00 84 44 00 99 [10:57:08]Write to MH i2c: 01 00 00 85 44 C9 [10:57:08]Write i2c OK [10:57:08]MH_I2C_Read... [10:57:08]OFD Sender: No OFD packet to send [10:57:09]*** Cut start [10:57:09]*** Partial cut [10:57:09]*** CUTSNS_PIN = 1 [10:57:09]*** CUTSNS_PIN = 0 [10:57:09]*** Brake cut motor [10:57:10]Read from MH i2c: 01 [10:57:10]MH_I2C_Read... [10:57:10]*** Stop cut motor [10:57:10]*** Cut end [10:57:10]Read from MH i2c: 01 07 00 [10:57:10]MH_I2C_Read... [10:57:10]Read from MH i2c: 01 07 00 85 44 00 00 00 00 00 FF 0F DE [10:57:10]process_action close_receipt done [10:57:10]requested_data is exist [10:57:10]produce_requested_data [10:57:10]requested_item fm.sn is exist - process it [10:57:10]wFMCommunicate request_size=4 [10:57:10]MH_SAM_APDU [10:57:10]CAPDU: 80 11 00 00 [10:57:10]Write to MH i2c: E2 08 00 86 44 80 11 00 00 00 00 00 00 44 [10:57:10]Write i2c OK [10:57:10]MH_I2C_Read... [10:57:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:10]Read from MH i2c: E2 [10:57:10]MH_I2C_Read... [10:57:10]Read from MH i2c: E2 17 00 [10:57:10]MH_I2C_Read... [10:57:10]Read from MH i2c: E2 17 00 86 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 94 [10:57:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [10:57:10]wFMCommunicate OK [10:57:10]requested_item fd.num is exist - process it [10:57:10]SAM_PROTO_GetFieldsCounters [10:57:10]wFMCommunicate request_size=4 [10:57:10]MH_SAM_APDU [10:57:10]CAPDU: 80 13 00 00 [10:57:10]Write to MH i2c: E2 08 00 87 44 80 13 00 00 00 00 00 00 47 [10:57:10]Write i2c OK [10:57:10]MH_I2C_Read... [10:57:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:57:10]Read from MH i2c: E2 [10:57:10]MH_I2C_Read... [10:57:10]Read from MH i2c: E2 62 00 [10:57:10]MH_I2C_Read... [10:57:10]Read from MH i2c: E2 62 00 87 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 EB 07 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 5A [10:57:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 EB 07 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:57:10]wFMCommunicate OK [10:57:10]SAM_PROTO_GetFieldsCounters done [10:57:10]requested_item shift.num is exist - process it [10:57:10]requested_item shift.opened is exist - process it [10:57:10]req_shift_opened [10:57:10]FM_GetShiftState [10:57:10]SAM_PROTO_GetShiftState [10:57:10]wFMCommunicate request_size=4 [10:57:10]MH_SAM_APDU [10:57:10]CAPDU: 80 13 01 00 [10:57:10]Write to MH i2c: E2 08 00 88 44 80 13 01 00 00 00 00 00 49 [10:57:10]Write i2c OK [10:57:10]MH_I2C_Read... [10:57:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:10]Read from MH i2c: E2 [10:57:10]MH_I2C_Read... [10:57:10]Read from MH i2c: E2 0E 00 [10:57:10]MH_I2C_Read... [10:57:10]Read from MH i2c: E2 0E 00 88 44 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 3D [10:57:10]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [10:57:10]wFMCommunicate OK [10:57:10]SAM_PROTO_GetShiftState done [10:57:10]FM_GetShiftState done [10:57:10]req_shift_opened done [10:57:10]requested_item shift.open_date is exist - process it [10:57:10]req_shift_open_date [10:57:10]req_shift_open_date done [10:57:10]produce_requested_data done [10:57:10]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2027,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [10:57:10]process_action_free close_receipt [10:57:10]json_value_free [10:57:10]json_value_free done [10:57:10]process_json_proto returns [10:57:10]Send response to host [10:57:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2027,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [10:57:10]free response buf [10:57:10]execute_script done [10:57:10]execute_script returns [10:57:10]free content buf [10:57:10]Sock 9.Close socket [10:57:10]Sock 9.Thread stoped [10:57:13]OFD Sender: No OFD packet to send [10:57:18]OFD Sender: No OFD packet to send [10:57:23]OFD Sender: No OFD packet to send [10:57:28]OFD Sender: No OFD packet to send [10:57:33]OFD Sender: No OFD packet to send [10:57:38]OFD Sender: No OFD packet to send [10:57:43]OFD Sender: No OFD packet to send [10:57:48]OFD Sender: No OFD packet to send [10:57:53]OFD Sender: No OFD packet to send [10:57:58]OFD Sender: No OFD packet to send [10:58:03]OFD Sender: No OFD packet to send [10:58:08]OFD Sender: No OFD packet to send [10:58:13]OFD Sender: No OFD packet to send [10:58:18]OFD Sender: No OFD packet to send [10:58:23]accept exits with 8 [10:58:23]New connection [10:58:23]New thread 3067317604 created [10:58:23]Thread 3067460964 joined [10:58:23]Waiting for new connection... [10:58:23] Sock 8.Parse request [10:58:23]Sock 8.Check first char [10:58:23]Sock 8.First char is OK [10:58:23]request: POST /json_proto HTTP/1.0 [10:58:23]Method: POST [10:58:23]URL: /json_proto [10:58:23]Method is POST - this is cgi request [10:58:23]url: /json_proto [10:58:23]query_string will be loaded in cgi processing [10:58:23]execute_cgi json_proto POST (null) [10:58:23]execute_cgi path=json_proto method=POST [10:58:23]POST find Content-Length [10:58:23]Host: 172.17.45.132:8080 [10:58:23]Content-Length: 1111 [10:58:23]Content-Type: application/json [10:58:23] [10:58:23]POST finish read [10:58:23]Found Content-Length = 1111 [10:58:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126331", "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": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 180.00, "quantity" : 1.000, "sum" : 180.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 275.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:58:23]execute_script... [10:58:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126331", "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": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 180.00, "quantity" : 1.000, "sum" : 180.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 275.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:58:23]POST & json_proto [10:58:23]process_json_proto [10:58:23]json parsed OK: [10:58:23]protocol is kg_v1.0 [10:58:23]action value=close_receipt [10:58:23]process_action close_receipt [10:58:23]cmd_close_receipt [10:58:23]MH_GetDate [10:58:23]Write to MH i2c: F0 00 00 89 44 BC [10:58:23]Write i2c OK [10:58:23]MH_I2C_Read... [10:58:23]Read from MH i2c: F0 [10:58:23]MH_I2C_Read... [10:58:23]Read from MH i2c: F0 09 00 [10:58:23]MH_I2C_Read... [10:58:23]Read from MH i2c: F0 09 00 89 44 00 54 24 A6 66 E3 0B 90 66 2D [10:58:23]GetLastDocTimeStamp 1722164231 [10:58:23]current date 1722164308 [10:58:23]FM_GetShiftState [10:58:23]SAM_PROTO_GetShiftState [10:58:23]wFMCommunicate request_size=4 [10:58:23]MH_SAM_APDU [10:58:23]CAPDU: 80 13 01 00 [10:58:23]Write to MH i2c: E2 08 00 8A 44 80 13 01 00 00 00 00 00 4B [10:58:23]Write i2c OK [10:58:23]MH_I2C_Read... [10:58:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:23]Read from MH i2c: E2 [10:58:23]MH_I2C_Read... [10:58:23]Read from MH i2c: E2 0E 00 [10:58:23]MH_I2C_Read... [10:58:23]Read from MH i2c: E2 0E 00 8A 44 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 3F [10:58:23]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [10:58:23]wFMCommunicate OK [10:58:23]SAM_PROTO_GetShiftState done [10:58:23]FM_GetShiftState done [10:58:23]opened in 1722125648 [10:58:23]opened+sec_in_day 1722212048 [10:58:23]quantity*price = 9500 [10:58:23]sum+1 = 9501 [10:58:23]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000176448 Сок Piko Pulpy апельсин ПЭТ 1л 1.000 * 180.00 = 180.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 275.00 НСП 1% : 2.43 НДС 12% : 29.20 Наличными: 0.00 Безнал.: 275.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 79 28.07.2024 10:58 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: Бакай Банк ФМ: 0000000002094248 ФД: 2028 ФПД: 269636679938944 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T105828&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2028&fm=269636679938944&tin=02508201610067®Number=0000000000189667&sum=27500 0 [10:58:24]StoreToDocumentArchive [10:58:24]shift 13 fd 2028 [10:58:24]save to /storage/0013/doc_00002028 [10:58:24]save last doc name /storage/0013/doc_00002028 to /storage/kkm_last_doc_name [10:58:24]save OK [10:58:24]Clear old archive folders... [10:58:24]ProcessDocumentItem done err = 0, tmpTLVsize=410 [10:58:24]tlvbuf is 01FFC330 [10:58:24]SAM_PROTO_ClearQueue [10:58:24]wFMCommunicate request_size=4 [10:58:24]MH_SAM_APDU [10:58:24]CAPDU: 80 09 00 00 [10:58:24]Write to MH i2c: E2 08 00 97 44 80 09 00 00 00 00 00 00 4D [10:58:24]Write i2c OK [10:58:24]MH_I2C_Read... [10:58:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:58:24]Read from MH i2c: E2 [10:58:24]MH_I2C_Read... [10:58:24]Read from MH i2c: E2 03 00 [10:58:24]MH_I2C_Read... [10:58:24]Read from MH i2c: E2 03 00 97 44 00 90 00 4F [10:58:24]RAPDU: 90 00 [10:58:24]wFMCommunicate OK [10:58:24]SAM_PROTO_ClearQueue done [10:58:24]KKMCreateOFDPacket [10:58:24]OFDProtocolAddRootSTLVToBuf [10:58:24]FM_MakeSignedData [10:58:24]FM_MakeSignedData [10:58:24]SAM_PROTO_SignData [10:58:24]wFMCommunicate request_size=4 [10:58:24]MH_SAM_APDU [10:58:24]CAPDU: 80 0D 01 02 [10:58:24]Write to MH i2c: E2 08 00 98 44 80 0D 01 02 00 00 00 00 55 [10:58:24]Write i2c OK [10:58:24]MH_I2C_Read... [10:58:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:58:24]Read from MH i2c: E2 [10:58:24]MH_I2C_Read... [10:58:24]Read from MH i2c: E2 03 00 [10:58:24]MH_I2C_Read... [10:58:24]Read from MH i2c: E2 03 00 98 44 00 90 00 50 [10:58:24]RAPDU: 90 00 [10:58:24]wFMCommunicate OK [10:58:24]wFMCommunicate request_size=255 [10:58:24]MH_SAM_APDU [10:58:24]CAPDU: 80 0D 02 02 FA 03 00 9A 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 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC [10:58:24]Write to MH i2c: E2 02 01 99 44 80 0D 02 02 FA 00 03 00 9A 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 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 00 00 D6 [10:58:24]Write i2c OK [10:58:24]MH_I2C_Read... [10:58:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:24]Read from MH i2c: E2 [10:58:24]MH_I2C_Read... [10:58:24]Read from MH i2c: E2 03 00 [10:58:24]MH_I2C_Read... [10:58:24]Read from MH i2c: E2 03 00 99 44 00 90 00 51 [10:58:24]RAPDU: 90 00 [10:58:24]wFMCommunicate OK [10:58:24]wFMCommunicate request_size=169 [10:58:24]MH_SAM_APDU [10:58:24]CAPDU: 80 0D 02 02 A4 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 68 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 6B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 54 24 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 EC 07 00 00 35 04 06 00 F5 3B AE 86 B3 80 [10:58:24]Write to MH i2c: E2 AC 00 9A 44 80 0D 02 02 A4 00 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 68 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 6B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 54 24 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 EC 07 00 00 35 04 06 00 F5 3B AE 86 B3 80 00 00 6D [10:58:24]Write i2c OK [10:58:24]MH_I2C_Read... [10:58:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:24]Read from MH i2c: E2 [10:58:24]MH_I2C_Read... [10:58:24]Read from MH i2c: E2 03 00 [10:58:24]MH_I2C_Read... [10:58:24]Read from MH i2c: E2 03 00 9A 44 00 90 00 52 [10:58:24]RAPDU: 90 00 [10:58:24]wFMCommunicate OK [10:58:24]wFMCommunicate request_size=4 [10:58:24]MH_SAM_APDU [10:58:24]CAPDU: 80 0D 03 02 [10:58:24]Write to MH i2c: E2 08 00 9B 44 80 0D 03 02 00 00 00 00 5A [10:58:24]Write i2c OK [10:58:24]MH_I2C_Read... [10:58:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:58:24]Read from MH i2c: E2 [10:58:24]MH_I2C_Read... [10:58:24]Read from MH i2c: E2 0B 00 [10:58:24]MH_I2C_Read... [10:58:24]Read from MH i2c: E2 0B 00 9B 44 00 CF D1 40 6E 95 E9 77 3F 90 00 DD [10:58:24]RAPDU: CF D1 40 6E 95 E9 77 3F 90 00 [10:58:24]wFMCommunicate OK [10:58:24]SAM_PROTO_SignData done [10:58:24]FM_MakeSignedData done [10:58:24]CreateOFDProtocolMessage [10:58:24]wFMCommunicate request_size=4 [10:58:24]MH_SAM_APDU [10:58:24]CAPDU: 80 11 00 00 [10:58:24]Write to MH i2c: E2 08 00 9C 44 80 11 00 00 00 00 00 00 5A [10:58:24]Write i2c OK [10:58:24]MH_I2C_Read... [10:58:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:25]Read from MH i2c: E2 [10:58:25]MH_I2C_Read... [10:58:25]Read from MH i2c: E2 17 00 [10:58:25]MH_I2C_Read... [10:58:25]Read from MH i2c: E2 17 00 9C 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 AA [10:58:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [10:58:25]wFMCommunicate OK [10:58:25]CreateOFDProtocolMessage done [10:58:25]OFDSenderStorePacket 2028 [10:58:25]StoreOFDPacket docnum=2028 [10:58:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 AE 01 00 00 B0 1A A6 01 97 AD 5A 03 01 00 03 00 9A 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 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 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 68 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 6B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 54 24 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 EC 07 00 00 35 04 06 00 F5 3B AE 86 B3 80 CF D1 40 6E 95 E9 77 3F [10:58:25]CheckFolder [10:58:25]dirname=/storage/ofd_packets [10:58:25]CheckFolder done [10:58:25]ProducePacketName [10:58:25]name=ofd_packets/00002028 [10:58:25]NVStorageSaveData ofd_packets/00002028 [10:58:25]File name is /storage/ofd_packets/00002028 [10:58:25]Write 460 bytes [10:58:25]NVStorageSaveData done [10:58:25]OFDSenderStorePacket done [10:58:25]KKMCreateOFDPacket done [10:58:25]NVStorageSaveData kkm_last_timestamp [10:58:25]File name is /storage/kkm_last_timestamp [10:58:25]Write 4 bytes [10:58:25]NVStorageSaveData done [10:58:25]ExternCall_PrintAddStr [10:58:25]wPrintStart [10:58:25]Write to MH i2c: 01 00 00 9D 44 E1 [10:58:25]Write i2c OK [10:58:25]MH_I2C_Read... [10:58:25]Read from MH i2c: 01 [10:58:25]MH_I2C_Read... [10:58:25]Read from MH i2c: 01 07 00 [10:58:25]MH_I2C_Read... [10:58:25]Read from MH i2c: 01 07 00 9D 44 00 00 00 00 00 FF 0F F6 [10:58:25]RasterBufferAndPrint [10:58:25]line Счет N : (3)126331 [10:58:25]line ИНН: 02508201610067 [10:58:25]line Контрольно-Кассовый Чек [10:58:25]line ПРОДАЖА [10:58:25]line Товар: 4700000480050 [10:58:25]line Напиток Nitro Energy эн green ж/б 0,45л [10:58:25]line 1.000 * 95.00 [10:58:25]line = 95.00 [10:58:25]line НДС 12% НСП 1% [10:58:25]line > о реализуемом товаре [10:58:25]line Товар: 5449000176448 [10:58:25]line Сок Piko Pulpy апельсин ПЭТ 1л [10:58:25]line 1.000 * 180.00 [10:58:25]line = 180.00 [10:58:25]line НДС 12% НСП 1% [10:58:25]line > о реализуемом товаре [10:58:25]line ИТОГО: 275.00 [10:58:25]line НСП 1% : 2.43 [10:58:25]line НДС 12% : 29.20 [10:58:25]line Наличными: 0.00 [10:58:25]line Безнал.: 275.00 [10:58:25]line Место: АЗС № 127 "Партнер Нефть" [10:58:25]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [10:58:25]line СНО: Общий режим [10:58:25]line Чек 79 28.07.2024 10:58 [10:58:25]line Смена: 13 ФФД: 1.0 [10:58:25]line ЗНМ: 0300000161 [10:58:25]line РНМ: 0000000000189667 [10:58:25]line Версия ККМ: v1.0 [10:58:25]line Платежная система: Бакай Банк [10:58:25]line ФМ: 0000000002094248 [10:58:25]line ФД: 2028 [10:58:25]line ФПД: 269636679938944 [10:58:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T105828&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2028&fm=269636679938944&tin=02508201610067®Number=0000000000189667&sum=27500 [10:58:25]line 0 [10:58:25]written 0, free lines is 4095 [10:58:25]OFD Sender: Processing packet 2028 [packets to send 1, broken 0] [10:58:25]ProducePacketName [10:58:25]name=ofd_packets/00002028 [10:58:25]OFD Sender: To server: pG, [10:58:25]CommunicateWithHost lk.salyk.kg:30040 [10:58:25]ConnectInit lk.salyk.kg [10:58:25]Connected sock=10 [10:58:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 AE 01 00 00 B0 1A A6 01 97 AD 5A 03 01 00 03 00 9A 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 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 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 68 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 6B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 54 24 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 EC 07 00 00 35 04 06 00 F5 3B AE 86 B3 80 CF D1 40 6E 95 E9 77 3F [10:58:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 5D BD 47 00 2A 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 32 30 39 34 32 34 38 10 04 04 00 EC 07 00 00 F4 03 04 00 C4 CF A5 66 B6 04 01 00 00 0E A0 E3 8F 28 65 DC 5F [10:58:25]CommunicateWithHost err = 0 [10:58:25]CheckOFDResponse [10:58:25]1017 (14) - 77093643461234 [10:58:25]1041 (16) - 0000000002094248 [10:58:25]1040 (4) - 2028 [10:58:25]1012 (4) - 28.07.2024 04:57 [10:58:25]1206 (1) - 0 [10:58:25]OFD Sender: Remove packet 2028 [10:58:25]ProducePacketName [10:58:25]name=ofd_packets/00002028 [10:58:25]NVStorageDeleteData [10:58:25]Write to MH i2c: 01 00 00 CF 44 13 [10:58:25]Write i2c OK [10:58:25]MH_I2C_Read... [10:58:25]Read from MH i2c: 01 [10:58:25]MH_I2C_Read... [10:58:25]Read from MH i2c: 01 07 00 [10:58:25]MH_I2C_Read... [10:58:25]Read from MH i2c: 01 07 00 CF 44 00 00 00 00 00 9D 0C C3 [10:58:25]RasterBufferAndPrint [10:58:25]line [10:58:25]line [10:58:25]line [10:58:25]line [10:58:25]line [10:58:25]written 0, free lines is 3238 [10:58:25]MH_Cut [10:58:25]Write to MH i2c: D1 01 00 D6 44 01 EC [10:58:25]Write i2c OK [10:58:25]MH_I2C_Read... [10:58:25]Read from MH i2c: D1 [10:58:25]MH_I2C_Read... [10:58:25]Read from MH i2c: D1 01 00 [10:58:25]MH_I2C_Read... [10:58:25]Read from MH i2c: D1 01 00 D6 44 00 EB [10:58:25]Write to MH i2c: 01 00 00 D7 44 1B [10:58:25]Write i2c OK [10:58:25]MH_I2C_Read... [10:58:26]OFD Sender: No OFD packet to send [10:58:26]*** Cut start [10:58:26]*** Partial cut [10:58:26]*** CUTSNS_PIN = 1 [10:58:26]*** CUTSNS_PIN = 0 [10:58:26]*** Brake cut motor [10:58:27]Read from MH i2c: 01 [10:58:27]MH_I2C_Read... [10:58:27]*** Stop cut motor [10:58:27]*** Cut end [10:58:27]Read from MH i2c: 01 07 00 [10:58:27]MH_I2C_Read... [10:58:27]Read from MH i2c: 01 07 00 D7 44 00 00 00 00 00 FF 0F 30 [10:58:27]process_action close_receipt done [10:58:27]requested_data is exist [10:58:27]produce_requested_data [10:58:27]requested_item fm.sn is exist - process it [10:58:27]wFMCommunicate request_size=4 [10:58:27]MH_SAM_APDU [10:58:27]CAPDU: 80 11 00 00 [10:58:27]Write to MH i2c: E2 08 00 D8 44 80 11 00 00 00 00 00 00 96 [10:58:27]Write i2c OK [10:58:27]MH_I2C_Read... [10:58:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:27]Read from MH i2c: E2 [10:58:27]MH_I2C_Read... [10:58:27]Read from MH i2c: E2 17 00 [10:58:27]MH_I2C_Read... [10:58:27]Read from MH i2c: E2 17 00 D8 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 E6 [10:58:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [10:58:27]wFMCommunicate OK [10:58:27]requested_item fd.num is exist - process it [10:58:27]SAM_PROTO_GetFieldsCounters [10:58:27]wFMCommunicate request_size=4 [10:58:27]MH_SAM_APDU [10:58:27]CAPDU: 80 13 00 00 [10:58:27]Write to MH i2c: E2 08 00 D9 44 80 13 00 00 00 00 00 00 99 [10:58:27]Write i2c OK [10:58:27]MH_I2C_Read... [10:58:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:58:27]Read from MH i2c: E2 [10:58:27]MH_I2C_Read... [10:58:27]Read from MH i2c: E2 62 00 [10:58:27]MH_I2C_Read... [10:58:27]Read from MH i2c: E2 62 00 D9 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 EC 07 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [10:58:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 EC 07 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:58:27]wFMCommunicate OK [10:58:27]SAM_PROTO_GetFieldsCounters done [10:58:27]requested_item shift.num is exist - process it [10:58:27]requested_item shift.opened is exist - process it [10:58:27]req_shift_opened [10:58:27]FM_GetShiftState [10:58:27]SAM_PROTO_GetShiftState [10:58:27]wFMCommunicate request_size=4 [10:58:27]MH_SAM_APDU [10:58:27]CAPDU: 80 13 01 00 [10:58:27]Write to MH i2c: E2 08 00 DA 44 80 13 01 00 00 00 00 00 9B [10:58:27]Write i2c OK [10:58:27]MH_I2C_Read... [10:58:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:27]Read from MH i2c: E2 [10:58:27]MH_I2C_Read... [10:58:27]Read from MH i2c: E2 0E 00 [10:58:27]MH_I2C_Read... [10:58:27]Read from MH i2c: E2 0E 00 DA 44 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 8F [10:58:27]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [10:58:27]wFMCommunicate OK [10:58:27]SAM_PROTO_GetShiftState done [10:58:27]FM_GetShiftState done [10:58:27]req_shift_opened done [10:58:27]requested_item shift.open_date is exist - process it [10:58:27]req_shift_open_date [10:58:27]req_shift_open_date done [10:58:27]produce_requested_data done [10:58:27]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2028,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [10:58:27]process_action_free close_receipt [10:58:27]json_value_free [10:58:27]json_value_free done [10:58:27]process_json_proto returns [10:58:27]Send response to host [10:58:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2028,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [10:58:27]free response buf [10:58:27]execute_script done [10:58:27]execute_script returns [10:58:27]free content buf [10:58:27]Sock 8.Close socket [10:58:27]Sock 8.Thread stoped [10:58:31]OFD Sender: No OFD packet to send [10:58:36]OFD Sender: No OFD packet to send [10:58:41]OFD Sender: No OFD packet to send [10:58:46]OFD Sender: No OFD packet to send [10:58:51]OFD Sender: No OFD packet to send [10:58:56]OFD Sender: No OFD packet to send [10:59:01]OFD Sender: No OFD packet to send [10:59:06]OFD Sender: No OFD packet to send [10:59:11]OFD Sender: No OFD packet to send [10:59:16]OFD Sender: No OFD packet to send [10:59:21]OFD Sender: No OFD packet to send [10:59:26]OFD Sender: No OFD packet to send [10:59:31]OFD Sender: No OFD packet to send [10:59:36]OFD Sender: No OFD packet to send [10:59:41]OFD Sender: No OFD packet to send [10:59:46]OFD Sender: No OFD packet to send [10:59:51]OFD Sender: No OFD packet to send [10:59:56]OFD Sender: No OFD packet to send [11:00:01]OFD Sender: No OFD packet to send [11:00:06]OFD Sender: No OFD packet to send [11:00:11]OFD Sender: No OFD packet to send [11:00:16]OFD Sender: No OFD packet to send [11:00:21]OFD Sender: No OFD packet to send [11:00:26]OFD Sender: No OFD packet to send [11:00:31]OFD Sender: No OFD packet to send [11:00:36]OFD Sender: No OFD packet to send [11:00:41]OFD Sender: No OFD packet to send [11:00:46]OFD Sender: No OFD packet to send [11:00:51]OFD Sender: No OFD packet to send [11:00:56]OFD Sender: No OFD packet to send [11:01:01]OFD Sender: No OFD packet to send [11:01:06]OFD Sender: No OFD packet to send [11:01:11]OFD Sender: No OFD packet to send [11:01:16]OFD Sender: No OFD packet to send [11:01:21]OFD Sender: No OFD packet to send [11:01:26]OFD Sender: No OFD packet to send [11:01:31]OFD Sender: No OFD packet to send [11:01:36]OFD Sender: No OFD packet to send [11:01:41]OFD Sender: No OFD packet to send [11:01:46]OFD Sender: No OFD packet to send [11:01:51]OFD Sender: No OFD packet to send [11:01:56]OFD Sender: No OFD packet to send [11:02:01]OFD Sender: No OFD packet to send [11:02:06]OFD Sender: No OFD packet to send [11:02:11]OFD Sender: No OFD packet to send [11:02:16]OFD Sender: No OFD packet to send [11:02:21]OFD Sender: No OFD packet to send [11:02:26]OFD Sender: No OFD packet to send [11:02:31]OFD Sender: No OFD packet to send [11:02:36]OFD Sender: No OFD packet to send [11:02:41]OFD Sender: No OFD packet to send [11:02:46]OFD Sender: No OFD packet to send [11:02:51]OFD Sender: No OFD packet to send [11:02:56]OFD Sender: No OFD packet to send [11:03:01]OFD Sender: No OFD packet to send [11:03:06]OFD Sender: No OFD packet to send [11:03:11]OFD Sender: No OFD packet to send [11:03:16]OFD Sender: No OFD packet to send [11:03:21]OFD Sender: No OFD packet to send [11:03:26]OFD Sender: No OFD packet to send [11:03:31]OFD Sender: No OFD packet to send [11:03:36]OFD Sender: No OFD packet to send [11:03:41]OFD Sender: No OFD packet to send [11:03:46]OFD Sender: No OFD packet to send [11:03:51]OFD Sender: No OFD packet to send [11:03:56]OFD Sender: No OFD packet to send [11:04:01]OFD Sender: No OFD packet to send [11:04:06]OFD Sender: No OFD packet to send [11:04:11]OFD Sender: No OFD packet to send [11:04:16]OFD Sender: No OFD packet to send [11:04:21]OFD Sender: No OFD packet to send [11:04:26]OFD Sender: No OFD packet to send [11:04:31]OFD Sender: No OFD packet to send [11:04:36]OFD Sender: No OFD packet to send [11:04:41]OFD Sender: No OFD packet to send [11:04:46]OFD Sender: No OFD packet to send [11:04:51]OFD Sender: No OFD packet to send [11:04:56]OFD Sender: No OFD packet to send [11:05:01]OFD Sender: No OFD packet to send [11:05:06]OFD Sender: No OFD packet to send [11:05:11]OFD Sender: No OFD packet to send [11:05:16]OFD Sender: No OFD packet to send [11:05:21]OFD Sender: No OFD packet to send [11:05:26]OFD Sender: No OFD packet to send [11:05:31]OFD Sender: No OFD packet to send [11:05:36]OFD Sender: No OFD packet to send [11:05:41]OFD Sender: No OFD packet to send [11:05:46]OFD Sender: No OFD packet to send [11:05:51]OFD Sender: No OFD packet to send [11:05:56]OFD Sender: No OFD packet to send [11:06:01]OFD Sender: No OFD packet to send [11:06:06]OFD Sender: No OFD packet to send [11:06:11]OFD Sender: No OFD packet to send [11:06:16]OFD Sender: No OFD packet to send [11:06:21]OFD Sender: No OFD packet to send [11:06:26]OFD Sender: No OFD packet to send [11:06:31]OFD Sender: No OFD packet to send [11:06:36]OFD Sender: No OFD packet to send [11:06:41]OFD Sender: No OFD packet to send [11:06:46]OFD Sender: No OFD packet to send [11:06:51]OFD Sender: No OFD packet to send [11:06:56]OFD Sender: No OFD packet to send [11:07:01]OFD Sender: No OFD packet to send [11:07:06]OFD Sender: No OFD packet to send [11:07:11]OFD Sender: No OFD packet to send [11:07:16]OFD Sender: No OFD packet to send [11:07:21]OFD Sender: No OFD packet to send [11:07:26]OFD Sender: No OFD packet to send [11:07:27]accept exits with 9 [11:07:27]New connection [11:07:27]New thread 3067460964 created [11:07:27]Thread 3067317604 joined [11:07:27]Waiting for new connection... [11:07:27] Sock 9.Parse request [11:07:27]Sock 9.Check first char [11:07:27]Sock 9.First char is OK [11:07:27]request: POST /json_proto HTTP/1.0 [11:07:27]Method: POST [11:07:27]URL: /json_proto [11:07:27]Method is POST - this is cgi request [11:07:27]url: /json_proto [11:07:27]query_string will be loaded in cgi processing [11:07:27]execute_cgi json_proto POST (null) [11:07:27]execute_cgi path=json_proto method=POST [11:07:27]POST find Content-Length [11:07:27]Host: 172.17.45.132:8080 [11:07:27]Content-Length: 630 [11:07:27]Content-Type: application/json [11:07:27] [11:07:27]POST finish read [11:07:27]Found Content-Length = 630 [11:07:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126332", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:07:27]execute_script... [11:07:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126332", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:07:27]POST & json_proto [11:07:27]process_json_proto [11:07:27]json parsed OK: [11:07:27]protocol is kg_v1.0 [11:07:27]action value=close_receipt [11:07:27]process_action close_receipt [11:07:27]cmd_close_receipt [11:07:27]MH_GetDate [11:07:27]Write to MH i2c: F0 00 00 DB 44 0E [11:07:27]Write i2c OK [11:07:27]MH_I2C_Read... [11:07:27]Read from MH i2c: F0 [11:07:27]MH_I2C_Read... [11:07:27]Read from MH i2c: F0 09 00 [11:07:27]MH_I2C_Read... [11:07:27]Read from MH i2c: F0 09 00 DB 44 00 74 26 A6 66 E3 0B 90 66 A1 [11:07:27]GetLastDocTimeStamp 1722164308 [11:07:27]current date 1722164852 [11:07:27]FM_GetShiftState [11:07:27]SAM_PROTO_GetShiftState [11:07:27]wFMCommunicate request_size=4 [11:07:27]MH_SAM_APDU [11:07:27]CAPDU: 80 13 01 00 [11:07:27]Write to MH i2c: E2 08 00 DC 44 80 13 01 00 00 00 00 00 9D [11:07:27]Write i2c OK [11:07:27]MH_I2C_Read... [11:07:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:07:27]Read from MH i2c: E2 [11:07:27]MH_I2C_Read... [11:07:27]Read from MH i2c: E2 0E 00 [11:07:27]MH_I2C_Read... [11:07:27]Read from MH i2c: E2 0E 00 DC 44 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 91 [11:07:27]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [11:07:27]wFMCommunicate OK [11:07:27]SAM_PROTO_GetShiftState done [11:07:27]FM_GetShiftState done [11:07:27]opened in 1722125648 [11:07:27]opened+sec_in_day 1722212048 [11:07:27]quantity*price = 5000 [11:07:27]sum+1 = 5001 [11:07:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 80 28.07.2024 11:07 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2029 ФПД: 112545562881615 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T110732&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2029&fm=112545562881615&tin=02508201610067®Number=0000000000189667&sum=5000 0 [11:07:28]StoreToDocumentArchive [11:07:28]shift 13 fd 2029 [11:07:28]save to /storage/0013/doc_00002029 [11:07:28]save last doc name /storage/0013/doc_00002029 to /storage/kkm_last_doc_name [11:07:28]save OK [11:07:28]Clear old archive folders... [11:07:28]ProcessDocumentItem done err = 0, tmpTLVsize=269 [11:07:28]tlvbuf is 02046430 [11:07:28]SAM_PROTO_ClearQueue [11:07:28]wFMCommunicate request_size=4 [11:07:28]MH_SAM_APDU [11:07:28]CAPDU: 80 09 00 00 [11:07:28]Write to MH i2c: E2 08 00 E9 44 80 09 00 00 00 00 00 00 9F [11:07:28]Write i2c OK [11:07:28]MH_I2C_Read... [11:07:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:07:28]Read from MH i2c: E2 [11:07:28]MH_I2C_Read... [11:07:28]Read from MH i2c: E2 03 00 [11:07:28]MH_I2C_Read... [11:07:28]Read from MH i2c: E2 03 00 E9 44 00 90 00 A1 [11:07:28]RAPDU: 90 00 [11:07:28]wFMCommunicate OK [11:07:28]SAM_PROTO_ClearQueue done [11:07:28]KKMCreateOFDPacket [11:07:28]OFDProtocolAddRootSTLVToBuf [11:07:28]FM_MakeSignedData [11:07:28]FM_MakeSignedData [11:07:28]SAM_PROTO_SignData [11:07:28]wFMCommunicate request_size=4 [11:07:28]MH_SAM_APDU [11:07:28]CAPDU: 80 0D 01 02 [11:07:28]Write to MH i2c: E2 08 00 EA 44 80 0D 01 02 00 00 00 00 A7 [11:07:28]Write i2c OK [11:07:28]MH_I2C_Read... [11:07:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:07:28]Read from MH i2c: E2 [11:07:28]MH_I2C_Read... [11:07:28]Read from MH i2c: E2 03 00 [11:07:28]MH_I2C_Read... [11:07:28]Read from MH i2c: E2 03 00 EA 44 00 90 00 A2 [11:07:28]RAPDU: 90 00 [11:07:28]wFMCommunicate OK [11:07:28]wFMCommunicate request_size=255 [11:07:28]MH_SAM_APDU [11:07:28]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 74 26 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 [11:07:28]Write to MH i2c: E2 02 01 EB 44 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 74 26 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 00 00 C7 [11:07:28]Write i2c OK [11:07:28]MH_I2C_Read... [11:07:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:07:28]Read from MH i2c: E2 [11:07:28]MH_I2C_Read... [11:07:28]Read from MH i2c: E2 03 00 [11:07:28]MH_I2C_Read... [11:07:28]Read from MH i2c: E2 03 00 EB 44 00 90 00 A3 [11:07:28]RAPDU: 90 00 [11:07:28]wFMCommunicate OK [11:07:28]wFMCommunicate request_size=28 [11:07:28]MH_SAM_APDU [11:07:28]CAPDU: 80 0D 02 02 17 39 34 32 34 38 10 04 04 00 ED 07 00 00 35 04 06 00 66 5C 0E 4B EE 4F [11:07:28]Write to MH i2c: E2 1F 00 EC 44 80 0D 02 02 17 00 39 34 32 34 38 10 04 04 00 ED 07 00 00 35 04 06 00 66 5C 0E 4B EE 4F 00 00 86 [11:07:28]Write i2c OK [11:07:28]MH_I2C_Read... [11:07:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:07:28]Read from MH i2c: E2 [11:07:28]MH_I2C_Read... [11:07:28]Read from MH i2c: E2 03 00 [11:07:28]MH_I2C_Read... [11:07:28]Read from MH i2c: E2 03 00 EC 44 00 90 00 A4 [11:07:28]RAPDU: 90 00 [11:07:28]wFMCommunicate OK [11:07:28]wFMCommunicate request_size=4 [11:07:28]MH_SAM_APDU [11:07:28]CAPDU: 80 0D 03 02 [11:07:28]Write to MH i2c: E2 08 00 ED 44 80 0D 03 02 00 00 00 00 AC [11:07:28]Write i2c OK [11:07:28]MH_I2C_Read... [11:07:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:07:28]Read from MH i2c: E2 [11:07:28]MH_I2C_Read... [11:07:28]Read from MH i2c: E2 0B 00 [11:07:28]MH_I2C_Read... [11:07:28]Read from MH i2c: E2 0B 00 ED 44 00 FC E6 A0 E1 3C 4B FC 67 90 00 FA [11:07:28]RAPDU: FC E6 A0 E1 3C 4B FC 67 90 00 [11:07:28]wFMCommunicate OK [11:07:28]SAM_PROTO_SignData done [11:07:28]FM_MakeSignedData done [11:07:28]CreateOFDProtocolMessage [11:07:28]wFMCommunicate request_size=4 [11:07:28]MH_SAM_APDU [11:07:28]CAPDU: 80 11 00 00 [11:07:28]Write to MH i2c: E2 08 00 EE 44 80 11 00 00 00 00 00 00 AC [11:07:28]Write i2c OK [11:07:28]MH_I2C_Read... [11:07:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:07:28]Read from MH i2c: E2 [11:07:28]MH_I2C_Read... [11:07:28]Read from MH i2c: E2 17 00 [11:07:28]MH_I2C_Read... [11:07:28]Read from MH i2c: E2 17 00 EE 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 FC [11:07:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [11:07:28]wFMCommunicate OK [11:07:28]CreateOFDProtocolMessage done [11:07:28]OFDSenderStorePacket 2029 [11:07:28]StoreOFDPacket docnum=2029 [11:07:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 21 01 00 00 06 37 19 01 C0 CB 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 74 26 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 ED 07 00 00 35 04 06 00 66 5C 0E 4B EE 4F FC E6 A0 E1 3C 4B FC 67 [11:07:28]CheckFolder [11:07:28]dirname=/storage/ofd_packets [11:07:28]CheckFolder done [11:07:28]ProducePacketName [11:07:28]name=ofd_packets/00002029 [11:07:28]NVStorageSaveData ofd_packets/00002029 [11:07:28]File name is /storage/ofd_packets/00002029 [11:07:28]Write 319 bytes [11:07:28]NVStorageSaveData done [11:07:28]OFDSenderStorePacket done [11:07:28]KKMCreateOFDPacket done [11:07:28]NVStorageSaveData kkm_last_timestamp [11:07:28]File name is /storage/kkm_last_timestamp [11:07:28]Write 4 bytes [11:07:28]NVStorageSaveData done [11:07:28]OFD Sender: Processing packet 2029 [packets to send 1, broken 0] [11:07:28]ProducePacketName [11:07:28]name=ofd_packets/00002029 [11:07:28]OFD Sender: To server: pG, [11:07:28]CommunicateWithHost lk.salyk.kg:30040 [11:07:28]ConnectInit lk.salyk.kg [11:07:28]ExternCall_PrintAddStr [11:07:28]wPrintStart [11:07:28]Write to MH i2c: 01 00 00 EF 44 33 [11:07:28]Write i2c OK [11:07:28]MH_I2C_Read... [11:07:28]Read from MH i2c: 01 [11:07:28]MH_I2C_Read... [11:07:28]Read from MH i2c: 01 07 00 [11:07:28]MH_I2C_Read... [11:07:28]Read from MH i2c: 01 07 00 EF 44 00 00 00 00 00 FF 0F 48 [11:07:28]RasterBufferAndPrint [11:07:28]line Счет N : (3)126332 [11:07:28]line ИНН: 02508201610067 [11:07:28]line Контрольно-Кассовый Чек [11:07:28]line ПРОДАЖА [11:07:28]line Товар: 4700000160358 [11:07:28]line Вода Легенда 1л [11:07:28]line 1.000 * 50.00 [11:07:28]line = 50.00 [11:07:28]line НДС 12% НСП 1% [11:07:28]line > о реализуемом товаре [11:07:28]line ИТОГО: 50.00 [11:07:28]line НСП 1% : 0.44 [11:07:28]line НДС 12% : 5.31 [11:07:28]line Наличными: 50.00 [11:07:28]line Безнал.: 0.00 [11:07:28]line Место: АЗС № 127 "Партнер Нефть" [11:07:28]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [11:07:28]line СНО: Общий режим [11:07:28]line Чек 80 28.07.2024 11:07 [11:07:28]line Смена: 13 ФФД: 1.0 [11:07:28]line ЗНМ: 0300000161 [11:07:28]line РНМ: 0000000000189667 [11:07:28]line Версия ККМ: v1.0 [11:07:28]line ФМ: 0000000002094248 [11:07:28]line ФД: 2029 [11:07:28]line ФПД: 112545562881615 [11:07:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T110732&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2029&fm=112545562881615&tin=02508201610067®Number=0000000000189667&sum=5000 [11:07:29]line 0 [11:07:29]Connected sock=11 [11:07:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 21 01 00 00 06 37 19 01 C0 CB 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 74 26 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 ED 07 00 00 35 04 06 00 66 5C 0E 4B EE 4F FC E6 A0 E1 3C 4B FC 67 [11:07:29]written 0, free lines is 4095 [11:07:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 AA A7 47 00 D0 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 32 30 39 34 32 34 38 10 04 04 00 ED 07 00 00 F4 03 04 00 E4 D1 A5 66 B6 04 01 00 00 58 D5 EE D7 25 C2 9F 02 [11:07:29]CommunicateWithHost err = 0 [11:07:29]CheckOFDResponse [11:07:29]1017 (14) - 77093643461234 [11:07:29]1041 (16) - 0000000002094248 [11:07:29]1040 (4) - 2029 [11:07:29]1012 (4) - 28.07.2024 05:06 [11:07:29]1206 (1) - 0 [11:07:29]OFD Sender: Remove packet 2029 [11:07:29]ProducePacketName [11:07:29]name=ofd_packets/00002029 [11:07:29]NVStorageDeleteData [11:07:29]Write to MH i2c: 01 00 00 17 45 5C [11:07:29]Write i2c OK [11:07:29]MH_I2C_Read... [11:07:29]Read from MH i2c: 01 [11:07:29]MH_I2C_Read... [11:07:29]Read from MH i2c: 01 07 00 [11:07:29]MH_I2C_Read... [11:07:29]Read from MH i2c: 01 07 00 17 45 00 00 00 00 00 03 0D 73 [11:07:29]RasterBufferAndPrint [11:07:29]line [11:07:29]line [11:07:29]line [11:07:29]line [11:07:29]line [11:07:29]written 0, free lines is 3340 [11:07:29]MH_Cut [11:07:29]Write to MH i2c: D1 01 00 1E 45 01 35 [11:07:29]Write i2c OK [11:07:29]MH_I2C_Read... [11:07:29]Read from MH i2c: D1 [11:07:29]MH_I2C_Read... [11:07:29]Read from MH i2c: D1 01 00 [11:07:29]MH_I2C_Read... [11:07:29]Read from MH i2c: D1 01 00 1E 45 00 34 [11:07:29]Write to MH i2c: 01 00 00 1F 45 64 [11:07:29]Write i2c OK [11:07:29]MH_I2C_Read... [11:07:29]OFD Sender: No OFD packet to send [11:07:30]*** Cut start [11:07:30]*** Partial cut [11:07:30]*** CUTSNS_PIN = 1 [11:07:30]*** CUTSNS_PIN = 0 [11:07:30]*** Brake cut motor [11:07:30]Read from MH i2c: 01 [11:07:30]MH_I2C_Read... [11:07:30]*** Stop cut motor [11:07:30]*** Cut end [11:07:30]Read from MH i2c: 01 07 00 [11:07:30]MH_I2C_Read... [11:07:30]Read from MH i2c: 01 07 00 1F 45 00 00 00 00 00 FF 0F 79 [11:07:30]process_action close_receipt done [11:07:30]requested_data is exist [11:07:30]produce_requested_data [11:07:30]requested_item fm.sn is exist - process it [11:07:30]wFMCommunicate request_size=4 [11:07:30]MH_SAM_APDU [11:07:30]CAPDU: 80 11 00 00 [11:07:30]Write to MH i2c: E2 08 00 20 45 80 11 00 00 00 00 00 00 DF [11:07:30]Write i2c OK [11:07:30]MH_I2C_Read... [11:07:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:07:30]Read from MH i2c: E2 [11:07:30]MH_I2C_Read... [11:07:30]Read from MH i2c: E2 17 00 [11:07:30]MH_I2C_Read... [11:07:30]Read from MH i2c: E2 17 00 20 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 2F [11:07:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [11:07:30]wFMCommunicate OK [11:07:30]requested_item fd.num is exist - process it [11:07:30]SAM_PROTO_GetFieldsCounters [11:07:30]wFMCommunicate request_size=4 [11:07:30]MH_SAM_APDU [11:07:30]CAPDU: 80 13 00 00 [11:07:30]Write to MH i2c: E2 08 00 21 45 80 13 00 00 00 00 00 00 E2 [11:07:30]Write i2c OK [11:07:30]MH_I2C_Read... [11:07:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:07:31]Read from MH i2c: E2 [11:07:31]MH_I2C_Read... [11:07:31]Read from MH i2c: E2 62 00 [11:07:31]MH_I2C_Read... [11:07:31]Read from MH i2c: E2 62 00 21 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 ED 07 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 FD [11:07:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 ED 07 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:07:31]wFMCommunicate OK [11:07:31]SAM_PROTO_GetFieldsCounters done [11:07:31]requested_item shift.num is exist - process it [11:07:31]requested_item shift.opened is exist - process it [11:07:31]req_shift_opened [11:07:31]FM_GetShiftState [11:07:31]SAM_PROTO_GetShiftState [11:07:31]wFMCommunicate request_size=4 [11:07:31]MH_SAM_APDU [11:07:31]CAPDU: 80 13 01 00 [11:07:31]Write to MH i2c: E2 08 00 22 45 80 13 01 00 00 00 00 00 E4 [11:07:31]Write i2c OK [11:07:31]MH_I2C_Read... [11:07:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:07:31]Read from MH i2c: E2 [11:07:31]MH_I2C_Read... [11:07:31]Read from MH i2c: E2 0E 00 [11:07:31]MH_I2C_Read... [11:07:31]Read from MH i2c: E2 0E 00 22 45 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 D8 [11:07:31]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [11:07:31]wFMCommunicate OK [11:07:31]SAM_PROTO_GetShiftState done [11:07:31]FM_GetShiftState done [11:07:31]req_shift_opened done [11:07:31]requested_item shift.open_date is exist - process it [11:07:31]req_shift_open_date [11:07:31]req_shift_open_date done [11:07:31]produce_requested_data done [11:07:31]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2029,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [11:07:31]process_action_free close_receipt [11:07:31]json_value_free [11:07:31]json_value_free done [11:07:31]process_json_proto returns [11:07:31]Send response to host [11:07:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2029,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [11:07:31]free response buf [11:07:31]execute_script done [11:07:31]execute_script returns [11:07:31]free content buf [11:07:31]Sock 9.Close socket [11:07:31]Sock 9.Thread stoped [11:07:34]OFD Sender: No OFD packet to send [11:07:39]OFD Sender: No OFD packet to send [11:07:44]OFD Sender: No OFD packet to send [11:07:49]OFD Sender: No OFD packet to send [11:07:54]OFD Sender: No OFD packet to send [11:07:59]OFD Sender: No OFD packet to send [11:08:04]OFD Sender: No OFD packet to send [11:08:09]OFD Sender: No OFD packet to send [11:08:14]OFD Sender: No OFD packet to send [11:08:19]OFD Sender: No OFD packet to send [11:08:24]OFD Sender: No OFD packet to send [11:08:29]OFD Sender: No OFD packet to send [11:08:34]OFD Sender: No OFD packet to send [11:08:39]OFD Sender: No OFD packet to send [11:08:44]OFD Sender: No OFD packet to send [11:08:49]OFD Sender: No OFD packet to send [11:08:54]OFD Sender: No OFD packet to send [11:08:59]OFD Sender: No OFD packet to send [11:09:04]OFD Sender: No OFD packet to send [11:09:09]OFD Sender: No OFD packet to send [11:09:14]OFD Sender: No OFD packet to send [11:09:19]OFD Sender: No OFD packet to send [11:09:24]OFD Sender: No OFD packet to send [11:09:29]OFD Sender: No OFD packet to send [11:09:34]OFD Sender: No OFD packet to send [11:09:39]OFD Sender: No OFD packet to send [11:09:44]OFD Sender: No OFD packet to send [11:09:49]OFD Sender: No OFD packet to send [11:09:54]OFD Sender: No OFD packet to send [11:09:59]OFD Sender: No OFD packet to send [11:10:04]OFD Sender: No OFD packet to send [11:10:09]OFD Sender: No OFD packet to send [11:10:14]OFD Sender: No OFD packet to send [11:10:19]OFD Sender: No OFD packet to send [11:10:24]OFD Sender: No OFD packet to send [11:10:29]OFD Sender: No OFD packet to send [11:10:34]OFD Sender: No OFD packet to send [11:10:39]OFD Sender: No OFD packet to send [11:10:44]OFD Sender: No OFD packet to send [11:10:49]OFD Sender: No OFD packet to send [11:10:54]OFD Sender: No OFD packet to send [11:10:59]OFD Sender: No OFD packet to send [11:11: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: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:55]ConnectInit Can't connect to host [11:14:55]OFD Sender: No OFD packet to send [11:15:00]OFD Sender: No OFD packet to send [11:15:05]OFD Sender: No OFD packet to send [11:15:10]OFD Sender: No OFD packet to send [11:15:15]OFD Sender: No OFD packet to send [11:15:20]OFD Sender: No OFD packet to send [11:15:25]OFD Sender: No OFD packet to send [11:15:30]OFD Sender: No OFD packet to send [11:15:35]OFD Sender: No OFD packet to send [11:15:40]OFD Sender: No OFD packet to send [11:15:45]OFD Sender: No OFD packet to send [11:15:50]OFD Sender: No OFD packet to send [11:15:55]OFD Sender: No OFD packet to send [11:16:00]OFD Sender: No OFD packet to send [11:16:05]OFD Sender: No OFD packet to send [11:16:10]OFD Sender: No OFD packet to send [11:16:15]OFD Sender: No OFD packet to send [11:16:20]OFD Sender: No OFD packet to send [11:16:25]OFD Sender: No OFD packet to send [11:16:30]OFD Sender: No OFD packet to send [11:16:35]OFD Sender: No OFD packet to send [11:16:40]OFD Sender: No OFD packet to send [11:16:45]OFD Sender: No OFD packet to send [11:16:50]OFD Sender: No OFD packet to send [11:16:55]OFD Sender: No OFD packet to send [11:17:00]OFD Sender: No OFD packet to send [11:17:05]OFD Sender: No OFD packet to send [11:17:10]OFD Sender: No OFD packet to send [11:17:15]OFD Sender: No OFD packet to send [11:17:20]OFD Sender: No OFD packet to send [11:17:25]OFD Sender: No OFD packet to send [11:17:30]OFD Sender: No OFD packet to send [11:17:35]OFD Sender: No OFD packet to send [11:17:40]OFD Sender: No OFD packet to send [11:17:45]OFD Sender: No OFD packet to send [11:17:48]accept exits with 8 [11:17:48]New connection [11:17:48]New thread 3067317604 created [11:17:48]Thread 3067460964 joined [11:17:48]Waiting for new connection... [11:17:48] Sock 8.Parse request [11:17:48]Sock 8.Check first char [11:17:48]Sock 8.First char is OK [11:17:48]request: POST /json_proto HTTP/1.0 [11:17:48]Method: POST [11:17:48]URL: /json_proto [11:17:48]Method is POST - this is cgi request [11:17:48]url: /json_proto [11:17:48]query_string will be loaded in cgi processing [11:17:48]execute_cgi json_proto POST (null) [11:17:48]execute_cgi path=json_proto method=POST [11:17:48]POST find Content-Length [11:17:48]Host: 172.17.45.132:8080 [11:17:48]Content-Length: 913 [11:17:48]Content-Type: application/json [11:17:48] [11:17:48]POST finish read [11:17:48]Found Content-Length = 913 [11:17:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126333", "tax_sys" : 0, "items" : [ { "code": "5449000176431", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 0,5\u043B", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 2.000, "sum" : 80.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" ] } } [11:17:48]execute_script... [11:17: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)126333", "tax_sys" : 0, "items" : [ { "code": "5449000176431", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 0,5\u043B", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 2.000, "sum" : 80.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" ] } } [11:17:48]POST & json_proto [11:17:48]process_json_proto [11:17:48]json parsed OK: [11:17:48]protocol is kg_v1.0 [11:17:48]action value=close_receipt [11:17:48]process_action close_receipt [11:17:48]cmd_close_receipt [11:17:48]MH_GetDate [11:17:48]Write to MH i2c: F0 00 00 23 45 57 [11:17:48]Write i2c OK [11:17:48]MH_I2C_Read... [11:17:48]Read from MH i2c: F0 [11:17:48]MH_I2C_Read... [11:17:48]Read from MH i2c: F0 09 00 [11:17:48]MH_I2C_Read... [11:17:48]Read from MH i2c: F0 09 00 23 45 00 E1 28 A6 66 E3 0B 90 66 59 [11:17:48]GetLastDocTimeStamp 1722164852 [11:17:48]current date 1722165473 [11:17:48]FM_GetShiftState [11:17:48]SAM_PROTO_GetShiftState [11:17:48]wFMCommunicate request_size=4 [11:17:48]MH_SAM_APDU [11:17:48]CAPDU: 80 13 01 00 [11:17:48]Write to MH i2c: E2 08 00 24 45 80 13 01 00 00 00 00 00 E6 [11:17:48]Write i2c OK [11:17:48]MH_I2C_Read... [11:17:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:48]Read from MH i2c: E2 [11:17:48]MH_I2C_Read... [11:17:48]Read from MH i2c: E2 0E 00 [11:17:48]MH_I2C_Read... [11:17:48]Read from MH i2c: E2 0E 00 24 45 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 DA [11:17:48]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [11:17:48]wFMCommunicate OK [11:17:48]SAM_PROTO_GetShiftState done [11:17:48]FM_GetShiftState done [11:17:48]opened in 1722125648 [11:17:48]opened+sec_in_day 1722212048 [11:17:48]quantity*price = 19000 [11:17:48]sum+1 = 19001 [11:17:48]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160211 Вода Легенда 0,5л 2.000 * 40.00 = 80.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 270.00 НСП 1% : 2.39 НДС 12% : 28.68 Наличными: 270.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 81 28.07.2024 11:17 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2030 ФПД: 186567404443761 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T111753&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2030&fm=186567404443761&tin=02508201610067®Number=0000000000189667&sum=27000 0 [11:17:49]StoreToDocumentArchive [11:17:49]shift 13 fd 2030 [11:17:49]save to /storage/0013/doc_00002030 [11:17:49]save last doc name /storage/0013/doc_00002030 to /storage/kkm_last_doc_name [11:17:49]save OK [11:17:49]Clear old archive folders... [11:17:49]ProcessDocumentItem done err = 0, tmpTLVsize=390 [11:17:49]tlvbuf is 020DA980 [11:17:49]SAM_PROTO_ClearQueue [11:17:49]wFMCommunicate request_size=4 [11:17:49]MH_SAM_APDU [11:17:49]CAPDU: 80 09 00 00 [11:17:49]Write to MH i2c: E2 08 00 31 45 80 09 00 00 00 00 00 00 E8 [11:17:49]Write i2c OK [11:17:49]MH_I2C_Read... [11:17:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:17:49]Read from MH i2c: E2 [11:17:49]MH_I2C_Read... [11:17:49]Read from MH i2c: E2 03 00 [11:17:49]MH_I2C_Read... [11:17:49]Read from MH i2c: E2 03 00 31 45 00 90 00 EA [11:17:49]RAPDU: 90 00 [11:17:49]wFMCommunicate OK [11:17:49]SAM_PROTO_ClearQueue done [11:17:49]KKMCreateOFDPacket [11:17:49]OFDProtocolAddRootSTLVToBuf [11:17:49]FM_MakeSignedData [11:17:49]FM_MakeSignedData [11:17:49]SAM_PROTO_SignData [11:17:49]wFMCommunicate request_size=4 [11:17:49]MH_SAM_APDU [11:17:49]CAPDU: 80 0D 01 02 [11:17:49]Write to MH i2c: E2 08 00 32 45 80 0D 01 02 00 00 00 00 F0 [11:17:49]Write i2c OK [11:17:49]MH_I2C_Read... [11:17:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:17:49]Read from MH i2c: E2 [11:17:49]MH_I2C_Read... [11:17:49]Read from MH i2c: E2 03 00 [11:17:49]MH_I2C_Read... [11:17:49]Read from MH i2c: E2 03 00 32 45 00 90 00 EB [11:17:49]RAPDU: 90 00 [11:17:49]wFMCommunicate OK [11:17:49]wFMCommunicate request_size=255 [11:17:49]MH_SAM_APDU [11:17:49]CAPDU: 80 0D 02 02 FA 03 00 86 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 33 31 06 04 2F 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB 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 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 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 [11:17:49]Write to MH i2c: E2 02 01 33 45 80 0D 02 02 FA 00 03 00 86 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 33 31 06 04 2F 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB 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 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 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 00 2D [11:17:49]Write i2c OK [11:17:49]MH_I2C_Read... [11:17:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:49]Read from MH i2c: E2 [11:17:49]MH_I2C_Read... [11:17:49]Read from MH i2c: E2 03 00 [11:17:49]MH_I2C_Read... [11:17:49]Read from MH i2c: E2 03 00 33 45 00 90 00 EC [11:17:49]RAPDU: 90 00 [11:17:49]wFMCommunicate OK [11:17:49]wFMCommunicate request_size=149 [11:17:49]MH_SAM_APDU [11:17:49]CAPDU: 80 0D 02 02 90 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 34 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 51 00 00 00 F4 03 04 00 E1 28 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 EE 07 00 00 35 04 06 00 A9 AE 9B DE 58 71 [11:17:49]Write to MH i2c: E2 98 00 34 45 80 0D 02 02 90 00 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 34 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 51 00 00 00 F4 03 04 00 E1 28 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 EE 07 00 00 35 04 06 00 A9 AE 9B DE 58 71 00 00 5A [11:17:49]Write i2c OK [11:17:49]MH_I2C_Read... [11:17:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:49]Read from MH i2c: E2 [11:17:49]MH_I2C_Read... [11:17:49]Read from MH i2c: E2 03 00 [11:17:49]MH_I2C_Read... [11:17:49]Read from MH i2c: E2 03 00 34 45 00 90 00 ED [11:17:49]RAPDU: 90 00 [11:17:49]wFMCommunicate OK [11:17:49]wFMCommunicate request_size=4 [11:17:49]MH_SAM_APDU [11:17:49]CAPDU: 80 0D 03 02 [11:17:49]Write to MH i2c: E2 08 00 35 45 80 0D 03 02 00 00 00 00 F5 [11:17:49]Write i2c OK [11:17:49]MH_I2C_Read... [11:17:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:17:49]Read from MH i2c: E2 [11:17:49]MH_I2C_Read... [11:17:49]Read from MH i2c: E2 0B 00 [11:17:49]MH_I2C_Read... [11:17:49]Read from MH i2c: E2 0B 00 35 45 00 6E 67 A8 CA 12 83 AA F0 90 00 6C [11:17:49]RAPDU: 6E 67 A8 CA 12 83 AA F0 90 00 [11:17:49]wFMCommunicate OK [11:17:49]SAM_PROTO_SignData done [11:17:49]FM_MakeSignedData done [11:17:49]CreateOFDProtocolMessage [11:17:49]wFMCommunicate request_size=4 [11:17:49]MH_SAM_APDU [11:17:49]CAPDU: 80 11 00 00 [11:17:49]Write to MH i2c: E2 08 00 36 45 80 11 00 00 00 00 00 00 F5 [11:17:49]Write i2c OK [11:17:49]MH_I2C_Read... [11:17:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:49]Read from MH i2c: E2 [11:17:49]MH_I2C_Read... [11:17:49]Read from MH i2c: E2 17 00 [11:17:49]MH_I2C_Read... [11:17:49]Read from MH i2c: E2 17 00 36 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 45 [11:17:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [11:17:49]wFMCommunicate OK [11:17:49]CreateOFDProtocolMessage done [11:17:49]OFDSenderStorePacket 2030 [11:17:49]StoreOFDPacket docnum=2030 [11:17:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 9A 01 00 00 A9 98 92 01 78 6F 5A 03 01 00 03 00 86 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 33 31 06 04 2F 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB 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 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 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 34 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 51 00 00 00 F4 03 04 00 E1 28 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 EE 07 00 00 35 04 06 00 A9 AE 9B DE 58 71 6E 67 A8 CA 12 83 AA F0 [11:17:49]CheckFolder [11:17:49]dirname=/storage/ofd_packets [11:17:49]CheckFolder done [11:17:49]ProducePacketName [11:17:49]name=ofd_packets/00002030 [11:17:49]NVStorageSaveData ofd_packets/00002030 [11:17:49]File name is /storage/ofd_packets/00002030 [11:17:49]Write 440 bytes [11:17:49]NVStorageSaveData done [11:17:49]OFDSenderStorePacket done [11:17:49]KKMCreateOFDPacket done [11:17:49]NVStorageSaveData kkm_last_timestamp [11:17:49]File name is /storage/kkm_last_timestamp [11:17:49]Write 4 bytes [11:17:49]NVStorageSaveData done [11:17:49]ExternCall_PrintAddStr [11:17:49]wPrintStart [11:17:49]Write to MH i2c: 01 00 00 37 45 7C [11:17:49]Write i2c OK [11:17:49]MH_I2C_Read... [11:17:49]Read from MH i2c: 01 [11:17:50]MH_I2C_Read... [11:17:50]Read from MH i2c: 01 07 00 [11:17:50]MH_I2C_Read... [11:17:50]Read from MH i2c: 01 07 00 37 45 00 00 00 00 00 FF 0F 91 [11:17:50]RasterBufferAndPrint [11:17:50]line Счет N : (3)126333 [11:17:50]line ИНН: 02508201610067 [11:17:50]line Контрольно-Кассовый Чек [11:17:50]line ПРОДАЖА [11:17:50]line Товар: 5449000176431 [11:17:50]line Сок Piko Pulpy апельсин ПЭТ 0,5л [11:17:50]line 2.000 * 95.00 [11:17:50]line = 190.00 [11:17:50]line НДС 12% НСП 1% [11:17:50]line > о реализуемом товаре [11:17:50]line Товар: 4700000160211 [11:17:50]line Вода Легенда 0,5л [11:17:50]line 2.000 * 40.00 [11:17:50]line = 80.00 [11:17:50]line НДС 12% НСП 1% [11:17:50]line > о реализуемом товаре [11:17:50]line ИТОГО: 270.00 [11:17:50]line НСП 1% : 2.39 [11:17:50]line НДС 12% : 28.68 [11:17:50]line Наличными: 270.00 [11:17:50]line Безнал.: 0.00 [11:17:50]line Место: АЗС № 127 "Партнер Нефть" [11:17:50]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [11:17:50]line СНО: Общий режим [11:17:50]line Чек 81 28.07.2024 11:17 [11:17:50]line Смена: 13 ФФД: 1.0 [11:17:50]line ЗНМ: 0300000161 [11:17:50]line РНМ: 0000000000189667 [11:17:50]line Версия ККМ: v1.0 [11:17:50]line ФМ: 0000000002094248 [11:17:50]line ФД: 2030 [11:17:50]line ФПД: 186567404443761 [11:17:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T111753&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2030&fm=186567404443761&tin=02508201610067®Number=0000000000189667&sum=27000 [11:17:50]line 0 [11:17:50]OFD Sender: Processing packet 2030 [packets to send 1, broken 0] [11:17:50]ProducePacketName [11:17:50]name=ofd_packets/00002030 [11:17:50]OFD Sender: To server: pG, [11:17:50]CommunicateWithHost lk.salyk.kg:30040 [11:17:50]ConnectInit lk.salyk.kg [11:17:50]written 0, free lines is 4095 [11:17:50]Connected sock=10 [11:17:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 9A 01 00 00 A9 98 92 01 78 6F 5A 03 01 00 03 00 86 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 33 31 06 04 2F 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB 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 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 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 34 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 51 00 00 00 F4 03 04 00 E1 28 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 EE 07 00 00 35 04 06 00 A9 AE 9B DE 58 71 6E 67 A8 CA 12 83 AA F0 [11:17:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 C0 38 47 00 19 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 EE 07 00 00 F4 03 04 00 51 D4 A5 66 B6 04 01 00 00 72 FB F0 5A 44 C8 2C 1F [11:17:50]CommunicateWithHost err = 0 [11:17:50]CheckOFDResponse [11:17:50]1017 (14) - 77093643461234 [11:17:50]1041 (16) - 0000000002094248 [11:17:50]1040 (4) - 2030 [11:17:50]1012 (4) - 28.07.2024 05:17 [11:17:50]1206 (1) - 0 [11:17:50]OFD Sender: Remove packet 2030 [11:17:50]ProducePacketName [11:17:50]name=ofd_packets/00002030 [11:17:50]NVStorageDeleteData [11:17:50]Write to MH i2c: 01 00 00 66 45 AB [11:17:50]Write i2c OK [11:17:50]MH_I2C_Read... [11:17:50]Read from MH i2c: 01 [11:17:50]MH_I2C_Read... [11:17:50]Read from MH i2c: 01 07 00 [11:17:50]MH_I2C_Read... [11:17:50]Read from MH i2c: 01 07 00 66 45 00 00 00 00 00 C8 0C 86 [11:17:50]RasterBufferAndPrint [11:17:50]line [11:17:50]line [11:17:50]line [11:17:50]line [11:17:50]line [11:17:50]written 0, free lines is 3277 [11:17:50]MH_Cut [11:17:50]Write to MH i2c: D1 01 00 6D 45 01 84 [11:17:50]Write i2c OK [11:17:50]MH_I2C_Read... [11:17:50]Read from MH i2c: D1 [11:17:50]MH_I2C_Read... [11:17:50]Read from MH i2c: D1 01 00 [11:17:50]MH_I2C_Read... [11:17:50]Read from MH i2c: D1 01 00 6D 45 00 83 [11:17:50]Write to MH i2c: 01 00 00 6E 45 B3 [11:17:50]Write i2c OK [11:17:50]MH_I2C_Read... [11:17:51]OFD Sender: No OFD packet to send [11:17:51]*** Cut start [11:17:51]*** Partial cut [11:17:51]*** CUTSNS_PIN = 1 [11:17:51]*** CUTSNS_PIN = 0 [11:17:51]*** Brake cut motor [11:17:52]Read from MH i2c: 01 [11:17:52]MH_I2C_Read... [11:17:52]*** Stop cut motor [11:17:52]*** Cut end [11:17:52]Read from MH i2c: 01 07 00 [11:17:52]MH_I2C_Read... [11:17:52]Read from MH i2c: 01 07 00 6E 45 00 00 00 00 00 FF 0F C8 [11:17:52]process_action close_receipt done [11:17:52]requested_data is exist [11:17:52]produce_requested_data [11:17:52]requested_item fm.sn is exist - process it [11:17:52]wFMCommunicate request_size=4 [11:17:52]MH_SAM_APDU [11:17:52]CAPDU: 80 11 00 00 [11:17:52]Write to MH i2c: E2 08 00 6F 45 80 11 00 00 00 00 00 00 2E [11:17:52]Write i2c OK [11:17:52]MH_I2C_Read... [11:17:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:52]Read from MH i2c: E2 [11:17:52]MH_I2C_Read... [11:17:52]Read from MH i2c: E2 17 00 [11:17:52]MH_I2C_Read... [11:17:52]Read from MH i2c: E2 17 00 6F 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 7E [11:17:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [11:17:52]wFMCommunicate OK [11:17:52]requested_item fd.num is exist - process it [11:17:52]SAM_PROTO_GetFieldsCounters [11:17:52]wFMCommunicate request_size=4 [11:17:52]MH_SAM_APDU [11:17:52]CAPDU: 80 13 00 00 [11:17:52]Write to MH i2c: E2 08 00 70 45 80 13 00 00 00 00 00 00 31 [11:17:52]Write i2c OK [11:17:52]MH_I2C_Read... [11:17:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:17:52]Read from MH i2c: E2 [11:17:52]MH_I2C_Read... [11:17:52]Read from MH i2c: E2 62 00 [11:17:52]MH_I2C_Read... [11:17:52]Read from MH i2c: E2 62 00 70 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 EE 07 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 50 [11:17:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 EE 07 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:17:52]wFMCommunicate OK [11:17:52]SAM_PROTO_GetFieldsCounters done [11:17:52]requested_item shift.num is exist - process it [11:17:52]requested_item shift.opened is exist - process it [11:17:52]req_shift_opened [11:17:52]FM_GetShiftState [11:17:52]SAM_PROTO_GetShiftState [11:17:52]wFMCommunicate request_size=4 [11:17:52]MH_SAM_APDU [11:17:52]CAPDU: 80 13 01 00 [11:17:52]Write to MH i2c: E2 08 00 71 45 80 13 01 00 00 00 00 00 33 [11:17:52]Write i2c OK [11:17:52]MH_I2C_Read... [11:17:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:52]Read from MH i2c: E2 [11:17:52]MH_I2C_Read... [11:17:52]Read from MH i2c: E2 0E 00 [11:17:52]MH_I2C_Read... [11:17:52]Read from MH i2c: E2 0E 00 71 45 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 27 [11:17:52]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [11:17:52]wFMCommunicate OK [11:17:52]SAM_PROTO_GetShiftState done [11:17:52]FM_GetShiftState done [11:17:52]req_shift_opened done [11:17:52]requested_item shift.open_date is exist - process it [11:17:52]req_shift_open_date [11:17:52]req_shift_open_date done [11:17:52]produce_requested_data done [11:17:52]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2030,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [11:17:52]process_action_free close_receipt [11:17:52]json_value_free [11:17:52]json_value_free done [11:17:52]process_json_proto returns [11:17:52]Send response to host [11:17:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2030,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [11:17:52]free response buf [11:17:52]execute_script done [11:17:52]execute_script returns [11:17:52]free content buf [11:17:52]Sock 8.Close socket [11:17:52]Sock 8.Thread stoped [11:17:56]OFD Sender: No OFD packet to send [11:18:01]OFD Sender: No OFD packet to send [11:18:06]OFD Sender: No OFD packet to send [11:18:11]OFD Sender: No OFD packet to send [11:18:16]OFD Sender: No OFD packet to send [11:18:21]OFD Sender: No OFD packet to send [11:18:26]OFD Sender: No OFD packet to send [11:18:31]OFD Sender: No OFD packet to send [11:18:36]OFD Sender: No OFD packet to send [11:18:41]OFD Sender: No OFD packet to send [11:18:46]OFD Sender: No OFD packet to send [11:18:51]OFD Sender: No OFD packet to send [11:18:56]OFD Sender: No OFD packet to send [11:19:01]OFD Sender: No OFD packet to send [11:19:06]OFD Sender: No OFD packet to send [11:19:11]OFD Sender: No OFD packet to send [11:19:16]OFD Sender: No OFD packet to send [11:19:21]OFD Sender: No OFD packet to send [11:19:26]OFD Sender: No OFD packet to send [11:19:31]OFD Sender: No OFD packet to send [11:19:36]OFD Sender: No OFD packet to send [11:19:41]OFD Sender: No OFD packet to send [11:19:46]OFD Sender: No OFD packet to send [11:19:51]OFD Sender: No OFD packet to send [11:19:56]OFD Sender: No OFD packet to send [11:20:01]OFD Sender: No OFD packet to send [11:20:06]OFD Sender: No OFD packet to send [11:20:11]OFD Sender: No OFD packet to send [11:20:16]OFD Sender: No OFD packet to send [11:20:21]OFD Sender: No OFD packet to send [11:20:26]OFD Sender: No OFD packet to send [11:20:31]OFD Sender: No OFD packet to send [11:20:36]OFD Sender: No OFD packet to send [11:20:41]OFD Sender: No OFD packet to send [11:20:46]OFD Sender: No OFD packet to send [11:20:51]OFD Sender: No OFD packet to send [11:20:56]OFD Sender: No OFD packet to send [11:21:01]OFD Sender: No OFD packet to send [11:21:06]OFD Sender: No OFD packet to send [11:21:11]OFD Sender: No OFD packet to send [11:21:16]OFD Sender: No OFD packet to send [11:21:21]OFD Sender: No OFD packet to send [11:21:26]OFD Sender: No OFD packet to send [11:21:31]OFD Sender: No OFD packet to send [11:21:36]OFD Sender: No OFD packet to send [11:21:41]OFD Sender: No OFD packet to send [11:21:46]OFD Sender: No OFD packet to send [11:21:51]OFD Sender: No OFD packet to send [11:21:56]OFD Sender: No OFD packet to send [11:22:01]OFD Sender: No OFD packet to send [11:22:06]OFD Sender: No OFD packet to send [11:22:11]OFD Sender: No OFD packet to send [11:22:16]OFD Sender: No OFD packet to send [11:22:21]OFD Sender: No OFD packet to send [11:22:26]OFD Sender: No OFD packet to send [11:22:31]OFD Sender: No OFD packet to send [11:22:36]OFD Sender: No OFD packet to send [11:22:41]OFD Sender: No OFD packet to send [11:22:46]OFD Sender: No OFD packet to send [11:22:51]OFD Sender: No OFD packet to send [11:22:56]OFD Sender: No OFD packet to send [11:23:01]OFD Sender: No OFD packet to send [11:23:06]OFD Sender: No OFD packet to send [11:23:11]OFD Sender: No OFD packet to send [11:23:16]OFD Sender: No OFD packet to send [11:23:21]OFD Sender: No OFD packet to send [11:23:26]OFD Sender: No OFD packet to send [11:23:31]OFD Sender: No OFD packet to send [11:23:36]OFD Sender: No OFD packet to send [11:23:41]OFD Sender: No OFD packet to send [11:23:46]OFD Sender: No OFD packet to send [11:23:51]OFD Sender: No OFD packet to send [11:23:56]OFD Sender: No OFD packet to send [11:24:01]OFD Sender: No OFD packet to send [11:24:06]OFD Sender: No OFD packet to send [11:24:11]OFD Sender: No OFD packet to send [11:24:16]OFD Sender: No OFD packet to send [11:24:21]OFD Sender: No OFD packet to send [11:24:26]OFD Sender: No OFD packet to send [11:24:31]OFD Sender: No OFD packet to send [11:24:36]OFD Sender: No OFD packet to send [11:24:41]OFD Sender: No OFD packet to send [11:24:46]OFD Sender: No OFD packet to send [11:24:51]OFD Sender: No OFD packet to send [11:24:56]OFD Sender: No OFD packet to send [11:25:01]OFD Sender: No OFD packet to send [11:25:06]OFD Sender: No OFD packet to send [11:25:11]OFD Sender: No OFD packet to send [11:25:16]OFD Sender: No OFD packet to send [11:25:21]OFD Sender: No OFD packet to send [11:25:26]OFD Sender: No OFD packet to send [11:25:31]OFD Sender: No OFD packet to send [11:25:36]OFD Sender: No OFD packet to send [11:25:41]OFD Sender: No OFD packet to send [11:25:46]OFD Sender: No OFD packet to send [11:25:51]OFD Sender: No OFD packet to send [11:25:56]OFD Sender: No OFD packet to send [11:26:01]OFD Sender: No OFD packet to send [11:26:06]OFD Sender: No OFD packet to send [11:26:11]OFD Sender: No OFD packet to send [11:26:16]OFD Sender: No OFD packet to send [11:26:21]OFD Sender: No OFD packet to send [11:26:26]OFD Sender: No OFD packet to send [11:26:31]OFD Sender: No OFD packet to send [11:26:36]OFD Sender: No OFD packet to send [11:26:41]OFD Sender: No OFD packet to send [11:26:46]OFD Sender: No OFD packet to send [11:26:51]OFD Sender: No OFD packet to send [11:26:56]OFD Sender: No OFD packet to send [11:27:01]OFD Sender: No OFD packet to send [11:27:06]OFD Sender: No OFD packet to send [11:27:11]OFD Sender: No OFD packet to send [11:27:16]OFD Sender: No OFD packet to send [11:27:21]OFD Sender: No OFD packet to send [11:27:26]OFD Sender: No OFD packet to send [11:27:31]OFD Sender: No OFD packet to send [11:27:36]OFD Sender: No OFD packet to send [11:27:41]OFD Sender: No OFD packet to send [11:27:46]OFD Sender: No OFD packet to send [11:27:51]OFD Sender: No OFD packet to send [11:27:56]OFD Sender: No OFD packet to send [11:28:01]OFD Sender: No OFD packet to send [11:28:06]OFD Sender: No OFD packet to send [11:34:02]ConnectInit Can't connect to host [11:34:06]OFD Sender: No OFD packet to send [11:34:11]OFD Sender: No OFD packet to send [11:34:16]OFD Sender: No OFD packet to send [11:34:21]OFD Sender: No OFD packet to send [11:34:26]OFD Sender: No OFD packet to send [11:34:31]OFD Sender: No OFD packet to send [11:34:36]OFD Sender: No OFD packet to send [11:34:41]OFD Sender: No OFD packet to send [11:34:46]OFD Sender: No OFD packet to send [11:34:51]OFD Sender: No OFD packet to send [11:34:56]OFD Sender: No OFD packet to send [11:35:01]OFD Sender: No OFD packet to send [11:35:06]OFD Sender: No OFD packet to send [11:35:11]OFD Sender: No OFD packet to send [11:35:16]OFD Sender: No OFD packet to send [11:35:22]OFD Sender: No OFD packet to send [11:35:27]OFD Sender: No OFD packet to send [11:35:32]OFD Sender: No OFD packet to send [11:35:37]OFD Sender: No OFD packet to send [11:35:42]OFD Sender: No OFD packet to send [11:35:42]accept exits with 9 [11:35:42]New connection [11:35:42]New thread 3067460964 created [11:35:42]Thread 3067317604 joined [11:35:42]Waiting for new connection... [11:35:42] Sock 9.Parse request [11:35:42]Sock 9.Check first char [11:35:42]Sock 9.First char is OK [11:35:42]request: POST /json_proto HTTP/1.0 [11:35:42]Method: POST [11:35:42]URL: /json_proto [11:35:42]Method is POST - this is cgi request [11:35:42]url: /json_proto [11:35:42]query_string will be loaded in cgi processing [11:35:42]execute_cgi json_proto POST (null) [11:35:42]execute_cgi path=json_proto method=POST [11:35:42]POST find Content-Length [11:35:42]Host: 172.17.45.132:8080 [11:35:42]Content-Length: 632 [11:35:42]Content-Type: application/json [11:35:42] [11:35:42]POST finish read [11:35:42]Found Content-Length = 632 [11:35:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126334", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:42]execute_script... [11:35: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)126334", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:42]POST & json_proto [11:35:42]process_json_proto [11:35:42]json parsed OK: [11:35:42]protocol is kg_v1.0 [11:35:42]action value=close_receipt [11:35:42]process_action close_receipt [11:35:42]cmd_close_receipt [11:35:42]MH_GetDate [11:35:42]Write to MH i2c: F0 00 00 72 45 A6 [11:35:42]Write i2c OK [11:35:42]MH_I2C_Read... [11:35:42]Read from MH i2c: F0 [11:35:42]MH_I2C_Read... [11:35:42]Read from MH i2c: F0 09 00 [11:35:42]MH_I2C_Read... [11:35:42]Read from MH i2c: F0 09 00 72 45 00 13 2D A6 66 E3 0B 90 66 DF [11:35:42]GetLastDocTimeStamp 1722165473 [11:35:42]current date 1722166547 [11:35:42]FM_GetShiftState [11:35:42]SAM_PROTO_GetShiftState [11:35:42]wFMCommunicate request_size=4 [11:35:42]MH_SAM_APDU [11:35:42]CAPDU: 80 13 01 00 [11:35:42]Write to MH i2c: E2 08 00 73 45 80 13 01 00 00 00 00 00 35 [11:35:42]Write i2c OK [11:35:42]MH_I2C_Read... [11:35:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:42]Read from MH i2c: E2 [11:35:42]MH_I2C_Read... [11:35:42]Read from MH i2c: E2 0E 00 [11:35:42]MH_I2C_Read... [11:35:42]Read from MH i2c: E2 0E 00 73 45 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 29 [11:35:42]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [11:35:42]wFMCommunicate OK [11:35:42]SAM_PROTO_GetShiftState done [11:35:42]FM_GetShiftState done [11:35:42]opened in 1722125648 [11:35:42]opened+sec_in_day 1722212048 [11:35:42]quantity*price = 6000 [11:35:42]sum+1 = 6001 [11:35:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 82 28.07.2024 11:35 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2031 ФПД: 250089821951779 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T113547&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2031&fm=250089821951779&tin=02508201610067®Number=0000000000189667&sum=6000 0 [11:35:43]StoreToDocumentArchive [11:35:43]shift 13 fd 2031 [11:35:43]save to /storage/0013/doc_00002031 [11:35:43]save last doc name /storage/0013/doc_00002031 to /storage/kkm_last_doc_name [11:35:43]save OK [11:35:43]Clear old archive folders... [11:35:43]ProcessDocumentItem done err = 0, tmpTLVsize=271 [11:35:43]tlvbuf is 01F944E0 [11:35:43]SAM_PROTO_ClearQueue [11:35:43]wFMCommunicate request_size=4 [11:35:43]MH_SAM_APDU [11:35:43]CAPDU: 80 09 00 00 [11:35:43]Write to MH i2c: E2 08 00 80 45 80 09 00 00 00 00 00 00 37 [11:35:43]Write i2c OK [11:35:43]MH_I2C_Read... [11:35:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:35:43]Read from MH i2c: E2 [11:35:43]MH_I2C_Read... [11:35:43]Read from MH i2c: E2 03 00 [11:35:43]MH_I2C_Read... [11:35:43]Read from MH i2c: E2 03 00 80 45 00 90 00 39 [11:35:43]RAPDU: 90 00 [11:35:43]wFMCommunicate OK [11:35:43]SAM_PROTO_ClearQueue done [11:35:43]KKMCreateOFDPacket [11:35:43]OFDProtocolAddRootSTLVToBuf [11:35:43]FM_MakeSignedData [11:35:43]FM_MakeSignedData [11:35:43]SAM_PROTO_SignData [11:35:43]wFMCommunicate request_size=4 [11:35:43]MH_SAM_APDU [11:35:43]CAPDU: 80 0D 01 02 [11:35:43]Write to MH i2c: E2 08 00 81 45 80 0D 01 02 00 00 00 00 3F [11:35:43]Write i2c OK [11:35:43]MH_I2C_Read... [11:35:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:35:43]Read from MH i2c: E2 [11:35:43]MH_I2C_Read... [11:35:43]Read from MH i2c: E2 03 00 [11:35:43]MH_I2C_Read... [11:35:43]Read from MH i2c: E2 03 00 81 45 00 90 00 3A [11:35:43]RAPDU: 90 00 [11:35:43]wFMCommunicate OK [11:35:43]wFMCommunicate request_size=255 [11:35:43]MH_SAM_APDU [11:35:43]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 30 34 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 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 13 2D A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 [11:35:43]Write to MH i2c: E2 02 01 82 45 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 30 34 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 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 13 2D A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 25 [11:35:43]Write i2c OK [11:35:43]MH_I2C_Read... [11:35:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:43]Read from MH i2c: E2 [11:35:43]MH_I2C_Read... [11:35:43]Read from MH i2c: E2 03 00 [11:35:43]MH_I2C_Read... [11:35:43]Read from MH i2c: E2 03 00 82 45 00 90 00 3B [11:35:43]RAPDU: 90 00 [11:35:43]wFMCommunicate OK [11:35:43]wFMCommunicate request_size=30 [11:35:43]MH_SAM_APDU [11:35:43]CAPDU: 80 0D 02 02 19 32 30 39 34 32 34 38 10 04 04 00 EF 07 00 00 35 04 06 00 E3 74 92 FF D7 23 [11:35:43]Write to MH i2c: E2 21 00 83 45 80 0D 02 02 19 00 32 30 39 34 32 34 38 10 04 04 00 EF 07 00 00 35 04 06 00 E3 74 92 FF D7 23 00 00 10 [11:35:43]Write i2c OK [11:35:43]MH_I2C_Read... [11:35:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:43]Read from MH i2c: E2 [11:35:43]MH_I2C_Read... [11:35:43]Read from MH i2c: E2 03 00 [11:35:43]MH_I2C_Read... [11:35:43]Read from MH i2c: E2 03 00 83 45 00 90 00 3C [11:35:43]RAPDU: 90 00 [11:35:43]wFMCommunicate OK [11:35:43]wFMCommunicate request_size=4 [11:35:43]MH_SAM_APDU [11:35:43]CAPDU: 80 0D 03 02 [11:35:43]Write to MH i2c: E2 08 00 84 45 80 0D 03 02 00 00 00 00 44 [11:35:43]Write i2c OK [11:35:43]MH_I2C_Read... [11:35:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:35:43]Read from MH i2c: E2 [11:35:43]MH_I2C_Read... [11:35:43]Read from MH i2c: E2 0B 00 [11:35:43]MH_I2C_Read... [11:35:43]Read from MH i2c: E2 0B 00 84 45 00 69 8D 41 CA 00 89 8C 7B 90 00 D6 [11:35:43]RAPDU: 69 8D 41 CA 00 89 8C 7B 90 00 [11:35:43]wFMCommunicate OK [11:35:43]SAM_PROTO_SignData done [11:35:43]FM_MakeSignedData done [11:35:43]CreateOFDProtocolMessage [11:35:43]wFMCommunicate request_size=4 [11:35:43]MH_SAM_APDU [11:35:43]CAPDU: 80 11 00 00 [11:35:43]Write to MH i2c: E2 08 00 85 45 80 11 00 00 00 00 00 00 44 [11:35:43]Write i2c OK [11:35:43]MH_I2C_Read... [11:35:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:43]Read from MH i2c: E2 [11:35:43]MH_I2C_Read... [11:35:43]Read from MH i2c: E2 17 00 [11:35:43]MH_I2C_Read... [11:35:43]Read from MH i2c: E2 17 00 85 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 94 [11:35:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [11:35:43]wFMCommunicate OK [11:35:43]CreateOFDProtocolMessage done [11:35:43]OFDSenderStorePacket 2031 [11:35:43]StoreOFDPacket docnum=2031 [11:35:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 23 01 00 00 DB 84 1B 01 4D D3 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 30 34 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 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 13 2D A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 EF 07 00 00 35 04 06 00 E3 74 92 FF D7 23 69 8D 41 CA 00 89 8C 7B [11:35:43]CheckFolder [11:35:43]dirname=/storage/ofd_packets [11:35:43]CheckFolder done [11:35:43]ProducePacketName [11:35:43]name=ofd_packets/00002031 [11:35:43]NVStorageSaveData ofd_packets/00002031 [11:35:43]File name is /storage/ofd_packets/00002031 [11:35:43]Write 321 bytes [11:35:43]NVStorageSaveData done [11:35:43]OFDSenderStorePacket done [11:35:43]KKMCreateOFDPacket done [11:35:43]NVStorageSaveData kkm_last_timestamp [11:35:43]File name is /storage/kkm_last_timestamp [11:35:43]Write 4 bytes [11:35:43]NVStorageSaveData done [11:35:43]ExternCall_PrintAddStr [11:35:43]wPrintStart [11:35:43]Write to MH i2c: 01 00 00 86 45 CB [11:35:43]Write i2c OK [11:35:43]MH_I2C_Read... [11:35:43]Read from MH i2c: 01 [11:35:43]MH_I2C_Read... [11:35:43]Read from MH i2c: 01 07 00 [11:35:43]MH_I2C_Read... [11:35:43]Read from MH i2c: 01 07 00 86 45 00 00 00 00 00 FF 0F E0 [11:35:43]RasterBufferAndPrint [11:35:43]line Счет N : (3)126334 [11:35:43]line ИНН: 02508201610067 [11:35:43]line Контрольно-Кассовый Чек [11:35:43]line ПРОДАЖА [11:35:43]line Товар: 4700000160204 [11:35:43]line Вода Легенда 1,5л [11:35:43]line 1.000 * 60.00 [11:35:43]line = 60.00 [11:35:43]line НДС 12% НСП 1% [11:35:43]line > о реализуемом товаре [11:35:43]line ИТОГО: 60.00 [11:35:43]line НСП 1% : 0.53 [11:35:43]line НДС 12% : 6.37 [11:35:43]line Наличными: 60.00 [11:35:43]line Безнал.: 0.00 [11:35:43]line Место: АЗС № 127 "Партнер Нефть" [11:35:43]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [11:35:43]line СНО: Общий режим [11:35:43]line Чек 82 28.07.2024 11:35 [11:35:43]line Смена: 13 ФФД: 1.0 [11:35:43]line ЗНМ: 0300000161 [11:35:43]line РНМ: 0000000000189667 [11:35:43]line Версия ККМ: v1.0 [11:35:44]line ФМ: 0000000002094248 [11:35:44]line ФД: 2031 [11:35:44]line ФПД: 250089821951779 [11:35:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T113547&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2031&fm=250089821951779&tin=02508201610067®Number=0000000000189667&sum=6000 [11:35:44]line 0 [11:35:44]OFD Sender: Processing packet 2031 [packets to send 1, broken 0] [11:35:44]ProducePacketName [11:35:44]name=ofd_packets/00002031 [11:35:44]OFD Sender: To server: pG, [11:35:44]CommunicateWithHost lk.salyk.kg:30040 [11:35:44]ConnectInit lk.salyk.kg [11:35:44]written 0, free lines is 4095 [11:35:44]Connected sock=10 [11:35:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 23 01 00 00 DB 84 1B 01 4D D3 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 30 34 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 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 13 2D A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 EF 07 00 00 35 04 06 00 E3 74 92 FF D7 23 69 8D 41 CA 00 89 8C 7B [11:35:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 DE 02 47 00 42 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 32 30 39 34 32 34 38 10 04 04 00 EF 07 00 00 F4 03 04 00 83 D8 A5 66 B6 04 01 00 00 AF 20 88 B7 F5 2D D2 0D [11:35:44]CommunicateWithHost err = 0 [11:35:44]CheckOFDResponse [11:35:44]1017 (14) - 77093643461234 [11:35:44]1041 (16) - 0000000002094248 [11:35:44]1040 (4) - 2031 [11:35:44]1012 (4) - 28.07.2024 05:34 [11:35:44]1206 (1) - 0 [11:35:44]OFD Sender: Remove packet 2031 [11:35:44]ProducePacketName [11:35:44]name=ofd_packets/00002031 [11:35:44]NVStorageDeleteData [11:35:44]Write to MH i2c: 01 00 00 AE 45 F3 [11:35:44]Write i2c OK [11:35:44]MH_I2C_Read... [11:35:44]Read from MH i2c: 01 [11:35:44]MH_I2C_Read... [11:35:44]Read from MH i2c: 01 07 00 [11:35:44]MH_I2C_Read... [11:35:44]Read from MH i2c: 01 07 00 AE 45 00 00 00 00 00 1A 0D 21 [11:35:44]RasterBufferAndPrint [11:35:44]line [11:35:44]line [11:35:44]line [11:35:44]line [11:35:44]line [11:35:44]written 0, free lines is 3360 [11:35:44]MH_Cut [11:35:44]Write to MH i2c: D1 01 00 B5 45 01 CC [11:35:44]Write i2c OK [11:35:44]MH_I2C_Read... [11:35:44]Read from MH i2c: D1 [11:35:44]MH_I2C_Read... [11:35:44]Read from MH i2c: D1 01 00 [11:35:44]MH_I2C_Read... [11:35:44]Read from MH i2c: D1 01 00 B5 45 00 CB [11:35:44]Write to MH i2c: 01 00 00 B6 45 FB [11:35:44]Write i2c OK [11:35:44]MH_I2C_Read... [11:35:44]OFD Sender: No OFD packet to send [11:35:45]*** Cut start [11:35:45]*** Partial cut [11:35:45]*** CUTSNS_PIN = 1 [11:35:45]*** CUTSNS_PIN = 0 [11:35:45]*** Brake cut motor [11:35:45]Read from MH i2c: 01 [11:35:45]MH_I2C_Read... [11:35:45]*** Stop cut motor [11:35:45]*** Cut end [11:35:45]Read from MH i2c: 01 07 00 [11:35:45]MH_I2C_Read... [11:35:45]Read from MH i2c: 01 07 00 B6 45 00 00 00 00 00 FF 0F 10 [11:35:45]process_action close_receipt done [11:35:45]requested_data is exist [11:35:45]produce_requested_data [11:35:45]requested_item fm.sn is exist - process it [11:35:45]wFMCommunicate request_size=4 [11:35:45]MH_SAM_APDU [11:35:45]CAPDU: 80 11 00 00 [11:35:45]Write to MH i2c: E2 08 00 B7 45 80 11 00 00 00 00 00 00 76 [11:35:45]Write i2c OK [11:35:45]MH_I2C_Read... [11:35:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:45]Read from MH i2c: E2 [11:35:45]MH_I2C_Read... [11:35:45]Read from MH i2c: E2 17 00 [11:35:45]MH_I2C_Read... [11:35:45]Read from MH i2c: E2 17 00 B7 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 C6 [11:35:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [11:35:45]wFMCommunicate OK [11:35:45]requested_item fd.num is exist - process it [11:35:45]SAM_PROTO_GetFieldsCounters [11:35:45]wFMCommunicate request_size=4 [11:35:45]MH_SAM_APDU [11:35:45]CAPDU: 80 13 00 00 [11:35:45]Write to MH i2c: E2 08 00 B8 45 80 13 00 00 00 00 00 00 79 [11:35:45]Write i2c OK [11:35:45]MH_I2C_Read... [11:35:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:35:45]Read from MH i2c: E2 [11:35:45]MH_I2C_Read... [11:35:45]Read from MH i2c: E2 62 00 [11:35:45]MH_I2C_Read... [11:35:45]Read from MH i2c: E2 62 00 B8 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 EF 07 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 9C [11:35:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 EF 07 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:35:45]wFMCommunicate OK [11:35:45]SAM_PROTO_GetFieldsCounters done [11:35:45]requested_item shift.num is exist - process it [11:35:45]requested_item shift.opened is exist - process it [11:35:45]req_shift_opened [11:35:45]FM_GetShiftState [11:35:45]SAM_PROTO_GetShiftState [11:35:45]wFMCommunicate request_size=4 [11:35:45]MH_SAM_APDU [11:35:45]CAPDU: 80 13 01 00 [11:35:45]Write to MH i2c: E2 08 00 B9 45 80 13 01 00 00 00 00 00 7B [11:35:45]Write i2c OK [11:35:45]MH_I2C_Read... [11:35:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:46]Read from MH i2c: E2 [11:35:46]MH_I2C_Read... [11:35:46]Read from MH i2c: E2 0E 00 [11:35:46]MH_I2C_Read... [11:35:46]Read from MH i2c: E2 0E 00 B9 45 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 6F [11:35:46]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [11:35:46]wFMCommunicate OK [11:35:46]SAM_PROTO_GetShiftState done [11:35:46]FM_GetShiftState done [11:35:46]req_shift_opened done [11:35:46]requested_item shift.open_date is exist - process it [11:35:46]req_shift_open_date [11:35:46]req_shift_open_date done [11:35:46]produce_requested_data done [11:35:46]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2031,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [11:35:46]process_action_free close_receipt [11:35:46]json_value_free [11:35:46]json_value_free done [11:35:46]process_json_proto returns [11:35:46]Send response to host [11:35:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2031,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [11:35:46]free response buf [11:35:46]execute_script done [11:35:46]execute_script returns [11:35:46]free content buf [11:35:46]Sock 9.Close socket [11:35:46]Sock 9.Thread stoped [11:35:49]OFD Sender: No OFD packet to send [11:35:50]accept exits with 8 [11:35:50]New connection [11:35:50]New thread 3067317604 created [11:35:50]Thread 3067460964 joined [11:35:50]Waiting for new connection... [11:35:50] Sock 8.Parse request [11:35:50]Sock 8.Check first char [11:35:50]Sock 8.First char is OK [11:35:50]request: POST /json_proto HTTP/1.0 [11:35:50]Method: POST [11:35:50]URL: /json_proto [11:35:50]Method is POST - this is cgi request [11:35:50]url: /json_proto [11:35:50]query_string will be loaded in cgi processing [11:35:50]execute_cgi json_proto POST (null) [11:35:50]execute_cgi path=json_proto method=POST [11:35:50]POST find Content-Length [11:35:50]Host: 172.17.45.132:8080 [11:35:50]Content-Length: 691 [11:35:50]Content-Type: application/json [11:35:50] [11:35:50]POST finish read [11:35:50]Found Content-Length = 691 [11:35:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126335", "tax_sys" : 0, "items" : [ { "code": "4700000310258", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041B\u0438\u043C\u043E\u043D\u0430\u0434 \u041A\u0435\u043B\u0435\u0447\u0435\u043A 1\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:50]execute_script... [11:35: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)126335", "tax_sys" : 0, "items" : [ { "code": "4700000310258", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041B\u0438\u043C\u043E\u043D\u0430\u0434 \u041A\u0435\u043B\u0435\u0447\u0435\u043A 1\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:50]POST & json_proto [11:35:50]process_json_proto [11:35:50]json parsed OK: [11:35:50]protocol is kg_v1.0 [11:35:50]action value=close_receipt [11:35:50]process_action close_receipt [11:35:50]cmd_close_receipt [11:35:50]MH_GetDate [11:35:50]Write to MH i2c: F0 00 00 BA 45 EE [11:35:50]Write i2c OK [11:35:50]MH_I2C_Read... [11:35:50]Read from MH i2c: F0 [11:35:50]MH_I2C_Read... [11:35:50]Read from MH i2c: F0 09 00 [11:35:50]MH_I2C_Read... [11:35:50]Read from MH i2c: F0 09 00 BA 45 00 1C 2D A6 66 E3 0B 90 66 30 [11:35:50]GetLastDocTimeStamp 1722166547 [11:35:50]current date 1722166556 [11:35:50]FM_GetShiftState [11:35:50]SAM_PROTO_GetShiftState [11:35:50]wFMCommunicate request_size=4 [11:35:50]MH_SAM_APDU [11:35:50]CAPDU: 80 13 01 00 [11:35:50]Write to MH i2c: E2 08 00 BB 45 80 13 01 00 00 00 00 00 7D [11:35:50]Write i2c OK [11:35:50]MH_I2C_Read... [11:35:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:50]Read from MH i2c: E2 [11:35:50]MH_I2C_Read... [11:35:50]Read from MH i2c: E2 0E 00 [11:35:50]MH_I2C_Read... [11:35:50]Read from MH i2c: E2 0E 00 BB 45 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 71 [11:35:50]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [11:35:50]wFMCommunicate OK [11:35:50]SAM_PROTO_GetShiftState done [11:35:50]FM_GetShiftState done [11:35:50]opened in 1722125648 [11:35:50]opened+sec_in_day 1722212048 [11:35:50]quantity*price = 7500 [11:35:50]sum+1 = 7501 [11:35:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 75.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 83 28.07.2024 11:35 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2032 ФПД: 160129692583209 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T113556&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2032&fm=160129692583209&tin=02508201610067®Number=0000000000189667&sum=7500 0 [11:35:52]StoreToDocumentArchive [11:35:52]shift 13 fd 2032 [11:35:52]save to /storage/0013/doc_00002032 [11:35:52]save last doc name /storage/0013/doc_00002032 to /storage/kkm_last_doc_name [11:35:52]save OK [11:35:52]Clear old archive folders... [11:35:52]ProcessDocumentItem done err = 0, tmpTLVsize=290 [11:35:52]tlvbuf is 02063D30 [11:35:52]SAM_PROTO_ClearQueue [11:35:52]wFMCommunicate request_size=4 [11:35:52]MH_SAM_APDU [11:35:52]CAPDU: 80 09 00 00 [11:35:52]Write to MH i2c: E2 08 00 C8 45 80 09 00 00 00 00 00 00 7F [11:35:52]Write i2c OK [11:35:52]MH_I2C_Read... [11:35:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:35:52]Read from MH i2c: E2 [11:35:52]MH_I2C_Read... [11:35:52]Read from MH i2c: E2 03 00 [11:35:52]MH_I2C_Read... [11:35:52]Read from MH i2c: E2 03 00 C8 45 00 90 00 81 [11:35:52]RAPDU: 90 00 [11:35:52]wFMCommunicate OK [11:35:52]SAM_PROTO_ClearQueue done [11:35:52]KKMCreateOFDPacket [11:35:52]OFDProtocolAddRootSTLVToBuf [11:35:52]FM_MakeSignedData [11:35:52]FM_MakeSignedData [11:35:52]SAM_PROTO_SignData [11:35:52]wFMCommunicate request_size=4 [11:35:52]MH_SAM_APDU [11:35:52]CAPDU: 80 0D 01 02 [11:35:52]Write to MH i2c: E2 08 00 C9 45 80 0D 01 02 00 00 00 00 87 [11:35:52]Write i2c OK [11:35:52]MH_I2C_Read... [11:35:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:35:52]Read from MH i2c: E2 [11:35:52]MH_I2C_Read... [11:35:52]Read from MH i2c: E2 03 00 [11:35:52]MH_I2C_Read... [11:35:52]Read from MH i2c: E2 03 00 C9 45 00 90 00 82 [11:35:52]RAPDU: 90 00 [11:35:52]wFMCommunicate OK [11:35:52]wFMCommunicate request_size=255 [11:35:52]MH_SAM_APDU [11:35:52]CAPDU: 80 0D 02 02 FA 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 32 35 38 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 D0 9A D0 B5 D0 BB D0 B5 D1 87 D0 B5 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 1C 2D A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 [11:35:52]Write to MH i2c: E2 02 01 CA 45 80 0D 02 02 FA 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 32 35 38 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 D0 9A D0 B5 D0 BB D0 B5 D1 87 D0 B5 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 1C 2D A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 86 [11:35:52]Write i2c OK [11:35:52]MH_I2C_Read... [11:35:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:52]Read from MH i2c: E2 [11:35:52]MH_I2C_Read... [11:35:52]Read from MH i2c: E2 03 00 [11:35:52]MH_I2C_Read... [11:35:52]Read from MH i2c: E2 03 00 CA 45 00 90 00 83 [11:35:52]RAPDU: 90 00 [11:35:52]wFMCommunicate OK [11:35:52]wFMCommunicate request_size=49 [11:35:52]MH_SAM_APDU [11:35:52]CAPDU: 80 0D 02 02 2C 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 F0 07 00 00 35 04 06 00 91 A3 19 71 C5 29 [11:35:52]Write to MH i2c: E2 34 00 CB 45 80 0D 02 02 2C 00 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 F0 07 00 00 35 04 06 00 91 A3 19 71 C5 29 00 00 63 [11:35:52]Write i2c OK [11:35:52]MH_I2C_Read... [11:35:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:52]Read from MH i2c: E2 [11:35:52]MH_I2C_Read... [11:35:52]Read from MH i2c: E2 03 00 [11:35:52]MH_I2C_Read... [11:35:52]Read from MH i2c: E2 03 00 CB 45 00 90 00 84 [11:35:52]RAPDU: 90 00 [11:35:52]wFMCommunicate OK [11:35:52]wFMCommunicate request_size=4 [11:35:52]MH_SAM_APDU [11:35:52]CAPDU: 80 0D 03 02 [11:35:52]Write to MH i2c: E2 08 00 CC 45 80 0D 03 02 00 00 00 00 8C [11:35:52]Write i2c OK [11:35:52]MH_I2C_Read... [11:35:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:35:52]Read from MH i2c: E2 [11:35:52]MH_I2C_Read... [11:35:52]Read from MH i2c: E2 0B 00 [11:35:52]MH_I2C_Read... [11:35:52]Read from MH i2c: E2 0B 00 CC 45 00 A9 47 B7 57 E2 80 F1 FA 90 00 D8 [11:35:52]RAPDU: A9 47 B7 57 E2 80 F1 FA 90 00 [11:35:52]wFMCommunicate OK [11:35:52]SAM_PROTO_SignData done [11:35:52]FM_MakeSignedData done [11:35:52]CreateOFDProtocolMessage [11:35:52]wFMCommunicate request_size=4 [11:35:52]MH_SAM_APDU [11:35:52]CAPDU: 80 11 00 00 [11:35:52]Write to MH i2c: E2 08 00 CD 45 80 11 00 00 00 00 00 00 8C [11:35:52]Write i2c OK [11:35:52]MH_I2C_Read... [11:35:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:52]Read from MH i2c: E2 [11:35:52]MH_I2C_Read... [11:35:52]Read from MH i2c: E2 17 00 [11:35:52]MH_I2C_Read... [11:35:52]Read from MH i2c: E2 17 00 CD 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 DC [11:35:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [11:35:52]wFMCommunicate OK [11:35:52]CreateOFDProtocolMessage done [11:35:52]OFDSenderStorePacket 2032 [11:35:52]StoreOFDPacket docnum=2032 [11:35:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 36 01 00 00 11 86 2E 01 01 DD 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 32 35 38 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 D0 9A D0 B5 D0 BB D0 B5 D1 87 D0 B5 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 1C 2D A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 F0 07 00 00 35 04 06 00 91 A3 19 71 C5 29 A9 47 B7 57 E2 80 F1 FA [11:35:52]CheckFolder [11:35:52]dirname=/storage/ofd_packets [11:35:52]CheckFolder done [11:35:52]ProducePacketName [11:35:52]name=ofd_packets/00002032 [11:35:52]NVStorageSaveData ofd_packets/00002032 [11:35:52]File name is /storage/ofd_packets/00002032 [11:35:52]Write 340 bytes [11:35:52]NVStorageSaveData done [11:35:52]OFDSenderStorePacket done [11:35:52]KKMCreateOFDPacket done [11:35:52]NVStorageSaveData kkm_last_timestamp [11:35:52]File name is /storage/kkm_last_timestamp [11:35:52]Write 4 bytes [11:35:52]NVStorageSaveData done [11:35:52]ExternCall_PrintAddStr [11:35:52]wPrintStart [11:35:52]Write to MH i2c: 01 00 00 CE 45 13 [11:35:52]Write i2c OK [11:35:52]MH_I2C_Read... [11:35:52]Read from MH i2c: 01 [11:35:52]MH_I2C_Read... [11:35:52]Read from MH i2c: 01 07 00 [11:35:52]MH_I2C_Read... [11:35:52]Read from MH i2c: 01 07 00 CE 45 00 00 00 00 00 FF 0F 28 [11:35:52]RasterBufferAndPrint [11:35:52]line Счет N : (3)126335 [11:35:52]line ИНН: 02508201610067 [11:35:52]line Контрольно-Кассовый Чек [11:35:52]line ПРОДАЖА [11:35:52]line Товар: 4700000310258 [11:35:52]line Напиток Лимонад Келечек 1л [11:35:52]line 1.000 * 75.00 [11:35:52]line = 75.00 [11:35:52]line НДС 12% НСП 1% [11:35:52]line > о реализуемом товаре [11:35:52]line ИТОГО: 75.00 [11:35:52]line НСП 1% : 0.66 [11:35:52]line НДС 12% : 7.96 [11:35:52]line Наличными: 75.00 [11:35:52]line Безнал.: 0.00 [11:35:52]line Место: АЗС № 127 "Партнер Нефть" [11:35:52]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [11:35:52]line СНО: Общий режим [11:35:52]line Чек 83 28.07.2024 11:35 [11:35:52]line Смена: 13 ФФД: 1.0 [11:35:52]line ЗНМ: 0300000161 [11:35:52]line РНМ: 0000000000189667 [11:35:52]line Версия ККМ: v1.0 [11:35:52]line ФМ: 0000000002094248 [11:35:52]line ФД: 2032 [11:35:52]line ФПД: 160129692583209 [11:35:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T113556&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2032&fm=160129692583209&tin=02508201610067®Number=0000000000189667&sum=7500 [11:35:52]line 0 [11:35:52]OFD Sender: Processing packet 2032 [packets to send 1, broken 0] [11:35:52]ProducePacketName [11:35:52]name=ofd_packets/00002032 [11:35:52]OFD Sender: To server: pG, [11:35:52]CommunicateWithHost lk.salyk.kg:30040 [11:35:52]ConnectInit lk.salyk.kg [11:35:52]written 0, free lines is 4095 [11:35:53]Connected sock=10 [11:35:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 36 01 00 00 11 86 2E 01 01 DD 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 32 35 38 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 D0 9A D0 B5 D0 BB D0 B5 D1 87 D0 B5 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 1C 2D A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 F0 07 00 00 35 04 06 00 91 A3 19 71 C5 29 A9 47 B7 57 E2 80 F1 FA [11:35:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 90 5B 47 00 B3 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 F0 07 00 00 F4 03 04 00 8C D8 A5 66 B6 04 01 00 00 D3 26 6E A6 67 96 7C 85 [11:35:53]CommunicateWithHost err = 0 [11:35:53]CheckOFDResponse [11:35:53]1017 (14) - 77093643461234 [11:35:53]1041 (16) - 0000000002094248 [11:35:53]1040 (4) - 2032 [11:35:53]1012 (4) - 28.07.2024 05:35 [11:35:53]1206 (1) - 0 [11:35:53]OFD Sender: Remove packet 2032 [11:35:53]ProducePacketName [11:35:53]name=ofd_packets/00002032 [11:35:53]NVStorageDeleteData [11:35:53]Write to MH i2c: 01 00 00 F6 45 3B [11:35:53]Write i2c OK [11:35:53]MH_I2C_Read... [11:35:53]Read from MH i2c: 01 [11:35:53]MH_I2C_Read... [11:35:53]Read from MH i2c: 01 07 00 [11:35:53]MH_I2C_Read... [11:35:53]Read from MH i2c: 01 07 00 F6 45 00 00 00 00 00 23 0D 72 [11:35:53]RasterBufferAndPrint [11:35:53]line [11:35:53]line [11:35:53]line [11:35:53]line [11:35:53]line [11:35:53]written 0, free lines is 3372 [11:35:53]MH_Cut [11:35:53]Write to MH i2c: D1 01 00 FD 45 01 14 [11:35:53]Write i2c OK [11:35:53]MH_I2C_Read... [11:35:53]Read from MH i2c: D1 [11:35:53]MH_I2C_Read... [11:35:53]Read from MH i2c: D1 01 00 [11:35:53]MH_I2C_Read... [11:35:53]Read from MH i2c: D1 01 00 FD 45 00 13 [11:35:53]Write to MH i2c: 01 00 00 FE 45 43 [11:35:53]Write i2c OK [11:35:53]MH_I2C_Read... [11:35:53]OFD Sender: No OFD packet to send [11:35:54]*** Cut start [11:35:54]*** Partial cut [11:35:54]*** CUTSNS_PIN = 1 [11:35:54]*** CUTSNS_PIN = 0 [11:35:54]*** Brake cut motor [11:35:54]Read from MH i2c: 01 [11:35:54]MH_I2C_Read... [11:35:54]*** Stop cut motor [11:35:54]*** Cut end [11:35:54]Read from MH i2c: 01 07 00 [11:35:54]MH_I2C_Read... [11:35:54]Read from MH i2c: 01 07 00 FE 45 00 00 00 00 00 FF 0F 58 [11:35:54]process_action close_receipt done [11:35:54]requested_data is exist [11:35:54]produce_requested_data [11:35:54]requested_item fm.sn is exist - process it [11:35:54]wFMCommunicate request_size=4 [11:35:54]MH_SAM_APDU [11:35:54]CAPDU: 80 11 00 00 [11:35:54]Write to MH i2c: E2 08 00 FF 45 80 11 00 00 00 00 00 00 BE [11:35:54]Write i2c OK [11:35:54]MH_I2C_Read... [11:35:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:54]Read from MH i2c: E2 [11:35:54]MH_I2C_Read... [11:35:54]Read from MH i2c: E2 17 00 [11:35:54]MH_I2C_Read... [11:35:54]Read from MH i2c: E2 17 00 FF 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 0E [11:35:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [11:35:54]wFMCommunicate OK [11:35:54]requested_item fd.num is exist - process it [11:35:54]SAM_PROTO_GetFieldsCounters [11:35:54]wFMCommunicate request_size=4 [11:35:54]MH_SAM_APDU [11:35:54]CAPDU: 80 13 00 00 [11:35:54]Write to MH i2c: E2 08 00 00 46 80 13 00 00 00 00 00 00 C2 [11:35:54]Write i2c OK [11:35:54]MH_I2C_Read... [11:35:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:35:54]Read from MH i2c: E2 [11:35:54]MH_I2C_Read... [11:35:54]Read from MH i2c: E2 62 00 [11:35:54]MH_I2C_Read... [11:35:54]Read from MH i2c: E2 62 00 00 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 F0 07 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 E9 [11:35:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 F0 07 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:35:54]wFMCommunicate OK [11:35:54]SAM_PROTO_GetFieldsCounters done [11:35:54]requested_item shift.num is exist - process it [11:35:54]requested_item shift.opened is exist - process it [11:35:54]req_shift_opened [11:35:54]FM_GetShiftState [11:35:54]SAM_PROTO_GetShiftState [11:35:54]wFMCommunicate request_size=4 [11:35:54]MH_SAM_APDU [11:35:54]CAPDU: 80 13 01 00 [11:35:54]Write to MH i2c: E2 08 00 01 46 80 13 01 00 00 00 00 00 C4 [11:35:54]Write i2c OK [11:35:54]MH_I2C_Read... [11:35:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:54]Read from MH i2c: E2 [11:35:54]MH_I2C_Read... [11:35:54]Read from MH i2c: E2 0E 00 [11:35:54]MH_I2C_Read... [11:35:54]Read from MH i2c: E2 0E 00 01 46 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 B8 [11:35:54]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [11:35:54]wFMCommunicate OK [11:35:54]SAM_PROTO_GetShiftState done [11:35:54]FM_GetShiftState done [11:35:54]req_shift_opened done [11:35:54]requested_item shift.open_date is exist - process it [11:35:54]req_shift_open_date [11:35:54]req_shift_open_date done [11:35:54]produce_requested_data done [11:35:54]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2032,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [11:35:54]process_action_free close_receipt [11:35:54]json_value_free [11:35:54]json_value_free done [11:35:54]process_json_proto returns [11:35:54]Send response to host [11:35:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2032,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [11:35:54]free response buf [11:35:54]execute_script done [11:35:54]execute_script returns [11:35:54]free content buf [11:35:54]Sock 8.Close socket [11:35:54]Sock 8.Thread stoped [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:43:06]ConnectInit Can't connect to host [11:43:09]ConnectInit Can't take IP for lk.salyk.kg [11:43:09]CommunicateWithHost connect error [11:43:09]CommunicateWithHost err = -1 [11:43:09]OFD Sender: Server communicate error [11:43:14]OFD Sender: Processing packet 2033 [packets to send 1, broken 0] [11:43:14]ProducePacketName [11:43:14]name=ofd_packets/00002033 [11:43:14]OFD Sender: To server: pG, [11:43:14]CommunicateWithHost lk.salyk.kg:30040 [11:43:14]ConnectInit lk.salyk.kg [11:43:14]Connected sock=8 [11:43:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 45 01 00 00 0C 81 3D 01 A3 46 5A 03 01 00 03 00 31 01 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 38 36 06 04 3F 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 D1 8B D1 80 20 D1 81 20 D1 85 D0 B0 D0 BB D0 B0 D0 BF D0 B5 D0 BD D1 8C D0 BE 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 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 C7 2D A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 F1 07 00 00 35 04 06 00 12 AD B1 16 44 EF 51 A7 BA 13 EE 14 6D F8 [11:43:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 A9 19 47 00 A7 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 F1 07 00 00 F4 03 04 00 45 DA A5 66 B6 04 01 00 00 A0 2F C0 A7 0E F0 2F 16 [11:43:14]CommunicateWithHost err = 0 [11:43:14]CheckOFDResponse [11:43:14]1017 (14) - 77093643461234 [11:43:14]1041 (16) - 0000000002094248 [11:43:14]1040 (4) - 2033 [11:43:14]1012 (4) - 28.07.2024 05:42 [11:43:14]1206 (1) - 0 [11:43:14]OFD Sender: Remove packet 2033 [11:43:14]ProducePacketName [11:43:14]name=ofd_packets/00002033 [11:43:14]NVStorageDeleteData [11:43:15]OFD Sender: No OFD packet to send [11:43:20]OFD Sender: No OFD packet to send [11:43:25]OFD Sender: No OFD packet to send [11:43:30]OFD Sender: No OFD packet to send [11:43:35]OFD Sender: No OFD packet to send [11:43:40]OFD Sender: No OFD packet to send [11:43:45]OFD Sender: No OFD packet to send [11:43:50]OFD Sender: No OFD packet to send [11:43:55]OFD Sender: No OFD packet to send [11:44:00]OFD Sender: No OFD packet to send [11:49:09]ConnectInit Can't connect to host [11:49:10]ConnectInit Can't take IP for lk.salyk.kg [11:49:10]CommunicateWithHost connect error [11:49:10]CommunicateWithHost err = -1 [11:49:10]OFD Sender: Server communicate error [11:49:15]OFD Sender: Processing packet 2034 [packets to send 1, broken 0] [11:49:15]ProducePacketName [11:49:15]name=ofd_packets/00002034 [11:49:15]OFD Sender: To server: pG, [11:49:15]CommunicateWithHost lk.salyk.kg:30040 [11:49:15]ConnectInit lk.salyk.kg [11:49:15]Connected sock=8 [11:49:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 37 01 00 00 BB 50 2F 01 01 47 5A 03 01 00 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 33 39 38 06 04 31 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 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 27 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 12 2F A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 F2 07 00 00 35 04 06 00 A3 04 F6 95 AA 34 65 8A 86 6C 9D D6 33 B0 [11:49:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 8A 9C 47 00 D0 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 F2 07 00 00 F4 03 04 00 AE DB A5 66 B6 04 01 00 00 71 1A 31 DA 08 A5 D7 12 [11:49:15]CommunicateWithHost err = 0 [11:49:15]CheckOFDResponse [11:49:15]1017 (14) - 77093643461234 [11:49:15]1041 (16) - 0000000002094248 [11:49:15]1040 (4) - 2034 [11:49:15]1012 (4) - 28.07.2024 05:48 [11:49:15]1206 (1) - 0 [11:49:15]OFD Sender: Remove packet 2034 [11:49:15]ProducePacketName [11:49:15]name=ofd_packets/00002034 [11:49:15]NVStorageDeleteData [11:49:16]OFD Sender: No OFD packet to send [11:49:21]OFD Sender: No OFD packet to send [11:49:26]OFD Sender: No OFD packet to send [11:49:31]OFD Sender: No OFD packet to send [11:49:36]OFD Sender: No OFD packet to send [11:49:41]OFD Sender: No OFD packet to send [11:49:46]OFD Sender: No OFD packet to send [11:49:51]OFD Sender: No OFD packet to send [11:49:56]OFD Sender: No OFD packet to send [11:50:01]OFD Sender: No OFD packet to send [11:50:06]OFD Sender: No OFD packet to send [11:50:11]OFD Sender: No OFD packet to send [11:50:16]OFD Sender: No OFD packet to send [11:50:21]OFD Sender: No OFD packet to send [11:50:26]OFD Sender: No OFD packet to send [11:50:31]OFD Sender: No OFD packet to send [11:50:36]OFD Sender: No OFD packet to send [11:50:41]OFD Sender: No OFD packet to send [11:50:46]OFD Sender: No OFD packet to send [11:50:50]accept exits with 9 [11:50:50]New connection [11:50:50]New thread 3067460964 created [11:50:50]Thread 3067317604 joined [11:50:50]Waiting for new connection... [11:50:50] Sock 9.Parse request [11:50:50]Sock 9.Check first char [11:50:50]Sock 9.First char is OK [11:50:50]request: POST /json_proto HTTP/1.0 [11:50:50]Method: POST [11:50:50]URL: /json_proto [11:50:50]Method is POST - this is cgi request [11:50:50]url: /json_proto [11:50:50]query_string will be loaded in cgi processing [11:50:50]execute_cgi json_proto POST (null) [11:50:50]execute_cgi path=json_proto method=POST [11:50:50]POST find Content-Length [11:50:50]Host: 172.17.45.132:8080 [11:50:50]Content-Length: 639 [11:50:50]Content-Type: application/json [11:50:50] [11:50:50]POST finish read [11:50:50]Found Content-Length = 639 [11:50:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126338", "tax_sys" : 0, "items" : [ { "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:50:50]execute_script... [11:50:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126338", "tax_sys" : 0, "items" : [ { "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:50:50]POST & json_proto [11:50:50]process_json_proto [11:50:50]json parsed OK: [11:50:50]protocol is kg_v1.0 [11:50:50]action value=close_receipt [11:50:50]process_action close_receipt [11:50:50]cmd_close_receipt [11:50:50]MH_GetDate [11:50:50]Write to MH i2c: F0 00 00 96 46 CB [11:50:50]Write i2c OK [11:50:50]MH_I2C_Read... [11:50:50]Read from MH i2c: F0 [11:50:50]MH_I2C_Read... [11:50:50]Read from MH i2c: F0 09 00 [11:50:50]MH_I2C_Read... [11:50:50]Read from MH i2c: F0 09 00 96 46 00 A0 30 A6 66 E3 0B 90 66 94 [11:50:50]GetLastDocTimeStamp 1722167058 [11:50:50]current date 1722167456 [11:50:50]FM_GetShiftState [11:50:50]SAM_PROTO_GetShiftState [11:50:50]wFMCommunicate request_size=4 [11:50:50]MH_SAM_APDU [11:50:50]CAPDU: 80 13 01 00 [11:50:50]Write to MH i2c: E2 08 00 97 46 80 13 01 00 00 00 00 00 5A [11:50:50]Write i2c OK [11:50:50]MH_I2C_Read... [11:50:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:50]Read from MH i2c: E2 [11:50:50]MH_I2C_Read... [11:50:50]Read from MH i2c: E2 0E 00 [11:50:50]MH_I2C_Read... [11:50:50]Read from MH i2c: E2 0E 00 97 46 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 4E [11:50:50]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [11:50:50]wFMCommunicate OK [11:50:50]SAM_PROTO_GetShiftState done [11:50:50]FM_GetShiftState done [11:50:50]opened in 1722125648 [11:50:50]opened+sec_in_day 1722212048 [11:50:50]quantity*price = 12500 [11:50:50]sum+1 = 12501 [11:50:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 86 28.07.2024 11:50 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2035 ФПД: 180600838255284 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T115056&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2035&fm=180600838255284&tin=02508201610067®Number=0000000000189667&sum=12500 0 [11:50:52]StoreToDocumentArchive [11:50:52]shift 13 fd 2035 [11:50:52]save to /storage/0013/doc_00002035 [11:50:52]save last doc name /storage/0013/doc_00002035 to /storage/kkm_last_doc_name [11:50:52]save OK [11:50:52]Clear old archive folders... [11:50:52]ProcessDocumentItem done err = 0, tmpTLVsize=271 [11:50:52]tlvbuf is 01F64260 [11:50:52]SAM_PROTO_ClearQueue [11:50:52]wFMCommunicate request_size=4 [11:50:52]MH_SAM_APDU [11:50:52]CAPDU: 80 09 00 00 [11:50:52]Write to MH i2c: E2 08 00 A4 46 80 09 00 00 00 00 00 00 5C [11:50:52]Write i2c OK [11:50:52]MH_I2C_Read... [11:50:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:50:52]Read from MH i2c: E2 [11:50:52]MH_I2C_Read... [11:50:52]Read from MH i2c: E2 03 00 [11:50:52]MH_I2C_Read... [11:50:52]Read from MH i2c: E2 03 00 A4 46 00 90 00 5E [11:50:52]RAPDU: 90 00 [11:50:52]wFMCommunicate OK [11:50:52]SAM_PROTO_ClearQueue done [11:50:52]KKMCreateOFDPacket [11:50:52]OFDProtocolAddRootSTLVToBuf [11:50:52]FM_MakeSignedData [11:50:52]FM_MakeSignedData [11:50:52]SAM_PROTO_SignData [11:50:52]wFMCommunicate request_size=4 [11:50:52]MH_SAM_APDU [11:50:52]CAPDU: 80 0D 01 02 [11:50:52]Write to MH i2c: E2 08 00 A5 46 80 0D 01 02 00 00 00 00 64 [11:50:52]Write i2c OK [11:50:52]MH_I2C_Read... [11:50:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:50:52]Read from MH i2c: E2 [11:50:52]MH_I2C_Read... [11:50:52]Read from MH i2c: E2 03 00 [11:50:52]MH_I2C_Read... [11:50:52]Read from MH i2c: E2 03 00 A5 46 00 90 00 5F [11:50:52]RAPDU: 90 00 [11:50:52]wFMCommunicate OK [11:50:52]wFMCommunicate request_size=255 [11:50:52]MH_SAM_APDU [11:50:52]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 56 00 00 00 F4 03 04 00 A0 30 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 [11:50:52]Write to MH i2c: E2 02 01 A6 46 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 56 00 00 00 F4 03 04 00 A0 30 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 B4 [11:50:52]Write i2c OK [11:50:52]MH_I2C_Read... [11:50:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:52]Read from MH i2c: E2 [11:50:52]MH_I2C_Read... [11:50:52]Read from MH i2c: E2 03 00 [11:50:52]MH_I2C_Read... [11:50:52]Read from MH i2c: E2 03 00 A6 46 00 90 00 60 [11:50:52]RAPDU: 90 00 [11:50:52]wFMCommunicate OK [11:50:52]wFMCommunicate request_size=30 [11:50:52]MH_SAM_APDU [11:50:52]CAPDU: 80 0D 02 02 19 32 30 39 34 32 34 38 10 04 04 00 F3 07 00 00 35 04 06 00 A4 41 68 CF 72 B4 [11:50:52]Write to MH i2c: E2 21 00 A7 46 80 0D 02 02 19 00 32 30 39 34 32 34 38 10 04 04 00 F3 07 00 00 35 04 06 00 A4 41 68 CF 72 B4 00 00 99 [11:50:52]Write i2c OK [11:50:52]MH_I2C_Read... [11:50:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:52]Read from MH i2c: E2 [11:50:52]MH_I2C_Read... [11:50:52]Read from MH i2c: E2 03 00 [11:50:52]MH_I2C_Read... [11:50:52]Read from MH i2c: E2 03 00 A7 46 00 90 00 61 [11:50:52]RAPDU: 90 00 [11:50:52]wFMCommunicate OK [11:50:52]wFMCommunicate request_size=4 [11:50:52]MH_SAM_APDU [11:50:52]CAPDU: 80 0D 03 02 [11:50:52]Write to MH i2c: E2 08 00 A8 46 80 0D 03 02 00 00 00 00 69 [11:50:52]Write i2c OK [11:50:52]MH_I2C_Read... [11:50:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:50:52]Read from MH i2c: E2 [11:50:52]MH_I2C_Read... [11:50:52]Read from MH i2c: E2 0B 00 [11:50:52]MH_I2C_Read... [11:50:52]Read from MH i2c: E2 0B 00 A8 46 00 FE 74 34 33 0D A7 3D 36 90 00 6A [11:50:52]RAPDU: FE 74 34 33 0D A7 3D 36 90 00 [11:50:52]wFMCommunicate OK [11:50:52]SAM_PROTO_SignData done [11:50:52]FM_MakeSignedData done [11:50:52]CreateOFDProtocolMessage [11:50:52]wFMCommunicate request_size=4 [11:50:52]MH_SAM_APDU [11:50:52]CAPDU: 80 11 00 00 [11:50:52]Write to MH i2c: E2 08 00 A9 46 80 11 00 00 00 00 00 00 69 [11:50:52]Write i2c OK [11:50:52]MH_I2C_Read... [11:50:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:52]Read from MH i2c: E2 [11:50:52]MH_I2C_Read... [11:50:52]Read from MH i2c: E2 17 00 [11:50:52]MH_I2C_Read... [11:50:52]Read from MH i2c: E2 17 00 A9 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 B9 [11:50:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [11:50:52]wFMCommunicate OK [11:50:52]CreateOFDProtocolMessage done [11:50:52]OFDSenderStorePacket 2035 [11:50:52]StoreOFDPacket docnum=2035 [11:50:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 23 01 00 00 86 91 1B 01 AC 9C 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 56 00 00 00 F4 03 04 00 A0 30 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 F3 07 00 00 35 04 06 00 A4 41 68 CF 72 B4 FE 74 34 33 0D A7 3D 36 [11:50:52]CheckFolder [11:50:52]dirname=/storage/ofd_packets [11:50:52]CheckFolder done [11:50:52]ProducePacketName [11:50:52]name=ofd_packets/00002035 [11:50:52]NVStorageSaveData ofd_packets/00002035 [11:50:52]File name is /storage/ofd_packets/00002035 [11:50:52]Write 321 bytes [11:50:52]NVStorageSaveData done [11:50:52]OFDSenderStorePacket done [11:50:52]KKMCreateOFDPacket done [11:50:52]NVStorageSaveData kkm_last_timestamp [11:50:52]File name is /storage/kkm_last_timestamp [11:50:52]Write 4 bytes [11:50:52]NVStorageSaveData done [11:50:52]ExternCall_PrintAddStr [11:50:52]wPrintStart [11:50:52]Write to MH i2c: 01 00 00 AA 46 F0 [11:50:52]Write i2c OK [11:50:52]MH_I2C_Read... [11:50:52]Read from MH i2c: 01 [11:50:52]MH_I2C_Read... [11:50:52]Read from MH i2c: 01 07 00 [11:50:52]MH_I2C_Read... [11:50:52]Read from MH i2c: 01 07 00 AA 46 00 00 00 00 00 FF 0F 05 [11:50:52]RasterBufferAndPrint [11:50:52]line Счет N : (3)126338 [11:50:52]line ИНН: 02508201610067 [11:50:52]line Контрольно-Кассовый Чек [11:50:52]line ПРОДАЖА [11:50:52]line Товар: 5449000006271 [11:50:52]line Напиток Фанта 1л [11:50:52]line 1.000 * 125.00 [11:50:52]line = 125.00 [11:50:52]line НДС 12% НСП 1% [11:50:52]line > о реализуемом товаре [11:50:52]line ИТОГО: 125.00 [11:50:52]line НСП 1% : 1.11 [11:50:52]line НДС 12% : 13.27 [11:50:52]line Наличными: 125.00 [11:50:52]line Безнал.: 0.00 [11:50:52]line Место: АЗС № 127 "Партнер Нефть" [11:50:52]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [11:50:52]line СНО: Общий режим [11:50:52]line Чек 86 28.07.2024 11:50 [11:50:52]line Смена: 13 ФФД: 1.0 [11:50:52]line ЗНМ: 0300000161 [11:50:52]line РНМ: 0000000000189667 [11:50:52]line Версия ККМ: v1.0 [11:50:52]line ФМ: 0000000002094248 [11:50:52]line ФД: 2035 [11:50:52]line ФПД: 180600838255284 [11:50:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T115056&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2035&fm=180600838255284&tin=02508201610067®Number=0000000000189667&sum=12500 [11:50:52]line 0 [11:50:52]OFD Sender: Processing packet 2035 [packets to send 1, broken 0] [11:50:52]ProducePacketName [11:50:52]name=ofd_packets/00002035 [11:50:52]OFD Sender: To server: pG, [11:50:52]CommunicateWithHost lk.salyk.kg:30040 [11:50:52]ConnectInit lk.salyk.kg [11:50:52]written 0, free lines is 4095 [11:50:53]Connected sock=8 [11:50:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 23 01 00 00 86 91 1B 01 AC 9C 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 56 00 00 00 F4 03 04 00 A0 30 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 F3 07 00 00 35 04 06 00 A4 41 68 CF 72 B4 FE 74 34 33 0D A7 3D 36 [11:50:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 81 9E 47 00 CD B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 F3 07 00 00 F4 03 04 00 10 DC A5 66 B6 04 01 00 00 C7 B5 E8 6D F4 83 97 6D [11:50:53]CommunicateWithHost err = 0 [11:50:53]CheckOFDResponse [11:50:53]1017 (14) - 77093643461234 [11:50:53]1041 (16) - 0000000002094248 [11:50:53]1040 (4) - 2035 [11:50:53]1012 (4) - 28.07.2024 05:50 [11:50:53]1206 (1) - 0 [11:50:53]OFD Sender: Remove packet 2035 [11:50:53]ProducePacketName [11:50:53]name=ofd_packets/00002035 [11:50:53]NVStorageDeleteData [11:50:53]Write to MH i2c: 01 00 00 D2 46 18 [11:50:53]Write i2c OK [11:50:53]MH_I2C_Read... [11:50:53]Read from MH i2c: 01 [11:50:53]MH_I2C_Read... [11:50:53]Read from MH i2c: 01 07 00 [11:50:53]MH_I2C_Read... [11:50:53]Read from MH i2c: 01 07 00 D2 46 00 00 00 00 00 01 0D 2D [11:50:53]RasterBufferAndPrint [11:50:53]line [11:50:53]line [11:50:53]line [11:50:53]line [11:50:53]line [11:50:53]written 0, free lines is 3338 [11:50:53]MH_Cut [11:50:53]Write to MH i2c: D1 01 00 D9 46 01 F1 [11:50:53]Write i2c OK [11:50:53]MH_I2C_Read... [11:50:53]Read from MH i2c: D1 [11:50:53]MH_I2C_Read... [11:50:53]Read from MH i2c: D1 01 00 [11:50:53]MH_I2C_Read... [11:50:53]Read from MH i2c: D1 01 00 D9 46 00 F0 [11:50:53]Write to MH i2c: 01 00 00 DA 46 20 [11:50:53]Write i2c OK [11:50:53]MH_I2C_Read... [11:50:53]OFD Sender: No OFD packet to send [11:50:53]*** Cut start [11:50:53]*** Partial cut [11:50:53]*** CUTSNS_PIN = 1 [11:50:54]*** CUTSNS_PIN = 0 [11:50:54]*** Brake cut motor [11:50:54]Read from MH i2c: 01 [11:50:54]MH_I2C_Read... [11:50:54]*** Stop cut motor [11:50:54]*** Cut end [11:50:54]Read from MH i2c: 01 07 00 [11:50:54]MH_I2C_Read... [11:50:54]Read from MH i2c: 01 07 00 DA 46 00 00 00 00 00 FF 0F 35 [11:50:54]process_action close_receipt done [11:50:54]requested_data is exist [11:50:54]produce_requested_data [11:50:54]requested_item fm.sn is exist - process it [11:50:54]wFMCommunicate request_size=4 [11:50:54]MH_SAM_APDU [11:50:54]CAPDU: 80 11 00 00 [11:50:54]Write to MH i2c: E2 08 00 DB 46 80 11 00 00 00 00 00 00 9B [11:50:54]Write i2c OK [11:50:54]MH_I2C_Read... [11:50:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:54]Read from MH i2c: E2 [11:50:54]MH_I2C_Read... [11:50:54]Read from MH i2c: E2 17 00 [11:50:54]MH_I2C_Read... [11:50:54]Read from MH i2c: E2 17 00 DB 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 EB [11:50:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [11:50:54]wFMCommunicate OK [11:50:54]requested_item fd.num is exist - process it [11:50:54]SAM_PROTO_GetFieldsCounters [11:50:54]wFMCommunicate request_size=4 [11:50:54]MH_SAM_APDU [11:50:54]CAPDU: 80 13 00 00 [11:50:54]Write to MH i2c: E2 08 00 DC 46 80 13 00 00 00 00 00 00 9E [11:50:54]Write i2c OK [11:50:54]MH_I2C_Read... [11:50:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:50:54]Read from MH i2c: E2 [11:50:54]MH_I2C_Read... [11:50:54]Read from MH i2c: E2 62 00 [11:50:54]MH_I2C_Read... [11:50:54]Read from MH i2c: E2 62 00 DC 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 F3 07 00 00 0E 04 04 00 0D 00 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 D1 [11:50:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 F3 07 00 00 0E 04 04 00 0D 00 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 [11:50:54]wFMCommunicate OK [11:50:54]SAM_PROTO_GetFieldsCounters done [11:50:54]requested_item shift.num is exist - process it [11:50:54]requested_item shift.opened is exist - process it [11:50:54]req_shift_opened [11:50:54]FM_GetShiftState [11:50:54]SAM_PROTO_GetShiftState [11:50:54]wFMCommunicate request_size=4 [11:50:54]MH_SAM_APDU [11:50:54]CAPDU: 80 13 01 00 [11:50:54]Write to MH i2c: E2 08 00 DD 46 80 13 01 00 00 00 00 00 A0 [11:50:54]Write i2c OK [11:50:54]MH_I2C_Read... [11:50:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:54]Read from MH i2c: E2 [11:50:54]MH_I2C_Read... [11:50:54]Read from MH i2c: E2 0E 00 [11:50:54]MH_I2C_Read... [11:50:54]Read from MH i2c: E2 0E 00 DD 46 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 94 [11:50:54]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [11:50:54]wFMCommunicate OK [11:50:54]SAM_PROTO_GetShiftState done [11:50:54]FM_GetShiftState done [11:50:54]req_shift_opened done [11:50:54]requested_item shift.open_date is exist - process it [11:50:54]req_shift_open_date [11:50:54]req_shift_open_date done [11:50:54]produce_requested_data done [11:50:54]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2035,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [11:50:54]process_action_free close_receipt [11:50:54]json_value_free [11:50:54]json_value_free done [11:50:54]process_json_proto returns [11:50:54]Send response to host [11:50:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2035,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [11:50:54]free response buf [11:50:54]execute_script done [11:50:54]execute_script returns [11:50:54]free content buf [11:50:54]Sock 9.Close socket [11:50:54]Sock 9.Thread stoped [11:50:58]OFD Sender: No OFD packet to send [11:51:03]OFD Sender: No OFD packet to send [11:51:08]OFD Sender: No OFD packet to send [11:51:13]OFD Sender: No OFD packet to send [11:51:18]OFD Sender: No OFD packet to send [11:51:23]OFD Sender: No OFD packet to send [11:51:28]OFD Sender: No OFD packet to send [11:51:33]OFD Sender: No OFD packet to send [11:51:38]OFD Sender: No OFD packet to send [11:51:43]OFD Sender: No OFD packet to send [11:51:48]OFD Sender: No OFD packet to send [11:51:53]OFD Sender: No OFD packet to send [11:51:58]OFD Sender: No OFD packet to send [11:52:03]OFD Sender: No OFD packet to send [11:52:08]OFD Sender: No OFD packet to send [11:52:13]OFD Sender: No OFD packet to send [11:52:18]OFD Sender: No OFD packet to send [11:52:23]OFD Sender: No OFD packet to send [12:02:06]ConnectInit Can't connect to host [12:02:09]ConnectInit Can't take IP for lk.salyk.kg [12:02:09]CommunicateWithHost connect error [12:02:09]CommunicateWithHost err = -1 [12:02:09]OFD Sender: Server communicate error [12:02:14]OFD Sender: Processing packet 2036 [packets to send 1, broken 0] [12:02:14]ProducePacketName [12:02:14]name=ofd_packets/00002036 [12:02:14]OFD Sender: To server: pG, [12:02:14]CommunicateWithHost lk.salyk.kg:30040 [12:02:14]ConnectInit lk.salyk.kg [12:02:14]Connected sock=9 [12:02:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 21 01 00 00 86 5C 19 01 A3 8E 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 6D 32 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 F4 07 00 00 35 04 06 00 EA 9F A2 EE 5B 97 92 C5 CC C9 23 B0 3C 43 [12:02:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 7D AE 47 00 36 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 32 30 39 34 32 34 38 10 04 04 00 F4 07 00 00 F4 03 04 00 B9 DE A5 66 B6 04 01 00 00 9F 98 3C 7D 5F A5 9E 17 [12:02:14]CommunicateWithHost err = 0 [12:02:14]CheckOFDResponse [12:02:14]1017 (14) - 77093643461234 [12:02:14]1041 (16) - 0000000002094248 [12:02:14]1040 (4) - 2036 [12:02:14]1012 (4) - 28.07.2024 06:01 [12:02:14]1206 (1) - 0 [12:02:14]OFD Sender: Remove packet 2036 [12:02:14]ProducePacketName [12:02:14]name=ofd_packets/00002036 [12:02:14]NVStorageDeleteData [12:02:15]OFD Sender: No OFD packet to send [12:02:20]OFD Sender: No OFD packet to send [12:08:10]ConnectInit Can't connect to host [12:08:14]ConnectInit Can't take IP for lk.salyk.kg [12:08:14]CommunicateWithHost connect error [12:08:14]CommunicateWithHost err = -1 [12:08:14]OFD Sender: Server communicate error [12:08:19]OFD Sender: Processing packet 2037 [packets to send 3, broken 0] [12:08:19]ProducePacketName [12:08:19]name=ofd_packets/00002037 [12:08:19]OFD Sender: To server: pG, [12:08:19]CommunicateWithHost lk.salyk.kg:30040 [12:08:19]ConnectInit lk.salyk.kg [12:08:19]Connected sock=8 [12:08:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 F0 02 00 00 9A 62 E8 02 87 36 5A 03 01 00 03 00 DC 02 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 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 38 36 38 06 04 27 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 38 31 31 37 38 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 D0 A2 D1 80 D0 B8 D0 BE 20 38 32 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 15 00 00 00 00 13 04 06 00 E0 15 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 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 1C A2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 11 00 00 00 00 07 04 06 00 1C A2 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 84 33 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 F5 07 00 00 35 04 06 00 A3 A5 E5 70 8F 63 D8 53 36 B6 0F 6F BE 4E [12:08:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 2A 60 47 00 D1 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 F5 07 00 00 F4 03 04 00 26 E0 A5 66 B6 04 01 00 00 28 29 77 70 BD 92 CF DE [12:08:19]CommunicateWithHost err = 0 [12:08:19]CheckOFDResponse [12:08:19]1017 (14) - 77093643461234 [12:08:19]1041 (16) - 0000000002094248 [12:08:19]1040 (4) - 2037 [12:08:19]1012 (4) - 28.07.2024 06:07 [12:08:19]1206 (1) - 0 [12:08:19]OFD Sender: Remove packet 2037 [12:08:19]ProducePacketName [12:08:19]name=ofd_packets/00002037 [12:08:19]NVStorageDeleteData [12:08:19]OFD Sender: Processing packet 2038 [packets to send 2, broken 0] [12:08:19]ProducePacketName [12:08:19]name=ofd_packets/00002038 [12:08:19]OFD Sender: To server: pG, [12:08:19]CommunicateWithHost lk.salyk.kg:30040 [12:08:19]ConnectInit lk.salyk.kg [12:08:20]Connected sock=8 [12:08:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 23 01 00 00 0E 45 1B 01 15 2F 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 30 34 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 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 A1 33 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 F6 07 00 00 35 04 06 00 11 3A 7D 06 EB E8 E4 EE F8 B3 92 3E 4D 81 [12:08:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 5E B1 47 00 95 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 32 30 39 34 32 34 38 10 04 04 00 F6 07 00 00 F4 03 04 00 27 E0 A5 66 B6 04 01 00 00 33 15 49 64 8C 4F 87 F5 [12:08:20]CommunicateWithHost err = 0 [12:08:20]CheckOFDResponse [12:08:20]1017 (14) - 77093643461234 [12:08:20]1041 (16) - 0000000002094248 [12:08:20]1040 (4) - 2038 [12:08:20]1012 (4) - 28.07.2024 06:07 [12:08:20]1206 (1) - 0 [12:08:20]OFD Sender: Remove packet 2038 [12:08:20]ProducePacketName [12:08:20]name=ofd_packets/00002038 [12:08:20]NVStorageDeleteData [12:08:20]OFD Sender: Processing packet 2039 [packets to send 1, broken 0] [12:08:20]ProducePacketName [12:08:20]name=ofd_packets/00002039 [12:08:20]OFD Sender: To server: pG, [12:08:20]CommunicateWithHost lk.salyk.kg:30040 [12:08:20]ConnectInit lk.salyk.kg [12:08:20]Connected sock=8 [12:08:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 26 01 00 00 7C 23 1E 01 27 CD 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 3E 34 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 F7 07 00 00 35 04 06 00 0D 96 74 DD 94 44 F1 11 E6 2E CA 9D C9 64 [12:08:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 24 54 47 00 87 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 F7 07 00 00 F4 03 04 00 28 E0 A5 66 B6 04 01 00 00 10 24 F2 52 00 0F C3 B2 [12:08:21]CommunicateWithHost err = 0 [12:08:21]CheckOFDResponse [12:08:21]1017 (14) - 77093643461234 [12:08:21]1041 (16) - 0000000002094248 [12:08:21]1040 (4) - 2039 [12:08:21]1012 (4) - 28.07.2024 06:07 [12:08:21]1206 (1) - 0 [12:08:21]OFD Sender: Remove packet 2039 [12:08:21]ProducePacketName [12:08:21]name=ofd_packets/00002039 [12:08:21]NVStorageDeleteData [12:08:21]OFD Sender: No OFD packet to send [12:08:26]OFD Sender: No OFD packet to send [12:08:26]accept exits with 9 [12:08:26]New connection [12:08:26]New thread 3067317604 created [12:08:26]Thread 3067460964 joined [12:08:26]Waiting for new connection... [12:08:26] Sock 9.Parse request [12:08:26]Sock 9.Check first char [12:08:26]Sock 9.First char is OK [12:08:26]request: POST /json_proto HTTP/1.0 [12:08:26]Method: POST [12:08:26]URL: /json_proto [12:08:26]Method is POST - this is cgi request [12:08:26]url: /json_proto [12:08:26]query_string will be loaded in cgi processing [12:08:26]execute_cgi json_proto POST (null) [12:08:26]execute_cgi path=json_proto method=POST [12:08:26]POST find Content-Length [12:08:26]Host: 172.17.45.132:8080 [12:08:26]Content-Length: 787 [12:08:26]Content-Type: application/json [12:08:26] [12:08:26]POST finish read [12:08:26]Found Content-Length = 787 [12:08:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126343", "tax_sys" : 0, "items" : [ { "code": "4640030092499", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE SENSE Himalaya", "price" : 150.00, "quantity" : 1.000, "sum" : 150.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" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:08:26]execute_script... [12:08:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126343", "tax_sys" : 0, "items" : [ { "code": "4640030092499", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE SENSE Himalaya", "price" : 150.00, "quantity" : 1.000, "sum" : 150.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" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:08:26]POST & json_proto [12:08:26]process_json_proto [12:08:26]json parsed OK: [12:08:26]protocol is kg_v1.0 [12:08:26]action value=close_receipt [12:08:26]process_action close_receipt [12:08:26]cmd_close_receipt [12:08:26]MH_GetDate [12:08:26]Write to MH i2c: F0 00 00 19 48 50 [12:08:26]Write i2c OK [12:08:26]MH_I2C_Read... [12:08:26]Read from MH i2c: F0 [12:08:26]MH_I2C_Read... [12:08:26]Read from MH i2c: F0 09 00 [12:08:26]MH_I2C_Read... [12:08:26]Read from MH i2c: F0 09 00 19 48 00 C0 34 A6 66 E3 0B 90 66 3D [12:08:26]GetLastDocTimeStamp 1722168382 [12:08:26]current date 1722168512 [12:08:26]FM_GetShiftState [12:08:26]SAM_PROTO_GetShiftState [12:08:26]wFMCommunicate request_size=4 [12:08:26]MH_SAM_APDU [12:08:26]CAPDU: 80 13 01 00 [12:08:26]Write to MH i2c: E2 08 00 1A 48 80 13 01 00 00 00 00 00 DF [12:08:26]Write i2c OK [12:08:26]MH_I2C_Read... [12:08:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:26]Read from MH i2c: E2 [12:08:26]MH_I2C_Read... [12:08:26]Read from MH i2c: E2 0E 00 [12:08:26]MH_I2C_Read... [12:08:26]Read from MH i2c: E2 0E 00 1A 48 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 D3 [12:08:26]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [12:08:26]wFMCommunicate OK [12:08:26]SAM_PROTO_GetShiftState done [12:08:26]FM_GetShiftState done [12:08:26]opened in 1722125648 [12:08:26]opened+sec_in_day 1722212048 [12:08:26]quantity*price = 15000 [12:08:26]sum+1 = 15001 [12:08:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 0.00 Безнал.: 150.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 91 28.07.2024 12:08 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2040 ФПД: 94402935623225 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T120832&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2040&fm=94402935623225&tin=02508201610067®Number=0000000000189667&sum=15000 0 [12:08:28]StoreToDocumentArchive [12:08:28]shift 13 fd 2040 [12:08:28]save to /storage/0013/doc_00002040 [12:08:28]save last doc name /storage/0013/doc_00002040 to /storage/kkm_last_doc_name [12:08:28]save OK [12:08:28]Clear old archive folders... [12:08:28]ProcessDocumentItem done err = 0, tmpTLVsize=278 [12:08:28]tlvbuf is 0208CEE0 [12:08:28]SAM_PROTO_ClearQueue [12:08:28]wFMCommunicate request_size=4 [12:08:28]MH_SAM_APDU [12:08:28]CAPDU: 80 09 00 00 [12:08:28]Write to MH i2c: E2 08 00 27 48 80 09 00 00 00 00 00 00 E1 [12:08:28]Write i2c OK [12:08:28]MH_I2C_Read... [12:08:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:08:28]Read from MH i2c: E2 [12:08:28]MH_I2C_Read... [12:08:28]Read from MH i2c: E2 03 00 [12:08:28]MH_I2C_Read... [12:08:28]Read from MH i2c: E2 03 00 27 48 00 90 00 E3 [12:08:28]RAPDU: 90 00 [12:08:28]wFMCommunicate OK [12:08:28]SAM_PROTO_ClearQueue done [12:08:28]KKMCreateOFDPacket [12:08:28]OFDProtocolAddRootSTLVToBuf [12:08:28]FM_MakeSignedData [12:08:28]FM_MakeSignedData [12:08:28]SAM_PROTO_SignData [12:08:28]wFMCommunicate request_size=4 [12:08:28]MH_SAM_APDU [12:08:28]CAPDU: 80 0D 01 02 [12:08:28]Write to MH i2c: E2 08 00 28 48 80 0D 01 02 00 00 00 00 E9 [12:08:28]Write i2c OK [12:08:28]MH_I2C_Read... [12:08:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:08:28]Read from MH i2c: E2 [12:08:28]MH_I2C_Read... [12:08:28]Read from MH i2c: E2 03 00 [12:08:28]MH_I2C_Read... [12:08:28]Read from MH i2c: E2 03 00 28 48 00 90 00 E4 [12:08:28]RAPDU: 90 00 [12:08:28]wFMCommunicate OK [12:08:28]wFMCommunicate request_size=255 [12:08:28]MH_SAM_APDU [12:08:28]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 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 C0 34 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 [12:08:28]Write to MH i2c: E2 02 01 29 48 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 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 C0 34 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 00 00 82 [12:08:28]Write i2c OK [12:08:28]MH_I2C_Read... [12:08:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:08:28]Read from MH i2c: E2 [12:08:28]MH_I2C_Read... [12:08:28]Read from MH i2c: E2 03 00 [12:08:28]MH_I2C_Read... [12:08:28]Read from MH i2c: E2 03 00 29 48 00 90 00 E5 [12:08:28]RAPDU: 90 00 [12:08:28]wFMCommunicate OK [12:08:28]wFMCommunicate request_size=37 [12:08:28]MH_SAM_APDU [12:08:28]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 F8 07 00 00 35 04 06 00 55 DB E5 71 8E 39 [12:08:28]Write to MH i2c: E2 28 00 2A 48 80 0D 02 02 20 00 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 F8 07 00 00 35 04 06 00 55 DB E5 71 8E 39 00 00 8C [12:08:28]Write i2c OK [12:08:28]MH_I2C_Read... [12:08:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:08:28]Read from MH i2c: E2 [12:08:28]MH_I2C_Read... [12:08:28]Read from MH i2c: E2 03 00 [12:08:28]MH_I2C_Read... [12:08:28]Read from MH i2c: E2 03 00 2A 48 00 90 00 E6 [12:08:28]RAPDU: 90 00 [12:08:28]wFMCommunicate OK [12:08:28]wFMCommunicate request_size=4 [12:08:28]MH_SAM_APDU [12:08:28]CAPDU: 80 0D 03 02 [12:08:28]Write to MH i2c: E2 08 00 2B 48 80 0D 03 02 00 00 00 00 EE [12:08:28]Write i2c OK [12:08:28]MH_I2C_Read... [12:08:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:08:28]Read from MH i2c: E2 [12:08:28]MH_I2C_Read... [12:08:28]Read from MH i2c: E2 0B 00 [12:08:28]MH_I2C_Read... [12:08:28]Read from MH i2c: E2 0B 00 2B 48 00 8B 8B B6 77 0E D8 DF 0B 90 00 02 [12:08:28]RAPDU: 8B 8B B6 77 0E D8 DF 0B 90 00 [12:08:28]wFMCommunicate OK [12:08:28]SAM_PROTO_SignData done [12:08:28]FM_MakeSignedData done [12:08:28]CreateOFDProtocolMessage [12:08:28]wFMCommunicate request_size=4 [12:08:28]MH_SAM_APDU [12:08:28]CAPDU: 80 11 00 00 [12:08:28]Write to MH i2c: E2 08 00 2C 48 80 11 00 00 00 00 00 00 EE [12:08:28]Write i2c OK [12:08:28]MH_I2C_Read... [12:08:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:28]Read from MH i2c: E2 [12:08:28]MH_I2C_Read... [12:08:28]Read from MH i2c: E2 17 00 [12:08:28]MH_I2C_Read... [12:08:28]Read from MH i2c: E2 17 00 2C 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 3E [12:08:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [12:08:28]wFMCommunicate OK [12:08:28]CreateOFDProtocolMessage done [12:08:28]OFDSenderStorePacket 2040 [12:08:28]StoreOFDPacket docnum=2040 [12:08:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2A 01 00 00 DA C2 22 01 BC CD 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 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 C0 34 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 F8 07 00 00 35 04 06 00 55 DB E5 71 8E 39 8B 8B B6 77 0E D8 DF 0B [12:08:28]CheckFolder [12:08:28]dirname=/storage/ofd_packets [12:08:28]CheckFolder done [12:08:28]ProducePacketName [12:08:28]name=ofd_packets/00002040 [12:08:28]NVStorageSaveData ofd_packets/00002040 [12:08:28]File name is /storage/ofd_packets/00002040 [12:08:28]Write 328 bytes [12:08:28]NVStorageSaveData done [12:08:28]OFDSenderStorePacket done [12:08:28]KKMCreateOFDPacket done [12:08:28]NVStorageSaveData kkm_last_timestamp [12:08:28]File name is /storage/kkm_last_timestamp [12:08:28]Write 4 bytes [12:08:28]NVStorageSaveData done [12:08:28]ExternCall_PrintAddStr [12:08:28]wPrintStart [12:08:28]Write to MH i2c: 01 00 00 2D 48 75 [12:08:28]Write i2c OK [12:08:28]MH_I2C_Read... [12:08:28]Read from MH i2c: 01 [12:08:28]MH_I2C_Read... [12:08:28]Read from MH i2c: 01 07 00 [12:08:28]MH_I2C_Read... [12:08:28]Read from MH i2c: 01 07 00 2D 48 00 00 00 00 00 FF 0F 8A [12:08:28]RasterBufferAndPrint [12:08:28]line Счет N : (3)126343 [12:08:28]line ИНН: 02508201610067 [12:08:28]line Контрольно-Кассовый Чек [12:08:28]line ПРОДАЖА [12:08:28]line Товар: 4640030092499 [12:08:28]line Сигареты ESSE SENSE Himalaya [12:08:28]line 1.000 * 150.00 [12:08:28]line = 150.00 [12:08:28]line НДС 12% НСП 1% [12:08:28]line > о реализуемом товаре [12:08:28]line ИТОГО: 150.00 [12:08:28]line НСП 1% : 1.33 [12:08:28]line НДС 12% : 15.93 [12:08:28]line Наличными: 0.00 [12:08:28]line Безнал.: 150.00 [12:08:28]line Место: АЗС № 127 "Партнер Нефть" [12:08:28]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [12:08:28]line СНО: Общий режим [12:08:28]line Чек 91 28.07.2024 12:08 [12:08:28]line Смена: 13 ФФД: 1.0 [12:08:28]line ЗНМ: 0300000161 [12:08:28]line РНМ: 0000000000189667 [12:08:28]line Версия ККМ: v1.0 [12:08:28]line Платежная система: O! деньги [12:08:28]line ФМ: 0000000002094248 [12:08:28]line ФД: 2040 [12:08:28]line ФПД: 94402935623225 [12:08:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T120832&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2040&fm=94402935623225&tin=02508201610067®Number=0000000000189667&sum=15000 [12:08:28]line 0 [12:08:28]OFD Sender: Processing packet 2040 [packets to send 1, broken 0] [12:08:28]ProducePacketName [12:08:28]name=ofd_packets/00002040 [12:08:28]OFD Sender: To server: pG, [12:08:28]CommunicateWithHost lk.salyk.kg:30040 [12:08:28]ConnectInit lk.salyk.kg [12:08:28]written 0, free lines is 4095 [12:08:29]Connected sock=10 [12:08:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2A 01 00 00 DA C2 22 01 BC CD 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 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 C0 34 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 F8 07 00 00 35 04 06 00 55 DB E5 71 8E 39 8B 8B B6 77 0E D8 DF 0B [12:08:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 EE EA 47 00 F6 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 32 30 39 34 32 34 38 10 04 04 00 F8 07 00 00 F4 03 04 00 30 E0 A5 66 B6 04 01 00 00 28 88 1E 81 AD 69 4D 74 [12:08:29]CommunicateWithHost err = 0 [12:08:29]CheckOFDResponse [12:08:29]1017 (14) - 77093643461234 [12:08:29]1041 (16) - 0000000002094248 [12:08:29]1040 (4) - 2040 [12:08:29]1012 (4) - 28.07.2024 06:07 [12:08:29]1206 (1) - 0 [12:08:29]OFD Sender: Remove packet 2040 [12:08:29]ProducePacketName [12:08:29]name=ofd_packets/00002040 [12:08:29]NVStorageDeleteData [12:08:29]Write to MH i2c: 01 00 00 58 48 A0 [12:08:29]Write i2c OK [12:08:29]MH_I2C_Read... [12:08:29]Read from MH i2c: 01 [12:08:29]MH_I2C_Read... [12:08:29]Read from MH i2c: 01 07 00 [12:08:29]MH_I2C_Read... [12:08:29]Read from MH i2c: 01 07 00 58 48 00 00 00 00 00 EA 0C 9D [12:08:29]RasterBufferAndPrint [12:08:29]line [12:08:29]line [12:08:29]line [12:08:29]line [12:08:29]line [12:08:29]written 0, free lines is 3315 [12:08:29]MH_Cut [12:08:29]Write to MH i2c: D1 01 00 5F 48 01 79 [12:08:29]Write i2c OK [12:08:29]MH_I2C_Read... [12:08:29]Read from MH i2c: D1 [12:08:29]MH_I2C_Read... [12:08:29]Read from MH i2c: D1 01 00 [12:08:29]MH_I2C_Read... [12:08:29]Read from MH i2c: D1 01 00 5F 48 00 78 [12:08:29]Write to MH i2c: 01 00 00 60 48 A8 [12:08:29]Write i2c OK [12:08:29]MH_I2C_Read... [12:08:29]OFD Sender: No OFD packet to send [12:08:30]*** Cut start [12:08:30]*** Partial cut [12:08:30]*** CUTSNS_PIN = 1 [12:08:30]*** CUTSNS_PIN = 0 [12:08:30]*** Brake cut motor [12:08:30]Read from MH i2c: 01 [12:08:30]MH_I2C_Read... [12:08:30]*** Stop cut motor [12:08:30]*** Cut end [12:08:30]Read from MH i2c: 01 07 00 [12:08:30]MH_I2C_Read... [12:08:30]Read from MH i2c: 01 07 00 60 48 00 00 00 00 00 FF 0F BD [12:08:30]process_action close_receipt done [12:08:30]requested_data is exist [12:08:30]produce_requested_data [12:08:30]requested_item fm.sn is exist - process it [12:08:30]wFMCommunicate request_size=4 [12:08:30]MH_SAM_APDU [12:08:30]CAPDU: 80 11 00 00 [12:08:30]Write to MH i2c: E2 08 00 61 48 80 11 00 00 00 00 00 00 23 [12:08:30]Write i2c OK [12:08:30]MH_I2C_Read... [12:08:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:30]Read from MH i2c: E2 [12:08:30]MH_I2C_Read... [12:08:30]Read from MH i2c: E2 17 00 [12:08:30]MH_I2C_Read... [12:08:30]Read from MH i2c: E2 17 00 61 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 73 [12:08:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [12:08:30]wFMCommunicate OK [12:08:30]requested_item fd.num is exist - process it [12:08:30]SAM_PROTO_GetFieldsCounters [12:08:30]wFMCommunicate request_size=4 [12:08:30]MH_SAM_APDU [12:08:30]CAPDU: 80 13 00 00 [12:08:30]Write to MH i2c: E2 08 00 62 48 80 13 00 00 00 00 00 00 26 [12:08:30]Write i2c OK [12:08:30]MH_I2C_Read... [12:08:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:08:30]Read from MH i2c: E2 [12:08:30]MH_I2C_Read... [12:08:30]Read from MH i2c: E2 62 00 [12:08:30]MH_I2C_Read... [12:08:30]Read from MH i2c: E2 62 00 62 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 F8 07 00 00 0E 04 04 00 0D 00 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 6D [12:08:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 F8 07 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:08:30]wFMCommunicate OK [12:08:30]SAM_PROTO_GetFieldsCounters done [12:08:30]requested_item shift.num is exist - process it [12:08:30]requested_item shift.opened is exist - process it [12:08:30]req_shift_opened [12:08:30]FM_GetShiftState [12:08:30]SAM_PROTO_GetShiftState [12:08:30]wFMCommunicate request_size=4 [12:08:30]MH_SAM_APDU [12:08:30]CAPDU: 80 13 01 00 [12:08:30]Write to MH i2c: E2 08 00 63 48 80 13 01 00 00 00 00 00 28 [12:08:30]Write i2c OK [12:08:30]MH_I2C_Read... [12:08:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:31]Read from MH i2c: E2 [12:08:31]MH_I2C_Read... [12:08:31]Read from MH i2c: E2 0E 00 [12:08:31]MH_I2C_Read... [12:08:31]Read from MH i2c: E2 0E 00 63 48 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 1C [12:08:31]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [12:08:31]wFMCommunicate OK [12:08:31]SAM_PROTO_GetShiftState done [12:08:31]FM_GetShiftState done [12:08:31]req_shift_opened done [12:08:31]requested_item shift.open_date is exist - process it [12:08:31]req_shift_open_date [12:08:31]req_shift_open_date done [12:08:31]produce_requested_data done [12:08:31]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2040,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [12:08:31]process_action_free close_receipt [12:08:31]json_value_free [12:08:31]json_value_free done [12:08:31]process_json_proto returns [12:08:31]Send response to host [12:08:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2040,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [12:08:31]free response buf [12:08:31]execute_script done [12:08:31]execute_script returns [12:08:31]free content buf [12:08:31]Sock 9.Close socket [12:08:31]Sock 9.Thread stoped [12:08:34]OFD Sender: No OFD packet to send [12:08:39]OFD Sender: No OFD packet to send [12:08:44]OFD Sender: No OFD packet to send [12:08:49]OFD Sender: No OFD packet to send [12:08:54]OFD Sender: No OFD packet to send [12:08:59]OFD Sender: No OFD packet to send [12:09:04]OFD Sender: No OFD packet to send [12:09:09]OFD Sender: No OFD packet to send [12:09:14]OFD Sender: No OFD packet to send [12:09:19]OFD Sender: No OFD packet to send [12:09:24]OFD Sender: No OFD packet to send [12:09:29]OFD Sender: No OFD packet to send [12:09:34]OFD Sender: No OFD packet to send [12:09:39]OFD Sender: No OFD packet to send [12:09:42]accept exits with 8 [12:09:42]New connection [12:09:42]New thread 3067460964 created [12:09:42]Thread 3067317604 joined [12:09:42]Waiting for new connection... [12:09:42] Sock 8.Parse request [12:09:42]Sock 8.Check first char [12:09:42]Sock 8.First char is OK [12:09:42]request: POST /json_proto HTTP/1.0 [12:09:42]Method: POST [12:09:42]URL: /json_proto [12:09:42]Method is POST - this is cgi request [12:09:42]url: /json_proto [12:09:42]query_string will be loaded in cgi processing [12:09:42]execute_cgi json_proto POST (null) [12:09:42]execute_cgi path=json_proto method=POST [12:09:42]POST find Content-Length [12:09:42]Host: 172.17.45.132:8080 [12:09:42]Content-Length: 614 [12:09:42]Content-Type: application/json [12:09:42] [12:09:42]POST finish read [12:09:42]Found Content-Length = 614 [12:09:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126344", "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" ] } } [12:09:42]execute_script... [12:09: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)126344", "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" ] } } [12:09:42]POST & json_proto [12:09:42]process_json_proto [12:09:42]json parsed OK: [12:09:42]protocol is kg_v1.0 [12:09:42]action value=close_receipt [12:09:42]process_action close_receipt [12:09:42]cmd_close_receipt [12:09:42]MH_GetDate [12:09:42]Write to MH i2c: F0 00 00 64 48 9B [12:09:42]Write i2c OK [12:09:42]MH_I2C_Read... [12:09:42]Read from MH i2c: F0 [12:09:42]MH_I2C_Read... [12:09:42]Read from MH i2c: F0 09 00 [12:09:42]MH_I2C_Read... [12:09:42]Read from MH i2c: F0 09 00 64 48 00 0C 35 A6 66 E3 0B 90 66 D5 [12:09:42]GetLastDocTimeStamp 1722168512 [12:09:42]current date 1722168588 [12:09:42]FM_GetShiftState [12:09:42]SAM_PROTO_GetShiftState [12:09:42]wFMCommunicate request_size=4 [12:09:42]MH_SAM_APDU [12:09:42]CAPDU: 80 13 01 00 [12:09:42]Write to MH i2c: E2 08 00 65 48 80 13 01 00 00 00 00 00 2A [12:09:42]Write i2c OK [12:09:42]MH_I2C_Read... [12:09:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:42]Read from MH i2c: E2 [12:09:42]MH_I2C_Read... [12:09:42]Read from MH i2c: E2 0E 00 [12:09:42]MH_I2C_Read... [12:09:42]Read from MH i2c: E2 0E 00 65 48 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 1E [12:09:42]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [12:09:42]wFMCommunicate OK [12:09:42]SAM_PROTO_GetShiftState done [12:09:42]FM_GetShiftState done [12:09:42]opened in 1722125648 [12:09:42]opened+sec_in_day 1722212048 [12:09:42]quantity*price = 11100 [12:09:42]sum+1 = 11101 [12:09:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 111.00 НСП 1% : 0.98 НДС 12% : 11.79 Наличными: 111.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 92 28.07.2024 12:09 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2041 ФПД: 238063064564588 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T120948&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2041&fm=238063064564588&tin=02508201610067®Number=0000000000189667&sum=11100 0 [12:09:43]StoreToDocumentArchive [12:09:43]shift 13 fd 2041 [12:09:43]save to /storage/0013/doc_00002041 [12:09:43]save last doc name /storage/0013/doc_00002041 to /storage/kkm_last_doc_name [12:09:43]save OK [12:09:43]Clear old archive folders... [12:09:43]ProcessDocumentItem done err = 0, tmpTLVsize=266 [12:09:43]tlvbuf is 020C4040 [12:09:43]SAM_PROTO_ClearQueue [12:09:43]wFMCommunicate request_size=4 [12:09:43]MH_SAM_APDU [12:09:43]CAPDU: 80 09 00 00 [12:09:43]Write to MH i2c: E2 08 00 72 48 80 09 00 00 00 00 00 00 2C [12:09:43]Write i2c OK [12:09:43]MH_I2C_Read... [12:09:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:09:44]Read from MH i2c: E2 [12:09:44]MH_I2C_Read... [12:09:44]Read from MH i2c: E2 03 00 [12:09:44]MH_I2C_Read... [12:09:44]Read from MH i2c: E2 03 00 72 48 00 90 00 2E [12:09:44]RAPDU: 90 00 [12:09:44]wFMCommunicate OK [12:09:44]SAM_PROTO_ClearQueue done [12:09:44]KKMCreateOFDPacket [12:09:44]OFDProtocolAddRootSTLVToBuf [12:09:44]FM_MakeSignedData [12:09:44]FM_MakeSignedData [12:09:44]SAM_PROTO_SignData [12:09:44]wFMCommunicate request_size=4 [12:09:44]MH_SAM_APDU [12:09:44]CAPDU: 80 0D 01 02 [12:09:44]Write to MH i2c: E2 08 00 73 48 80 0D 01 02 00 00 00 00 34 [12:09:44]Write i2c OK [12:09:44]MH_I2C_Read... [12:09:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:09:44]Read from MH i2c: E2 [12:09:44]MH_I2C_Read... [12:09:44]Read from MH i2c: E2 03 00 [12:09:44]MH_I2C_Read... [12:09:44]Read from MH i2c: E2 03 00 73 48 00 90 00 2F [12:09:44]RAPDU: 90 00 [12:09:44]wFMCommunicate OK [12:09:44]wFMCommunicate request_size=255 [12:09:44]MH_SAM_APDU [12:09:44]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 5C 00 00 00 F4 03 04 00 0C 35 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 [12:09:44]Write to MH i2c: E2 02 01 74 48 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 5C 00 00 00 F4 03 04 00 0C 35 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 00 00 06 [12:09:44]Write i2c OK [12:09:44]MH_I2C_Read... [12:09:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:44]Read from MH i2c: E2 [12:09:44]MH_I2C_Read... [12:09:44]Read from MH i2c: E2 03 00 [12:09:44]MH_I2C_Read... [12:09:44]Read from MH i2c: E2 03 00 74 48 00 90 00 30 [12:09:44]RAPDU: 90 00 [12:09:44]wFMCommunicate OK [12:09:44]wFMCommunicate request_size=25 [12:09:44]MH_SAM_APDU [12:09:44]CAPDU: 80 0D 02 02 14 34 38 10 04 04 00 F9 07 00 00 35 04 06 00 D8 84 60 65 C3 6C [12:09:44]Write to MH i2c: E2 1C 00 75 48 80 0D 02 02 14 00 34 38 10 04 04 00 F9 07 00 00 35 04 06 00 D8 84 60 65 C3 6C 00 00 72 [12:09:44]Write i2c OK [12:09:44]MH_I2C_Read... [12:09:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:44]Read from MH i2c: E2 [12:09:44]MH_I2C_Read... [12:09:44]Read from MH i2c: E2 03 00 [12:09:44]MH_I2C_Read... [12:09:44]Read from MH i2c: E2 03 00 75 48 00 90 00 31 [12:09:44]RAPDU: 90 00 [12:09:44]wFMCommunicate OK [12:09:44]wFMCommunicate request_size=4 [12:09:44]MH_SAM_APDU [12:09:44]CAPDU: 80 0D 03 02 [12:09:44]Write to MH i2c: E2 08 00 76 48 80 0D 03 02 00 00 00 00 39 [12:09:44]Write i2c OK [12:09:44]MH_I2C_Read... [12:09:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:09:44]Read from MH i2c: E2 [12:09:44]MH_I2C_Read... [12:09:44]Read from MH i2c: E2 0B 00 [12:09:44]MH_I2C_Read... [12:09:44]Read from MH i2c: E2 0B 00 76 48 00 76 CF 44 95 8F 2F 55 91 90 00 FC [12:09:44]RAPDU: 76 CF 44 95 8F 2F 55 91 90 00 [12:09:44]wFMCommunicate OK [12:09:44]SAM_PROTO_SignData done [12:09:44]FM_MakeSignedData done [12:09:44]CreateOFDProtocolMessage [12:09:44]wFMCommunicate request_size=4 [12:09:44]MH_SAM_APDU [12:09:44]CAPDU: 80 11 00 00 [12:09:44]Write to MH i2c: E2 08 00 77 48 80 11 00 00 00 00 00 00 39 [12:09:44]Write i2c OK [12:09:44]MH_I2C_Read... [12:09:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:44]Read from MH i2c: E2 [12:09:44]MH_I2C_Read... [12:09:44]Read from MH i2c: E2 17 00 [12:09:44]MH_I2C_Read... [12:09:44]Read from MH i2c: E2 17 00 77 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 89 [12:09:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [12:09:44]wFMCommunicate OK [12:09:44]CreateOFDProtocolMessage done [12:09:44]OFDSenderStorePacket 2041 [12:09:44]StoreOFDPacket docnum=2041 [12:09:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 1E 01 00 00 CA E3 16 01 A9 C3 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 5C 00 00 00 F4 03 04 00 0C 35 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 F9 07 00 00 35 04 06 00 D8 84 60 65 C3 6C 76 CF 44 95 8F 2F 55 91 [12:09:44]CheckFolder [12:09:44]dirname=/storage/ofd_packets [12:09:44]CheckFolder done [12:09:44]ProducePacketName [12:09:44]name=ofd_packets/00002041 [12:09:44]NVStorageSaveData ofd_packets/00002041 [12:09:44]File name is /storage/ofd_packets/00002041 [12:09:44]Write 316 bytes [12:09:44]NVStorageSaveData done [12:09:44]OFDSenderStorePacket done [12:09:44]KKMCreateOFDPacket done [12:09:44]NVStorageSaveData kkm_last_timestamp [12:09:44]File name is /storage/kkm_last_timestamp [12:09:44]Write 4 bytes [12:09:44]NVStorageSaveData done [12:09:44]OFD Sender: Processing packet 2041 [packets to send 1, broken 0] [12:09:44]ProducePacketName [12:09:44]name=ofd_packets/00002041 [12:09:44]OFD Sender: To server: pG, [12:09:44]CommunicateWithHost lk.salyk.kg:30040 [12:09:44]ConnectInit lk.salyk.kg [12:09:44]ExternCall_PrintAddStr [12:09:44]wPrintStart [12:09:44]Write to MH i2c: 01 00 00 78 48 C0 [12:09:44]Write i2c OK [12:09:44]MH_I2C_Read... [12:09:44]Read from MH i2c: 01 [12:09:44]MH_I2C_Read... [12:09:44]Read from MH i2c: 01 07 00 [12:09:44]MH_I2C_Read... [12:09:44]Read from MH i2c: 01 07 00 78 48 00 00 00 00 00 FF 0F D5 [12:09:44]RasterBufferAndPrint [12:09:44]line Счет N : (3)126344 [12:09:44]line ИНН: 02508201610067 [12:09:44]line Контрольно-Кассовый Чек [12:09:44]line ПРОДАЖА [12:09:44]line Товар: 4870001570071 [12:09:44]line Напиток Pepsi 1л [12:09:44]line 1.000 * 111.00 [12:09:44]line = 111.00 [12:09:44]line НДС 12% НСП 1% [12:09:44]line > о реализуемом товаре [12:09:44]line ИТОГО: 111.00 [12:09:44]line НСП 1% : 0.98 [12:09:44]line НДС 12% : 11.79 [12:09:44]line Наличными: 111.00 [12:09:44]line Безнал.: 0.00 [12:09:44]line Место: АЗС № 127 "Партнер Нефть" [12:09:44]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [12:09:44]line СНО: Общий режим [12:09:44]line Чек 92 28.07.2024 12:09 [12:09:44]line Смена: 13 ФФД: 1.0 [12:09:44]line ЗНМ: 0300000161 [12:09:44]line РНМ: 0000000000189667 [12:09:44]line Версия ККМ: v1.0 [12:09:44]line ФМ: 0000000002094248 [12:09:44]line ФД: 2041 [12:09:44]line ФПД: 238063064564588 [12:09:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T120948&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2041&fm=238063064564588&tin=02508201610067®Number=0000000000189667&sum=11100 [12:09:44]line 0 [12:09:44]Connected sock=11 [12:09:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 1E 01 00 00 CA E3 16 01 A9 C3 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 5C 00 00 00 F4 03 04 00 0C 35 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 F9 07 00 00 35 04 06 00 D8 84 60 65 C3 6C 76 CF 44 95 8F 2F 55 91 [12:09:44]written 0, free lines is 4095 [12:09:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 A1 8D 47 00 B4 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 32 30 39 34 32 34 38 10 04 04 00 F9 07 00 00 F4 03 04 00 7B E0 A5 66 B6 04 01 00 00 5C 90 3B B9 E8 BE 5B EC [12:09:45]CommunicateWithHost err = 0 [12:09:45]CheckOFDResponse [12:09:45]1017 (14) - 77093643461234 [12:09:45]1041 (16) - 0000000002094248 [12:09:45]1040 (4) - 2041 [12:09:45]1012 (4) - 28.07.2024 06:08 [12:09:45]1206 (1) - 0 [12:09:45]OFD Sender: Remove packet 2041 [12:09:45]ProducePacketName [12:09:45]name=ofd_packets/00002041 [12:09:45]NVStorageDeleteData [12:09:45]Write to MH i2c: 01 00 00 A0 48 E8 [12:09:45]Write i2c OK [12:09:45]MH_I2C_Read... [12:09:45]Read from MH i2c: 01 [12:09:45]MH_I2C_Read... [12:09:45]Read from MH i2c: 01 07 00 [12:09:45]MH_I2C_Read... [12:09:45]Read from MH i2c: 01 07 00 A0 48 00 00 00 00 00 04 0D 00 [12:09:45]RasterBufferAndPrint [12:09:45]line [12:09:45]line [12:09:45]line [12:09:45]line [12:09:45]line [12:09:45]written 0, free lines is 3338 [12:09:45]MH_Cut [12:09:45]Write to MH i2c: D1 01 00 A7 48 01 C1 [12:09:45]Write i2c OK [12:09:45]MH_I2C_Read... [12:09:45]Read from MH i2c: D1 [12:09:45]MH_I2C_Read... [12:09:45]Read from MH i2c: D1 01 00 [12:09:45]MH_I2C_Read... [12:09:45]Read from MH i2c: D1 01 00 A7 48 00 C0 [12:09:45]Write to MH i2c: 01 00 00 A8 48 F0 [12:09:45]Write i2c OK [12:09:45]MH_I2C_Read... [12:09:45]OFD Sender: No OFD packet to send [12:09:45]*** Cut start [12:09:45]*** Partial cut [12:09:45]*** CUTSNS_PIN = 1 [12:09:46]*** CUTSNS_PIN = 0 [12:09:46]*** Brake cut motor [12:09:46]Read from MH i2c: 01 [12:09:46]MH_I2C_Read... [12:09:46]*** Stop cut motor [12:09:46]*** Cut end [12:09:46]Read from MH i2c: 01 07 00 [12:09:46]MH_I2C_Read... [12:09:46]Read from MH i2c: 01 07 00 A8 48 00 00 00 00 00 FF 0F 05 [12:09:46]process_action close_receipt done [12:09:46]requested_data is exist [12:09:46]produce_requested_data [12:09:46]requested_item fm.sn is exist - process it [12:09:46]wFMCommunicate request_size=4 [12:09:46]MH_SAM_APDU [12:09:46]CAPDU: 80 11 00 00 [12:09:46]Write to MH i2c: E2 08 00 A9 48 80 11 00 00 00 00 00 00 6B [12:09:46]Write i2c OK [12:09:46]MH_I2C_Read... [12:09:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:46]Read from MH i2c: E2 [12:09:46]MH_I2C_Read... [12:09:46]Read from MH i2c: E2 17 00 [12:09:46]MH_I2C_Read... [12:09:46]Read from MH i2c: E2 17 00 A9 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 BB [12:09:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [12:09:46]wFMCommunicate OK [12:09:46]requested_item fd.num is exist - process it [12:09:46]SAM_PROTO_GetFieldsCounters [12:09:46]wFMCommunicate request_size=4 [12:09:46]MH_SAM_APDU [12:09:46]CAPDU: 80 13 00 00 [12:09:46]Write to MH i2c: E2 08 00 AA 48 80 13 00 00 00 00 00 00 6E [12:09:46]Write i2c OK [12:09:46]MH_I2C_Read... [12:09:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:09:46]Read from MH i2c: E2 [12:09:46]MH_I2C_Read... [12:09:46]Read from MH i2c: E2 62 00 [12:09:46]MH_I2C_Read... [12:09:46]Read from MH i2c: E2 62 00 AA 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 F9 07 00 00 0E 04 04 00 0D 00 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 B9 [12:09:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 F9 07 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:09:46]wFMCommunicate OK [12:09:46]SAM_PROTO_GetFieldsCounters done [12:09:46]requested_item shift.num is exist - process it [12:09:46]requested_item shift.opened is exist - process it [12:09:46]req_shift_opened [12:09:46]FM_GetShiftState [12:09:46]SAM_PROTO_GetShiftState [12:09:46]wFMCommunicate request_size=4 [12:09:46]MH_SAM_APDU [12:09:46]CAPDU: 80 13 01 00 [12:09:46]Write to MH i2c: E2 08 00 AB 48 80 13 01 00 00 00 00 00 70 [12:09:46]Write i2c OK [12:09:46]MH_I2C_Read... [12:09:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:46]Read from MH i2c: E2 [12:09:46]MH_I2C_Read... [12:09:46]Read from MH i2c: E2 0E 00 [12:09:46]MH_I2C_Read... [12:09:46]Read from MH i2c: E2 0E 00 AB 48 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 64 [12:09:46]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [12:09:46]wFMCommunicate OK [12:09:46]SAM_PROTO_GetShiftState done [12:09:46]FM_GetShiftState done [12:09:46]req_shift_opened done [12:09:46]requested_item shift.open_date is exist - process it [12:09:46]req_shift_open_date [12:09:46]req_shift_open_date done [12:09:46]produce_requested_data done [12:09:46]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2041,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [12:09:46]process_action_free close_receipt [12:09:46]json_value_free [12:09:46]json_value_free done [12:09:46]process_json_proto returns [12:09:46]Send response to host [12:09:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2041,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [12:09:46]free response buf [12:09:46]execute_script done [12:09:46]execute_script returns [12:09:46]free content buf [12:09:46]Sock 8.Close socket [12:09:46]Sock 8.Thread stoped [12:09:50]OFD Sender: No OFD packet to send [12:09:55]OFD Sender: No OFD packet to send [12:10:00]OFD Sender: No OFD packet to send [12:10:05]OFD Sender: No OFD packet to send [12:10:10]OFD Sender: No OFD packet to send [12:10:15]OFD Sender: No OFD packet to send [12:10:20]OFD Sender: No OFD packet to send [12:10:25]OFD Sender: No OFD packet to send [12:10:30]OFD Sender: No OFD packet to send [12:10:35]OFD Sender: No OFD packet to send [12:10:40]OFD Sender: No OFD packet to send [12:10:45]OFD Sender: No OFD packet to send [12:10:50]OFD Sender: No OFD packet to send [12:10:55]OFD Sender: No OFD packet to send [12:11:00]OFD Sender: No OFD packet to send [12:11:05]OFD Sender: No OFD packet to send [12:11:10]OFD Sender: No OFD packet to send [12:11:15]OFD Sender: No OFD packet to send [12:11:20]OFD Sender: No OFD packet to send [12:11:25]OFD Sender: No OFD packet to send [12:11:30]OFD Sender: No OFD packet to send [12:11:35]OFD Sender: No OFD packet to send [12:11:40]OFD Sender: No OFD packet to send [12:11:45]OFD Sender: No OFD packet to send [12:11:50]OFD Sender: No OFD packet to send [12:11:55]OFD Sender: No OFD packet to send [12:12:00]OFD Sender: No OFD packet to send [12:12:03]accept exits with 9 [12:12:03]New connection [12:12:03]New thread 3067317604 created [12:12:03]Thread 3067460964 joined [12:12:03]Waiting for new connection... [12:12:03] Sock 9.Parse request [12:12:03]Sock 9.Check first char [12:12:03]Sock 9.First char is OK [12:12:03]request: POST /json_proto HTTP/1.0 [12:12:03]Method: POST [12:12:03]URL: /json_proto [12:12:03]Method is POST - this is cgi request [12:12:03]url: /json_proto [12:12:03]query_string will be loaded in cgi processing [12:12:03]execute_cgi json_proto POST (null) [12:12:03]execute_cgi path=json_proto method=POST [12:12:03]POST find Content-Length [12:12:03]Host: 172.17.45.132:8080 [12:12:03]Content-Length: 777 [12:12:03]Content-Type: application/json [12:12:03] [12:12:03]POST finish read [12:12:03]Found Content-Length = 777 [12:12:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126345", "tax_sys" : 0, "items" : [ { "code": "4640030091584", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Esse Gold", "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" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:12:03]execute_script... [12:12: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)126345", "tax_sys" : 0, "items" : [ { "code": "4640030091584", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Esse Gold", "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" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:12:03]POST & json_proto [12:12:03]process_json_proto [12:12:03]json parsed OK: [12:12:03]protocol is kg_v1.0 [12:12:03]action value=close_receipt [12:12:03]process_action close_receipt [12:12:03]cmd_close_receipt [12:12:03]MH_GetDate [12:12:03]Write to MH i2c: F0 00 00 AC 48 E3 [12:12:03]Write i2c OK [12:12:03]MH_I2C_Read... [12:12:03]Read from MH i2c: F0 [12:12:03]MH_I2C_Read... [12:12:03]Read from MH i2c: F0 09 00 [12:12:03]MH_I2C_Read... [12:12:03]Read from MH i2c: F0 09 00 AC 48 00 99 35 A6 66 E3 0B 90 66 AA [12:12:03]GetLastDocTimeStamp 1722168588 [12:12:03]current date 1722168729 [12:12:03]FM_GetShiftState [12:12:03]SAM_PROTO_GetShiftState [12:12:03]wFMCommunicate request_size=4 [12:12:03]MH_SAM_APDU [12:12:03]CAPDU: 80 13 01 00 [12:12:03]Write to MH i2c: E2 08 00 AD 48 80 13 01 00 00 00 00 00 72 [12:12:03]Write i2c OK [12:12:03]MH_I2C_Read... [12:12:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:12:03]Read from MH i2c: E2 [12:12:03]MH_I2C_Read... [12:12:03]Read from MH i2c: E2 0E 00 [12:12:03]MH_I2C_Read... [12:12:03]Read from MH i2c: E2 0E 00 AD 48 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 66 [12:12:03]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [12:12:03]wFMCommunicate OK [12:12:03]SAM_PROTO_GetShiftState done [12:12:03]FM_GetShiftState done [12:12:03]opened in 1722125648 [12:12:03]opened+sec_in_day 1722212048 [12:12:03]quantity*price = 15500 [12:12:03]sum+1 = 15501 [12:12:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 155.00 НСП 1% : 1.37 НДС 12% : 16.46 Наличными: 0.00 Безнал.: 155.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 93 28.07.2024 12:12 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2042 ФПД: 201828338098909 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T121209&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2042&fm=201828338098909&tin=02508201610067®Number=0000000000189667&sum=15500 0 [12:12:05]StoreToDocumentArchive [12:12:05]shift 13 fd 2042 [12:12:05]save to /storage/0013/doc_00002042 [12:12:05]save last doc name /storage/0013/doc_00002042 to /storage/kkm_last_doc_name [12:12:05]save OK [12:12:05]Clear old archive folders... [12:12:05]ProcessDocumentItem done err = 0, tmpTLVsize=268 [12:12:05]tlvbuf is 020B7660 [12:12:05]SAM_PROTO_ClearQueue [12:12:05]wFMCommunicate request_size=4 [12:12:05]MH_SAM_APDU [12:12:05]CAPDU: 80 09 00 00 [12:12:05]Write to MH i2c: E2 08 00 BA 48 80 09 00 00 00 00 00 00 74 [12:12:05]Write i2c OK [12:12:05]MH_I2C_Read... [12:12:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:12:05]Read from MH i2c: E2 [12:12:05]MH_I2C_Read... [12:12:05]Read from MH i2c: E2 03 00 [12:12:05]MH_I2C_Read... [12:12:05]Read from MH i2c: E2 03 00 BA 48 00 90 00 76 [12:12:05]RAPDU: 90 00 [12:12:05]wFMCommunicate OK [12:12:05]SAM_PROTO_ClearQueue done [12:12:05]KKMCreateOFDPacket [12:12:05]OFDProtocolAddRootSTLVToBuf [12:12:05]FM_MakeSignedData [12:12:05]FM_MakeSignedData [12:12:05]SAM_PROTO_SignData [12:12:05]wFMCommunicate request_size=4 [12:12:05]MH_SAM_APDU [12:12:05]CAPDU: 80 0D 01 02 [12:12:05]Write to MH i2c: E2 08 00 BB 48 80 0D 01 02 00 00 00 00 7C [12:12:05]Write i2c OK [12:12:05]MH_I2C_Read... [12:12:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:12:05]Read from MH i2c: E2 [12:12:05]MH_I2C_Read... [12:12:05]Read from MH i2c: E2 03 00 [12:12:05]MH_I2C_Read... [12:12:05]Read from MH i2c: E2 03 00 BB 48 00 90 00 77 [12:12:05]RAPDU: 90 00 [12:12:05]wFMCommunicate OK [12:12:05]wFMCommunicate request_size=255 [12:12:05]MH_SAM_APDU [12:12:05]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 35 38 34 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 47 6F 6C 64 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 00 00 00 00 00 00 39 04 06 00 8C 3C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 99 35 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 [12:12:05]Write to MH i2c: E2 02 01 BC 48 80 0D 02 02 FA 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 35 38 34 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 47 6F 6C 64 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 00 00 00 00 00 00 39 04 06 00 8C 3C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 99 35 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 00 00 EB [12:12:05]Write i2c OK [12:12:05]MH_I2C_Read... [12:12:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:12:05]Read from MH i2c: E2 [12:12:05]MH_I2C_Read... [12:12:05]Read from MH i2c: E2 03 00 [12:12:05]MH_I2C_Read... [12:12:05]Read from MH i2c: E2 03 00 BC 48 00 90 00 78 [12:12:05]RAPDU: 90 00 [12:12:05]wFMCommunicate OK [12:12:05]wFMCommunicate request_size=27 [12:12:05]MH_SAM_APDU [12:12:05]CAPDU: 80 0D 02 02 16 34 32 34 38 10 04 04 00 FA 07 00 00 35 04 06 00 B7 8F D2 65 E2 DD [12:12:05]Write to MH i2c: E2 1E 00 BD 48 80 0D 02 02 16 00 34 32 34 38 10 04 04 00 FA 07 00 00 35 04 06 00 B7 8F D2 65 E2 DD 00 00 11 [12:12:05]Write i2c OK [12:12:05]MH_I2C_Read... [12:12:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:12:05]Read from MH i2c: E2 [12:12:05]MH_I2C_Read... [12:12:05]Read from MH i2c: E2 03 00 [12:12:05]MH_I2C_Read... [12:12:05]Read from MH i2c: E2 03 00 BD 48 00 90 00 79 [12:12:05]RAPDU: 90 00 [12:12:05]wFMCommunicate OK [12:12:05]wFMCommunicate request_size=4 [12:12:05]MH_SAM_APDU [12:12:05]CAPDU: 80 0D 03 02 [12:12:05]Write to MH i2c: E2 08 00 BE 48 80 0D 03 02 00 00 00 00 81 [12:12:05]Write i2c OK [12:12:05]MH_I2C_Read... [12:12:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:12:05]Read from MH i2c: E2 [12:12:05]MH_I2C_Read... [12:12:05]Read from MH i2c: E2 0B 00 [12:12:05]MH_I2C_Read... [12:12:05]Read from MH i2c: E2 0B 00 BE 48 00 F1 94 AA BC 15 B7 22 CE 90 00 29 [12:12:05]RAPDU: F1 94 AA BC 15 B7 22 CE 90 00 [12:12:05]wFMCommunicate OK [12:12:05]SAM_PROTO_SignData done [12:12:05]FM_MakeSignedData done [12:12:05]CreateOFDProtocolMessage [12:12:05]wFMCommunicate request_size=4 [12:12:05]MH_SAM_APDU [12:12:05]CAPDU: 80 11 00 00 [12:12:05]Write to MH i2c: E2 08 00 BF 48 80 11 00 00 00 00 00 00 81 [12:12:05]Write i2c OK [12:12:05]MH_I2C_Read... [12:12:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:12:05]Read from MH i2c: E2 [12:12:05]MH_I2C_Read... [12:12:05]Read from MH i2c: E2 17 00 [12:12:05]MH_I2C_Read... [12:12:05]Read from MH i2c: E2 17 00 BF 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 D1 [12:12:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [12:12:05]wFMCommunicate OK [12:12:05]CreateOFDProtocolMessage done [12:12:05]OFDSenderStorePacket 2042 [12:12:05]StoreOFDPacket docnum=2042 [12:12:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 20 01 00 00 AD C8 18 01 30 AD 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 35 38 34 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 47 6F 6C 64 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 00 00 00 00 00 00 39 04 06 00 8C 3C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 99 35 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 FA 07 00 00 35 04 06 00 B7 8F D2 65 E2 DD F1 94 AA BC 15 B7 22 CE [12:12:05]CheckFolder [12:12:05]dirname=/storage/ofd_packets [12:12:05]CheckFolder done [12:12:05]ProducePacketName [12:12:05]name=ofd_packets/00002042 [12:12:05]NVStorageSaveData ofd_packets/00002042 [12:12:05]File name is /storage/ofd_packets/00002042 [12:12:05]Write 318 bytes [12:12:05]NVStorageSaveData done [12:12:05]OFDSenderStorePacket done [12:12:05]KKMCreateOFDPacket done [12:12:05]NVStorageSaveData kkm_last_timestamp [12:12:05]File name is /storage/kkm_last_timestamp [12:12:05]Write 4 bytes [12:12:05]NVStorageSaveData done [12:12:05]ExternCall_PrintAddStr [12:12:05]wPrintStart [12:12:05]Write to MH i2c: 01 00 00 C0 48 08 [12:12:05]Write i2c OK [12:12:05]MH_I2C_Read... [12:12:05]Read from MH i2c: 01 [12:12:05]MH_I2C_Read... [12:12:05]Read from MH i2c: 01 07 00 [12:12:05]MH_I2C_Read... [12:12:05]Read from MH i2c: 01 07 00 C0 48 00 00 00 00 00 FF 0F 1D [12:12:05]RasterBufferAndPrint [12:12:05]line Счет N : (3)126345 [12:12:05]line ИНН: 02508201610067 [12:12:05]line Контрольно-Кассовый Чек [12:12:05]line ПРОДАЖА [12:12:05]line Товар: 4640030091584 [12:12:05]line Сигареты Esse Gold [12:12:05]line 1.000 * 155.00 [12:12:05]line = 155.00 [12:12:05]line НДС 12% НСП 1% [12:12:05]line > о реализуемом товаре [12:12:05]line ИТОГО: 155.00 [12:12:05]line НСП 1% : 1.37 [12:12:05]line НДС 12% : 16.46 [12:12:05]line Наличными: 0.00 [12:12:05]line Безнал.: 155.00 [12:12:05]line Место: АЗС № 127 "Партнер Нефть" [12:12:05]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [12:12:05]line СНО: Общий режим [12:12:05]line Чек 93 28.07.2024 12:12 [12:12:05]line Смена: 13 ФФД: 1.0 [12:12:05]line ЗНМ: 0300000161 [12:12:05]line РНМ: 0000000000189667 [12:12:05]line Версия ККМ: v1.0 [12:12:05]line Платежная система: O! деньги [12:12:05]line ФМ: 0000000002094248 [12:12:05]line ФД: 2042 [12:12:05]line ФПД: 201828338098909 [12:12:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T121209&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2042&fm=201828338098909&tin=02508201610067®Number=0000000000189667&sum=15500 [12:12:05]line 0 [12:12:05]OFD Sender: Processing packet 2042 [packets to send 1, broken 0] [12:12:05]ProducePacketName [12:12:05]name=ofd_packets/00002042 [12:12:05]OFD Sender: To server: pG, [12:12:05]CommunicateWithHost lk.salyk.kg:30040 [12:12:05]ConnectInit lk.salyk.kg [12:12:05]written 0, free lines is 4095 [12:12:06]Connected sock=10 [12:12:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 20 01 00 00 AD C8 18 01 30 AD 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 35 38 34 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 47 6F 6C 64 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 00 00 00 00 00 00 39 04 06 00 8C 3C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 99 35 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 FA 07 00 00 35 04 06 00 B7 8F D2 65 E2 DD F1 94 AA BC 15 B7 22 CE [12:12:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 BE FD 47 00 EF CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 FA 07 00 00 F4 03 04 00 09 E1 A5 66 B6 04 01 00 00 7A 41 3A A2 FF 75 93 5F [12:12:06]CommunicateWithHost err = 0 [12:12:06]CheckOFDResponse [12:12:06]1017 (14) - 77093643461234 [12:12:06]1041 (16) - 0000000002094248 [12:12:06]1040 (4) - 2042 [12:12:06]1012 (4) - 28.07.2024 06:11 [12:12:06]1206 (1) - 0 [12:12:06]OFD Sender: Remove packet 2042 [12:12:06]ProducePacketName [12:12:06]name=ofd_packets/00002042 [12:12:06]NVStorageDeleteData [12:12:06]Write to MH i2c: 01 00 00 EA 48 32 [12:12:06]Write i2c OK [12:12:06]MH_I2C_Read... [12:12:06]Read from MH i2c: 01 [12:12:06]MH_I2C_Read... [12:12:06]Read from MH i2c: 01 07 00 [12:12:06]MH_I2C_Read... [12:12:06]Read from MH i2c: 01 07 00 EA 48 00 00 00 00 00 F6 0C 3B [12:12:06]RasterBufferAndPrint [12:12:06]line [12:12:06]line [12:12:06]line [12:12:06]line [12:12:06]line [12:12:06]written 0, free lines is 3325 [12:12:06]MH_Cut [12:12:06]Write to MH i2c: D1 01 00 F1 48 01 0B [12:12:06]Write i2c OK [12:12:06]MH_I2C_Read... [12:12:06]Read from MH i2c: D1 [12:12:06]MH_I2C_Read... [12:12:06]Read from MH i2c: D1 01 00 [12:12:06]MH_I2C_Read... [12:12:06]Read from MH i2c: D1 01 00 F1 48 00 0A [12:12:06]Write to MH i2c: 01 00 00 F2 48 3A [12:12:06]Write i2c OK [12:12:06]MH_I2C_Read... [12:12:06]OFD Sender: No OFD packet to send [12:12:06]*** Cut start [12:12:06]*** Partial cut [12:12:06]*** CUTSNS_PIN = 1 [12:12:07]*** CUTSNS_PIN = 0 [12:12:07]*** Brake cut motor [12:12:07]Read from MH i2c: 01 [12:12:07]MH_I2C_Read... [12:12:07]*** Stop cut motor [12:12:07]*** Cut end [12:12:07]Read from MH i2c: 01 07 00 [12:12:07]MH_I2C_Read... [12:12:07]Read from MH i2c: 01 07 00 F2 48 00 00 00 00 00 FF 0F 4F [12:12:07]process_action close_receipt done [12:12:07]requested_data is exist [12:12:07]produce_requested_data [12:12:07]requested_item fm.sn is exist - process it [12:12:07]wFMCommunicate request_size=4 [12:12:07]MH_SAM_APDU [12:12:07]CAPDU: 80 11 00 00 [12:12:07]Write to MH i2c: E2 08 00 F3 48 80 11 00 00 00 00 00 00 B5 [12:12:07]Write i2c OK [12:12:07]MH_I2C_Read... [12:12:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:12:07]Read from MH i2c: E2 [12:12:07]MH_I2C_Read... [12:12:07]Read from MH i2c: E2 17 00 [12:12:07]MH_I2C_Read... [12:12:07]Read from MH i2c: E2 17 00 F3 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 05 [12:12:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [12:12:07]wFMCommunicate OK [12:12:07]requested_item fd.num is exist - process it [12:12:07]SAM_PROTO_GetFieldsCounters [12:12:07]wFMCommunicate request_size=4 [12:12:07]MH_SAM_APDU [12:12:07]CAPDU: 80 13 00 00 [12:12:07]Write to MH i2c: E2 08 00 F4 48 80 13 00 00 00 00 00 00 B8 [12:12:07]Write i2c OK [12:12:07]MH_I2C_Read... [12:12:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:12:07]Read from MH i2c: E2 [12:12:07]MH_I2C_Read... [12:12:07]Read from MH i2c: E2 62 00 [12:12:07]MH_I2C_Read... [12:12:07]Read from MH i2c: E2 62 00 F4 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 FA 07 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 07 [12:12:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 FA 07 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:12:07]wFMCommunicate OK [12:12:07]SAM_PROTO_GetFieldsCounters done [12:12:07]requested_item shift.num is exist - process it [12:12:07]requested_item shift.opened is exist - process it [12:12:07]req_shift_opened [12:12:07]FM_GetShiftState [12:12:07]SAM_PROTO_GetShiftState [12:12:07]wFMCommunicate request_size=4 [12:12:07]MH_SAM_APDU [12:12:07]CAPDU: 80 13 01 00 [12:12:07]Write to MH i2c: E2 08 00 F5 48 80 13 01 00 00 00 00 00 BA [12:12:07]Write i2c OK [12:12:07]MH_I2C_Read... [12:12:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:12:07]Read from MH i2c: E2 [12:12:07]MH_I2C_Read... [12:12:07]Read from MH i2c: E2 0E 00 [12:12:07]MH_I2C_Read... [12:12:07]Read from MH i2c: E2 0E 00 F5 48 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 AE [12:12:07]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [12:12:07]wFMCommunicate OK [12:12:07]SAM_PROTO_GetShiftState done [12:12:07]FM_GetShiftState done [12:12:07]req_shift_opened done [12:12:07]requested_item shift.open_date is exist - process it [12:12:07]req_shift_open_date [12:12:07]req_shift_open_date done [12:12:07]produce_requested_data done [12:12:07]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2042,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [12:12:07]process_action_free close_receipt [12:12:07]json_value_free [12:12:07]json_value_free done [12:12:07]process_json_proto returns [12:12:07]Send response to host [12:12:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2042,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [12:12:07]free response buf [12:12:07]execute_script done [12:12:07]execute_script returns [12:12:07]free content buf [12:12:07]Sock 9.Close socket [12:12:07]Sock 9.Thread stoped [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:21:59]accept exits with 8 [12:21:59]New connection [12:21:59]New thread 3067460964 created [12:21:59]Thread 3067317604 joined [12:21:59]Waiting for new connection... [12:21:59] Sock 8.Parse request [12:21:59]Sock 8.Check first char [12:21:59]Sock 8.First char is OK [12:21:59]request: POST /json_proto HTTP/1.0 [12:21:59]Method: POST [12:21:59]URL: /json_proto [12:21:59]Method is POST - this is cgi request [12:21:59]url: /json_proto [12:21:59]query_string will be loaded in cgi processing [12:21:59]execute_cgi json_proto POST (null) [12:21:59]execute_cgi path=json_proto method=POST [12:21:59]POST find Content-Length [12:21:59]Host: 172.17.45.132:8080 [12:21:59]Content-Length: 667 [12:21:59]Content-Type: application/json [12:21:59] [12:21:59]POST finish read [12:21:59]Found Content-Length = 667 [12:21:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126346", "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 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:21:59]execute_script... [12:21: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)126346", "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 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:21:59]POST & json_proto [12:21:59]process_json_proto [12:21:59]json parsed OK: [12:21:59]protocol is kg_v1.0 [12:21:59]action value=close_receipt [12:21:59]process_action close_receipt [12:21:59]cmd_close_receipt [12:21:59]MH_GetDate [12:21:59]Write to MH i2c: F0 00 00 F6 48 2D [12:21:59]Write i2c OK [12:21:59]MH_I2C_Read... [12:21:59]Read from MH i2c: F0 [12:21:59]MH_I2C_Read... [12:21:59]Read from MH i2c: F0 09 00 [12:21:59]MH_I2C_Read... [12:21:59]Read from MH i2c: F0 09 00 F6 48 00 ED 37 A6 66 E3 0B 90 66 4A [12:21:59]GetLastDocTimeStamp 1722168729 [12:21:59]current date 1722169325 [12:21:59]FM_GetShiftState [12:21:59]SAM_PROTO_GetShiftState [12:21:59]wFMCommunicate request_size=4 [12:21:59]MH_SAM_APDU [12:21:59]CAPDU: 80 13 01 00 [12:21:59]Write to MH i2c: E2 08 00 F7 48 80 13 01 00 00 00 00 00 BC [12:21:59]Write i2c OK [12:21:59]MH_I2C_Read... [12:21:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:59]Read from MH i2c: E2 [12:21:59]MH_I2C_Read... [12:21:59]Read from MH i2c: E2 0E 00 [12:21:59]MH_I2C_Read... [12:21:59]Read from MH i2c: E2 0E 00 F7 48 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 B0 [12:21:59]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [12:21:59]wFMCommunicate OK [12:21:59]SAM_PROTO_GetShiftState done [12:21:59]FM_GetShiftState done [12:21:59]opened in 1722125648 [12:21:59]opened+sec_in_day 1722212048 [12:21:59]quantity*price = 13000 [12:21:59]sum+1 = 13001 [12:21:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 94 28.07.2024 12:22 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2043 ФПД: 28351832419231 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T122205&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2043&fm=28351832419231&tin=02508201610067®Number=0000000000189667&sum=13000 0 [12:22:01]StoreToDocumentArchive [12:22:01]shift 13 fd 2043 [12:22:01]save to /storage/0013/doc_00002043 [12:22:01]save last doc name /storage/0013/doc_00002043 to /storage/kkm_last_doc_name [12:22:01]save OK [12:22:01]Clear old archive folders... [12:22:01]ProcessDocumentItem done err = 0, tmpTLVsize=295 [12:22:01]tlvbuf is 020B7500 [12:22:01]SAM_PROTO_ClearQueue [12:22:01]wFMCommunicate request_size=4 [12:22:01]MH_SAM_APDU [12:22:01]CAPDU: 80 09 00 00 [12:22:01]Write to MH i2c: E2 08 00 04 49 80 09 00 00 00 00 00 00 BF [12:22:01]Write i2c OK [12:22:01]MH_I2C_Read... [12:22:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:22:01]Read from MH i2c: E2 [12:22:01]MH_I2C_Read... [12:22:01]Read from MH i2c: E2 03 00 [12:22:01]MH_I2C_Read... [12:22:01]Read from MH i2c: E2 03 00 04 49 00 90 00 C1 [12:22:01]RAPDU: 90 00 [12:22:01]wFMCommunicate OK [12:22:01]SAM_PROTO_ClearQueue done [12:22:01]KKMCreateOFDPacket [12:22:01]OFDProtocolAddRootSTLVToBuf [12:22:01]FM_MakeSignedData [12:22:01]FM_MakeSignedData [12:22:01]SAM_PROTO_SignData [12:22:01]wFMCommunicate request_size=4 [12:22:01]MH_SAM_APDU [12:22:01]CAPDU: 80 0D 01 02 [12:22:01]Write to MH i2c: E2 08 00 05 49 80 0D 01 02 00 00 00 00 C7 [12:22:01]Write i2c OK [12:22:01]MH_I2C_Read... [12:22:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:22:01]Read from MH i2c: E2 [12:22:01]MH_I2C_Read... [12:22:01]Read from MH i2c: E2 03 00 [12:22:01]MH_I2C_Read... [12:22:01]Read from MH i2c: E2 03 00 05 49 00 90 00 C2 [12:22:01]RAPDU: 90 00 [12:22:01]wFMCommunicate OK [12:22:01]wFMCommunicate request_size=255 [12:22:01]MH_SAM_APDU [12:22:01]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 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 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 5E 00 00 00 F4 03 04 00 ED 37 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 [12:22:01]Write to MH i2c: E2 02 01 06 49 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 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 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 5E 00 00 00 F4 03 04 00 ED 37 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 00 00 1A [12:22:01]Write i2c OK [12:22:01]MH_I2C_Read... [12:22:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:01]Read from MH i2c: E2 [12:22:01]MH_I2C_Read... [12:22:01]Read from MH i2c: E2 03 00 [12:22:01]MH_I2C_Read... [12:22:01]Read from MH i2c: E2 03 00 06 49 00 90 00 C3 [12:22:01]RAPDU: 90 00 [12:22:01]wFMCommunicate OK [12:22:01]wFMCommunicate request_size=54 [12:22:01]MH_SAM_APDU [12:22:01]CAPDU: 80 0D 02 02 31 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 FB 07 00 00 35 04 06 00 19 C9 2C E6 6B 9F [12:22:01]Write to MH i2c: E2 39 00 07 49 80 0D 02 02 31 00 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 FB 07 00 00 35 04 06 00 19 C9 2C E6 6B 9F 00 00 FA [12:22:01]Write i2c OK [12:22:01]MH_I2C_Read... [12:22:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:01]Read from MH i2c: E2 [12:22:01]MH_I2C_Read... [12:22:01]Read from MH i2c: E2 03 00 [12:22:01]MH_I2C_Read... [12:22:01]Read from MH i2c: E2 03 00 07 49 00 90 00 C4 [12:22:01]RAPDU: 90 00 [12:22:01]wFMCommunicate OK [12:22:01]wFMCommunicate request_size=4 [12:22:01]MH_SAM_APDU [12:22:01]CAPDU: 80 0D 03 02 [12:22:01]Write to MH i2c: E2 08 00 08 49 80 0D 03 02 00 00 00 00 CC [12:22:01]Write i2c OK [12:22:01]MH_I2C_Read... [12:22:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:22:01]Read from MH i2c: E2 [12:22:01]MH_I2C_Read... [12:22:01]Read from MH i2c: E2 0B 00 [12:22:01]MH_I2C_Read... [12:22:01]Read from MH i2c: E2 0B 00 08 49 00 02 08 12 AC 94 76 28 17 90 00 DE [12:22:01]RAPDU: 02 08 12 AC 94 76 28 17 90 00 [12:22:01]wFMCommunicate OK [12:22:01]SAM_PROTO_SignData done [12:22:01]FM_MakeSignedData done [12:22:01]CreateOFDProtocolMessage [12:22:01]wFMCommunicate request_size=4 [12:22:01]MH_SAM_APDU [12:22:01]CAPDU: 80 11 00 00 [12:22:01]Write to MH i2c: E2 08 00 09 49 80 11 00 00 00 00 00 00 CC [12:22:01]Write i2c OK [12:22:01]MH_I2C_Read... [12:22:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:01]Read from MH i2c: E2 [12:22:01]MH_I2C_Read... [12:22:01]Read from MH i2c: E2 17 00 [12:22:01]MH_I2C_Read... [12:22:01]Read from MH i2c: E2 17 00 09 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 1C [12:22:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [12:22:01]wFMCommunicate OK [12:22:01]CreateOFDProtocolMessage done [12:22:01]OFDSenderStorePacket 2043 [12:22:01]StoreOFDPacket docnum=2043 [12:22:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 3B 01 00 00 25 43 33 01 D5 B6 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 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 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 5E 00 00 00 F4 03 04 00 ED 37 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 FB 07 00 00 35 04 06 00 19 C9 2C E6 6B 9F 02 08 12 AC 94 76 28 17 [12:22:01]CheckFolder [12:22:01]dirname=/storage/ofd_packets [12:22:01]CheckFolder done [12:22:01]ProducePacketName [12:22:01]name=ofd_packets/00002043 [12:22:01]NVStorageSaveData ofd_packets/00002043 [12:22:01]File name is /storage/ofd_packets/00002043 [12:22:01]Write 345 bytes [12:22:01]NVStorageSaveData done [12:22:01]OFDSenderStorePacket done [12:22:01]KKMCreateOFDPacket done [12:22:01]NVStorageSaveData kkm_last_timestamp [12:22:01]File name is /storage/kkm_last_timestamp [12:22:01]Write 4 bytes [12:22:01]NVStorageSaveData done [12:22:01]ExternCall_PrintAddStr [12:22:01]wPrintStart [12:22:01]Write to MH i2c: 01 00 00 0A 49 53 [12:22:01]Write i2c OK [12:22:01]MH_I2C_Read... [12:22:01]Read from MH i2c: 01 [12:22:01]MH_I2C_Read... [12:22:01]Read from MH i2c: 01 07 00 [12:22:01]MH_I2C_Read... [12:22:01]Read from MH i2c: 01 07 00 0A 49 00 00 00 00 00 FF 0F 68 [12:22:01]RasterBufferAndPrint [12:22:01]line Счет N : (3)126346 [12:22:01]line ИНН: 02508201610067 [12:22:01]line Контрольно-Кассовый Чек [12:22:01]line ПРОДАЖА [12:22:01]line Товар: 4870002329937 [12:22:01]line Напиток Lipton IceTea 1л персик Regular [12:22:01]line 1.000 * 130.00 [12:22:01]line = 130.00 [12:22:01]line НДС 12% НСП 1% [12:22:01]line > о реализуемом товаре [12:22:01]line ИТОГО: 130.00 [12:22:01]line НСП 1% : 1.15 [12:22:01]line НДС 12% : 13.80 [12:22:01]line Наличными: 130.00 [12:22:01]line Безнал.: 0.00 [12:22:01]line Место: АЗС № 127 "Партнер Нефть" [12:22:01]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [12:22:01]line СНО: Общий режим [12:22:01]line Чек 94 28.07.2024 12:22 [12:22:01]line Смена: 13 ФФД: 1.0 [12:22:01]line ЗНМ: 0300000161 [12:22:01]line РНМ: 0000000000189667 [12:22:01]line Версия ККМ: v1.0 [12:22:01]line ФМ: 0000000002094248 [12:22:01]line ФД: 2043 [12:22:01]line ФПД: 28351832419231 [12:22:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T122205&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2043&fm=28351832419231&tin=02508201610067®Number=0000000000189667&sum=13000 [12:22:01]line 0 [12:22:01]OFD Sender: Processing packet 2043 [packets to send 1, broken 0] [12:22:01]ProducePacketName [12:22:01]name=ofd_packets/00002043 [12:22:01]OFD Sender: To server: pG, [12:22:01]CommunicateWithHost lk.salyk.kg:30040 [12:22:01]ConnectInit lk.salyk.kg [12:22:01]written 0, free lines is 4095 [12:22:02]Connected sock=10 [12:22:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 3B 01 00 00 25 43 33 01 D5 B6 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 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 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 5E 00 00 00 F4 03 04 00 ED 37 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 FB 07 00 00 35 04 06 00 19 C9 2C E6 6B 9F 02 08 12 AC 94 76 28 17 [12:22:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 79 99 47 00 4D 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 FB 07 00 00 F4 03 04 00 5D E3 A5 66 B6 04 01 00 00 D5 1C 8D 31 8F 6D 48 AB [12:22:02]CommunicateWithHost err = 0 [12:22:02]CheckOFDResponse [12:22:02]1017 (14) - 77093643461234 [12:22:02]1041 (16) - 0000000002094248 [12:22:02]1040 (4) - 2043 [12:22:02]1012 (4) - 28.07.2024 06:21 [12:22:02]1206 (1) - 0 [12:22:02]OFD Sender: Remove packet 2043 [12:22:02]ProducePacketName [12:22:02]name=ofd_packets/00002043 [12:22:02]NVStorageDeleteData [12:22:02]Write to MH i2c: 01 00 00 33 49 7C [12:22:02]Write i2c OK [12:22:02]MH_I2C_Read... [12:22:02]Read from MH i2c: 01 [12:22:02]MH_I2C_Read... [12:22:02]Read from MH i2c: 01 07 00 [12:22:02]MH_I2C_Read... [12:22:02]Read from MH i2c: 01 07 00 33 49 00 00 00 00 00 09 0D 99 [12:22:02]RasterBufferAndPrint [12:22:02]line [12:22:02]line [12:22:02]line [12:22:02]line [12:22:02]line [12:22:02]written 0, free lines is 3343 [12:22:02]MH_Cut [12:22:02]Write to MH i2c: D1 01 00 3A 49 01 55 [12:22:02]Write i2c OK [12:22:02]MH_I2C_Read... [12:22:02]Read from MH i2c: D1 [12:22:02]MH_I2C_Read... [12:22:02]Read from MH i2c: D1 01 00 [12:22:02]MH_I2C_Read... [12:22:02]Read from MH i2c: D1 01 00 3A 49 00 54 [12:22:02]Write to MH i2c: 01 00 00 3B 49 84 [12:22:02]Write i2c OK [12:22:02]MH_I2C_Read... [12:22:02]OFD Sender: No OFD packet to send [12:22:02]*** Cut start [12:22:02]*** Partial cut [12:22:02]*** CUTSNS_PIN = 1 [12:22:03]*** CUTSNS_PIN = 0 [12:22:03]*** Brake cut motor [12:22:03]Read from MH i2c: 01 [12:22:03]MH_I2C_Read... [12:22:03]*** Stop cut motor [12:22:03]*** Cut end [12:22:03]Read from MH i2c: 01 07 00 [12:22:03]MH_I2C_Read... [12:22:03]Read from MH i2c: 01 07 00 3B 49 00 00 00 00 00 FF 0F 99 [12:22:03]process_action close_receipt done [12:22:03]requested_data is exist [12:22:03]produce_requested_data [12:22:03]requested_item fm.sn is exist - process it [12:22:03]wFMCommunicate request_size=4 [12:22:03]MH_SAM_APDU [12:22:03]CAPDU: 80 11 00 00 [12:22:03]Write to MH i2c: E2 08 00 3C 49 80 11 00 00 00 00 00 00 FF [12:22:03]Write i2c OK [12:22:03]MH_I2C_Read... [12:22:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:03]Read from MH i2c: E2 [12:22:03]MH_I2C_Read... [12:22:03]Read from MH i2c: E2 17 00 [12:22:03]MH_I2C_Read... [12:22:03]Read from MH i2c: E2 17 00 3C 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 4F [12:22:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [12:22:03]wFMCommunicate OK [12:22:03]requested_item fd.num is exist - process it [12:22:03]SAM_PROTO_GetFieldsCounters [12:22:03]wFMCommunicate request_size=4 [12:22:03]MH_SAM_APDU [12:22:03]CAPDU: 80 13 00 00 [12:22:03]Write to MH i2c: E2 08 00 3D 49 80 13 00 00 00 00 00 00 02 [12:22:03]Write i2c OK [12:22:03]MH_I2C_Read... [12:22:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:22:03]Read from MH i2c: E2 [12:22:03]MH_I2C_Read... [12:22:03]Read from MH i2c: E2 62 00 [12:22:03]MH_I2C_Read... [12:22:03]Read from MH i2c: E2 62 00 3D 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 FB 07 00 00 0E 04 04 00 0D 00 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 55 [12:22:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 FB 07 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:22:03]wFMCommunicate OK [12:22:03]SAM_PROTO_GetFieldsCounters done [12:22:03]requested_item shift.num is exist - process it [12:22:03]requested_item shift.opened is exist - process it [12:22:03]req_shift_opened [12:22:03]FM_GetShiftState [12:22:03]SAM_PROTO_GetShiftState [12:22:03]wFMCommunicate request_size=4 [12:22:03]MH_SAM_APDU [12:22:03]CAPDU: 80 13 01 00 [12:22:03]Write to MH i2c: E2 08 00 3E 49 80 13 01 00 00 00 00 00 04 [12:22:03]Write i2c OK [12:22:03]MH_I2C_Read... [12:22:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:03]Read from MH i2c: E2 [12:22:03]MH_I2C_Read... [12:22:03]Read from MH i2c: E2 0E 00 [12:22:03]MH_I2C_Read... [12:22:03]Read from MH i2c: E2 0E 00 3E 49 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 F8 [12:22:03]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [12:22:03]wFMCommunicate OK [12:22:03]SAM_PROTO_GetShiftState done [12:22:03]FM_GetShiftState done [12:22:03]req_shift_opened done [12:22:03]requested_item shift.open_date is exist - process it [12:22:03]req_shift_open_date [12:22:03]req_shift_open_date done [12:22:03]produce_requested_data done [12:22:03]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2043,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [12:22:03]process_action_free close_receipt [12:22:03]json_value_free [12:22:03]json_value_free done [12:22:03]process_json_proto returns [12:22:03]Send response to host [12:22:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2043,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [12:22:03]free response buf [12:22:03]execute_script done [12:22:03]execute_script returns [12:22:03]free content buf [12:22:03]Sock 8.Close socket [12:22:03]Sock 8.Thread stoped [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:39]accept exits with 9 [12:24:39]New connection [12:24:39]New thread 3067317604 created [12:24:39]Thread 3067460964 joined [12:24:39]Waiting for new connection... [12:24:39] Sock 9.Parse request [12:24:39]Sock 9.Check first char [12:24:39]Sock 9.First char is OK [12:24:39]request: POST /json_proto HTTP/1.0 [12:24:39]Method: POST [12:24:39]URL: /json_proto [12:24:39]Method is POST - this is cgi request [12:24:39]url: /json_proto [12:24:39]query_string will be loaded in cgi processing [12:24:39]execute_cgi json_proto POST (null) [12:24:39]execute_cgi path=json_proto method=POST [12:24:39]POST find Content-Length [12:24:39]Host: 172.17.45.132:8080 [12:24:39]Content-Length: 1361 [12:24:39]Content-Type: application/json [12:24:39] [12:24:39]POST finish read [12:24:39]Found Content-Length = 1361 [12:24:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126347", "tax_sys" : 0, "items" : [ { "code": "4870001571535", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \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 }]} ,{ "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": "5449000000996", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,33\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 261.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:39]execute_script... [12:24: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)126347", "tax_sys" : 0, "items" : [ { "code": "4870001571535", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \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 }]} ,{ "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": "5449000000996", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,33\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 261.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:39]POST & json_proto [12:24:39]process_json_proto [12:24:39]json parsed OK: [12:24:39]protocol is kg_v1.0 [12:24:39]action value=close_receipt [12:24:39]process_action close_receipt [12:24:39]cmd_close_receipt [12:24:39]MH_GetDate [12:24:39]Write to MH i2c: F0 00 00 3F 49 77 [12:24:39]Write i2c OK [12:24:39]MH_I2C_Read... [12:24:39]Read from MH i2c: F0 [12:24:39]MH_I2C_Read... [12:24:39]Read from MH i2c: F0 09 00 [12:24:39]MH_I2C_Read... [12:24:39]Read from MH i2c: F0 09 00 3F 49 00 8C 38 A6 66 E3 0B 90 66 34 [12:24:39]GetLastDocTimeStamp 1722169325 [12:24:39]current date 1722169484 [12:24:39]FM_GetShiftState [12:24:39]SAM_PROTO_GetShiftState [12:24:39]wFMCommunicate request_size=4 [12:24:39]MH_SAM_APDU [12:24:39]CAPDU: 80 13 01 00 [12:24:39]Write to MH i2c: E2 08 00 40 49 80 13 01 00 00 00 00 00 06 [12:24:39]Write i2c OK [12:24:39]MH_I2C_Read... [12:24:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:39]Read from MH i2c: E2 [12:24:39]MH_I2C_Read... [12:24:39]Read from MH i2c: E2 0E 00 [12:24:39]MH_I2C_Read... [12:24:39]Read from MH i2c: E2 0E 00 40 49 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 FA [12:24:39]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [12:24:39]wFMCommunicate OK [12:24:39]SAM_PROTO_GetShiftState done [12:24:39]FM_GetShiftState done [12:24:39]opened in 1722125648 [12:24:39]opened+sec_in_day 1722212048 [12:24:39]quantity*price = 6500 [12:24:39]sum+1 = 6501 [12:24:39]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001570071 Напиток Pepsi 1л 1.000 * 111.00 = 111.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000000996 Напиток Кока-Кола 0,33л 1.000 * 85.00 = 85.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 261.00 НСП 1% : 2.30 НДС 12% : 27.72 Наличными: 0.00 Безнал.: 261.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 95 28.07.2024 12:24 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2044 ФПД: 63620417857275 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T122445&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2044&fm=63620417857275&tin=02508201610067®Number=0000000000189667&sum=26100 0 [12:24:40]StoreToDocumentArchive [12:24:40]shift 13 fd 2044 [12:24:40]save to /storage/0013/doc_00002044 [12:24:40]save last doc name /storage/0013/doc_00002044 to /storage/kkm_last_doc_name [12:24:40]save OK [12:24:40]Clear old archive folders... [12:24:40]ProcessDocumentItem done err = 0, tmpTLVsize=504 [12:24:40]tlvbuf is 01F76070 [12:24:40]SAM_PROTO_ClearQueue [12:24:40]wFMCommunicate request_size=4 [12:24:40]MH_SAM_APDU [12:24:40]CAPDU: 80 09 00 00 [12:24:40]Write to MH i2c: E2 08 00 4D 49 80 09 00 00 00 00 00 00 08 [12:24:40]Write i2c OK [12:24:40]MH_I2C_Read... [12:24:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:24:40]Read from MH i2c: E2 [12:24:40]MH_I2C_Read... [12:24:40]Read from MH i2c: E2 03 00 [12:24:40]MH_I2C_Read... [12:24:40]Read from MH i2c: E2 03 00 4D 49 00 90 00 0A [12:24:40]RAPDU: 90 00 [12:24:40]wFMCommunicate OK [12:24:40]SAM_PROTO_ClearQueue done [12:24:40]KKMCreateOFDPacket [12:24:40]OFDProtocolAddRootSTLVToBuf [12:24:40]FM_MakeSignedData [12:24:40]FM_MakeSignedData [12:24:40]SAM_PROTO_SignData [12:24:40]wFMCommunicate request_size=4 [12:24:40]MH_SAM_APDU [12:24:40]CAPDU: 80 0D 01 02 [12:24:40]Write to MH i2c: E2 08 00 4E 49 80 0D 01 02 00 00 00 00 10 [12:24:40]Write i2c OK [12:24:40]MH_I2C_Read... [12:24:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:24:40]Read from MH i2c: E2 [12:24:40]MH_I2C_Read... [12:24:40]Read from MH i2c: E2 03 00 [12:24:40]MH_I2C_Read... [12:24:40]Read from MH i2c: E2 03 00 4E 49 00 90 00 0B [12:24:40]RAPDU: 90 00 [12:24:40]wFMCommunicate OK [12:24:40]wFMCommunicate request_size=255 [12:24:40]MH_SAM_APDU [12:24:40]CAPDU: 80 0D 02 02 FA 03 00 F8 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 33 35 06 04 37 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 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 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 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 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 [12:24:40]Write to MH i2c: E2 02 01 4F 49 80 0D 02 02 FA 00 03 00 F8 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 33 35 06 04 37 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 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 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 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 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 00 00 55 [12:24:40]Write i2c OK [12:24:40]MH_I2C_Read... [12:24:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:41]Read from MH i2c: E2 [12:24:41]MH_I2C_Read... [12:24:41]Read from MH i2c: E2 03 00 [12:24:41]MH_I2C_Read... [12:24:41]Read from MH i2c: E2 03 00 4F 49 00 90 00 0C [12:24:41]RAPDU: 90 00 [12:24:41]wFMCommunicate OK [12:24:41]wFMCommunicate request_size=255 [12:24:41]MH_SAM_APDU [12:24:41]CAPDU: 80 0D 02 02 FA 39 39 36 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 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 D4 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 8D 38 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 FC 07 00 00 35 04 [12:24:41]Write to MH i2c: E2 02 01 50 49 80 0D 02 02 FA 00 39 39 36 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 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 D4 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 8D 38 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 FC 07 00 00 35 04 00 00 BE [12:24:41]Write i2c OK [12:24:41]MH_I2C_Read... [12:24:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:41]Read from MH i2c: E2 [12:24:41]MH_I2C_Read... [12:24:41]Read from MH i2c: E2 03 00 [12:24:41]MH_I2C_Read... [12:24:41]Read from MH i2c: E2 03 00 50 49 00 90 00 0D [12:24:41]RAPDU: 90 00 [12:24:41]wFMCommunicate OK [12:24:41]wFMCommunicate request_size=13 [12:24:41]MH_SAM_APDU [12:24:41]CAPDU: 80 0D 02 02 08 06 00 39 DC C8 68 26 FB [12:24:41]Write to MH i2c: E2 10 00 51 49 80 0D 02 02 08 00 06 00 39 DC C8 68 26 FB 00 00 90 [12:24:41]Write i2c OK [12:24:41]MH_I2C_Read... [12:24:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:41]Read from MH i2c: E2 [12:24:41]MH_I2C_Read... [12:24:41]Read from MH i2c: E2 03 00 [12:24:41]MH_I2C_Read... [12:24:41]Read from MH i2c: E2 03 00 51 49 00 90 00 0E [12:24:41]RAPDU: 90 00 [12:24:41]wFMCommunicate OK [12:24:41]wFMCommunicate request_size=4 [12:24:41]MH_SAM_APDU [12:24:41]CAPDU: 80 0D 03 02 [12:24:41]Write to MH i2c: E2 08 00 52 49 80 0D 03 02 00 00 00 00 16 [12:24:41]Write i2c OK [12:24:41]MH_I2C_Read... [12:24:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:24:41]Read from MH i2c: E2 [12:24:41]MH_I2C_Read... [12:24:41]Read from MH i2c: E2 0B 00 [12:24:41]MH_I2C_Read... [12:24:41]Read from MH i2c: E2 0B 00 52 49 00 D1 5A ED 92 AA 03 36 80 90 00 24 [12:24:41]RAPDU: D1 5A ED 92 AA 03 36 80 90 00 [12:24:41]wFMCommunicate OK [12:24:41]SAM_PROTO_SignData done [12:24:41]FM_MakeSignedData done [12:24:41]CreateOFDProtocolMessage [12:24:41]wFMCommunicate request_size=4 [12:24:41]MH_SAM_APDU [12:24:41]CAPDU: 80 11 00 00 [12:24:41]Write to MH i2c: E2 08 00 53 49 80 11 00 00 00 00 00 00 16 [12:24:41]Write i2c OK [12:24:41]MH_I2C_Read... [12:24:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:41]Read from MH i2c: E2 [12:24:41]MH_I2C_Read... [12:24:41]Read from MH i2c: E2 17 00 [12:24:41]MH_I2C_Read... [12:24:41]Read from MH i2c: E2 17 00 53 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 66 [12:24:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [12:24:41]wFMCommunicate OK [12:24:41]CreateOFDProtocolMessage done [12:24:41]OFDSenderStorePacket 2044 [12:24:41]StoreOFDPacket docnum=2044 [12:24:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0C 02 00 00 BE FB 04 02 EF FB 5A 03 01 00 03 00 F8 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 33 35 06 04 37 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 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 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 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 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 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 D4 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 8D 38 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 FC 07 00 00 35 04 06 00 39 DC C8 68 26 FB D1 5A ED 92 AA 03 36 80 [12:24:41]CheckFolder [12:24:41]dirname=/storage/ofd_packets [12:24:41]CheckFolder done [12:24:41]ProducePacketName [12:24:41]name=ofd_packets/00002044 [12:24:41]NVStorageSaveData ofd_packets/00002044 [12:24:41]File name is /storage/ofd_packets/00002044 [12:24:41]Write 554 bytes [12:24:41]NVStorageSaveData done [12:24:41]OFDSenderStorePacket done [12:24:41]KKMCreateOFDPacket done [12:24:41]NVStorageSaveData kkm_last_timestamp [12:24:41]File name is /storage/kkm_last_timestamp [12:24:41]Write 4 bytes [12:24:41]NVStorageSaveData done [12:24:41]ExternCall_PrintAddStr [12:24:41]wPrintStart [12:24:41]Write to MH i2c: 01 00 00 54 49 9D [12:24:41]Write i2c OK [12:24:41]MH_I2C_Read... [12:24:41]Read from MH i2c: 01 [12:24:41]MH_I2C_Read... [12:24:41]Read from MH i2c: 01 07 00 [12:24:41]MH_I2C_Read... [12:24:41]Read from MH i2c: 01 07 00 54 49 00 00 00 00 00 FF 0F B2 [12:24:41]RasterBufferAndPrint [12:24:41]line Счет N : (3)126347 [12:24:41]line ИНН: 02508201610067 [12:24:41]line Контрольно-Кассовый Чек [12:24:41]line ПРОДАЖА [12:24:41]line Товар: 4870001571535 [12:24:41]line Вода ASU пит н.газ персик ПЭТ 0,5л [12:24:41]line 1.000 * 65.00 [12:24:41]line = 65.00 [12:24:41]line НДС 12% НСП 1% [12:24:41]line > о реализуемом товаре [12:24:41]line Товар: 4870001570071 [12:24:41]line Напиток Pepsi 1л [12:24:41]line 1.000 * 111.00 [12:24:41]line = 111.00 [12:24:41]line НДС 12% НСП 1% [12:24:41]line > о реализуемом товаре [12:24:41]line Товар: 5449000000996 [12:24:41]line Напиток Кока-Кола 0,33л [12:24:41]line 1.000 * 85.00 [12:24:41]line = 85.00 [12:24:41]line НДС 12% НСП 1% [12:24:41]line > о реализуемом товаре [12:24:41]line ИТОГО: 261.00 [12:24:41]line НСП 1% : 2.30 [12:24:41]line НДС 12% : 27.72 [12:24:41]line Наличными: 0.00 [12:24:41]line Безнал.: 261.00 [12:24:41]line Место: АЗС № 127 "Партнер Нефть" [12:24:41]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [12:24:41]line СНО: Общий режим [12:24:41]line Чек 95 28.07.2024 12:24 [12:24:41]line Смена: 13 ФФД: 1.0 [12:24:41]line ЗНМ: 0300000161 [12:24:41]line РНМ: 0000000000189667 [12:24:41]line Версия ККМ: v1.0 [12:24:41]line Платежная система: O! деньги [12:24:41]line ФМ: 0000000002094248 [12:24:41]line ФД: 2044 [12:24:41]line ФПД: 63620417857275 [12:24:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T122445&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2044&fm=63620417857275&tin=02508201610067®Number=0000000000189667&sum=26100 [12:24:41]line 0 [12:24:41]written 0, free lines is 4095 [12:24:41]OFD Sender: Processing packet 2044 [packets to send 1, broken 0] [12:24:41]ProducePacketName [12:24:41]name=ofd_packets/00002044 [12:24:41]OFD Sender: To server: pG, [12:24:41]CommunicateWithHost lk.salyk.kg:30040 [12:24:41]ConnectInit lk.salyk.kg [12:24:41]Connected sock=10 [12:24:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0C 02 00 00 BE FB 04 02 EF FB 5A 03 01 00 03 00 F8 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 33 35 06 04 37 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 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 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 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 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 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 D4 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 8D 38 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 FC 07 00 00 35 04 06 00 39 DC C8 68 26 FB D1 5A ED 92 AA 03 36 80 [12:24:42]Write to MH i2c: 01 00 00 8B 49 D4 [12:24:42]Write i2c OK [12:24:42]MH_I2C_Read... [12:24:42]Read from MH i2c: 01 [12:24:42]MH_I2C_Read... [12:24:42]Read from MH i2c: 01 07 00 [12:24:42]MH_I2C_Read... [12:24:42]Read from MH i2c: 01 07 00 8B 49 00 00 00 00 00 55 0C 3C [12:24:42]RasterBufferAndPrint [12:24:42]line [12:24:42]line [12:24:42]line [12:24:42]line [12:24:42]line [12:24:42]written 0, free lines is 3166 [12:24:42]MH_Cut [12:24:42]Write to MH i2c: D1 01 00 92 49 01 AD [12:24:42]Write i2c OK [12:24:42]MH_I2C_Read... [12:24:42]Read from MH i2c: D1 [12:24:42]MH_I2C_Read... [12:24:42]Read from MH i2c: D1 01 00 [12:24:42]MH_I2C_Read... [12:24:42]Read from MH i2c: D1 01 00 92 49 00 AC [12:24:42]Write to MH i2c: 01 00 00 93 49 DC [12:24:42]Write i2c OK [12:24:42]MH_I2C_Read... [12:24:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 F2 1B 47 00 3C 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 FC 07 00 00 F4 03 04 00 FD E3 A5 66 B6 04 01 00 00 65 43 58 D5 6E 0B A0 63 [12:24:42]CommunicateWithHost err = 0 [12:24:42]CheckOFDResponse [12:24:42]1017 (14) - 77093643461234 [12:24:42]1041 (16) - 0000000002094248 [12:24:42]1040 (4) - 2044 [12:24:42]1012 (4) - 28.07.2024 06:23 [12:24:42]1206 (1) - 0 [12:24:42]OFD Sender: Remove packet 2044 [12:24:42]ProducePacketName [12:24:42]name=ofd_packets/00002044 [12:24:42]NVStorageDeleteData [12:24:42]OFD Sender: No OFD packet to send [12:24:42]*** Cut start [12:24:42]*** Partial cut [12:24:42]*** CUTSNS_PIN = 1 [12:24:43]*** CUTSNS_PIN = 0 [12:24:43]*** Brake cut motor [12:24:43]Read from MH i2c: 01 [12:24:43]MH_I2C_Read... [12:24:43]*** Stop cut motor [12:24:43]*** Cut end [12:24:43]Read from MH i2c: 01 07 00 [12:24:43]MH_I2C_Read... [12:24:43]Read from MH i2c: 01 07 00 93 49 00 00 00 00 00 FF 0F F1 [12:24:43]process_action close_receipt done [12:24:43]requested_data is exist [12:24:43]produce_requested_data [12:24:43]requested_item fm.sn is exist - process it [12:24:43]wFMCommunicate request_size=4 [12:24:43]MH_SAM_APDU [12:24:43]CAPDU: 80 11 00 00 [12:24:43]Write to MH i2c: E2 08 00 94 49 80 11 00 00 00 00 00 00 57 [12:24:43]Write i2c OK [12:24:43]MH_I2C_Read... [12:24:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:43]Read from MH i2c: E2 [12:24:43]MH_I2C_Read... [12:24:43]Read from MH i2c: E2 17 00 [12:24:43]MH_I2C_Read... [12:24:43]Read from MH i2c: E2 17 00 94 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 A7 [12:24:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [12:24:43]wFMCommunicate OK [12:24:43]requested_item fd.num is exist - process it [12:24:43]SAM_PROTO_GetFieldsCounters [12:24:43]wFMCommunicate request_size=4 [12:24:43]MH_SAM_APDU [12:24:43]CAPDU: 80 13 00 00 [12:24:43]Write to MH i2c: E2 08 00 95 49 80 13 00 00 00 00 00 00 5A [12:24:43]Write i2c OK [12:24:43]MH_I2C_Read... [12:24:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:24:43]Read from MH i2c: E2 [12:24:43]MH_I2C_Read... [12:24:43]Read from MH i2c: E2 62 00 [12:24:43]MH_I2C_Read... [12:24:43]Read from MH i2c: E2 62 00 95 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 FC 07 00 00 0E 04 04 00 0D 00 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 B1 [12:24:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 FC 07 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:24:43]wFMCommunicate OK [12:24:43]SAM_PROTO_GetFieldsCounters done [12:24:43]requested_item shift.num is exist - process it [12:24:43]requested_item shift.opened is exist - process it [12:24:43]req_shift_opened [12:24:43]FM_GetShiftState [12:24:43]SAM_PROTO_GetShiftState [12:24:43]wFMCommunicate request_size=4 [12:24:43]MH_SAM_APDU [12:24:43]CAPDU: 80 13 01 00 [12:24:43]Write to MH i2c: E2 08 00 96 49 80 13 01 00 00 00 00 00 5C [12:24:43]Write i2c OK [12:24:43]MH_I2C_Read... [12:24:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:43]Read from MH i2c: E2 [12:24:43]MH_I2C_Read... [12:24:43]Read from MH i2c: E2 0E 00 [12:24:43]MH_I2C_Read... [12:24:43]Read from MH i2c: E2 0E 00 96 49 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 50 [12:24:43]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [12:24:43]wFMCommunicate OK [12:24:43]SAM_PROTO_GetShiftState done [12:24:43]FM_GetShiftState done [12:24:43]req_shift_opened done [12:24:43]requested_item shift.open_date is exist - process it [12:24:43]req_shift_open_date [12:24:43]req_shift_open_date done [12:24:43]produce_requested_data done [12:24:43]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2044,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [12:24:43]process_action_free close_receipt [12:24:43]json_value_free [12:24:43]json_value_free done [12:24:43]process_json_proto returns [12:24:43]Send response to host [12:24:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2044,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [12:24:43]free response buf [12:24:43]execute_script done [12:24:43]execute_script returns [12:24:43]free content buf [12:24:43]Sock 9.Close socket [12:24:43]Sock 9.Thread stoped [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:44]accept exits with 8 [12:25:44]New connection [12:25:44]New thread 3067460964 created [12:25:44]Thread 3067317604 joined [12:25:44]Waiting for new connection... [12:25:44] Sock 8.Parse request [12:25:44]Sock 8.Check first char [12:25:44]Sock 8.First char is OK [12:25:44]request: POST /json_proto HTTP/1.0 [12:25:44]Method: POST [12:25:44]URL: /json_proto [12:25:44]Method is POST - this is cgi request [12:25:44]url: /json_proto [12:25:44]query_string will be loaded in cgi processing [12:25:44]execute_cgi json_proto POST (null) [12:25:44]execute_cgi path=json_proto method=POST [12:25:44]POST find Content-Length [12:25:44]Host: 172.17.45.132:8080 [12:25:44]Content-Length: 800 [12:25:44]Content-Type: application/json [12:25:44] [12:25:44]POST finish read [12:25:44]Found Content-Length = 800 [12:25:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126348", "tax_sys" : 0, "items" : [ { "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:25:44]execute_script... [12:25: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)126348", "tax_sys" : 0, "items" : [ { "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:25:44]POST & json_proto [12:25:44]process_json_proto [12:25:44]json parsed OK: [12:25:44]protocol is kg_v1.0 [12:25:44]action value=close_receipt [12:25:44]process_action close_receipt [12:25:44]cmd_close_receipt [12:25:44]MH_GetDate [12:25:44]Write to MH i2c: F0 00 00 97 49 CF [12:25:44]Write i2c OK [12:25:44]MH_I2C_Read... [12:25:44]Read from MH i2c: F0 [12:25:44]MH_I2C_Read... [12:25:44]Read from MH i2c: F0 09 00 [12:25:44]MH_I2C_Read... [12:25:44]Read from MH i2c: F0 09 00 97 49 00 CE 38 A6 66 E3 0B 90 66 CE [12:25:44]GetLastDocTimeStamp 1722169485 [12:25:44]current date 1722169550 [12:25:44]FM_GetShiftState [12:25:44]SAM_PROTO_GetShiftState [12:25:44]wFMCommunicate request_size=4 [12:25:44]MH_SAM_APDU [12:25:44]CAPDU: 80 13 01 00 [12:25:44]Write to MH i2c: E2 08 00 98 49 80 13 01 00 00 00 00 00 5E [12:25:44]Write i2c OK [12:25:44]MH_I2C_Read... [12:25:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:44]Read from MH i2c: E2 [12:25:44]MH_I2C_Read... [12:25:44]Read from MH i2c: E2 0E 00 [12:25:44]MH_I2C_Read... [12:25:44]Read from MH i2c: E2 0E 00 98 49 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 52 [12:25:44]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [12:25:44]wFMCommunicate OK [12:25:44]SAM_PROTO_GetShiftState done [12:25:44]FM_GetShiftState done [12:25:44]opened in 1722125648 [12:25:44]opened+sec_in_day 1722212048 [12:25:44]quantity*price = 12500 [12:25:44]sum+1 = 12501 [12:25:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 0.00 Безнал.: 125.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 96 28.07.2024 12:25 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2045 ФПД: 211658202585189 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T122550&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2045&fm=211658202585189&tin=02508201610067®Number=0000000000189667&sum=12500 0 [12:25:45]StoreToDocumentArchive [12:25:45]shift 13 fd 2045 [12:25:45]save to /storage/0013/doc_00002045 [12:25:45]save last doc name /storage/0013/doc_00002045 to /storage/kkm_last_doc_name [12:25:45]save OK [12:25:45]Clear old archive folders... [12:25:45]ProcessDocumentItem done err = 0, tmpTLVsize=271 [12:25:45]tlvbuf is 01F63CF0 [12:25:45]SAM_PROTO_ClearQueue [12:25:45]wFMCommunicate request_size=4 [12:25:45]MH_SAM_APDU [12:25:45]CAPDU: 80 09 00 00 [12:25:45]Write to MH i2c: E2 08 00 A5 49 80 09 00 00 00 00 00 00 60 [12:25:45]Write i2c OK [12:25:45]MH_I2C_Read... [12:25:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:25:45]Read from MH i2c: E2 [12:25:45]MH_I2C_Read... [12:25:45]Read from MH i2c: E2 03 00 [12:25:45]MH_I2C_Read... [12:25:45]Read from MH i2c: E2 03 00 A5 49 00 90 00 62 [12:25:45]RAPDU: 90 00 [12:25:45]wFMCommunicate OK [12:25:45]SAM_PROTO_ClearQueue done [12:25:45]KKMCreateOFDPacket [12:25:45]OFDProtocolAddRootSTLVToBuf [12:25:45]FM_MakeSignedData [12:25:45]FM_MakeSignedData [12:25:45]SAM_PROTO_SignData [12:25:45]wFMCommunicate request_size=4 [12:25:45]MH_SAM_APDU [12:25:45]CAPDU: 80 0D 01 02 [12:25:45]Write to MH i2c: E2 08 00 A6 49 80 0D 01 02 00 00 00 00 68 [12:25:45]Write i2c OK [12:25:45]MH_I2C_Read... [12:25:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:25:46]Read from MH i2c: E2 [12:25:46]MH_I2C_Read... [12:25:46]Read from MH i2c: E2 03 00 [12:25:46]MH_I2C_Read... [12:25:46]Read from MH i2c: E2 03 00 A6 49 00 90 00 63 [12:25:46]RAPDU: 90 00 [12:25:46]wFMCommunicate OK [12:25:46]wFMCommunicate request_size=255 [12:25:46]MH_SAM_APDU [12:25:46]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 CE 38 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 [12:25:46]Write to MH i2c: E2 02 01 A7 49 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 CE 38 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 F8 [12:25:46]Write i2c OK [12:25:46]MH_I2C_Read... [12:25:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:46]Read from MH i2c: E2 [12:25:46]MH_I2C_Read... [12:25:46]Read from MH i2c: E2 03 00 [12:25:46]MH_I2C_Read... [12:25:46]Read from MH i2c: E2 03 00 A7 49 00 90 00 64 [12:25:46]RAPDU: 90 00 [12:25:46]wFMCommunicate OK [12:25:46]wFMCommunicate request_size=30 [12:25:46]MH_SAM_APDU [12:25:46]CAPDU: 80 0D 02 02 19 32 30 39 34 32 34 38 10 04 04 00 FD 07 00 00 35 04 06 00 C0 80 83 FA 98 65 [12:25:46]Write to MH i2c: E2 21 00 A8 49 80 0D 02 02 19 00 32 30 39 34 32 34 38 10 04 04 00 FD 07 00 00 35 04 06 00 C0 80 83 FA 98 65 00 00 1F [12:25:46]Write i2c OK [12:25:46]MH_I2C_Read... [12:25:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:46]Read from MH i2c: E2 [12:25:46]MH_I2C_Read... [12:25:46]Read from MH i2c: E2 03 00 [12:25:46]MH_I2C_Read... [12:25:46]Read from MH i2c: E2 03 00 A8 49 00 90 00 65 [12:25:46]RAPDU: 90 00 [12:25:46]wFMCommunicate OK [12:25:46]wFMCommunicate request_size=4 [12:25:46]MH_SAM_APDU [12:25:46]CAPDU: 80 0D 03 02 [12:25:46]Write to MH i2c: E2 08 00 A9 49 80 0D 03 02 00 00 00 00 6D [12:25:46]Write i2c OK [12:25:46]MH_I2C_Read... [12:25:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:25:46]Read from MH i2c: E2 [12:25:46]MH_I2C_Read... [12:25:46]Read from MH i2c: E2 0B 00 [12:25:46]MH_I2C_Read... [12:25:46]Read from MH i2c: E2 0B 00 A9 49 00 3A 8E A6 3A 59 31 D8 3A 90 00 B2 [12:25:46]RAPDU: 3A 8E A6 3A 59 31 D8 3A 90 00 [12:25:46]wFMCommunicate OK [12:25:46]SAM_PROTO_SignData done [12:25:46]FM_MakeSignedData done [12:25:46]CreateOFDProtocolMessage [12:25:46]wFMCommunicate request_size=4 [12:25:46]MH_SAM_APDU [12:25:46]CAPDU: 80 11 00 00 [12:25:46]Write to MH i2c: E2 08 00 AA 49 80 11 00 00 00 00 00 00 6D [12:25:46]Write i2c OK [12:25:46]MH_I2C_Read... [12:25:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:46]Read from MH i2c: E2 [12:25:46]MH_I2C_Read... [12:25:46]Read from MH i2c: E2 17 00 [12:25:46]MH_I2C_Read... [12:25:46]Read from MH i2c: E2 17 00 AA 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 BD [12:25:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [12:25:46]wFMCommunicate OK [12:25:46]CreateOFDProtocolMessage done [12:25:46]OFDSenderStorePacket 2045 [12:25:46]StoreOFDPacket docnum=2045 [12:25:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 23 01 00 00 74 DE 1B 01 82 C6 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 CE 38 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 FD 07 00 00 35 04 06 00 C0 80 83 FA 98 65 3A 8E A6 3A 59 31 D8 3A [12:25:46]CheckFolder [12:25:46]dirname=/storage/ofd_packets [12:25:46]CheckFolder done [12:25:46]ProducePacketName [12:25:46]name=ofd_packets/00002045 [12:25:46]NVStorageSaveData ofd_packets/00002045 [12:25:46]File name is /storage/ofd_packets/00002045 [12:25:46]Write 321 bytes [12:25:46]NVStorageSaveData done [12:25:46]OFDSenderStorePacket done [12:25:46]KKMCreateOFDPacket done [12:25:46]NVStorageSaveData kkm_last_timestamp [12:25:46]File name is /storage/kkm_last_timestamp [12:25:46]Write 4 bytes [12:25:46]NVStorageSaveData done [12:25:46]ExternCall_PrintAddStr [12:25:46]wPrintStart [12:25:46]Write to MH i2c: 01 00 00 AB 49 F4 [12:25:46]Write i2c OK [12:25:46]MH_I2C_Read... [12:25:46]Read from MH i2c: 01 [12:25:46]MH_I2C_Read... [12:25:46]Read from MH i2c: 01 07 00 [12:25:46]MH_I2C_Read... [12:25:46]Read from MH i2c: 01 07 00 AB 49 00 00 00 00 00 FF 0F 09 [12:25:46]RasterBufferAndPrint [12:25:46]line Счет N : (3)126348 [12:25:46]line ИНН: 02508201610067 [12:25:46]line Контрольно-Кассовый Чек [12:25:46]line ПРОДАЖА [12:25:46]line Товар: 5449000006271 [12:25:46]line Напиток Фанта 1л [12:25:46]line 1.000 * 125.00 [12:25:46]line = 125.00 [12:25:46]line НДС 12% НСП 1% [12:25:46]line > о реализуемом товаре [12:25:46]line ИТОГО: 125.00 [12:25:46]line НСП 1% : 1.11 [12:25:46]line НДС 12% : 13.27 [12:25:46]line Наличными: 0.00 [12:25:46]line Безнал.: 125.00 [12:25:46]line Место: АЗС № 127 "Партнер Нефть" [12:25:46]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [12:25:46]line СНО: Общий режим [12:25:46]line Чек 96 28.07.2024 12:25 [12:25:46]line Смена: 13 ФФД: 1.0 [12:25:46]line ЗНМ: 0300000161 [12:25:46]line РНМ: 0000000000189667 [12:25:46]line Версия ККМ: v1.0 [12:25:46]line Платежная система: O! деньги [12:25:46]line ФМ: 0000000002094248 [12:25:46]line ФД: 2045 [12:25:46]line ФПД: 211658202585189 [12:25:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T122550&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2045&fm=211658202585189&tin=02508201610067®Number=0000000000189667&sum=12500 [12:25:46]line 0 [12:25:46]OFD Sender: Processing packet 2045 [packets to send 1, broken 0] [12:25:46]ProducePacketName [12:25:46]name=ofd_packets/00002045 [12:25:46]OFD Sender: To server: pG, [12:25:46]CommunicateWithHost lk.salyk.kg:30040 [12:25:46]ConnectInit lk.salyk.kg [12:25:46]written 0, free lines is 4095 [12:25:47]Write to MH i2c: 01 00 00 D5 49 1E [12:25:47]Write i2c OK [12:25:47]MH_I2C_Read... [12:25:47]Read from MH i2c: 01 [12:25:47]MH_I2C_Read... [12:25:47]Read from MH i2c: 01 07 00 [12:25:47]MH_I2C_Read... [12:25:47]Read from MH i2c: 01 07 00 D5 49 00 00 00 00 00 E4 0C 15 [12:25:47]RasterBufferAndPrint [12:25:47]line [12:25:47]line [12:25:47]line [12:25:47]line [12:25:47]line [12:25:47]written 0, free lines is 3306 [12:25:47]MH_Cut [12:25:47]Write to MH i2c: D1 01 00 DC 49 01 F7 [12:25:47]Write i2c OK [12:25:47]MH_I2C_Read... [12:25:47]Read from MH i2c: D1 [12:25:47]MH_I2C_Read... [12:25:47]Read from MH i2c: D1 01 00 [12:25:47]MH_I2C_Read... [12:25:47]Read from MH i2c: D1 01 00 DC 49 00 F6 [12:25:47]Write to MH i2c: 01 00 00 DD 49 26 [12:25:47]Write i2c OK [12:25:47]MH_I2C_Read... [12:25:47]*** Cut start [12:25:47]*** Partial cut [12:25:47]*** CUTSNS_PIN = 1 [12:25:47]*** CUTSNS_PIN = 0 [12:25:48]*** Brake cut motor [12:25:48]Read from MH i2c: 01 [12:25:48]MH_I2C_Read... [12:25:48]*** Stop cut motor [12:25:48]*** Cut end [12:25:48]Read from MH i2c: 01 07 00 [12:25:48]MH_I2C_Read... [12:25:48]Read from MH i2c: 01 07 00 DD 49 00 00 00 00 00 FF 0F 3B [12:25:48]process_action close_receipt done [12:25:48]requested_data is exist [12:25:48]produce_requested_data [12:25:48]requested_item fm.sn is exist - process it [12:25:48]wFMCommunicate request_size=4 [12:25:48]MH_SAM_APDU [12:25:48]CAPDU: 80 11 00 00 [12:25:48]Write to MH i2c: E2 08 00 DE 49 80 11 00 00 00 00 00 00 A1 [12:25:48]Write i2c OK [12:25:48]MH_I2C_Read... [12:25:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:48]Read from MH i2c: E2 [12:25:48]MH_I2C_Read... [12:25:48]Read from MH i2c: E2 17 00 [12:25:48]MH_I2C_Read... [12:25:48]Read from MH i2c: E2 17 00 DE 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 F1 [12:25:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [12:25:48]wFMCommunicate OK [12:25:48]requested_item fd.num is exist - process it [12:25:48]SAM_PROTO_GetFieldsCounters [12:25:48]wFMCommunicate request_size=4 [12:25:48]MH_SAM_APDU [12:25:48]CAPDU: 80 13 00 00 [12:25:48]Write to MH i2c: E2 08 00 DF 49 80 13 00 00 00 00 00 00 A4 [12:25:48]Write i2c OK [12:25:48]MH_I2C_Read... [12:25:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:25:48]Read from MH i2c: E2 [12:25:48]MH_I2C_Read... [12:25:48]Read from MH i2c: E2 62 00 [12:25:48]MH_I2C_Read... [12:25:48]Read from MH i2c: E2 62 00 DF 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 FD 07 00 00 0E 04 04 00 0D 00 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 FF [12:25:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 FD 07 00 00 0E 04 04 00 0D 00 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 [12:25:48]wFMCommunicate OK [12:25:48]SAM_PROTO_GetFieldsCounters done [12:25:48]requested_item shift.num is exist - process it [12:25:48]requested_item shift.opened is exist - process it [12:25:48]req_shift_opened [12:25:48]FM_GetShiftState [12:25:48]SAM_PROTO_GetShiftState [12:25:48]wFMCommunicate request_size=4 [12:25:48]MH_SAM_APDU [12:25:48]CAPDU: 80 13 01 00 [12:25:48]Write to MH i2c: E2 08 00 E0 49 80 13 01 00 00 00 00 00 A6 [12:25:48]Write i2c OK [12:25:48]MH_I2C_Read... [12:25:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:48]Read from MH i2c: E2 [12:25:48]MH_I2C_Read... [12:25:48]Read from MH i2c: E2 0E 00 [12:25:48]MH_I2C_Read... [12:25:48]Read from MH i2c: E2 0E 00 E0 49 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 9A [12:25:48]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [12:25:48]wFMCommunicate OK [12:25:48]SAM_PROTO_GetShiftState done [12:25:48]FM_GetShiftState done [12:25:48]req_shift_opened done [12:25:48]requested_item shift.open_date is exist - process it [12:25:48]req_shift_open_date [12:25:48]req_shift_open_date done [12:25:48]produce_requested_data done [12:25:48]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2045,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [12:25:48]process_action_free close_receipt [12:25:48]json_value_free [12:25:48]json_value_free done [12:25:48]process_json_proto returns [12:25:48]Send response to host [12:25:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2045,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [12:25:48]free response buf [12:25:48]execute_script done [12:25:48]execute_script returns [12:25:48]free content buf [12:25:48]Sock 8.Close socket [12:25:48]Sock 8.Thread stoped [12:25:55]accept exits with 9 [12:25:55]New connection [12:25:55]New thread 3067317604 created [12:25:55]Thread 3067460964 joined [12:25:55]Waiting for new connection... [12:25:55] Sock 9.Parse request [12:25:55]Sock 9.Check first char [12:25:55]Sock 9.First char is OK [12:25:55]request: POST /json_proto HTTP/1.0 [12:25:55]Method: POST [12:25:55]URL: /json_proto [12:25:55]Method is POST - this is cgi request [12:25:55]url: /json_proto [12:25:55]query_string will be loaded in cgi processing [12:25:55]execute_cgi json_proto POST (null) [12:25:55]execute_cgi path=json_proto method=POST [12:25:55]POST find Content-Length [12:25:55]Host: 172.17.45.132:8080 [12:25:55]Content-Length: 858 [12:25:55]Content-Type: application/json [12:25:55] [12:25:55]POST finish read [12:25:55]Found Content-Length = 858 [12:25:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 2045, "base_FM": "0000000002094248", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126348", "tax_sys" : 0, "items" : [ { "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 125.00 } ], "post_footer_text": "2045" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:25:55]execute_script... [12:25:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 2045, "base_FM": "0000000002094248", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126348", "tax_sys" : 0, "items" : [ { "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 125.00 } ], "post_footer_text": "2045" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:25:55]POST & json_proto [12:25:55]process_json_proto [12:25:55]json parsed OK: [12:25:55]protocol is kg_v1.0 [12:25:55]action value=close_receipt [12:25:55]process_action close_receipt [12:25:55]cmd_close_receipt [12:25:55]MH_GetDate [12:25:55]Write to MH i2c: F0 00 00 E1 49 19 [12:25:55]Write i2c OK [12:25:55]MH_I2C_Read... [12:25:55]Read from MH i2c: F0 [12:25:55]MH_I2C_Read... [12:25:55]Read from MH i2c: F0 09 00 [12:25:55]MH_I2C_Read... [12:25:55]Read from MH i2c: F0 09 00 E1 49 00 D9 38 A6 66 E3 0B 90 66 23 [12:25:55]GetLastDocTimeStamp 1722169550 [12:25:55]current date 1722169561 [12:25:55]FM_GetShiftState [12:25:55]SAM_PROTO_GetShiftState [12:25:55]wFMCommunicate request_size=4 [12:25:55]MH_SAM_APDU [12:25:55]CAPDU: 80 13 01 00 [12:25:55]Write to MH i2c: E2 08 00 E2 49 80 13 01 00 00 00 00 00 A8 [12:25:55]Write i2c OK [12:25:55]MH_I2C_Read... [12:25:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:55]Read from MH i2c: E2 [12:25:55]MH_I2C_Read... [12:25:55]Read from MH i2c: E2 0E 00 [12:25:55]MH_I2C_Read... [12:25:55]Read from MH i2c: E2 0E 00 E2 49 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 9C [12:25:55]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [12:25:55]wFMCommunicate OK [12:25:55]SAM_PROTO_GetShiftState done [12:25:55]FM_GetShiftState done [12:25:55]opened in 1722125648 [12:25:55]opened+sec_in_day 1722212048 [12:25:55]quantity*price = 12500 [12:25:55]sum+1 = 12501 [12:25:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 0.00 Безнал.: 125.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 97 28.07.2024 12:26 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФД осн.: 2045 ФМ осн.: 0000000002094248 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2046 ФПД: 827059616756 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T122601&type=2&operation_type=1&fn_number=0000000002094248&fd_number=2046&fm=827059616756&tin=02508201610067®Number=0000000000189667&sum=12500 2045 [12:25:57]StoreToDocumentArchive [12:25:57]shift 13 fd 2046 [12:25:57]save to /storage/0013/doc_00002046 [12:25:57]save last doc name /storage/0013/doc_00002046 to /storage/kkm_last_doc_name [12:25:57]save OK [12:25:57]Clear old archive folders... [12:25:57]ProcessDocumentItem done err = 0, tmpTLVsize=299 [12:25:57]tlvbuf is 0204F1B0 [12:25:57]SAM_PROTO_ClearQueue [12:25:57]wFMCommunicate request_size=4 [12:25:57]MH_SAM_APDU [12:25:57]CAPDU: 80 09 00 00 [12:25:57]Write to MH i2c: E2 08 00 F1 49 80 09 00 00 00 00 00 00 AC [12:25:57]Write i2c OK [12:25:57]MH_I2C_Read... [12:25:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:25:57]Read from MH i2c: E2 [12:25:57]MH_I2C_Read... [12:25:57]Read from MH i2c: E2 03 00 [12:25:57]MH_I2C_Read... [12:25:57]Read from MH i2c: E2 03 00 F1 49 00 90 00 AE [12:25:57]RAPDU: 90 00 [12:25:57]wFMCommunicate OK [12:25:57]SAM_PROTO_ClearQueue done [12:25:57]KKMCreateOFDPacket [12:25:57]OFDProtocolAddRootSTLVToBuf [12:25:57]FM_MakeSignedData [12:25:57]FM_MakeSignedData [12:25:57]SAM_PROTO_SignData [12:25:57]wFMCommunicate request_size=4 [12:25:57]MH_SAM_APDU [12:25:57]CAPDU: 80 0D 01 02 [12:25:57]Write to MH i2c: E2 08 00 F2 49 80 0D 01 02 00 00 00 00 B4 [12:25:57]Write i2c OK [12:25:57]MH_I2C_Read... [12:25:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:25:57]Read from MH i2c: E2 [12:25:57]MH_I2C_Read... [12:25:57]Read from MH i2c: E2 03 00 [12:25:57]MH_I2C_Read... [12:25:57]Read from MH i2c: E2 03 00 F2 49 00 90 00 AF [12:25:57]RAPDU: 90 00 [12:25:57]wFMCommunicate OK [12:25:57]wFMCommunicate request_size=255 [12:25:57]MH_SAM_APDU [12:25:57]CAPDU: 80 0D 02 02 FA 03 00 2B 01 1E 04 01 00 02 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 D9 38 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 27 04 04 00 FD 07 00 00 28 04 10 00 30 [12:25:57]Write to MH i2c: E2 02 01 F3 49 80 0D 02 02 FA 00 03 00 2B 01 1E 04 01 00 02 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 D9 38 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 27 04 04 00 FD 07 00 00 28 04 10 00 30 00 00 37 [12:25:57]Write i2c OK [12:25:57]MH_I2C_Read... [12:25:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:57]Read from MH i2c: E2 [12:25:57]MH_I2C_Read... [12:25:57]Read from MH i2c: E2 03 00 [12:25:57]MH_I2C_Read... [12:25:57]Read from MH i2c: E2 03 00 F3 49 00 90 00 B0 [12:25:57]RAPDU: 90 00 [12:25:57]wFMCommunicate OK [12:25:57]wFMCommunicate request_size=58 [12:25:57]MH_SAM_APDU [12:25:57]CAPDU: 80 0D 02 02 35 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 FE 07 00 00 35 04 06 00 00 C0 90 98 3B F4 [12:25:57]Write to MH i2c: E2 3D 00 F4 49 80 0D 02 02 35 00 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 FE 07 00 00 35 04 06 00 00 C0 90 98 3B F4 00 00 C3 [12:25:57]Write i2c OK [12:25:57]MH_I2C_Read... [12:25:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:57]Read from MH i2c: E2 [12:25:57]MH_I2C_Read... [12:25:57]Read from MH i2c: E2 03 00 [12:25:57]MH_I2C_Read... [12:25:57]Read from MH i2c: E2 03 00 F4 49 00 90 00 B1 [12:25:57]RAPDU: 90 00 [12:25:57]wFMCommunicate OK [12:25:57]wFMCommunicate request_size=4 [12:25:57]MH_SAM_APDU [12:25:57]CAPDU: 80 0D 03 02 [12:25:57]Write to MH i2c: E2 08 00 F5 49 80 0D 03 02 00 00 00 00 B9 [12:25:57]Write i2c OK [12:25:57]MH_I2C_Read... [12:25:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:25:57]Read from MH i2c: E2 [12:25:57]MH_I2C_Read... [12:25:57]Read from MH i2c: E2 0B 00 [12:25:57]MH_I2C_Read... [12:25:57]Read from MH i2c: E2 0B 00 F5 49 00 F7 87 88 08 49 00 C3 D7 90 00 AB [12:25:57]RAPDU: F7 87 88 08 49 00 C3 D7 90 00 [12:25:57]wFMCommunicate OK [12:25:57]SAM_PROTO_SignData done [12:25:57]FM_MakeSignedData done [12:25:57]CreateOFDProtocolMessage [12:25:57]wFMCommunicate request_size=4 [12:25:57]MH_SAM_APDU [12:25:57]CAPDU: 80 11 00 00 [12:25:57]Write to MH i2c: E2 08 00 F6 49 80 11 00 00 00 00 00 00 B9 [12:25:57]Write i2c OK [12:25:57]MH_I2C_Read... [12:25:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:57]Read from MH i2c: E2 [12:25:57]MH_I2C_Read... [12:25:57]Read from MH i2c: E2 17 00 [12:25:57]MH_I2C_Read... [12:25:57]Read from MH i2c: E2 17 00 F6 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 09 [12:25:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [12:25:57]wFMCommunicate OK [12:25:57]CreateOFDProtocolMessage done [12:25:57]OFDSenderStorePacket 2046 [12:25:57]StoreOFDPacket docnum=2046 [12:25:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 3F 01 00 00 66 20 37 01 17 58 5A 03 01 00 03 00 2B 01 1E 04 01 00 02 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 D9 38 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 27 04 04 00 FD 07 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 FE 07 00 00 35 04 06 00 00 C0 90 98 3B F4 F7 87 88 08 49 00 C3 D7 [12:25:57]CheckFolder [12:25:57]dirname=/storage/ofd_packets [12:25:57]CheckFolder done [12:25:57]ProducePacketName [12:25:57]name=ofd_packets/00002046 [12:25:57]NVStorageSaveData ofd_packets/00002046 [12:25:57]File name is /storage/ofd_packets/00002046 [12:25:57]Write 349 bytes [12:25:57]NVStorageSaveData done [12:25:57]OFDSenderStorePacket done [12:25:57]KKMCreateOFDPacket done [12:25:57]NVStorageSaveData kkm_last_timestamp [12:25:57]File name is /storage/kkm_last_timestamp [12:25:57]Write 4 bytes [12:25:57]NVStorageSaveData done [12:25:57]ExternCall_PrintAddStr [12:25:57]wPrintStart [12:25:57]Write to MH i2c: 01 00 00 F7 49 40 [12:25:57]Write i2c OK [12:25:57]MH_I2C_Read... [12:25:57]Read from MH i2c: 01 [12:25:57]MH_I2C_Read... [12:25:57]Read from MH i2c: 01 07 00 [12:25:57]MH_I2C_Read... [12:25:57]Read from MH i2c: 01 07 00 F7 49 00 00 00 00 00 FF 0F 55 [12:25:57]RasterBufferAndPrint [12:25:57]line Счет N : (3)126348 [12:25:57]line ИНН: 02508201610067 [12:25:57]line Контрольно-Кассовый Чек [12:25:57]line ВОЗВРАТ ПРОДАЖИ [12:25:57]line Товар: 5449000006271 [12:25:57]line Напиток Фанта 1л [12:25:57]line 1.000 * 125.00 [12:25:57]line = 125.00 [12:25:57]line НДС 12% НСП 1% [12:25:57]line > о реализуемом товаре [12:25:57]line ИТОГО: 125.00 [12:25:57]line НСП 1% : 1.11 [12:25:57]line НДС 12% : 13.27 [12:25:57]line Наличными: 0.00 [12:25:57]line Безнал.: 125.00 [12:25:57]line Место: АЗС № 127 "Партнер Нефть" [12:25:57]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [12:25:57]line СНО: Общий режим [12:25:57]line Чек 97 28.07.2024 12:26 [12:25:57]line Смена: 13 ФФД: 1.0 [12:25:57]line ЗНМ: 0300000161 [12:25:57]line РНМ: 0000000000189667 [12:25:57]line Версия ККМ: v1.0 [12:25:57]line ФД осн.: 2045 [12:25:57]line ФМ осн.: 0000000002094248 [12:25:57]line Платежная система: O! деньги [12:25:57]line ФМ: 0000000002094248 [12:25:57]line ФД: 2046 [12:25:57]line ФПД: 827059616756 [12:25:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T122601&type=2&operation_type=1&fn_number=0000000002094248&fd_number=2046&fm=827059616756&tin=02508201610067®Number=0000000000189667&sum=12500 [12:25:58]line 2045 [12:25:58]written 0, free lines is 4095 [12:25:58]Write to MH i2c: 01 00 00 23 4A 6D [12:25:58]Write i2c OK [12:25:58]MH_I2C_Read... [12:25:58]Read from MH i2c: 01 [12:25:58]MH_I2C_Read... [12:25:58]Read from MH i2c: 01 07 00 [12:25:58]MH_I2C_Read... [12:25:58]Read from MH i2c: 01 07 00 23 4A 00 00 00 00 00 DD 0C 5D [12:25:58]RasterBufferAndPrint [12:25:58]line [12:25:58]line [12:25:58]line [12:25:58]line [12:25:58]line [12:25:58]written 0, free lines is 3299 [12:25:58]MH_Cut [12:25:58]Write to MH i2c: D1 01 00 2A 4A 01 46 [12:25:58]Write i2c OK [12:25:58]MH_I2C_Read... [12:25:58]Read from MH i2c: D1 [12:25:58]MH_I2C_Read... [12:25:58]Read from MH i2c: D1 01 00 [12:25:58]MH_I2C_Read... [12:25:58]Read from MH i2c: D1 01 00 2A 4A 00 45 [12:25:58]Write to MH i2c: 01 00 00 2B 4A 75 [12:25:58]Write i2c OK [12:25:58]MH_I2C_Read... [12:25:59]*** Cut start [12:25:59]*** Partial cut [12:25:59]*** CUTSNS_PIN = 1 [12:25:59]*** CUTSNS_PIN = 0 [12:25:59]*** Brake cut motor [12:25:59]Read from MH i2c: 01 [12:25:59]MH_I2C_Read... [12:25:59]*** Stop cut motor [12:25:59]*** Cut end [12:25:59]Read from MH i2c: 01 07 00 [12:25:59]MH_I2C_Read... [12:25:59]Read from MH i2c: 01 07 00 2B 4A 00 00 00 00 00 FF 0F 8A [12:25:59]process_action close_receipt done [12:25:59]requested_data is exist [12:25:59]produce_requested_data [12:25:59]requested_item fm.sn is exist - process it [12:25:59]wFMCommunicate request_size=4 [12:25:59]MH_SAM_APDU [12:25:59]CAPDU: 80 11 00 00 [12:25:59]Write to MH i2c: E2 08 00 2C 4A 80 11 00 00 00 00 00 00 F0 [12:25:59]Write i2c OK [12:25:59]MH_I2C_Read... [12:25:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:59]Read from MH i2c: E2 [12:25:59]MH_I2C_Read... [12:25:59]Read from MH i2c: E2 17 00 [12:25:59]MH_I2C_Read... [12:25:59]Read from MH i2c: E2 17 00 2C 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 40 [12:25:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [12:25:59]wFMCommunicate OK [12:25:59]requested_item fd.num is exist - process it [12:25:59]SAM_PROTO_GetFieldsCounters [12:25:59]wFMCommunicate request_size=4 [12:25:59]MH_SAM_APDU [12:25:59]CAPDU: 80 13 00 00 [12:25:59]Write to MH i2c: E2 08 00 2D 4A 80 13 00 00 00 00 00 00 F3 [12:25:59]Write i2c OK [12:25:59]MH_I2C_Read... [12:26:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:26:00]Read from MH i2c: E2 [12:26:00]MH_I2C_Read... [12:26:00]Read from MH i2c: E2 62 00 [12:26:00]MH_I2C_Read... [12:26:00]Read from MH i2c: E2 62 00 2D 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 FE 07 00 00 0E 04 04 00 0D 00 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 52 [12:26:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 FE 07 00 00 0E 04 04 00 0D 00 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 [12:26:00]wFMCommunicate OK [12:26:00]SAM_PROTO_GetFieldsCounters done [12:26:00]requested_item shift.num is exist - process it [12:26:00]requested_item shift.opened is exist - process it [12:26:00]req_shift_opened [12:26:00]FM_GetShiftState [12:26:00]SAM_PROTO_GetShiftState [12:26:00]wFMCommunicate request_size=4 [12:26:00]MH_SAM_APDU [12:26:00]CAPDU: 80 13 01 00 [12:26:00]Write to MH i2c: E2 08 00 2E 4A 80 13 01 00 00 00 00 00 F5 [12:26:00]Write i2c OK [12:26:00]MH_I2C_Read... [12:26:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:26:00]Read from MH i2c: E2 [12:26:00]MH_I2C_Read... [12:26:00]Read from MH i2c: E2 0E 00 [12:26:00]MH_I2C_Read... [12:26:00]Read from MH i2c: E2 0E 00 2E 4A 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 E9 [12:26:00]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [12:26:00]wFMCommunicate OK [12:26:00]SAM_PROTO_GetShiftState done [12:26:00]FM_GetShiftState done [12:26:00]req_shift_opened done [12:26:00]requested_item shift.open_date is exist - process it [12:26:00]req_shift_open_date [12:26:00]req_shift_open_date done [12:26:00]produce_requested_data done [12:26:00]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2046,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [12:26:00]process_action_free close_receipt [12:26:00]json_value_free [12:26:00]json_value_free done [12:26:00]process_json_proto returns [12:26:00]Send response to host [12:26:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2046,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [12:26:00]free response buf [12:26:00]execute_script done [12:26:00]execute_script returns [12:26:00]free content buf [12:26:00]Sock 9.Close socket [12:26:00]Sock 9.Thread stoped [12:26:03]accept exits with 8 [12:26:03]New connection [12:26:03]New thread 3067460964 created [12:26:03]Thread 3067317604 joined [12:26:03]Waiting for new connection... [12:26:03] Sock 8.Parse request [12:26:03]Sock 8.Check first char [12:26:03]Sock 8.First char is OK [12:26:03]request: POST /json_proto HTTP/1.0 [12:26:03]Method: POST [12:26:03]URL: /json_proto [12:26:03]Method is POST - this is cgi request [12:26:03]url: /json_proto [12:26:03]query_string will be loaded in cgi processing [12:26:03]execute_cgi json_proto POST (null) [12:26:03]execute_cgi path=json_proto method=POST [12:26:03]POST find Content-Length [12:26:03]Host: 172.17.45.132:8080 [12:26:03]Content-Length: 816 [12:26:03]Content-Type: application/json [12:26:03] [12:26:03]POST finish read [12:26:03]Found Content-Length = 816 [12:26:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126349", "tax_sys" : 0, "items" : [ { "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:26:03]execute_script... [12:26:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126349", "tax_sys" : 0, "items" : [ { "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:26:03]POST & json_proto [12:26:03]process_json_proto [12:26:03]json parsed OK: [12:26:03]protocol is kg_v1.0 [12:26:03]action value=close_receipt [12:26:03]process_action close_receipt [12:26:03]cmd_close_receipt [12:26:03]MH_GetDate [12:26:03]Write to MH i2c: F0 00 00 2F 4A 68 [12:26:03]Write i2c OK [12:26:03]MH_I2C_Read... [12:26:03]Read from MH i2c: F0 [12:26:03]MH_I2C_Read... [12:26:03]Read from MH i2c: F0 09 00 [12:26:03]MH_I2C_Read... [12:26:03]Read from MH i2c: F0 09 00 2F 4A 00 E1 38 A6 66 E3 0B 90 66 7A [12:26:03]GetLastDocTimeStamp 1722169561 [12:26:03]current date 1722169569 [12:26:03]FM_GetShiftState [12:26:03]SAM_PROTO_GetShiftState [12:26:03]wFMCommunicate request_size=4 [12:26:03]MH_SAM_APDU [12:26:03]CAPDU: 80 13 01 00 [12:26:03]Write to MH i2c: E2 08 00 30 4A 80 13 01 00 00 00 00 00 F7 [12:26:03]Write i2c OK [12:26:03]MH_I2C_Read... [12:26:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:26:03]Read from MH i2c: E2 [12:26:03]MH_I2C_Read... [12:26:03]Read from MH i2c: E2 0E 00 [12:26:03]MH_I2C_Read... [12:26:03]Read from MH i2c: E2 0E 00 30 4A 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 EB [12:26:03]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [12:26:03]wFMCommunicate OK [12:26:03]SAM_PROTO_GetShiftState done [12:26:03]FM_GetShiftState done [12:26:03]opened in 1722125648 [12:26:03]opened+sec_in_day 1722212048 [12:26:03]quantity*price = 12500 [12:26:03]sum+1 = 12501 [12:26:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 0.00 Безнал.: 125.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 98 28.07.2024 12:26 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: Бакай Банк ФМ: 0000000002094248 ФД: 2047 ФПД: 193332506640094 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T122609&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2047&fm=193332506640094&tin=02508201610067®Number=0000000000189667&sum=12500 0 [12:26:05]StoreToDocumentArchive [12:26:05]shift 13 fd 2047 [12:26:05]save to /storage/0013/doc_00002047 [12:26:05]save last doc name /storage/0013/doc_00002047 to /storage/kkm_last_doc_name [12:26:05]save OK [12:26:05]Clear old archive folders... [12:26:05]ProcessDocumentItem done err = 0, tmpTLVsize=271 [12:26:05]tlvbuf is 0201D140 [12:26:05]SAM_PROTO_ClearQueue [12:26:05]wFMCommunicate request_size=4 [12:26:05]MH_SAM_APDU [12:26:05]CAPDU: 80 09 00 00 [12:26:05]Write to MH i2c: E2 08 00 3D 4A 80 09 00 00 00 00 00 00 F9 [12:26:05]Write i2c OK [12:26:05]MH_I2C_Read... [12:26:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:26:05]Read from MH i2c: E2 [12:26:05]MH_I2C_Read... [12:26:05]Read from MH i2c: E2 03 00 [12:26:05]MH_I2C_Read... [12:26:05]Read from MH i2c: E2 03 00 3D 4A 00 90 00 FB [12:26:05]RAPDU: 90 00 [12:26:05]wFMCommunicate OK [12:26:05]SAM_PROTO_ClearQueue done [12:26:05]KKMCreateOFDPacket [12:26:05]OFDProtocolAddRootSTLVToBuf [12:26:05]FM_MakeSignedData [12:26:05]FM_MakeSignedData [12:26:05]SAM_PROTO_SignData [12:26:05]wFMCommunicate request_size=4 [12:26:05]MH_SAM_APDU [12:26:05]CAPDU: 80 0D 01 02 [12:26:05]Write to MH i2c: E2 08 00 3E 4A 80 0D 01 02 00 00 00 00 01 [12:26:05]Write i2c OK [12:26:05]MH_I2C_Read... [12:26:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:26:05]Read from MH i2c: E2 [12:26:05]MH_I2C_Read... [12:26:05]Read from MH i2c: E2 03 00 [12:26:05]MH_I2C_Read... [12:26:05]Read from MH i2c: E2 03 00 3E 4A 00 90 00 FC [12:26:05]RAPDU: 90 00 [12:26:05]wFMCommunicate OK [12:26:05]wFMCommunicate request_size=255 [12:26:05]MH_SAM_APDU [12:26:05]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 E1 38 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 [12:26:05]Write to MH i2c: E2 02 01 3F 4A 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 E1 38 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 A6 [12:26:05]Write i2c OK [12:26:05]MH_I2C_Read... [12:26:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:26:05]Read from MH i2c: E2 [12:26:05]MH_I2C_Read... [12:26:05]Read from MH i2c: E2 03 00 [12:26:05]MH_I2C_Read... [12:26:05]Read from MH i2c: E2 03 00 3F 4A 00 90 00 FD [12:26:05]RAPDU: 90 00 [12:26:05]wFMCommunicate OK [12:26:05]wFMCommunicate request_size=30 [12:26:05]MH_SAM_APDU [12:26:05]CAPDU: 80 0D 02 02 19 32 30 39 34 32 34 38 10 04 04 00 FF 07 00 00 35 04 06 00 AF D5 BB 61 BE DE [12:26:05]Write to MH i2c: E2 21 00 40 4A 80 0D 02 02 19 00 32 30 39 34 32 34 38 10 04 04 00 FF 07 00 00 35 04 06 00 AF D5 BB 61 BE DE 00 00 3C [12:26:05]Write i2c OK [12:26:05]MH_I2C_Read... [12:26:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:26:05]Read from MH i2c: E2 [12:26:05]MH_I2C_Read... [12:26:05]Read from MH i2c: E2 03 00 [12:26:05]MH_I2C_Read... [12:26:05]Read from MH i2c: E2 03 00 40 4A 00 90 00 FE [12:26:05]RAPDU: 90 00 [12:26:05]wFMCommunicate OK [12:26:05]wFMCommunicate request_size=4 [12:26:05]MH_SAM_APDU [12:26:05]CAPDU: 80 0D 03 02 [12:26:05]Write to MH i2c: E2 08 00 41 4A 80 0D 03 02 00 00 00 00 06 [12:26:05]Write i2c OK [12:26:05]MH_I2C_Read... [12:26:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:26:05]Read from MH i2c: E2 [12:26:05]MH_I2C_Read... [12:26:05]Read from MH i2c: E2 0B 00 [12:26:05]MH_I2C_Read... [12:26:05]Read from MH i2c: E2 0B 00 41 4A 00 4F 9D 23 72 CC 72 CB BF 90 00 50 [12:26:05]RAPDU: 4F 9D 23 72 CC 72 CB BF 90 00 [12:26:05]wFMCommunicate OK [12:26:05]SAM_PROTO_SignData done [12:26:05]FM_MakeSignedData done [12:26:05]CreateOFDProtocolMessage [12:26:05]wFMCommunicate request_size=4 [12:26:05]MH_SAM_APDU [12:26:05]CAPDU: 80 11 00 00 [12:26:05]Write to MH i2c: E2 08 00 42 4A 80 11 00 00 00 00 00 00 06 [12:26:05]Write i2c OK [12:26:05]MH_I2C_Read... [12:26:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:05]Read from MH i2c: E2 [12:26:05]MH_I2C_Read... [12:26:05]Read from MH i2c: E2 17 00 [12:26:05]MH_I2C_Read... [12:26:05]Read from MH i2c: E2 17 00 42 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 56 [12:26:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [12:26:05]wFMCommunicate OK [12:26:05]CreateOFDProtocolMessage done [12:26:05]OFDSenderStorePacket 2047 [12:26:05]StoreOFDPacket docnum=2047 [12:26:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 23 01 00 00 F9 93 1B 01 74 A3 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 E1 38 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 FF 07 00 00 35 04 06 00 AF D5 BB 61 BE DE 4F 9D 23 72 CC 72 CB BF [12:26:05]CheckFolder [12:26:05]dirname=/storage/ofd_packets [12:26:05]CheckFolder done [12:26:05]ProducePacketName [12:26:05]name=ofd_packets/00002047 [12:26:05]NVStorageSaveData ofd_packets/00002047 [12:26:05]File name is /storage/ofd_packets/00002047 [12:26:05]Write 321 bytes [12:26:05]NVStorageSaveData done [12:26:05]OFDSenderStorePacket done [12:26:05]KKMCreateOFDPacket done [12:26:05]NVStorageSaveData kkm_last_timestamp [12:26:05]File name is /storage/kkm_last_timestamp [12:26:05]Write 4 bytes [12:26:05]NVStorageSaveData done [12:26:05]ExternCall_PrintAddStr [12:26:05]wPrintStart [12:26:05]Write to MH i2c: 01 00 00 43 4A 8D [12:26:05]Write i2c OK [12:26:05]MH_I2C_Read... [12:26:05]Read from MH i2c: 01 [12:26:05]MH_I2C_Read... [12:26:05]Read from MH i2c: 01 07 00 [12:26:05]MH_I2C_Read... [12:26:05]Read from MH i2c: 01 07 00 43 4A 00 00 00 00 00 FF 0F A2 [12:26:05]RasterBufferAndPrint [12:26:05]line Счет N : (3)126349 [12:26:05]line ИНН: 02508201610067 [12:26:05]line Контрольно-Кассовый Чек [12:26:05]line ПРОДАЖА [12:26:05]line Товар: 5449000006271 [12:26:05]line Напиток Фанта 1л [12:26:05]line 1.000 * 125.00 [12:26:05]line = 125.00 [12:26:05]line НДС 12% НСП 1% [12:26:05]line > о реализуемом товаре [12:26:05]line ИТОГО: 125.00 [12:26:05]line НСП 1% : 1.11 [12:26:05]line НДС 12% : 13.27 [12:26:05]line Наличными: 0.00 [12:26:05]line Безнал.: 125.00 [12:26:05]line Место: АЗС № 127 "Партнер Нефть" [12:26:05]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [12:26:05]line СНО: Общий режим [12:26:05]line Чек 98 28.07.2024 12:26 [12:26:05]line Смена: 13 ФФД: 1.0 [12:26:05]line ЗНМ: 0300000161 [12:26:05]line РНМ: 0000000000189667 [12:26:05]line Версия ККМ: v1.0 [12:26:05]line Платежная система: Бакай Банк [12:26:05]line ФМ: 0000000002094248 [12:26:05]line ФД: 2047 [12:26:05]line ФПД: 193332506640094 [12:26:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T122609&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2047&fm=193332506640094&tin=02508201610067®Number=0000000000189667&sum=12500 [12:26:05]line 0 [12:26:05]written 0, free lines is 4095 [12:26:06]Write to MH i2c: 01 00 00 6D 4A B7 [12:26:06]Write i2c OK [12:26:06]MH_I2C_Read... [12:26:06]Read from MH i2c: 01 [12:26:06]MH_I2C_Read... [12:26:06]Read from MH i2c: 01 07 00 [12:26:06]MH_I2C_Read... [12:26:06]Read from MH i2c: 01 07 00 6D 4A 00 00 00 00 00 EB 0C B5 [12:26:06]RasterBufferAndPrint [12:26:06]line [12:26:06]line [12:26:06]line [12:26:06]line [12:26:06]line [12:26:06]written 0, free lines is 3320 [12:26:06]MH_Cut [12:26:06]Write to MH i2c: D1 01 00 74 4A 01 90 [12:26:06]Write i2c OK [12:26:06]MH_I2C_Read... [12:26:06]Read from MH i2c: D1 [12:26:06]MH_I2C_Read... [12:26:06]Read from MH i2c: D1 01 00 [12:26:06]MH_I2C_Read... [12:26:06]Read from MH i2c: D1 01 00 74 4A 00 8F [12:26:06]Write to MH i2c: 01 00 00 75 4A BF [12:26:06]Write i2c OK [12:26:06]MH_I2C_Read... [12:26:06]*** Cut start [12:26:06]*** Partial cut [12:26:06]*** CUTSNS_PIN = 1 [12:26:06]*** CUTSNS_PIN = 0 [12:26:07]*** Brake cut motor [12:26:07]Read from MH i2c: 01 [12:26:07]MH_I2C_Read... [12:26:07]*** Stop cut motor [12:26:07]*** Cut end [12:26:07]Read from MH i2c: 01 07 00 [12:26:07]MH_I2C_Read... [12:26:07]Read from MH i2c: 01 07 00 75 4A 00 00 00 00 00 FF 0F D4 [12:26:07]process_action close_receipt done [12:26:07]requested_data is exist [12:26:07]produce_requested_data [12:26:07]requested_item fm.sn is exist - process it [12:26:07]wFMCommunicate request_size=4 [12:26:07]MH_SAM_APDU [12:26:07]CAPDU: 80 11 00 00 [12:26:07]Write to MH i2c: E2 08 00 76 4A 80 11 00 00 00 00 00 00 3A [12:26:07]Write i2c OK [12:26:07]MH_I2C_Read... [12:26:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:07]Read from MH i2c: E2 [12:26:07]MH_I2C_Read... [12:26:07]Read from MH i2c: E2 17 00 [12:26:07]MH_I2C_Read... [12:26:07]Read from MH i2c: E2 17 00 76 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 8A [12:26:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [12:26:07]wFMCommunicate OK [12:26:07]requested_item fd.num is exist - process it [12:26:07]SAM_PROTO_GetFieldsCounters [12:26:07]wFMCommunicate request_size=4 [12:26:07]MH_SAM_APDU [12:26:07]CAPDU: 80 13 00 00 [12:26:07]Write to MH i2c: E2 08 00 77 4A 80 13 00 00 00 00 00 00 3D [12:26:07]Write i2c OK [12:26:07]MH_I2C_Read... [12:26:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:26:07]Read from MH i2c: E2 [12:26:07]MH_I2C_Read... [12:26:07]Read from MH i2c: E2 62 00 [12:26:07]MH_I2C_Read... [12:26:07]Read from MH i2c: E2 62 00 77 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 FF 07 00 00 0E 04 04 00 0D 00 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 A0 [12:26:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 FF 07 00 00 0E 04 04 00 0D 00 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 [12:26:07]wFMCommunicate OK [12:26:07]SAM_PROTO_GetFieldsCounters done [12:26:07]requested_item shift.num is exist - process it [12:26:07]requested_item shift.opened is exist - process it [12:26:07]req_shift_opened [12:26:07]FM_GetShiftState [12:26:07]SAM_PROTO_GetShiftState [12:26:07]wFMCommunicate request_size=4 [12:26:07]MH_SAM_APDU [12:26:07]CAPDU: 80 13 01 00 [12:26:07]Write to MH i2c: E2 08 00 78 4A 80 13 01 00 00 00 00 00 3F [12:26:07]Write i2c OK [12:26:07]MH_I2C_Read... [12:26:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:26:07]Read from MH i2c: E2 [12:26:07]MH_I2C_Read... [12:26:07]Read from MH i2c: E2 0E 00 [12:26:07]MH_I2C_Read... [12:26:07]Read from MH i2c: E2 0E 00 78 4A 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 33 [12:26:07]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [12:26:07]wFMCommunicate OK [12:26:07]SAM_PROTO_GetShiftState done [12:26:07]FM_GetShiftState done [12:26:07]req_shift_opened done [12:26:07]requested_item shift.open_date is exist - process it [12:26:07]req_shift_open_date [12:26:07]req_shift_open_date done [12:26:07]produce_requested_data done [12:26:07]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2047,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [12:26:07]process_action_free close_receipt [12:26:07]json_value_free [12:26:07]json_value_free done [12:26:07]process_json_proto returns [12:26:07]Send response to host [12:26:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2047,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [12:26:07]free response buf [12:26:07]execute_script done [12:26:07]execute_script returns [12:26:07]free content buf [12:26:07]Sock 8.Close socket [12:26:07]Sock 8.Thread stoped [12:27:57]ConnectInit Can't connect to host [12:27:57]CommunicateWithHost connect error [12:27:57]CommunicateWithHost err = -1 [12:27:57]OFD Sender: Server communicate error [12:27:57]OFD Sender: Processing packet 2045 [packets to send 3, broken 0] [12:27:57]ProducePacketName [12:27:57]name=ofd_packets/00002045 [12:27:57]OFD Sender: To server: pG, [12:27:57]CommunicateWithHost lk.salyk.kg:30040 [12:27:57]ConnectInit lk.salyk.kg [12:27:58]Connected sock=8 [12:27:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 23 01 00 00 74 DE 1B 01 82 C6 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 CE 38 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 FD 07 00 00 35 04 06 00 C0 80 83 FA 98 65 3A 8E A6 3A 59 31 D8 3A [12:27:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 BE 8A 47 00 CD A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 FD 07 00 00 F4 03 04 00 C1 E4 A5 66 B6 04 01 00 00 6E 72 36 FF 59 E9 58 F4 [12:27:58]CommunicateWithHost err = 0 [12:27:58]CheckOFDResponse [12:27:58]1017 (14) - 77093643461234 [12:27:58]1041 (16) - 0000000002094248 [12:27:58]1040 (4) - 2045 [12:27:58]1012 (4) - 28.07.2024 06:27 [12:27:58]1206 (1) - 0 [12:27:58]OFD Sender: Remove packet 2045 [12:27:58]ProducePacketName [12:27:58]name=ofd_packets/00002045 [12:27:58]NVStorageDeleteData [12:27:58]OFD Sender: Processing packet 2046 [packets to send 2, broken 0] [12:27:58]ProducePacketName [12:27:58]name=ofd_packets/00002046 [12:27:58]OFD Sender: To server: pG, [12:27:58]CommunicateWithHost lk.salyk.kg:30040 [12:27:58]ConnectInit lk.salyk.kg [12:27:59]Connected sock=8 [12:27:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 3F 01 00 00 66 20 37 01 17 58 5A 03 01 00 03 00 2B 01 1E 04 01 00 02 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 D9 38 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 27 04 04 00 FD 07 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 FE 07 00 00 35 04 06 00 00 C0 90 98 3B F4 F7 87 88 08 49 00 C3 D7 [12:27:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 F1 3F 47 00 FA A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 FE 07 00 00 F4 03 04 00 C2 E4 A5 66 B6 04 01 00 00 54 5C E8 9C 27 1F 1D D8 [12:27:59]CommunicateWithHost err = 0 [12:27:59]CheckOFDResponse [12:27:59]1017 (14) - 77093643461234 [12:27:59]1041 (16) - 0000000002094248 [12:27:59]1040 (4) - 2046 [12:27:59]1012 (4) - 28.07.2024 06:27 [12:27:59]1206 (1) - 0 [12:27:59]OFD Sender: Remove packet 2046 [12:27:59]ProducePacketName [12:27:59]name=ofd_packets/00002046 [12:27:59]NVStorageDeleteData [12:27:59]OFD Sender: Processing packet 2047 [packets to send 1, broken 0] [12:27:59]ProducePacketName [12:27:59]name=ofd_packets/00002047 [12:27:59]OFD Sender: To server: pG, [12:27:59]CommunicateWithHost lk.salyk.kg:30040 [12:27:59]ConnectInit lk.salyk.kg [12:27:59]Connected sock=8 [12:27:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 23 01 00 00 F9 93 1B 01 74 A3 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 E1 38 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 FF 07 00 00 35 04 06 00 AF D5 BB 61 BE DE 4F 9D 23 72 CC 72 CB BF [12:28:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 EC 41 47 00 DA 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 32 30 39 34 32 34 38 10 04 04 00 FF 07 00 00 F4 03 04 00 C2 E4 A5 66 B6 04 01 00 00 8F 4C 56 90 46 08 45 9E [12:28:00]CommunicateWithHost err = 0 [12:28:00]CheckOFDResponse [12:28:00]1017 (14) - 77093643461234 [12:28:00]1041 (16) - 0000000002094248 [12:28:00]1040 (4) - 2047 [12:28:00]1012 (4) - 28.07.2024 06:27 [12:28:00]1206 (1) - 0 [12:28:00]OFD Sender: Remove packet 2047 [12:28:00]ProducePacketName [12:28:00]name=ofd_packets/00002047 [12:28:00]NVStorageDeleteData [12:28:00]OFD Sender: No OFD packet to send [12:28:05]OFD Sender: No OFD packet to send [12:28:10]OFD Sender: No OFD packet to send [12:28:15]OFD Sender: No OFD packet to send [12:28:20]OFD Sender: No OFD packet to send [12:28:25]OFD Sender: No OFD packet to send [12:28:30]OFD Sender: No OFD packet to send [12:28:35]OFD Sender: No OFD packet to send [12:28:40]OFD Sender: No OFD packet to send [12:28:45]OFD Sender: No OFD packet to send [12:28:50]OFD Sender: No OFD packet to send [12:28:55]OFD Sender: No OFD packet to send [12:29:00]OFD Sender: No OFD packet to send [12:29:05]OFD Sender: No OFD packet to send [12:29:10]OFD Sender: No OFD packet to send [12:29:15]OFD Sender: No OFD packet to send [12:29:20]OFD Sender: No OFD packet to send [12:29:25]OFD Sender: No OFD packet to send [12:29:30]OFD Sender: No OFD packet to send [12:29:35]OFD Sender: No OFD packet to send [12:29:40]OFD Sender: No OFD packet to send [12:29:45]OFD Sender: No OFD packet to send [12:29:50]OFD Sender: No OFD packet to send [12:29:55]OFD Sender: No OFD packet to send [12:30:00]OFD Sender: No OFD packet to send [12:30:05]OFD Sender: No OFD packet to send [12:30:10]OFD Sender: No OFD packet to send [12:30:15]OFD Sender: No OFD packet to send [12:30:20]OFD Sender: No OFD packet to send [12:30:25]OFD Sender: No OFD packet to send [12:30:30]OFD Sender: No OFD packet to send [12:30:35]OFD Sender: No OFD packet to send [12:30:40]OFD Sender: No OFD packet to send [12:30:42]accept exits with 9 [12:30:42]New connection [12:30:42]New thread 3067317604 created [12:30:42]Thread 3067460964 joined [12:30:42]Waiting for new connection... [12:30:42] Sock 9.Parse request [12:30:42]Sock 9.Check first char [12:30:42]Sock 9.First char is OK [12:30:42]request: POST /json_proto HTTP/1.0 [12:30:42]Method: POST [12:30:42]URL: /json_proto [12:30:42]Method is POST - this is cgi request [12:30:42]url: /json_proto [12:30:42]query_string will be loaded in cgi processing [12:30:42]execute_cgi json_proto POST (null) [12:30:42]execute_cgi path=json_proto method=POST [12:30:42]POST find Content-Length [12:30:42]Host: 172.17.45.132:8080 [12:30:42]Content-Length: 1303 [12:30:42]Content-Type: application/json [12:30:42] [12:30:42]POST finish read [12:30:42]Found Content-Length = 1303 [12:30:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126350", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "90162602", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red bull 0,25\u043B", "price" : 157.00, "quantity" : 1.000, "sum" : 157.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 267.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:30:42]execute_script... [12:30: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)126350", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "90162602", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red bull 0,25\u043B", "price" : 157.00, "quantity" : 1.000, "sum" : 157.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 267.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:30:42]POST & json_proto [12:30:42]process_json_proto [12:30:42]json parsed OK: [12:30:42]protocol is kg_v1.0 [12:30:42]action value=close_receipt [12:30:42]process_action close_receipt [12:30:42]cmd_close_receipt [12:30:42]MH_GetDate [12:30:42]Write to MH i2c: F0 00 00 79 4A B2 [12:30:42]Write i2c OK [12:30:42]MH_I2C_Read... [12:30:42]Read from MH i2c: F0 [12:30:42]MH_I2C_Read... [12:30:42]Read from MH i2c: F0 09 00 [12:30:42]MH_I2C_Read... [12:30:42]Read from MH i2c: F0 09 00 79 4A 00 F7 39 A6 66 E3 0B 90 66 DB [12:30:42]GetLastDocTimeStamp 1722169569 [12:30:42]current date 1722169847 [12:30:42]FM_GetShiftState [12:30:42]SAM_PROTO_GetShiftState [12:30:42]wFMCommunicate request_size=4 [12:30:42]MH_SAM_APDU [12:30:42]CAPDU: 80 13 01 00 [12:30:42]Write to MH i2c: E2 08 00 7A 4A 80 13 01 00 00 00 00 00 41 [12:30:42]Write i2c OK [12:30:42]MH_I2C_Read... [12:30:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:42]Read from MH i2c: E2 [12:30:42]MH_I2C_Read... [12:30:42]Read from MH i2c: E2 0E 00 [12:30:42]MH_I2C_Read... [12:30:42]Read from MH i2c: E2 0E 00 7A 4A 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 35 [12:30:42]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [12:30:42]wFMCommunicate OK [12:30:42]SAM_PROTO_GetShiftState done [12:30:42]FM_GetShiftState done [12:30:42]opened in 1722125648 [12:30:42]opened+sec_in_day 1722212048 [12:30:42]quantity*price = 6000 [12:30:42]sum+1 = 6001 [12:30:42]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 90162602 Энерг напиток Red bull 0,25л 1.000 * 157.00 = 157.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 267.00 НСП 1% : 2.36 НДС 12% : 28.35 Наличными: 0.00 Безнал.: 267.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 99 28.07.2024 12:30 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2048 ФПД: 137480807567770 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T123048&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2048&fm=137480807567770&tin=02508201610067®Number=0000000000189667&sum=26700 0 [12:30:43]StoreToDocumentArchive [12:30:43]shift 13 fd 2048 [12:30:43]save to /storage/0013/doc_00002048 [12:30:43]save last doc name /storage/0013/doc_00002048 to /storage/kkm_last_doc_name [12:30:43]save OK [12:30:43]Clear old archive folders... [12:30:43]ProcessDocumentItem done err = 0, tmpTLVsize=478 [12:30:43]tlvbuf is 01FFBD80 [12:30:43]SAM_PROTO_ClearQueue [12:30:43]wFMCommunicate request_size=4 [12:30:43]MH_SAM_APDU [12:30:43]CAPDU: 80 09 00 00 [12:30:43]Write to MH i2c: E2 08 00 87 4A 80 09 00 00 00 00 00 00 43 [12:30:43]Write i2c OK [12:30:43]MH_I2C_Read... [12:30:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:30:43]Read from MH i2c: E2 [12:30:43]MH_I2C_Read... [12:30:43]Read from MH i2c: E2 03 00 [12:30:43]MH_I2C_Read... [12:30:43]Read from MH i2c: E2 03 00 87 4A 00 90 00 45 [12:30:43]RAPDU: 90 00 [12:30:43]wFMCommunicate OK [12:30:43]SAM_PROTO_ClearQueue done [12:30:43]KKMCreateOFDPacket [12:30:43]OFDProtocolAddRootSTLVToBuf [12:30:43]FM_MakeSignedData [12:30:43]FM_MakeSignedData [12:30:43]SAM_PROTO_SignData [12:30:43]wFMCommunicate request_size=4 [12:30:43]MH_SAM_APDU [12:30:43]CAPDU: 80 0D 01 02 [12:30:43]Write to MH i2c: E2 08 00 88 4A 80 0D 01 02 00 00 00 00 4B [12:30:43]Write i2c OK [12:30:43]MH_I2C_Read... [12:30:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:30:43]Read from MH i2c: E2 [12:30:43]MH_I2C_Read... [12:30:43]Read from MH i2c: E2 03 00 [12:30:43]MH_I2C_Read... [12:30:43]Read from MH i2c: E2 03 00 88 4A 00 90 00 46 [12:30:43]RAPDU: 90 00 [12:30:43]wFMCommunicate OK [12:30:43]wFMCommunicate request_size=255 [12:30:43]MH_SAM_APDU [12:30:43]CAPDU: 80 0D 02 02 FA 03 00 DE 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 30 34 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 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 3D 00 00 00 00 13 04 06 00 54 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 [12:30:43]Write to MH i2c: E2 02 01 89 4A 80 0D 02 02 FA 00 03 00 DE 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 30 34 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 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 3D 00 00 00 00 13 04 06 00 54 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 00 00 D0 [12:30:43]Write i2c OK [12:30:43]MH_I2C_Read... [12:30:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:44]Read from MH i2c: E2 [12:30:44]MH_I2C_Read... [12:30:44]Read from MH i2c: E2 03 00 [12:30:44]MH_I2C_Read... [12:30:44]Read from MH i2c: E2 03 00 89 4A 00 90 00 47 [12:30:44]RAPDU: 90 00 [12:30:44]wFMCommunicate OK [12:30:44]wFMCommunicate request_size=237 [12:30:44]MH_SAM_APDU [12:30:44]CAPDU: 80 0D 02 02 E8 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 68 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 68 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 F8 39 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 00 08 00 00 35 04 06 00 7D 09 BE B2 D1 9A [12:30:44]Write to MH i2c: E2 F0 00 8A 4A 80 0D 02 02 E8 00 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 68 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 68 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 F8 39 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 00 08 00 00 35 04 06 00 7D 09 BE B2 D1 9A 00 00 66 [12:30:44]Write i2c OK [12:30:44]MH_I2C_Read... [12:30:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:44]Read from MH i2c: E2 [12:30:44]MH_I2C_Read... [12:30:44]Read from MH i2c: E2 03 00 [12:30:44]MH_I2C_Read... [12:30:44]Read from MH i2c: E2 03 00 8A 4A 00 90 00 48 [12:30:44]RAPDU: 90 00 [12:30:44]wFMCommunicate OK [12:30:44]wFMCommunicate request_size=4 [12:30:44]MH_SAM_APDU [12:30:44]CAPDU: 80 0D 03 02 [12:30:44]Write to MH i2c: E2 08 00 8B 4A 80 0D 03 02 00 00 00 00 50 [12:30:44]Write i2c OK [12:30:44]MH_I2C_Read... [12:30:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:30:44]Read from MH i2c: E2 [12:30:44]MH_I2C_Read... [12:30:44]Read from MH i2c: E2 0B 00 [12:30:44]MH_I2C_Read... [12:30:44]Read from MH i2c: E2 0B 00 8B 4A 00 0E 19 B2 C3 36 A1 56 09 90 00 23 [12:30:44]RAPDU: 0E 19 B2 C3 36 A1 56 09 90 00 [12:30:44]wFMCommunicate OK [12:30:44]SAM_PROTO_SignData done [12:30:44]FM_MakeSignedData done [12:30:44]CreateOFDProtocolMessage [12:30:44]wFMCommunicate request_size=4 [12:30:44]MH_SAM_APDU [12:30:44]CAPDU: 80 11 00 00 [12:30:44]Write to MH i2c: E2 08 00 8C 4A 80 11 00 00 00 00 00 00 50 [12:30:44]Write i2c OK [12:30:44]MH_I2C_Read... [12:30:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:44]Read from MH i2c: E2 [12:30:44]MH_I2C_Read... [12:30:44]Read from MH i2c: E2 17 00 [12:30:44]MH_I2C_Read... [12:30:44]Read from MH i2c: E2 17 00 8C 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 A0 [12:30:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [12:30:44]wFMCommunicate OK [12:30:44]CreateOFDProtocolMessage done [12:30:44]OFDSenderStorePacket 2048 [12:30:44]StoreOFDPacket docnum=2048 [12:30:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 F2 01 00 00 4B F5 EA 01 2F CF 5A 03 01 00 03 00 DE 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 30 34 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 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 3D 00 00 00 00 13 04 06 00 54 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 68 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 68 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 F8 39 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 00 08 00 00 35 04 06 00 7D 09 BE B2 D1 9A 0E 19 B2 C3 36 A1 56 09 [12:30:44]CheckFolder [12:30:44]dirname=/storage/ofd_packets [12:30:44]CheckFolder done [12:30:44]ProducePacketName [12:30:44]name=ofd_packets/00002048 [12:30:44]NVStorageSaveData ofd_packets/00002048 [12:30:44]File name is /storage/ofd_packets/00002048 [12:30:44]Write 528 bytes [12:30:44]NVStorageSaveData done [12:30:44]OFDSenderStorePacket done [12:30:44]KKMCreateOFDPacket done [12:30:44]NVStorageSaveData kkm_last_timestamp [12:30:44]File name is /storage/kkm_last_timestamp [12:30:44]Write 4 bytes [12:30:44]NVStorageSaveData done [12:30:44]ExternCall_PrintAddStr [12:30:44]wPrintStart [12:30:44]Write to MH i2c: 01 00 00 8D 4A D7 [12:30:44]Write i2c OK [12:30:44]MH_I2C_Read... [12:30:44]Read from MH i2c: 01 [12:30:44]MH_I2C_Read... [12:30:44]Read from MH i2c: 01 07 00 [12:30:44]MH_I2C_Read... [12:30:44]Read from MH i2c: 01 07 00 8D 4A 00 00 00 00 00 FF 0F EC [12:30:44]RasterBufferAndPrint [12:30:44]line Счет N : (3)126350 [12:30:44]line ИНН: 02508201610067 [12:30:44]line Контрольно-Кассовый Чек [12:30:44]line ПРОДАЖА [12:30:44]line Товар: 4700000160204 [12:30:44]line Вода Легенда 1,5л [12:30:44]line 1.000 * 60.00 [12:30:44]line = 60.00 [12:30:44]line НДС 12% НСП 1% [12:30:44]line > о реализуемом товаре [12:30:44]line Товар: 90162602 [12:30:44]line Энерг напиток Red bull 0,25л [12:30:44]line 1.000 * 157.00 [12:30:44]line = 157.00 [12:30:44]line НДС 12% НСП 1% [12:30:44]line > о реализуемом товаре [12:30:44]line Товар: 4700000160358 [12:30:44]line Вода Легенда 1л [12:30:44]line 1.000 * 50.00 [12:30:44]line = 50.00 [12:30:44]line НДС 12% НСП 1% [12:30:44]line > о реализуемом товаре [12:30:44]line ИТОГО: 267.00 [12:30:44]line НСП 1% : 2.36 [12:30:44]line НДС 12% : 28.35 [12:30:44]line Наличными: 0.00 [12:30:44]line Безнал.: 267.00 [12:30:44]line Место: АЗС № 127 "Партнер Нефть" [12:30:44]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [12:30:44]line СНО: Общий режим [12:30:44]line Чек 99 28.07.2024 12:30 [12:30:44]line Смена: 13 ФФД: 1.0 [12:30:44]line ЗНМ: 0300000161 [12:30:44]line РНМ: 0000000000189667 [12:30:44]line Версия ККМ: v1.0 [12:30:44]line Платежная система: O! деньги [12:30:44]line ФМ: 0000000002094248 [12:30:44]line ФД: 2048 [12:30:44]line ФПД: 137480807567770 [12:30:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T123048&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2048&fm=137480807567770&tin=02508201610067®Number=0000000000189667&sum=26700 [12:30:44]line 0 [12:30:44]written 0, free lines is 4095 [12:30:44]OFD Sender: Processing packet 2048 [packets to send 1, broken 0] [12:30:44]ProducePacketName [12:30:44]name=ofd_packets/00002048 [12:30:44]OFD Sender: To server: pG, [12:30:44]CommunicateWithHost lk.salyk.kg:30040 [12:30:44]ConnectInit lk.salyk.kg [12:30:44]Connected sock=10 [12:30:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 F2 01 00 00 4B F5 EA 01 2F CF 5A 03 01 00 03 00 DE 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 30 34 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 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 3D 00 00 00 00 13 04 06 00 54 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 68 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 68 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 F8 39 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 00 08 00 00 35 04 06 00 7D 09 BE B2 D1 9A 0E 19 B2 C3 36 A1 56 09 [12:30:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 2B 83 47 00 9D 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 00 08 00 00 F4 03 04 00 67 E5 A5 66 B6 04 01 00 00 C8 44 8C 30 37 0B 27 B2 [12:30:44]CommunicateWithHost err = 0 [12:30:44]CheckOFDResponse [12:30:44]1017 (14) - 77093643461234 [12:30:44]1041 (16) - 0000000002094248 [12:30:44]1040 (4) - 2048 [12:30:44]1012 (4) - 28.07.2024 06:29 [12:30:44]1206 (1) - 0 [12:30:44]OFD Sender: Remove packet 2048 [12:30:44]ProducePacketName [12:30:44]name=ofd_packets/00002048 [12:30:44]NVStorageDeleteData [12:30:45]Write to MH i2c: 01 00 00 C3 4A 0D [12:30:45]Write i2c OK [12:30:45]MH_I2C_Read... [12:30:45]Read from MH i2c: 01 [12:30:45]MH_I2C_Read... [12:30:45]Read from MH i2c: 01 07 00 [12:30:45]MH_I2C_Read... [12:30:45]Read from MH i2c: 01 07 00 C3 4A 00 00 00 00 00 55 0C 75 [12:30:45]RasterBufferAndPrint [12:30:45]line [12:30:45]line [12:30:45]line [12:30:45]line [12:30:45]line [12:30:45]written 0, free lines is 3166 [12:30:45]MH_Cut [12:30:45]Write to MH i2c: D1 01 00 CA 4A 01 E6 [12:30:45]Write i2c OK [12:30:45]MH_I2C_Read... [12:30:45]Read from MH i2c: D1 [12:30:45]MH_I2C_Read... [12:30:45]Read from MH i2c: D1 01 00 [12:30:45]MH_I2C_Read... [12:30:45]Read from MH i2c: D1 01 00 CA 4A 00 E5 [12:30:45]Write to MH i2c: 01 00 00 CB 4A 15 [12:30:45]Write i2c OK [12:30:45]MH_I2C_Read... [12:30:45]OFD Sender: No OFD packet to send [12:30:45]*** Cut start [12:30:45]*** Partial cut [12:30:45]*** CUTSNS_PIN = 1 [12:30:45]*** CUTSNS_PIN = 0 [12:30:46]*** Brake cut motor [12:30:46]Read from MH i2c: 01 [12:30:46]MH_I2C_Read... [12:30:46]*** Stop cut motor [12:30:46]*** Cut end [12:30:46]Read from MH i2c: 01 07 00 [12:30:46]MH_I2C_Read... [12:30:46]Read from MH i2c: 01 07 00 CB 4A 00 00 00 00 00 FF 0F 2A [12:30:46]process_action close_receipt done [12:30:46]requested_data is exist [12:30:46]produce_requested_data [12:30:46]requested_item fm.sn is exist - process it [12:30:46]wFMCommunicate request_size=4 [12:30:46]MH_SAM_APDU [12:30:46]CAPDU: 80 11 00 00 [12:30:46]Write to MH i2c: E2 08 00 CC 4A 80 11 00 00 00 00 00 00 90 [12:30:46]Write i2c OK [12:30:46]MH_I2C_Read... [12:30:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:46]Read from MH i2c: E2 [12:30:46]MH_I2C_Read... [12:30:46]Read from MH i2c: E2 17 00 [12:30:46]MH_I2C_Read... [12:30:46]Read from MH i2c: E2 17 00 CC 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 E0 [12:30:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [12:30:46]wFMCommunicate OK [12:30:46]requested_item fd.num is exist - process it [12:30:46]SAM_PROTO_GetFieldsCounters [12:30:46]wFMCommunicate request_size=4 [12:30:46]MH_SAM_APDU [12:30:46]CAPDU: 80 13 00 00 [12:30:46]Write to MH i2c: E2 08 00 CD 4A 80 13 00 00 00 00 00 00 93 [12:30:46]Write i2c OK [12:30:46]MH_I2C_Read... [12:30:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:30:46]Read from MH i2c: E2 [12:30:46]MH_I2C_Read... [12:30:46]Read from MH i2c: E2 62 00 [12:30:46]MH_I2C_Read... [12:30:46]Read from MH i2c: E2 62 00 CD 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 00 08 00 00 0E 04 04 00 0D 00 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 FB [12:30:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 00 08 00 00 0E 04 04 00 0D 00 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 [12:30:46]wFMCommunicate OK [12:30:46]SAM_PROTO_GetFieldsCounters done [12:30:46]requested_item shift.num is exist - process it [12:30:46]requested_item shift.opened is exist - process it [12:30:46]req_shift_opened [12:30:46]FM_GetShiftState [12:30:46]SAM_PROTO_GetShiftState [12:30:46]wFMCommunicate request_size=4 [12:30:46]MH_SAM_APDU [12:30:46]CAPDU: 80 13 01 00 [12:30:46]Write to MH i2c: E2 08 00 CE 4A 80 13 01 00 00 00 00 00 95 [12:30:46]Write i2c OK [12:30:46]MH_I2C_Read... [12:30:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:46]Read from MH i2c: E2 [12:30:46]MH_I2C_Read... [12:30:46]Read from MH i2c: E2 0E 00 [12:30:46]MH_I2C_Read... [12:30:46]Read from MH i2c: E2 0E 00 CE 4A 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 89 [12:30:46]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [12:30:46]wFMCommunicate OK [12:30:46]SAM_PROTO_GetShiftState done [12:30:46]FM_GetShiftState done [12:30:46]req_shift_opened done [12:30:46]requested_item shift.open_date is exist - process it [12:30:46]req_shift_open_date [12:30:46]req_shift_open_date done [12:30:46]produce_requested_data done [12:30:46]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2048,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [12:30:46]process_action_free close_receipt [12:30:46]json_value_free [12:30:46]json_value_free done [12:30:46]process_json_proto returns [12:30:46]Send response to host [12:30:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2048,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [12:30:46]free response buf [12:30:46]execute_script done [12:30:46]execute_script returns [12:30:46]free content buf [12:30:46]Sock 9.Close socket [12:30:46]Sock 9.Thread stoped [12:30:50]OFD Sender: No OFD packet to send [12:30:55]OFD Sender: No OFD packet to send [12:31:00]OFD Sender: No OFD packet to send [12:31:05]OFD Sender: No OFD packet to send [12:31:10]OFD Sender: No OFD packet to send [12:31:15]OFD Sender: No OFD packet to send [12:31:20]OFD Sender: No OFD packet to send [12:31:25]OFD Sender: No OFD packet to send [12:31:30]OFD Sender: No OFD packet to send [12:31:35]OFD Sender: No OFD packet to send [12:31:40]OFD Sender: No OFD packet to send [12:31:45]OFD Sender: No OFD packet to send [12:31:50]OFD Sender: No OFD packet to send [12:31:55]OFD Sender: No OFD packet to send [12:32:00]OFD Sender: No OFD packet to send [12:32:05]OFD Sender: No OFD packet to send [12:32:10]OFD Sender: No OFD packet to send [12:32:15]OFD Sender: No OFD packet to send [12:32:20]OFD Sender: No OFD packet to send [12:32:25]OFD Sender: No OFD packet to send [12:32:30]OFD Sender: No OFD packet to send [12:32:35]OFD Sender: No OFD packet to send [12:32:40]OFD Sender: No OFD packet to send [12:32:45]OFD Sender: No OFD packet to send [12:32:50]OFD Sender: No OFD packet to send [12:32:55]OFD Sender: No OFD packet to send [12:33:00]OFD Sender: No OFD packet to send [12:33:05]OFD Sender: No OFD packet to send [12:33:10]OFD Sender: No OFD packet to send [12:33:12]accept exits with 8 [12:33:12]New connection [12:33:12]New thread 3067460964 created [12:33:12]Thread 3067317604 joined [12:33:12]Waiting for new connection... [12:33:12] Sock 8.Parse request [12:33:12]Sock 8.Check first char [12:33:12]Sock 8.First char is OK [12:33:12]request: POST /json_proto HTTP/1.0 [12:33:12]Method: POST [12:33:12]URL: /json_proto [12:33:12]Method is POST - this is cgi request [12:33:12]url: /json_proto [12:33:12]query_string will be loaded in cgi processing [12:33:12]execute_cgi json_proto POST (null) [12:33:12]execute_cgi path=json_proto method=POST [12:33:12]POST find Content-Length [12:33:12]Host: 172.17.45.132:8080 [12:33:12]Content-Length: 2290 [12:33:12]Content-Type: application/json [12:33:12] [12:33:12]POST finish read [12:33:12]Found Content-Length = 2290 [12:33:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126351", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 3.000, "sum" : 450.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": "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": "4602441014019", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041B\u0438\u043C\u043E\u043D\u0430\u0434 0,5\u043B \u0441\u0442 (Gabb trade)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "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" : 2.000, "sum" : 110.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" : 4.000, "sum" : 28.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 981.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:12]execute_script... [12:33: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)126351", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 3.000, "sum" : 450.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": "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": "4602441014019", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041B\u0438\u043C\u043E\u043D\u0430\u0434 0,5\u043B \u0441\u0442 (Gabb trade)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "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" : 2.000, "sum" : 110.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" : 4.000, "sum" : 28.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 981.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:12]POST & json_proto [12:33:12]process_json_proto [12:33:12]json parsed OK: [12:33:12]protocol is kg_v1.0 [12:33:12]action value=close_receipt [12:33:12]process_action close_receipt [12:33:12]cmd_close_receipt [12:33:12]MH_GetDate [12:33:12]Write to MH i2c: F0 00 00 CF 4A 08 [12:33:12]Write i2c OK [12:33:12]MH_I2C_Read... [12:33:12]Read from MH i2c: F0 [12:33:12]MH_I2C_Read... [12:33:12]Read from MH i2c: F0 09 00 [12:33:12]MH_I2C_Read... [12:33:12]Read from MH i2c: F0 09 00 CF 4A 00 8E 3A A6 66 E3 0B 90 66 C9 [12:33:12]GetLastDocTimeStamp 1722169848 [12:33:12]current date 1722169998 [12:33:12]FM_GetShiftState [12:33:12]SAM_PROTO_GetShiftState [12:33:12]wFMCommunicate request_size=4 [12:33:12]MH_SAM_APDU [12:33:12]CAPDU: 80 13 01 00 [12:33:12]Write to MH i2c: E2 08 00 D0 4A 80 13 01 00 00 00 00 00 97 [12:33:12]Write i2c OK [12:33:12]MH_I2C_Read... [12:33:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:12]Read from MH i2c: E2 [12:33:12]MH_I2C_Read... [12:33:12]Read from MH i2c: E2 0E 00 [12:33:12]MH_I2C_Read... [12:33:12]Read from MH i2c: E2 0E 00 D0 4A 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 8B [12:33:12]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [12:33:12]wFMCommunicate OK [12:33:12]SAM_PROTO_GetShiftState done [12:33:12]FM_GetShiftState done [12:33:12]opened in 1722125648 [12:33:12]opened+sec_in_day 1722212048 [12:33:12]quantity*price = 45000 [12:33:12]sum+1 = 45001 [12:33:12]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001570071 Напиток Pepsi 1л 1.000 * 111.00 = 111.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000189356 Холодный чай Fuse манго ананас 1л 1.000 * 107.00 = 107.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4602441014019 Напиток Лимонад 0,5л ст (Gabb trade) 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 46146632 Р/ж Orbit XXL клубника,банан 20,4г 2.000 * 55.00 = 110.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000053020015 Бумажные стаканы 250мл 1шт 4.000 * 7.00 = 28.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 981.00 НСП 1% : 8.68 НДС 12% : 104.17 Наличными: 981.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 100 28.07.2024 12:33 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2049 ФПД: 57289469484978 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T123318&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2049&fm=57289469484978&tin=02508201610067®Number=0000000000189667&sum=98100 0 [12:33:13]StoreToDocumentArchive [12:33:13]shift 13 fd 2049 [12:33:13]save to /storage/0013/doc_00002049 [12:33:13]save last doc name /storage/0013/doc_00002049 to /storage/kkm_last_doc_name [12:33:13]save OK [12:33:13]Clear old archive folders... [12:33:13]ProcessDocumentItem done err = 0, tmpTLVsize=956 [12:33:13]tlvbuf is B6F56AF0 [12:33:13]SAM_PROTO_ClearQueue [12:33:13]wFMCommunicate request_size=4 [12:33:13]MH_SAM_APDU [12:33:13]CAPDU: 80 09 00 00 [12:33:13]Write to MH i2c: E2 08 00 DD 4A 80 09 00 00 00 00 00 00 99 [12:33:13]Write i2c OK [12:33:13]MH_I2C_Read... [12:33:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:33:13]Read from MH i2c: E2 [12:33:13]MH_I2C_Read... [12:33:13]Read from MH i2c: E2 03 00 [12:33:13]MH_I2C_Read... [12:33:13]Read from MH i2c: E2 03 00 DD 4A 00 90 00 9B [12:33:13]RAPDU: 90 00 [12:33:13]wFMCommunicate OK [12:33:13]SAM_PROTO_ClearQueue done [12:33:13]KKMCreateOFDPacket [12:33:13]OFDProtocolAddRootSTLVToBuf [12:33:13]FM_MakeSignedData [12:33:13]FM_MakeSignedData [12:33:13]SAM_PROTO_SignData [12:33:13]wFMCommunicate request_size=4 [12:33:13]MH_SAM_APDU [12:33:13]CAPDU: 80 0D 01 02 [12:33:13]Write to MH i2c: E2 08 00 DE 4A 80 0D 01 02 00 00 00 00 A1 [12:33:13]Write i2c OK [12:33:13]MH_I2C_Read... [12:33:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:33:14]Read from MH i2c: E2 [12:33:14]MH_I2C_Read... [12:33:14]Read from MH i2c: E2 03 00 [12:33:14]MH_I2C_Read... [12:33:14]Read from MH i2c: E2 03 00 DE 4A 00 90 00 9C [12:33:14]RAPDU: 90 00 [12:33:14]wFMCommunicate OK [12:33:14]wFMCommunicate request_size=255 [12:33:14]MH_SAM_APDU [12:33:14]CAPDU: 80 0D 02 02 FA 03 00 BC 03 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 98 3A 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 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 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 [12:33:14]Write to MH i2c: E2 02 01 DF 4A 80 0D 02 02 FA 00 03 00 BC 03 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 98 3A 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 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 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 00 00 A8 [12:33:14]Write i2c OK [12:33:14]MH_I2C_Read... [12:33:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:14]Read from MH i2c: E2 [12:33:14]MH_I2C_Read... [12:33:14]Read from MH i2c: E2 03 00 [12:33:14]MH_I2C_Read... [12:33:14]Read from MH i2c: E2 03 00 DF 4A 00 90 00 9D [12:33:14]RAPDU: 90 00 [12:33:14]wFMCommunicate OK [12:33:14]wFMCommunicate request_size=255 [12:33:14]MH_SAM_APDU [12:33:14]CAPDU: 80 0D 02 02 FA 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 79 00 8A 04 0D 00 34 36 30 32 34 34 31 30 31 34 30 31 39 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 30 2C 35 D0 BB 20 D1 81 D1 82 20 28 47 61 62 62 20 74 72 61 64 65 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 [12:33:14]Write to MH i2c: E2 02 01 E0 4A 80 0D 02 02 FA 00 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 79 00 8A 04 0D 00 34 36 30 32 34 34 31 30 31 34 30 31 39 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 30 2C 35 D0 BB 20 D1 81 D1 82 20 28 47 61 62 62 20 74 72 61 64 65 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 00 00 AA [12:33:14]Write i2c OK [12:33:14]MH_I2C_Read... [12:33:14]Read from MH i2c: E2 [12:33:14]MH_I2C_Read... [12:33:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:14]Read from MH i2c: E2 03 00 [12:33:14]MH_I2C_Read... [12:33:14]Read from MH i2c: E2 03 00 E0 4A 00 90 00 9E [12:33:14]RAPDU: 90 00 [12:33:14]wFMCommunicate OK [12:33:14]wFMCommunicate request_size=255 [12:33:14]MH_SAM_APDU [12:33:14]CAPDU: 80 0D 02 02 FA D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 D0 07 00 00 00 00 00 37 04 06 00 7C 15 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 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 [12:33:14]Write to MH i2c: E2 02 01 E1 4A 80 0D 02 02 FA 00 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 D0 07 00 00 00 00 00 37 04 06 00 7C 15 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 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 00 00 5E [12:33:14]Write i2c OK [12:33:14]MH_I2C_Read... [12:33:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:14]Read from MH i2c: E2 [12:33:14]MH_I2C_Read... [12:33:14]Read from MH i2c: E2 03 00 [12:33:14]MH_I2C_Read... [12:33:14]Read from MH i2c: E2 03 00 E1 4A 00 90 00 9F [12:33:14]RAPDU: 90 00 [12:33:14]wFMCommunicate OK [12:33:14]wFMCommunicate request_size=215 [12:33:14]MH_SAM_APDU [12:33:14]CAPDU: 80 0D 02 02 D2 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 F0 0A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 7F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 28 00 00 00 00 07 04 06 00 34 7F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 8E 3A A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 01 08 00 00 35 04 06 00 34 1A BE 7A 5F B2 [12:33:14]Write to MH i2c: E2 DA 00 E2 4A 80 0D 02 02 D2 00 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 F0 0A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 7F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 28 00 00 00 00 07 04 06 00 34 7F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 8E 3A A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 01 08 00 00 35 04 06 00 34 1A BE 7A 5F B2 00 00 A6 [12:33:14]Write i2c OK [12:33:14]MH_I2C_Read... [12:33:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:15]Read from MH i2c: E2 [12:33:15]MH_I2C_Read... [12:33:15]Read from MH i2c: E2 03 00 [12:33:15]MH_I2C_Read... [12:33:15]Read from MH i2c: E2 03 00 E2 4A 00 90 00 A0 [12:33:15]RAPDU: 90 00 [12:33:15]wFMCommunicate OK [12:33:15]wFMCommunicate request_size=4 [12:33:15]MH_SAM_APDU [12:33:15]CAPDU: 80 0D 03 02 [12:33:15]Write to MH i2c: E2 08 00 E3 4A 80 0D 03 02 00 00 00 00 A8 [12:33:15]Write i2c OK [12:33:15]MH_I2C_Read... [12:33:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:33:15]Read from MH i2c: E2 [12:33:15]MH_I2C_Read... [12:33:15]Read from MH i2c: E2 0B 00 [12:33:15]MH_I2C_Read... [12:33:15]Read from MH i2c: E2 0B 00 E3 4A 00 DC 7E 8C 9E 86 7F 1A 78 90 00 C4 [12:33:15]RAPDU: DC 7E 8C 9E 86 7F 1A 78 90 00 [12:33:15]wFMCommunicate OK [12:33:15]SAM_PROTO_SignData done [12:33:15]FM_MakeSignedData done [12:33:15]CreateOFDProtocolMessage [12:33:15]wFMCommunicate request_size=4 [12:33:15]MH_SAM_APDU [12:33:15]CAPDU: 80 11 00 00 [12:33:15]Write to MH i2c: E2 08 00 E4 4A 80 11 00 00 00 00 00 00 A8 [12:33:15]Write i2c OK [12:33:15]MH_I2C_Read... [12:33:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:15]Read from MH i2c: E2 [12:33:15]MH_I2C_Read... [12:33:15]Read from MH i2c: E2 17 00 [12:33:15]MH_I2C_Read... [12:33:15]Read from MH i2c: E2 17 00 E4 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 F8 [12:33:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [12:33:15]wFMCommunicate OK [12:33:15]CreateOFDProtocolMessage done [12:33:15]OFDSenderStorePacket 2049 [12:33:15]StoreOFDPacket docnum=2049 [12:33:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 D0 03 00 00 79 63 C8 03 24 3B 5A 03 01 00 03 00 BC 03 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 98 3A 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 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 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 79 00 8A 04 0D 00 34 36 30 32 34 34 31 30 31 34 30 31 39 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 30 2C 35 D0 BB 20 D1 81 D1 82 20 28 47 61 62 62 20 74 72 61 64 65 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 D0 07 00 00 00 00 00 37 04 06 00 7C 15 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 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 A0 0F 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 F0 0A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 7F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 28 00 00 00 00 07 04 06 00 34 7F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 8E 3A A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 01 08 00 00 35 04 06 00 34 1A BE 7A 5F B2 DC 7E 8C 9E 86 7F 1A 78 [12:33:15]CheckFolder [12:33:15]dirname=/storage/ofd_packets [12:33:15]CheckFolder done [12:33:15]ProducePacketName [12:33:15]name=ofd_packets/00002049 [12:33:15]NVStorageSaveData ofd_packets/00002049 [12:33:15]File name is /storage/ofd_packets/00002049 [12:33:15]Write 1006 bytes [12:33:15]NVStorageSaveData done [12:33:15]OFDSenderStorePacket done [12:33:15]KKMCreateOFDPacket done [12:33:15]NVStorageSaveData kkm_last_timestamp [12:33:15]File name is /storage/kkm_last_timestamp [12:33:15]Write 4 bytes [12:33:15]NVStorageSaveData done [12:33:15]ExternCall_PrintAddStr [12:33:15]wPrintStart [12:33:15]Write to MH i2c: 01 00 00 E5 4A 2F [12:33:15]Write i2c OK [12:33:15]MH_I2C_Read... [12:33:15]Read from MH i2c: 01 [12:33:15]MH_I2C_Read... [12:33:15]OFD Sender: Processing packet 2049 [packets to send 1, broken 0] [12:33:15]Read from MH i2c: ProducePacketName [12:33:15]01 name=ofd_packets/00002049 [12:33:15]07 OFD Sender: To server: pG, [12:33:15]00 CommunicateWithHost lk.salyk.kg:30040 [12:33:15] [12:33:15]ConnectInit lk.salyk.kg [12:33:15]MH_I2C_Read... [12:33:15]Read from MH i2c: 01 07 00 E5 4A 00 00 00 00 00 FF 0F 44 [12:33:15]RasterBufferAndPrint [12:33:15]line Счет N : (3)126351 [12:33:15]line ИНН: 02508201610067 [12:33:15]line Контрольно-Кассовый Чек [12:33:15]line ПРОДАЖА [12:33:15]line Товар: 4640030091645 [12:33:15]line Сигареты ESSE Exchange M [12:33:15]line 3.000 * 150.00 [12:33:15]line = 450.00 [12:33:15]line НДС 12% НСП 1% [12:33:15]line > о реализуемом товаре [12:33:15]line Товар: 4870001570071 [12:33:15]line Напиток Pepsi 1л [12:33:15]line 1.000 * 111.00 [12:33:15]line = 111.00 [12:33:15]line НДС 12% НСП 1% [12:33:15]line > о реализуемом товаре [12:33:15]line Товар: 5449000189356 [12:33:15]line Холодный чай Fuse манго ананас 1л [12:33:15]line 1.000 * 107.00 [12:33:15]line = 107.00 [12:33:15]line НДС 12% НСП 1% [12:33:15]line > о реализуемом товаре [12:33:15]line Товар: 4602441014019 [12:33:15]line Напиток Лимонад 0,5л ст (Gabb trade) [12:33:15]line 1.000 * 125.00 [12:33:15]line = 125.00 [12:33:15]line НДС 12% НСП 1% [12:33:15]line > о реализуемом товаре [12:33:15]line Товар: 4700000160358 [12:33:15]line Вода Легенда 1л [12:33:15]line 1.000 * 50.00 [12:33:15]line = 50.00 [12:33:15]line НДС 12% НСП 1% [12:33:15]line > о реализуемом товаре [12:33:15]line Товар: 46146632 [12:33:15]line Р/ж Orbit XXL клубника,банан 20,4г [12:33:15]line 2.000 * 55.00 [12:33:15]line = 110.00 [12:33:15]line НДС 12% НСП 1% [12:33:15]line > о реализуемом товаре [12:33:15]line Товар: 2000053020015 [12:33:15]line Бумажные стаканы 250мл 1шт [12:33:15]line 4.000 * 7.00 [12:33:15]line = 28.00 [12:33:15]line НДС 12% НСП 1% [12:33:15]line > о реализуемом товаре [12:33:15]line ИТОГО: 981.00 [12:33:15]line НСП 1% : 8.68 [12:33:15]line НДС 12% : 104.17 [12:33:15]line Наличными: 981.00 [12:33:15]line Безнал.: 0.00 [12:33:15]line Место: АЗС № 127 "Партнер Нефть" [12:33:15]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [12:33:15]line СНО: Общий режим [12:33:15]line Чек 100 28.07.2024 12:33 [12:33:15]line Смена: 13 ФФД: 1.0 [12:33:15]line ЗНМ: 0300000161 [12:33:15]line РНМ: 0000000000189667 [12:33:15]line Версия ККМ: v1.0 [12:33:15]line ФМ: 0000000002094248 [12:33:15]line ФД: 2049 [12:33:15]line ФПД: 57289469484978 [12:33:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T123318&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2049&fm=57289469484978&tin=02508201610067®Number=0000000000189667&sum=98100 [12:33:15]line 0 [12:33:15]written 0, free lines is 4095 [12:33:15]Connected sock=11 [12:33:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 D0 03 00 00 79 63 C8 03 24 3B 5A 03 01 00 03 00 BC 03 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 98 3A 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 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 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 79 00 8A 04 0D 00 34 36 30 32 34 34 31 30 31 34 30 31 39 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 30 2C 35 D0 BB 20 D1 81 D1 82 20 28 47 61 62 62 20 74 72 61 64 65 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 D0 07 00 00 00 00 00 37 04 06 00 7C 15 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 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 A0 0F 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 F0 0A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 7F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 28 00 00 00 00 07 04 06 00 34 7F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 8E 3A A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 01 08 00 00 35 04 06 00 34 1A BE 7A 5F B2 DC 7E 8C 9E 86 7F 1A 78 [12:33:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 14 3E 47 00 F2 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 32 30 39 34 32 34 38 10 04 04 00 01 08 00 00 F4 03 04 00 FE E5 A5 66 B6 04 01 00 00 0A BF EB 7C 7B 40 AC 12 [12:33:16]CommunicateWithHost err = 0 [12:33:16]CheckOFDResponse [12:33:16]1017 (14) - 77093643461234 [12:33:16]1041 (16) - 0000000002094248 [12:33:16]1040 (4) - 2049 [12:33:16]1012 (4) - 28.07.2024 06:32 [12:33:16]1206 (1) - 0 [12:33:16]OFD Sender: Remove packet 2049 [12:33:16]ProducePacketName [12:33:16]name=ofd_packets/00002049 [12:33:16]NVStorageDeleteData [12:33:16]Write to MH i2c: 01 00 00 35 4B 80 [12:33:16]Write i2c OK [12:33:16]MH_I2C_Read... [12:33:16]Read from MH i2c: 01 [12:33:16]MH_I2C_Read... [12:33:16]Read from MH i2c: 01 07 00 [12:33:16]MH_I2C_Read... [12:33:16]Read from MH i2c: 01 07 00 35 4B 00 00 00 00 00 FD 0A 8E [12:33:16]RasterBufferAndPrint [12:33:16]line [12:33:16]line [12:33:16]line [12:33:16]line [12:33:16]line [12:33:16]written 0, free lines is 2828 [12:33:16]MH_Cut [12:33:16]Write to MH i2c: D1 01 00 3C 4B 01 59 [12:33:16]Write i2c OK [12:33:16]MH_I2C_Read... [12:33:16]Read from MH i2c: D1 [12:33:16]MH_I2C_Read... [12:33:16]Read from MH i2c: D1 01 00 [12:33:16]MH_I2C_Read... [12:33:16]Read from MH i2c: D1 01 00 3C 4B 00 58 [12:33:16]Write to MH i2c: 01 00 00 3D 4B 88 [12:33:16]Write i2c OK [12:33:16]MH_I2C_Read... [12:33:16]OFD Sender: No OFD packet to send [12:33:17]*** Cut start [12:33:17]*** Partial cut [12:33:17]*** CUTSNS_PIN = 1 [12:33:17]*** CUTSNS_PIN = 0 [12:33:17]*** Brake cut motor [12:33:18]Read from MH i2c: 01 [12:33:18]MH_I2C_Read... [12:33:18]*** Stop cut motor [12:33:18]*** Cut end [12:33:18]Read from MH i2c: 01 07 00 [12:33:18]MH_I2C_Read... [12:33:18]Read from MH i2c: 01 07 00 3D 4B 00 00 00 00 00 FF 0F 9D [12:33:18]process_action close_receipt done [12:33:18]requested_data is exist [12:33:18]produce_requested_data [12:33:18]requested_item fm.sn is exist - process it [12:33:18]wFMCommunicate request_size=4 [12:33:18]MH_SAM_APDU [12:33:18]CAPDU: 80 11 00 00 [12:33:18]Write to MH i2c: E2 08 00 3E 4B 80 11 00 00 00 00 00 00 03 [12:33:18]Write i2c OK [12:33:18]MH_I2C_Read... [12:33:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:18]Read from MH i2c: E2 [12:33:18]MH_I2C_Read... [12:33:18]Read from MH i2c: E2 17 00 [12:33:18]MH_I2C_Read... [12:33:18]Read from MH i2c: E2 17 00 3E 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 53 [12:33:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [12:33:18]wFMCommunicate OK [12:33:18]requested_item fd.num is exist - process it [12:33:18]SAM_PROTO_GetFieldsCounters [12:33:18]wFMCommunicate request_size=4 [12:33:18]MH_SAM_APDU [12:33:18]CAPDU: 80 13 00 00 [12:33:18]Write to MH i2c: E2 08 00 3F 4B 80 13 00 00 00 00 00 00 06 [12:33:18]Write i2c OK [12:33:18]MH_I2C_Read... [12:33:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:33:18]Read from MH i2c: E2 [12:33:18]MH_I2C_Read... [12:33:18]Read from MH i2c: E2 62 00 [12:33:18]MH_I2C_Read... [12:33:18]Read from MH i2c: E2 62 00 3F 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 01 08 00 00 0E 04 04 00 0D 00 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 72 [12:33:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 01 08 00 00 0E 04 04 00 0D 00 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 [12:33:18]wFMCommunicate OK [12:33:18]SAM_PROTO_GetFieldsCounters done [12:33:18]requested_item shift.num is exist - process it [12:33:18]requested_item shift.opened is exist - process it [12:33:18]req_shift_opened [12:33:18]FM_GetShiftState [12:33:18]SAM_PROTO_GetShiftState [12:33:18]wFMCommunicate request_size=4 [12:33:18]MH_SAM_APDU [12:33:18]CAPDU: 80 13 01 00 [12:33:18]Write to MH i2c: E2 08 00 40 4B 80 13 01 00 00 00 00 00 08 [12:33:18]Write i2c OK [12:33:18]MH_I2C_Read... [12:33:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:18]Read from MH i2c: E2 [12:33:18]MH_I2C_Read... [12:33:18]Read from MH i2c: E2 0E 00 [12:33:18]MH_I2C_Read... [12:33:18]Read from MH i2c: E2 0E 00 40 4B 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 FC [12:33:18]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [12:33:18]wFMCommunicate OK [12:33:18]SAM_PROTO_GetShiftState done [12:33:18]FM_GetShiftState done [12:33:18]req_shift_opened done [12:33:18]requested_item shift.open_date is exist - process it [12:33:18]req_shift_open_date [12:33:18]req_shift_open_date done [12:33:18]produce_requested_data done [12:33:18]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2049,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [12:33:18]process_action_free close_receipt [12:33:18]json_value_free [12:33:18]json_value_free done [12:33:18]process_json_proto returns [12:33:18]Send response to host [12:33:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2049,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [12:33:18]free response buf [12:33:18]execute_script done [12:33:18]execute_script returns [12:33:18]free content buf [12:33:18]Sock 8.Close socket [12:33:18]Sock 8.Thread stoped [12:33:21]OFD Sender: No OFD packet to send [12:33:26]OFD Sender: No OFD packet to send [12:33:31]OFD Sender: No OFD packet to send [12:33:36]OFD Sender: No OFD packet to send [12:33:41]OFD Sender: No OFD packet to send [12:33:46]OFD Sender: No OFD packet to send [12:33:51]OFD Sender: No OFD packet to send [12:33:56]OFD Sender: No OFD packet to send [12:34:01]OFD Sender: No OFD packet to send [12:34:06]OFD Sender: No OFD packet to send [12:34:11]OFD Sender: No OFD packet to send [12:34:16]OFD Sender: No OFD packet to send [12:34:21]OFD Sender: No OFD packet to send [12:34:26]OFD Sender: No OFD packet to send [12:34:28]accept exits with 9 [12:34:28]New connection [12:34:28]New thread 3067317604 created [12:34:28]Thread 3067460964 joined [12:34:28]Waiting for new connection... [12:34:28] Sock 9.Parse request [12:34:28]Sock 9.Check first char [12:34:28]Sock 9.First char is OK [12:34:28]request: POST /json_proto HTTP/1.0 [12:34:28]Method: POST [12:34:28]URL: /json_proto [12:34:28]Method is POST - this is cgi request [12:34:28]url: /json_proto [12:34:28]query_string will be loaded in cgi processing [12:34:28]execute_cgi json_proto POST (null) [12:34:28]execute_cgi path=json_proto method=POST [12:34:28]POST find Content-Length [12:34:28]Host: 172.17.45.132:8080 [12:34:28]Content-Length: 647 [12:34:28]Content-Type: application/json [12:34:28] [12:34:28]POST finish read [12:34:28]Found Content-Length = 647 [12:34:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126352", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\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" ] } } [12:34:28]execute_script... [12:34: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)126352", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\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" ] } } [12:34:28]POST & json_proto [12:34:28]process_json_proto [12:34:28]json parsed OK: [12:34:28]protocol is kg_v1.0 [12:34:28]action value=close_receipt [12:34:28]process_action close_receipt [12:34:28]cmd_close_receipt [12:34:28]MH_GetDate [12:34:28]Write to MH i2c: F0 00 00 41 4B 7B [12:34:28]Write i2c OK [12:34:28]MH_I2C_Read... [12:34:28]Read from MH i2c: F0 [12:34:28]MH_I2C_Read... [12:34:28]Read from MH i2c: F0 09 00 [12:34:28]MH_I2C_Read... [12:34:28]Read from MH i2c: F0 09 00 41 4B 00 DA 3A A6 66 E3 0B 90 66 88 [12:34:28]GetLastDocTimeStamp 1722169998 [12:34:28]current date 1722170074 [12:34:28]FM_GetShiftState [12:34:28]SAM_PROTO_GetShiftState [12:34:28]wFMCommunicate request_size=4 [12:34:28]MH_SAM_APDU [12:34:28]CAPDU: 80 13 01 00 [12:34:28]Write to MH i2c: E2 08 00 42 4B 80 13 01 00 00 00 00 00 0A [12:34:28]Write i2c OK [12:34:28]MH_I2C_Read... [12:34:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:28]Read from MH i2c: E2 [12:34:28]MH_I2C_Read... [12:34:28]Read from MH i2c: E2 0E 00 [12:34:28]MH_I2C_Read... [12:34:28]Read from MH i2c: E2 0E 00 42 4B 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 FE [12:34:28]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [12:34:28]wFMCommunicate OK [12:34:28]SAM_PROTO_GetShiftState done [12:34:28]FM_GetShiftState done [12:34:28]opened in 1722125648 [12:34:28]opened+sec_in_day 1722212048 [12:34:28]quantity*price = 13000 [12:34:28]sum+1 = 13001 [12:34:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 101 28.07.2024 12:34 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2050 ФПД: 69780602976593 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T123434&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2050&fm=69780602976593&tin=02508201610067®Number=0000000000189667&sum=13000 0 [12:34:29]StoreToDocumentArchive [12:34:29]shift 13 fd 2050 [12:34:29]save to /storage/0013/doc_00002050 [12:34:29]save last doc name /storage/0013/doc_00002050 to /storage/kkm_last_doc_name [12:34:29]save OK [12:34:29]Clear old archive folders... [12:34:29]ProcessDocumentItem done err = 0, tmpTLVsize=272 [12:34:29]tlvbuf is B6FD1400 [12:34:29]SAM_PROTO_ClearQueue [12:34:29]wFMCommunicate request_size=4 [12:34:29]MH_SAM_APDU [12:34:29]CAPDU: 80 09 00 00 [12:34:29]Write to MH i2c: E2 08 00 4F 4B 80 09 00 00 00 00 00 00 0C [12:34:29]Write i2c OK [12:34:29]MH_I2C_Read... [12:34:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:34:29]Read from MH i2c: E2 [12:34:29]MH_I2C_Read... [12:34:29]Read from MH i2c: E2 03 00 [12:34:29]MH_I2C_Read... [12:34:29]Read from MH i2c: E2 03 00 4F 4B 00 90 00 0E [12:34:29]RAPDU: 90 00 [12:34:29]wFMCommunicate OK [12:34:29]SAM_PROTO_ClearQueue done [12:34:29]KKMCreateOFDPacket [12:34:29]OFDProtocolAddRootSTLVToBuf [12:34:29]FM_MakeSignedData [12:34:29]FM_MakeSignedData [12:34:29]SAM_PROTO_SignData [12:34:29]wFMCommunicate request_size=4 [12:34:29]MH_SAM_APDU [12:34:29]CAPDU: 80 0D 01 02 [12:34:29]Write to MH i2c: E2 08 00 50 4B 80 0D 01 02 00 00 00 00 14 [12:34:29]Write i2c OK [12:34:29]MH_I2C_Read... [12:34:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:34:30]Read from MH i2c: E2 [12:34:30]MH_I2C_Read... [12:34:30]Read from MH i2c: E2 03 00 [12:34:30]MH_I2C_Read... [12:34:30]Read from MH i2c: E2 03 00 50 4B 00 90 00 0F [12:34:30]RAPDU: 90 00 [12:34:30]wFMCommunicate OK [12:34:30]wFMCommunicate request_size=255 [12:34:30]MH_SAM_APDU [12:34:30]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD 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 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 65 00 00 00 F4 03 04 00 DA 3A A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 [12:34:30]Write to MH i2c: E2 02 01 51 4B 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD 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 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 65 00 00 00 F4 03 04 00 DA 3A A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 00 00 50 [12:34:30]Write i2c OK [12:34:30]MH_I2C_Read... [12:34:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:30]Read from MH i2c: E2 [12:34:30]MH_I2C_Read... [12:34:30]Read from MH i2c: E2 03 00 [12:34:30]MH_I2C_Read... [12:34:30]Read from MH i2c: E2 03 00 51 4B 00 90 00 10 [12:34:30]RAPDU: 90 00 [12:34:30]wFMCommunicate OK [12:34:30]wFMCommunicate request_size=31 [12:34:30]MH_SAM_APDU [12:34:30]CAPDU: 80 0D 02 02 1A 30 32 30 39 34 32 34 38 10 04 04 00 02 08 00 00 35 04 06 00 3F 77 10 0D 79 51 [12:34:30]Write to MH i2c: E2 22 00 52 4B 80 0D 02 02 1A 00 30 32 30 39 34 32 34 38 10 04 04 00 02 08 00 00 35 04 06 00 3F 77 10 0D 79 51 00 00 E6 [12:34:30]Write i2c OK [12:34:30]MH_I2C_Read... [12:34:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:30]Read from MH i2c: E2 [12:34:30]MH_I2C_Read... [12:34:30]Read from MH i2c: E2 03 00 [12:34:30]MH_I2C_Read... [12:34:30]Read from MH i2c: E2 03 00 52 4B 00 90 00 11 [12:34:30]RAPDU: 90 00 [12:34:30]wFMCommunicate OK [12:34:30]wFMCommunicate request_size=4 [12:34:30]MH_SAM_APDU [12:34:30]CAPDU: 80 0D 03 02 [12:34:30]Write to MH i2c: E2 08 00 53 4B 80 0D 03 02 00 00 00 00 19 [12:34:30]Write i2c OK [12:34:30]MH_I2C_Read... [12:34:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:34:30]Read from MH i2c: E2 [12:34:30]MH_I2C_Read... [12:34:30]Read from MH i2c: E2 0B 00 [12:34:30]MH_I2C_Read... [12:34:30]Read from MH i2c: E2 0B 00 53 4B 00 6B 64 6C 75 F8 36 38 A4 90 00 D4 [12:34:30]RAPDU: 6B 64 6C 75 F8 36 38 A4 90 00 [12:34:30]wFMCommunicate OK [12:34:30]SAM_PROTO_SignData done [12:34:30]FM_MakeSignedData done [12:34:30]CreateOFDProtocolMessage [12:34:30]wFMCommunicate request_size=4 [12:34:30]MH_SAM_APDU [12:34:30]CAPDU: 80 11 00 00 [12:34:30]Write to MH i2c: E2 08 00 54 4B 80 11 00 00 00 00 00 00 19 [12:34:30]Write i2c OK [12:34:30]MH_I2C_Read... [12:34:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:30]Read from MH i2c: E2 [12:34:30]MH_I2C_Read... [12:34:30]Read from MH i2c: E2 17 00 [12:34:30]MH_I2C_Read... [12:34:30]Read from MH i2c: E2 17 00 54 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 69 [12:34:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [12:34:30]wFMCommunicate OK [12:34:30]CreateOFDProtocolMessage done [12:34:30]OFDSenderStorePacket 2050 [12:34:30]StoreOFDPacket docnum=2050 [12:34:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 24 01 00 00 FB 0C 1C 01 95 8A 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD 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 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 65 00 00 00 F4 03 04 00 DA 3A A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 02 08 00 00 35 04 06 00 3F 77 10 0D 79 51 6B 64 6C 75 F8 36 38 A4 [12:34:30]CheckFolder [12:34:30]dirname=/storage/ofd_packets [12:34:30]CheckFolder done [12:34:30]ProducePacketName [12:34:30]name=ofd_packets/00002050 [12:34:30]NVStorageSaveData ofd_packets/00002050 [12:34:30]File name is /storage/ofd_packets/00002050 [12:34:30]Write 322 bytes [12:34:30]NVStorageSaveData done [12:34:30]OFDSenderStorePacket done [12:34:30]KKMCreateOFDPacket done [12:34:30]NVStorageSaveData kkm_last_timestamp [12:34:30]File name is /storage/kkm_last_timestamp [12:34:30]Write 4 bytes [12:34:30]NVStorageSaveData done [12:34:30]ExternCall_PrintAddStr [12:34:30]wPrintStart [12:34:30]Write to MH i2c: 01 00 00 55 4B A0 [12:34:30]Write i2c OK [12:34:30]MH_I2C_Read... [12:34:30]Read from MH i2c: 01 [12:34:30]MH_I2C_Read... [12:34:30]Read from MH i2c: 01 07 00 [12:34:30]MH_I2C_Read... [12:34:30]Read from MH i2c: 01 07 00 55 4B 00 00 00 00 00 FF 0F B5 [12:34:30]RasterBufferAndPrint [12:34:30]line Счет N : (3)126352 [12:34:30]line ИНН: 02508201610067 [12:34:30]line Контрольно-Кассовый Чек [12:34:30]line ПРОДАЖА [12:34:30]line Товар: 47011656 [12:34:30]line Водка Пшеничная 0,1л [12:34:30]line 2.000 * 65.00 [12:34:30]line = 130.00 [12:34:30]line НДС 12% НСП 1% [12:34:30]line > о реализуемом товаре [12:34:30]line ИТОГО: 130.00 [12:34:30]line НСП 1% : 1.15 [12:34:30]line НДС 12% : 13.80 [12:34:30]line Наличными: 130.00 [12:34:30]line Безнал.: 0.00 [12:34:30]line Место: АЗС № 127 "Партнер Нефть" [12:34:30]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [12:34:30]line СНО: Общий режим [12:34:30]line Чек 101 28.07.2024 12:34 [12:34:30]line Смена: 13 ФФД: 1.0 [12:34:30]line ЗНМ: 0300000161 [12:34:30]line РНМ: 0000000000189667 [12:34:30]line Версия ККМ: v1.0 [12:34:30]line ФМ: 0000000002094248 [12:34:30]line ФД: 2050 [12:34:30]line ФПД: 69780602976593 [12:34:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T123434&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2050&fm=69780602976593&tin=02508201610067®Number=0000000000189667&sum=13000 [12:34:30]OFD Sender: Processing packet 2050 [packets to send 1, broken 0] [12:34:30]ProducePacketName [12:34:30]name=ofd_packets/00002050 [12:34:30]OFD Sender: To server: pG, [12:34:30]CommunicateWithHost lk.salyk.kg:30040 [12:34:30]ConnectInit lk.salyk.kg [12:34:30]line 0 [12:34:30]written 0, free lines is 4095 [12:34:30]Connected sock=11 [12:34:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 24 01 00 00 FB 0C 1C 01 95 8A 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD 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 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 65 00 00 00 F4 03 04 00 DA 3A A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 02 08 00 00 35 04 06 00 3F 77 10 0D 79 51 6B 64 6C 75 F8 36 38 A4 [12:34:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 8D 49 47 00 50 DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 02 08 00 00 F4 03 04 00 49 E6 A5 66 B6 04 01 00 00 51 1F C1 F9 FA 42 4C B9 [12:34:31]CommunicateWithHost err = 0 [12:34:31]CheckOFDResponse [12:34:31]1017 (14) - 77093643461234 [12:34:31]1041 (16) - 0000000002094248 [12:34:31]1040 (4) - 2050 [12:34:31]1012 (4) - 28.07.2024 06:33 [12:34:31]1206 (1) - 0 [12:34:31]OFD Sender: Remove packet 2050 [12:34:31]ProducePacketName [12:34:31]name=ofd_packets/00002050 [12:34:31]NVStorageDeleteData [12:34:31]Write to MH i2c: 01 00 00 7D 4B C8 [12:34:31]Write i2c OK [12:34:31]MH_I2C_Read... [12:34:31]Read from MH i2c: 01 [12:34:31]MH_I2C_Read... [12:34:31]Read from MH i2c: 01 07 00 [12:34:31]MH_I2C_Read... [12:34:31]Read from MH i2c: 01 07 00 7D 4B 00 00 00 00 00 03 0D DF [12:34:31]RasterBufferAndPrint [12:34:31]line [12:34:31]line [12:34:31]line [12:34:31]line [12:34:31]line [12:34:31]written 0, free lines is 3337 [12:34:31]MH_Cut [12:34:31]Write to MH i2c: D1 01 00 84 4B 01 A1 [12:34:31]Write i2c OK [12:34:31]MH_I2C_Read... [12:34:31]Read from MH i2c: D1 [12:34:31]MH_I2C_Read... [12:34:31]Read from MH i2c: D1 01 00 [12:34:31]MH_I2C_Read... [12:34:31]Read from MH i2c: D1 01 00 84 4B 00 A0 [12:34:31]Write to MH i2c: 01 00 00 85 4B D0 [12:34:31]Write i2c OK [12:34:31]MH_I2C_Read... [12:34:31]OFD Sender: No OFD packet to send [12:34:31]*** Cut start [12:34:31]*** Partial cut [12:34:31]*** CUTSNS_PIN = 1 [12:34:31]*** CUTSNS_PIN = 0 [12:34:32]*** Brake cut motor [12:34:32]Read from MH i2c: 01 [12:34:32]MH_I2C_Read... [12:34:32]*** Stop cut motor [12:34:32]*** Cut end [12:34:32]Read from MH i2c: 01 07 00 [12:34:32]MH_I2C_Read... [12:34:32]Read from MH i2c: 01 07 00 85 4B 00 00 00 00 00 FF 0F E5 [12:34:32]process_action close_receipt done [12:34:32]requested_data is exist [12:34:32]produce_requested_data [12:34:32]requested_item fm.sn is exist - process it [12:34:32]wFMCommunicate request_size=4 [12:34:32]MH_SAM_APDU [12:34:32]CAPDU: 80 11 00 00 [12:34:32]Write to MH i2c: E2 08 00 86 4B 80 11 00 00 00 00 00 00 4B [12:34:32]Write i2c OK [12:34:32]MH_I2C_Read... [12:34:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:32]Read from MH i2c: E2 [12:34:32]MH_I2C_Read... [12:34:32]Read from MH i2c: E2 17 00 [12:34:32]MH_I2C_Read... [12:34:32]Read from MH i2c: E2 17 00 86 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 9B [12:34:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [12:34:32]wFMCommunicate OK [12:34:32]requested_item fd.num is exist - process it [12:34:32]SAM_PROTO_GetFieldsCounters [12:34:32]wFMCommunicate request_size=4 [12:34:32]MH_SAM_APDU [12:34:32]CAPDU: 80 13 00 00 [12:34:32]Write to MH i2c: E2 08 00 87 4B 80 13 00 00 00 00 00 00 4E [12:34:32]Write i2c OK [12:34:32]MH_I2C_Read... [12:34:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:34:32]Read from MH i2c: E2 [12:34:32]MH_I2C_Read... [12:34:32]Read from MH i2c: E2 62 00 [12:34:32]MH_I2C_Read... [12:34:32]Read from MH i2c: E2 62 00 87 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 02 08 00 00 0E 04 04 00 0D 00 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 BE [12:34:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 02 08 00 00 0E 04 04 00 0D 00 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 [12:34:32]wFMCommunicate OK [12:34:32]SAM_PROTO_GetFieldsCounters done [12:34:32]requested_item shift.num is exist - process it [12:34:32]requested_item shift.opened is exist - process it [12:34:32]req_shift_opened [12:34:32]FM_GetShiftState [12:34:32]SAM_PROTO_GetShiftState [12:34:32]wFMCommunicate request_size=4 [12:34:32]MH_SAM_APDU [12:34:32]CAPDU: 80 13 01 00 [12:34:32]Write to MH i2c: E2 08 00 88 4B 80 13 01 00 00 00 00 00 50 [12:34:32]Write i2c OK [12:34:32]MH_I2C_Read... [12:34:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:32]Read from MH i2c: E2 [12:34:32]MH_I2C_Read... [12:34:32]Read from MH i2c: E2 0E 00 [12:34:32]MH_I2C_Read... [12:34:32]Read from MH i2c: E2 0E 00 88 4B 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 44 [12:34:32]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [12:34:32]wFMCommunicate OK [12:34:32]SAM_PROTO_GetShiftState done [12:34:32]FM_GetShiftState done [12:34:32]req_shift_opened done [12:34:32]requested_item shift.open_date is exist - process it [12:34:32]req_shift_open_date [12:34:32]req_shift_open_date done [12:34:32]produce_requested_data done [12:34:32]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2050,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [12:34:32]process_action_free close_receipt [12:34:32]json_value_free [12:34:32]json_value_free done [12:34:32]process_json_proto returns [12:34:32]Send response to host [12:34:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2050,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [12:34:32]free response buf [12:34:32]execute_script done [12:34:32]execute_script returns [12:34:32]free content buf [12:34:32]Sock 9.Close socket [12:34:32]Sock 9.Thread stoped [12:34:36]OFD Sender: No OFD packet to send [12:34:41]OFD Sender: No OFD packet to send [12:34:46]OFD Sender: No OFD packet to send [12:34:51]OFD Sender: No OFD packet to send [12:34:56]OFD Sender: No OFD packet to send [12:35:01]OFD Sender: No OFD packet to send [12:35:06]OFD Sender: No OFD packet to send [12:35:11]OFD Sender: No OFD packet to send [12:35:16]OFD Sender: No OFD packet to send [12:35:21]OFD Sender: No OFD packet to send [12:35:26]OFD Sender: No OFD packet to send [12:35:31]OFD Sender: No OFD packet to send [12:35:36]OFD Sender: No OFD packet to send [12:35:41]OFD Sender: No OFD packet to send [12:35:46]OFD Sender: No OFD packet to send [12:35:51]OFD Sender: No OFD packet to send [12:35:56]OFD Sender: No OFD packet to send [12:36:01]OFD Sender: No OFD packet to send [12:36:06]OFD Sender: No OFD packet to send [12:36:11]OFD Sender: No OFD packet to send [12:36:16]OFD Sender: No OFD packet to send [12:36:21]OFD Sender: No OFD packet to send [12:36:26]OFD Sender: No OFD packet to send [12:36:31]OFD Sender: No OFD packet to send [12:36:36]OFD Sender: No OFD packet to send [12:36:41]OFD Sender: No OFD packet to send [12:36:46]OFD Sender: No OFD packet to send [12:36:51]OFD Sender: No OFD packet to send [12:36:56]OFD Sender: No OFD packet to send [12:37:01]OFD Sender: No OFD packet to send [12:37:06]OFD Sender: No OFD packet to send [12:37:11]OFD Sender: No OFD packet to send [12:37:16]OFD Sender: No OFD packet to send [12:37:21]OFD Sender: No OFD packet to send [12:37:26]OFD Sender: No OFD packet to send [12:37:31]OFD Sender: No OFD packet to send [12:37:36]OFD Sender: No OFD packet to send [12:37:41]OFD Sender: No OFD packet to send [12:37:46]OFD Sender: No OFD packet to send [12:37:51]OFD Sender: No OFD packet to send [12:37:56]OFD Sender: No OFD packet to send [12:38:01]OFD Sender: No OFD packet to send [12:38:06]OFD Sender: No OFD packet to send [12:38:11]OFD Sender: No OFD packet to send [12:38:16]OFD Sender: No OFD packet to send [12:38:21]OFD Sender: No OFD packet to send [12:38:26]OFD Sender: No OFD packet to send [12:38:31]OFD Sender: No OFD packet to send [12:38:36]OFD Sender: No OFD packet to send [12:38:41]OFD Sender: No OFD packet to send [12:38:46]OFD Sender: No OFD packet to send [12:38:51]OFD Sender: No OFD packet to send [12:38:56]OFD Sender: No OFD packet to send [12:39:01]OFD Sender: No OFD packet to send [12:39:06]OFD Sender: No OFD packet to send [12:39:11]OFD Sender: No OFD packet to send [12:39:16]OFD Sender: No OFD packet to send [12:39:21]OFD Sender: No OFD packet to send [12:39:26]OFD Sender: No OFD packet to send [12:39:31]OFD Sender: No OFD packet to send [12:39:36]OFD Sender: No OFD packet to send [12:39:41]OFD Sender: No OFD packet to send [12:39:46]OFD Sender: No OFD packet to send [12:39:51]OFD Sender: No OFD packet to send [12:39:56]OFD Sender: No OFD packet to send [12:40:01]OFD Sender: No OFD packet to send [12:40:06]OFD Sender: No OFD packet to send [12:40:11]OFD Sender: No OFD packet to send [12:40:16]OFD Sender: No OFD packet to send [12:40:21]OFD Sender: No OFD packet to send [12:40:26]OFD Sender: No OFD packet to send [12:40:31]OFD Sender: No OFD packet to send [12:40:36]OFD Sender: No OFD packet to send [12:40:41]OFD Sender: No OFD packet to send [12:40:46]OFD Sender: No OFD packet to send [12:40:51]OFD Sender: No OFD packet to send [12:40:56]OFD Sender: No OFD packet to send [12:41:01]OFD Sender: No OFD packet to send [12:41:06]OFD Sender: No OFD packet to send [12:41:11]OFD Sender: No OFD packet to send [12:41:16]OFD Sender: No OFD packet to send [12:41:21]OFD Sender: No OFD packet to send [12:41:26]OFD Sender: No OFD packet to send [12:41:31]OFD Sender: No OFD packet to send [12:41:36]OFD Sender: No OFD packet to send [12:41:41]OFD Sender: No OFD packet to send [12:41:46]OFD Sender: No OFD packet to send [12:41:51]OFD Sender: No OFD packet to send [12:41:56]OFD Sender: No OFD packet to send [12:42:01]OFD Sender: No OFD packet to send [12:42:06]OFD Sender: No OFD packet to send [12:42:11]OFD Sender: No OFD packet to send [12:42:16]OFD Sender: No OFD packet to send [12:42:21]OFD Sender: No OFD packet to send [12:42:26]OFD Sender: No OFD packet to send [12:42:31]OFD Sender: No OFD packet to send [12:42:36]OFD Sender: No OFD packet to send [12:42:41]OFD Sender: No OFD packet to send [12:42:46]OFD Sender: No OFD packet to send [12:42:51]OFD Sender: No OFD packet to send [12:42:57]OFD Sender: No OFD packet to send [12:43:02]OFD Sender: No OFD packet to send [12:43:07]OFD Sender: No OFD packet to send [12:43:12]OFD Sender: No OFD packet to send [12:43:17]OFD Sender: No OFD packet to send [12:43:22]OFD Sender: No OFD packet to send [12:43:27]OFD Sender: No OFD packet to send [12:43:32]OFD Sender: No OFD packet to send [12:43:37]OFD Sender: No OFD packet to send [12:43:42]OFD Sender: No OFD packet to send [12:43:47]OFD Sender: No OFD packet to send [12:43:52]OFD Sender: No OFD packet to send [12:43:57]OFD Sender: No OFD packet to send [12:44:02]OFD Sender: No OFD packet to send [12:44:07]OFD Sender: No OFD packet to send [12:44:12]OFD Sender: No OFD packet to send [12:44:17]OFD Sender: No OFD packet to send [12:44:22]OFD Sender: No OFD packet to send [12:44:27]OFD Sender: No OFD packet to send [12:44:32]OFD Sender: No OFD packet to send [12:44:37]OFD Sender: No OFD packet to send [12:44:42]OFD Sender: No OFD packet to send [12:44:47]OFD Sender: No OFD packet to send [12:44:52]OFD Sender: No OFD packet to send [12:44:57]OFD Sender: No OFD packet to send [12:45:02]OFD Sender: No OFD packet to send [12:45:07]OFD Sender: No OFD packet to send [12:45:12]OFD Sender: No OFD packet to send [12:45:17]OFD Sender: No OFD packet to send [12:45:22]OFD Sender: No OFD packet to send [12:45:27]OFD Sender: No OFD packet to send [12:45:32]OFD Sender: No OFD packet to send [12:45:37]OFD Sender: No OFD packet to send [12:45:42]OFD Sender: No OFD packet to send [12:45:47]OFD Sender: No OFD packet to send [12:45:52]OFD Sender: No OFD packet to send [12:45:57]OFD Sender: No OFD packet to send [12:46:02]OFD Sender: No OFD packet to send [12:46:07]OFD Sender: No OFD packet to send [12:46:12]OFD Sender: No OFD packet to send [12:46:17]OFD Sender: No OFD packet to send [12:46:22]OFD Sender: No OFD packet to send [12:46:27]OFD Sender: No OFD packet to send [12:46:32]OFD Sender: No OFD packet to send [12:46:37]OFD Sender: No OFD packet to send [12:46:42]OFD Sender: No OFD packet to send [12:46:47]OFD Sender: No OFD packet to send [12:46:52]OFD Sender: No OFD packet to send [12:46:57]OFD Sender: No OFD packet to send [12:47:02]OFD Sender: No OFD packet to send [12:47:07]OFD Sender: No OFD packet to send [12:47:12]OFD Sender: No OFD packet to send [12:47:17]OFD Sender: No OFD packet to send [12:47:22]OFD Sender: No OFD packet to send [12:47:27]OFD Sender: No OFD packet to send [12:47:32]OFD Sender: No OFD packet to send [12:47:37]OFD Sender: No OFD packet to send [12:47:42]OFD Sender: No OFD packet to send [12:47:47]OFD Sender: No OFD packet to send [12:47:52]OFD Sender: No OFD packet to send [12:47:57]OFD Sender: No OFD packet to send [12:48:02]OFD Sender: No OFD packet to send [12:48:07]OFD Sender: No OFD packet to send [12:48:12]OFD Sender: No OFD packet to send [12:48:17]OFD Sender: No OFD packet to send [12:48:22]OFD Sender: No OFD packet to send [12:48:27]OFD Sender: No OFD packet to send [12:48:32]OFD Sender: No OFD packet to send [12:48:37]OFD Sender: No OFD packet to send [12:48:42]OFD Sender: No OFD packet to send [12:48:47]OFD Sender: No OFD packet to send [12:48:52]OFD Sender: No OFD packet to send [12:48:57]OFD Sender: No OFD packet to send [12:49:02]OFD Sender: No OFD packet to send [12:49:07]OFD Sender: No OFD packet to send [12:49:12]OFD Sender: No OFD packet to send [12:49:17]OFD Sender: No OFD packet to send [12:49:22]OFD Sender: No OFD packet to send [12:49:27]OFD Sender: No OFD packet to send [12:49:32]OFD Sender: No OFD packet to send [12:49:37]OFD Sender: No OFD packet to send [12:49:42]OFD Sender: No OFD packet to send [12:49:47]OFD Sender: No OFD packet to send [12:49:52]OFD Sender: No OFD packet to send [12:49:57]OFD Sender: No OFD packet to send [12:50:02]OFD Sender: No OFD packet to send [12:50:07]OFD Sender: No OFD packet to send [12:50:12]OFD Sender: No OFD packet to send [12:50:17]OFD Sender: No OFD packet to send [12:50:22]OFD Sender: No OFD packet to send [12:50:27]OFD Sender: No OFD packet to send [12:50:32]OFD Sender: No OFD packet to send [12:50:37]OFD Sender: No OFD packet to send [12:50:42]OFD Sender: No OFD packet to send [12:50:47]OFD Sender: No OFD packet to send [12:50:52]OFD Sender: No OFD packet to send [12:50:57]OFD Sender: No OFD packet to send [12:51:02]OFD Sender: No OFD packet to send [12:51:07]OFD Sender: No OFD packet to send [12:51:12]OFD Sender: No OFD packet to send [12:51:17]OFD Sender: No OFD packet to send [12:51:22]OFD Sender: No OFD packet to send [12:51:27]OFD Sender: No OFD packet to send [12:51:32]OFD Sender: No OFD packet to send [12:51:37]OFD Sender: No OFD packet to send [12:51:42]OFD Sender: No OFD packet to send [12:51:47]OFD Sender: No OFD packet to send [12:51:52]OFD Sender: No OFD packet to send [12:51:57]OFD Sender: No OFD packet to send [12:52:02]OFD Sender: No OFD packet to send [12:52:07]OFD Sender: No OFD packet to send [12:52:12]OFD Sender: No OFD packet to send [12:52:17]OFD Sender: No OFD packet to send [12:52:22]OFD Sender: No OFD packet to send [12:52:27]OFD Sender: No OFD packet to send [12:52:32]OFD Sender: No OFD packet to send [12:52:37]OFD Sender: No OFD packet to send [12:52:42]OFD Sender: No OFD packet to send [12:52:47]OFD Sender: No OFD packet to send [12:52:52]OFD Sender: No OFD packet to send [12:52:57]OFD Sender: No OFD packet to send [12:53:02]OFD Sender: No OFD packet to send [12:53:07]OFD Sender: No OFD packet to send [12:53:12]OFD Sender: No OFD packet to send [12:53:17]OFD Sender: No OFD packet to send [12:53:22]OFD Sender: No OFD packet to send [12:53:27]OFD Sender: No OFD packet to send [12:53:32]OFD Sender: No OFD packet to send [12:53:37]OFD Sender: No OFD packet to send [12:53:42]OFD Sender: No OFD packet to send [12:53:47]OFD Sender: No OFD packet to send [12:53:52]OFD Sender: No OFD packet to send [12:53:57]OFD Sender: No OFD packet to send [12:54:02]OFD Sender: No OFD packet to send [12:54:07]OFD Sender: No OFD packet to send [12:54:12]OFD Sender: No OFD packet to send [12:54:17]OFD Sender: No OFD packet to send [12:54:22]OFD Sender: No OFD packet to send [12:54:27]OFD Sender: No OFD packet to send [12:54:32]OFD Sender: No OFD packet to send [12:54:37]OFD Sender: No OFD packet to send [12:54:42]OFD Sender: No OFD packet to send [12:54:47]OFD Sender: No OFD packet to send [12:54:52]OFD Sender: No OFD packet to send [12:54:57]OFD Sender: No OFD packet to send [12:55:02]OFD Sender: No OFD packet to send [12:55:07]OFD Sender: No OFD packet to send [12:55:12]OFD Sender: No OFD packet to send [12:55:17]OFD Sender: No OFD packet to send [12:55:22]OFD Sender: No OFD packet to send [12:55:27]OFD Sender: No OFD packet to send [12:55:32]OFD Sender: No OFD packet to send [12:55:37]OFD Sender: No OFD packet to send [12:55:42]OFD Sender: No OFD packet to send [12:55:47]OFD Sender: No OFD packet to send [12:55:52]OFD Sender: No OFD packet to send [12:55:57]OFD Sender: No OFD packet to send [12:56:02]OFD Sender: No OFD packet to send [12:56:07]OFD Sender: No OFD packet to send [12:56:12]OFD Sender: No OFD packet to send [12:56:17]OFD Sender: No OFD packet to send [12:56:22]OFD Sender: No OFD packet to send [12:56:27]OFD Sender: No OFD packet to send [12:56:32]OFD Sender: No OFD packet to send [12:56:37]OFD Sender: No OFD packet to send [12:56:42]OFD Sender: No OFD packet to send [12:56:47]OFD Sender: No OFD packet to send [12:56:52]OFD Sender: No OFD packet to send [12:56:57]OFD Sender: No OFD packet to send [12:57:02]OFD Sender: No OFD packet to send [12:57:07]OFD Sender: No OFD packet to send [12:57:12]OFD Sender: No OFD packet to send [12:57:17]OFD Sender: No OFD packet to send [12:57:22]OFD Sender: No OFD packet to send [12:57:27]OFD Sender: No OFD packet to send [12:57:32]OFD Sender: No OFD packet to send [12:57:37]OFD Sender: No OFD packet to send [12:57:42]OFD Sender: No OFD packet to send [12:57:47]OFD Sender: No OFD packet to send [12:57:52]OFD Sender: No OFD packet to send [12:57:57]OFD Sender: No OFD packet to send [12:58:02]OFD Sender: No OFD packet to send [12:58:07]OFD Sender: No OFD packet to send [12:58:12]OFD Sender: No OFD packet to send [12:58:17]OFD Sender: No OFD packet to send [12:58:22]OFD Sender: No OFD packet to send [12:58:27]OFD Sender: No OFD packet to send [12:58:32]OFD Sender: No OFD packet to send [12:58:37]OFD Sender: No OFD packet to send [12:58:42]OFD Sender: No OFD packet to send [12:58:47]OFD Sender: No OFD packet to send [12:58:52]OFD Sender: No OFD packet to send [12:58:57]OFD Sender: No OFD packet to send [12:59:02]OFD Sender: No OFD packet to send [12:59:07]OFD Sender: No OFD packet to send [12:59:12]OFD Sender: No OFD packet to send [12:59:17]OFD Sender: No OFD packet to send [12:59:22]OFD Sender: No OFD packet to send [12:59:27]OFD Sender: No OFD packet to send [12:59:32]OFD Sender: No OFD packet to send [12:59:37]OFD Sender: No OFD packet to send [12:59:42]OFD Sender: No OFD packet to send [12:59:47]OFD Sender: No OFD packet to send [12:59:52]OFD Sender: No OFD packet to send [12:59:57]OFD Sender: No OFD packet to send [13:00:02]OFD Sender: No OFD packet to send [13:00:07]OFD Sender: No OFD packet to send [13:00:12]OFD Sender: No OFD packet to send [13:00:17]OFD Sender: No OFD packet to send [13:00:22]OFD Sender: No OFD packet to send [13:00:27]OFD Sender: No OFD packet to send [13:00:32]OFD Sender: No OFD packet to send [13:00:37]OFD Sender: No OFD packet to send [13:00:42]OFD Sender: No OFD packet to send [13:00:47]OFD Sender: No OFD packet to send [13:00:52]OFD Sender: No OFD packet to send [13:00:57]OFD Sender: No OFD packet to send [13:01:02]OFD Sender: No OFD packet to send [13:01:07]OFD Sender: No OFD packet to send [13:01:12]OFD Sender: No OFD packet to send [13:01:17]OFD Sender: No OFD packet to send [13:01:22]OFD Sender: No OFD packet to send [13:01:27]OFD Sender: No OFD packet to send [13:01:32]OFD Sender: No OFD packet to send [13:01:37]OFD Sender: No OFD packet to send [13:01:41]accept exits with 8 [13:01:41]New connection [13:01:41]New thread 3067460964 created [13:01:41]Thread 3067317604 joined [13:01:41]Waiting for new connection... [13:01:41] Sock 8.Parse request [13:01:41]Sock 8.Check first char [13:01:41]Sock 8.First char is OK [13:01:41]request: POST /json_proto HTTP/1.0 [13:01:41]Method: POST [13:01:41]URL: /json_proto [13:01:41]Method is POST - this is cgi request [13:01:41]url: /json_proto [13:01:41]query_string will be loaded in cgi processing [13:01:41]execute_cgi json_proto POST (null) [13:01:41]execute_cgi path=json_proto method=POST [13:01:41]POST find Content-Length [13:01:41]Host: 172.17.45.132:8080 [13:01:41]Content-Length: 975 [13:01:41]Content-Type: application/json [13:01:41] [13:01:41]POST finish read [13:01:41]Found Content-Length = 975 [13:01:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126353", "tax_sys" : 0, "items" : [ { "code": "4600682000280", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up \u043C\u043E\u0445\u0438\u0442\u043E 0,45 \u0436/\u0431", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160099", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u0438\u043D\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043B\u044C\u043D\u044B\u0439", "price" : 15.00, "quantity" : 1.000, "sum" : 15.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:41]execute_script... [13:01: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)126353", "tax_sys" : 0, "items" : [ { "code": "4600682000280", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up \u043C\u043E\u0445\u0438\u0442\u043E 0,45 \u0436/\u0431", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160099", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u0438\u043D\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043B\u044C\u043D\u044B\u0439", "price" : 15.00, "quantity" : 1.000, "sum" : 15.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:41]POST & json_proto [13:01:41]process_json_proto [13:01:41]json parsed OK: [13:01:41]protocol is kg_v1.0 [13:01:41]action value=close_receipt [13:01:41]process_action close_receipt [13:01:41]cmd_close_receipt [13:01:41]MH_GetDate [13:01:41]Write to MH i2c: F0 00 00 89 4B C3 [13:01:41]Write i2c OK [13:01:41]MH_I2C_Read... [13:01:41]Read from MH i2c: F0 [13:01:41]MH_I2C_Read... [13:01:41]Read from MH i2c: F0 09 00 [13:01:41]MH_I2C_Read... [13:01:41]Read from MH i2c: F0 09 00 89 4B 00 3B 41 A6 66 E3 0B 90 66 38 [13:01:41]GetLastDocTimeStamp 1722170074 [13:01:41]current date 1722171707 [13:01:41]FM_GetShiftState [13:01:41]SAM_PROTO_GetShiftState [13:01:41]wFMCommunicate request_size=4 [13:01:41]MH_SAM_APDU [13:01:41]CAPDU: 80 13 01 00 [13:01:41]Write to MH i2c: E2 08 00 8A 4B 80 13 01 00 00 00 00 00 52 [13:01:41]Write i2c OK [13:01:41]MH_I2C_Read... [13:01:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:42]Read from MH i2c: E2 [13:01:42]MH_I2C_Read... [13:01:42]Read from MH i2c: E2 0E 00 [13:01:42]MH_I2C_Read... [13:01:42]Read from MH i2c: E2 0E 00 8A 4B 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 46 [13:01:42]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [13:01:42]wFMCommunicate OK [13:01:42]SAM_PROTO_GetShiftState done [13:01:42]FM_GetShiftState done [13:01:42]opened in 1722125648 [13:01:42]opened+sec_in_day 1722212048 [13:01:42]quantity*price = 8500 [13:01:42]sum+1 = 8501 [13:01:42]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160099 Снек Курут индивидуальный 1.000 * 15.00 = 15.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 100.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 102 28.07.2024 13:01 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2051 ФПД: 163649615910075 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T130147&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2051&fm=163649615910075&tin=02508201610067®Number=0000000000189667&sum=10000 0 [13:01:43]StoreToDocumentArchive [13:01:43]shift 13 fd 2051 [13:01:43]save to /storage/0013/doc_00002051 [13:01:43]save last doc name /storage/0013/doc_00002051 to /storage/kkm_last_doc_name [13:01:43]save OK [13:01:43]Clear old archive folders... [13:01:43]ProcessDocumentItem done err = 0, tmpTLVsize=409 [13:01:43]tlvbuf is B6FD10D0 [13:01:43]SAM_PROTO_ClearQueue [13:01:43]wFMCommunicate request_size=4 [13:01:43]MH_SAM_APDU [13:01:43]CAPDU: 80 09 00 00 [13:01:43]Write to MH i2c: E2 08 00 97 4B 80 09 00 00 00 00 00 00 54 [13:01:43]Write i2c OK [13:01:43]MH_I2C_Read... [13:01:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:01:43]Read from MH i2c: E2 [13:01:43]MH_I2C_Read... [13:01:43]Read from MH i2c: E2 03 00 [13:01:43]MH_I2C_Read... [13:01:43]Read from MH i2c: E2 03 00 97 4B 00 90 00 56 [13:01:43]RAPDU: 90 00 [13:01:43]wFMCommunicate OK [13:01:43]SAM_PROTO_ClearQueue done [13:01:43]KKMCreateOFDPacket [13:01:43]OFDProtocolAddRootSTLVToBuf [13:01:43]FM_MakeSignedData [13:01:43]FM_MakeSignedData [13:01:43]SAM_PROTO_SignData [13:01:43]wFMCommunicate request_size=4 [13:01:43]MH_SAM_APDU [13:01:43]CAPDU: 80 0D 01 02 [13:01:43]Write to MH i2c: E2 08 00 98 4B 80 0D 01 02 00 00 00 00 5C [13:01:43]Write i2c OK [13:01:43]MH_I2C_Read... [13:01:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:01:43]Read from MH i2c: E2 [13:01:43]MH_I2C_Read... [13:01:43]Read from MH i2c: E2 03 00 [13:01:43]MH_I2C_Read... [13:01:43]Read from MH i2c: E2 03 00 98 4B 00 90 00 57 [13:01:43]RAPDU: 90 00 [13:01:43]wFMCommunicate OK [13:01:43]wFMCommunicate request_size=255 [13:01:43]MH_SAM_APDU [13:01:43]CAPDU: 80 0D 02 02 FA 03 00 99 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 30 30 36 38 32 30 30 30 32 38 30 06 04 2F 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 D0 BC D0 BE D1 85 D0 B8 D1 82 D0 BE 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 39 39 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 DC 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 [13:01:43]Write to MH i2c: E2 02 01 99 4B 80 0D 02 02 FA 00 03 00 99 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 30 30 36 38 32 30 30 30 32 38 30 06 04 2F 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 D0 BC D0 BE D1 85 D0 B8 D1 82 D0 BE 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 39 39 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 DC 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 00 00 0F [13:01:43]Write i2c OK [13:01:43]MH_I2C_Read... [13:01:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:43]Read from MH i2c: E2 [13:01:43]MH_I2C_Read... [13:01:43]Read from MH i2c: E2 03 00 [13:01:43]MH_I2C_Read... [13:01:43]Read from MH i2c: E2 03 00 99 4B 00 90 00 58 [13:01:43]RAPDU: 90 00 [13:01:43]wFMCommunicate OK [13:01:43]wFMCommunicate request_size=168 [13:01:43]MH_SAM_APDU [13:01:43]CAPDU: 80 0D 02 02 A3 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 3B 41 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 03 08 00 00 35 04 06 00 94 D6 A5 39 54 BB [13:01:43]Write to MH i2c: E2 AB 00 9A 4B 80 0D 02 02 A3 00 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 3B 41 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 03 08 00 00 35 04 06 00 94 D6 A5 39 54 BB 00 00 3E [13:01:43]Write i2c OK [13:01:43]MH_I2C_Read... [13:01:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:43]Read from MH i2c: E2 [13:01:43]MH_I2C_Read... [13:01:43]Read from MH i2c: E2 03 00 [13:01:43]MH_I2C_Read... [13:01:43]Read from MH i2c: E2 03 00 9A 4B 00 90 00 59 [13:01:43]RAPDU: 90 00 [13:01:43]wFMCommunicate OK [13:01:43]wFMCommunicate request_size=4 [13:01:43]MH_SAM_APDU [13:01:43]CAPDU: 80 0D 03 02 [13:01:43]Write to MH i2c: E2 08 00 9B 4B 80 0D 03 02 00 00 00 00 61 [13:01:43]Write i2c OK [13:01:43]MH_I2C_Read... [13:01:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:01:43]Read from MH i2c: E2 [13:01:43]MH_I2C_Read... [13:01:43]Read from MH i2c: E2 0B 00 [13:01:43]MH_I2C_Read... [13:01:43]Read from MH i2c: E2 0B 00 9B 4B 00 38 69 A5 8D 54 8F 00 B1 90 00 C9 [13:01:43]RAPDU: 38 69 A5 8D 54 8F 00 B1 90 00 [13:01:43]wFMCommunicate OK [13:01:43]SAM_PROTO_SignData done [13:01:43]FM_MakeSignedData done [13:01:43]CreateOFDProtocolMessage [13:01:43]wFMCommunicate request_size=4 [13:01:43]MH_SAM_APDU [13:01:43]CAPDU: 80 11 00 00 [13:01:43]Write to MH i2c: E2 08 00 9C 4B 80 11 00 00 00 00 00 00 61 [13:01:43]Write i2c OK [13:01:43]MH_I2C_Read... [13:01:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:43]Read from MH i2c: E2 [13:01:43]MH_I2C_Read... [13:01:43]Read from MH i2c: E2 17 00 [13:01:43]MH_I2C_Read... [13:01:43]Read from MH i2c: E2 17 00 9C 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 B1 [13:01:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [13:01:43]wFMCommunicate OK [13:01:43]CreateOFDProtocolMessage done [13:01:43]OFDSenderStorePacket 2051 [13:01:43]StoreOFDPacket docnum=2051 [13:01:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 AD 01 00 00 F4 67 A5 01 90 BA 5A 03 01 00 03 00 99 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 30 30 36 38 32 30 30 30 32 38 30 06 04 2F 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 D0 BC D0 BE D1 85 D0 B8 D1 82 D0 BE 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 39 39 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 DC 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 3B 41 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 03 08 00 00 35 04 06 00 94 D6 A5 39 54 BB 38 69 A5 8D 54 8F 00 B1 [13:01:43]CheckFolder [13:01:43]dirname=/storage/ofd_packets [13:01:43]CheckFolder done [13:01:43]ProducePacketName [13:01:43]name=ofd_packets/00002051 [13:01:43]NVStorageSaveData ofd_packets/00002051 [13:01:43]File name is /storage/ofd_packets/00002051 [13:01:43]Write 459 bytes [13:01:43]NVStorageSaveData done [13:01:43]OFDSenderStorePacket done [13:01:43]KKMCreateOFDPacket done [13:01:43]NVStorageSaveData kkm_last_timestamp [13:01:43]File name is /storage/kkm_last_timestamp [13:01:43]Write 4 bytes [13:01:43]NVStorageSaveData done [13:01:43]ExternCall_PrintAddStr [13:01:43]wPrintStart [13:01:43]Write to MH i2c: 01 00 00 9D 4B E8 [13:01:44]OFD Sender: Processing packet 2051 [packets to send 1, broken 0] [13:01:44]ProducePacketName [13:01:44]name=ofd_packets/00002051 [13:01:44]OFD Sender: To server: pG, [13:01:44]CommunicateWithHost lk.salyk.kg:30040 [13:01:44]ConnectInit lk.salyk.kg [13:01:44]Write i2c OK [13:01:44]MH_I2C_Read... [13:01:44]Read from MH i2c: 01 [13:01:44]MH_I2C_Read... [13:01:44]Read from MH i2c: 01 07 00 [13:01:44]MH_I2C_Read... [13:01:44]Read from MH i2c: 01 07 00 9D 4B 00 00 00 00 00 FF 0F FD [13:01:44]RasterBufferAndPrint [13:01:44]line Счет N : (3)126353 [13:01:44]line ИНН: 02508201610067 [13:01:44]line Контрольно-Кассовый Чек [13:01:44]line ПРОДАЖА [13:01:44]line Товар: 4600682000280 [13:01:44]line Напиток FLash up мохито 0,45 ж/б [13:01:44]line 1.000 * 85.00 [13:01:44]line = 85.00 [13:01:44]line НДС 12% НСП 1% [13:01:44]line > о реализуемом товаре [13:01:44]line Товар: 4700000160099 [13:01:44]line Снек Курут индивидуальный [13:01:44]line 1.000 * 15.00 [13:01:44]line = 15.00 [13:01:44]line НДС 12% НСП 1% [13:01:44]line > о реализуемом товаре [13:01:44]line ИТОГО: 100.00 [13:01:44]line НСП 1% : 0.88 [13:01:44]line НДС 12% : 10.62 [13:01:44]line Наличными: 100.00 [13:01:44]line Безнал.: 0.00 [13:01:44]line Место: АЗС № 127 "Партнер Нефть" [13:01:44]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [13:01:44]line СНО: Общий режим [13:01:44]line Чек 102 28.07.2024 13:01 [13:01:44]line Смена: 13 ФФД: 1.0 [13:01:44]line ЗНМ: 0300000161 [13:01:44]line РНМ: 0000000000189667 [13:01:44]line Версия ККМ: v1.0 [13:01:44]line ФМ: 0000000002094248 [13:01:44]line ФД: 2051 [13:01:44]line ФПД: 163649615910075 [13:01:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T130147&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2051&fm=163649615910075&tin=02508201610067®Number=0000000000189667&sum=10000 [13:01:44]line 0 [13:01:44]written 0, free lines is 4095 [13:01:44]Connected sock=10 [13:01:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 AD 01 00 00 F4 67 A5 01 90 BA 5A 03 01 00 03 00 99 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 30 30 36 38 32 30 30 30 32 38 30 06 04 2F 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 D0 BC D0 BE D1 85 D0 B8 D1 82 D0 BE 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 39 39 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 DC 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 3B 41 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 03 08 00 00 35 04 06 00 94 D6 A5 39 54 BB 38 69 A5 8D 54 8F 00 B1 [13:01:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 DB 07 47 00 F4 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 32 30 39 34 32 34 38 10 04 04 00 03 08 00 00 F4 03 04 00 AB EC A5 66 B6 04 01 00 00 3F 5F DA 69 3A 97 EF CC [13:01:44]CommunicateWithHost err = 0 [13:01:44]CheckOFDResponse [13:01:44]1017 (14) - 77093643461234 [13:01:44]1041 (16) - 0000000002094248 [13:01:44]1040 (4) - 2051 [13:01:44]1012 (4) - 28.07.2024 07:00 [13:01:44]1206 (1) - 0 [13:01:44]OFD Sender: Remove packet 2051 [13:01:44]ProducePacketName [13:01:44]name=ofd_packets/00002051 [13:01:44]NVStorageDeleteData [13:01:44]Write to MH i2c: 01 00 00 CC 4B 17 [13:01:44]Write i2c OK [13:01:44]MH_I2C_Read... [13:01:44]Read from MH i2c: 01 [13:01:44]MH_I2C_Read... [13:01:44]Read from MH i2c: 01 07 00 [13:01:44]MH_I2C_Read... [13:01:44]Read from MH i2c: 01 07 00 CC 4B 00 00 00 00 00 C3 0C ED [13:01:44]RasterBufferAndPrint [13:01:44]line [13:01:44]line [13:01:44]line [13:01:44]line [13:01:44]line [13:01:44]written 0, free lines is 3276 [13:01:44]MH_Cut [13:01:44]Write to MH i2c: D1 01 00 D3 4B 01 F0 [13:01:44]Write i2c OK [13:01:44]MH_I2C_Read... [13:01:44]Read from MH i2c: D1 [13:01:44]MH_I2C_Read... [13:01:44]Read from MH i2c: D1 01 00 [13:01:44]MH_I2C_Read... [13:01:44]Read from MH i2c: D1 01 00 D3 4B 00 EF [13:01:44]Write to MH i2c: 01 00 00 D4 4B 1F [13:01:44]Write i2c OK [13:01:44]MH_I2C_Read... [13:01:44]OFD Sender: No OFD packet to send [13:01:45]*** Cut start [13:01:45]*** Partial cut [13:01:45]*** CUTSNS_PIN = 1 [13:01:45]*** CUTSNS_PIN = 0 [13:01:45]*** Brake cut motor [13:01:45]Read from MH i2c: 01 [13:01:45]MH_I2C_Read... [13:01:45]*** Stop cut motor [13:01:45]*** Cut end [13:01:45]Read from MH i2c: 01 07 00 [13:01:45]MH_I2C_Read... [13:01:45]Read from MH i2c: 01 07 00 D4 4B 00 00 00 00 00 FF 0F 34 [13:01:46]process_action close_receipt done [13:01:46]requested_data is exist [13:01:46]produce_requested_data [13:01:46]requested_item fm.sn is exist - process it [13:01:46]wFMCommunicate request_size=4 [13:01:46]MH_SAM_APDU [13:01:46]CAPDU: 80 11 00 00 [13:01:46]Write to MH i2c: E2 08 00 D5 4B 80 11 00 00 00 00 00 00 9A [13:01:46]Write i2c OK [13:01:46]MH_I2C_Read... [13:01:46]Read from MH i2c: E2 [13:01:46]MH_I2C_Read... [13:01:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:46]Read from MH i2c: E2 17 00 [13:01:46]MH_I2C_Read... [13:01:46]Read from MH i2c: E2 17 00 D5 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 EA [13:01:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [13:01:46]wFMCommunicate OK [13:01:46]requested_item fd.num is exist - process it [13:01:46]SAM_PROTO_GetFieldsCounters [13:01:46]wFMCommunicate request_size=4 [13:01:46]MH_SAM_APDU [13:01:46]CAPDU: 80 13 00 00 [13:01:46]Write to MH i2c: E2 08 00 D6 4B 80 13 00 00 00 00 00 00 9D [13:01:46]Write i2c OK [13:01:46]MH_I2C_Read... [13:01:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:01:46]Read from MH i2c: E2 [13:01:46]MH_I2C_Read... [13:01:46]Read from MH i2c: E2 62 00 [13:01:46]MH_I2C_Read... [13:01:46]Read from MH i2c: E2 62 00 D6 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 03 08 00 00 0E 04 04 00 0D 00 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 11 [13:01:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 03 08 00 00 0E 04 04 00 0D 00 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 [13:01:46]wFMCommunicate OK [13:01:46]SAM_PROTO_GetFieldsCounters done [13:01:46]requested_item shift.num is exist - process it [13:01:46]requested_item shift.opened is exist - process it [13:01:46]req_shift_opened [13:01:46]FM_GetShiftState [13:01:46]SAM_PROTO_GetShiftState [13:01:46]wFMCommunicate request_size=4 [13:01:46]MH_SAM_APDU [13:01:46]CAPDU: 80 13 01 00 [13:01:46]Write to MH i2c: E2 08 00 D7 4B 80 13 01 00 00 00 00 00 9F [13:01:46]Write i2c OK [13:01:46]MH_I2C_Read... [13:01:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:46]Read from MH i2c: E2 [13:01:46]MH_I2C_Read... [13:01:46]Read from MH i2c: E2 0E 00 [13:01:46]MH_I2C_Read... [13:01:46]Read from MH i2c: E2 0E 00 D7 4B 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 93 [13:01:46]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [13:01:46]wFMCommunicate OK [13:01:46]SAM_PROTO_GetShiftState done [13:01:46]FM_GetShiftState done [13:01:46]req_shift_opened done [13:01:46]requested_item shift.open_date is exist - process it [13:01:46]req_shift_open_date [13:01:46]req_shift_open_date done [13:01:46]produce_requested_data done [13:01:46]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2051,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [13:01:46]process_action_free close_receipt [13:01:46]json_value_free [13:01:46]json_value_free done [13:01:46]process_json_proto returns [13:01:46]Send response to host [13:01:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2051,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [13:01:46]free response buf [13:01:46]execute_script done [13:01:46]execute_script returns [13:01:46]free content buf [13:01:46]Sock 8.Close socket [13:01:46]Sock 8.Thread stoped [13:01:49]OFD Sender: No OFD packet to send [13:01:54]OFD Sender: No OFD packet to send [13:01:59]OFD Sender: No OFD packet to send [13:02:04]OFD Sender: No OFD packet to send [13:02:09]OFD Sender: No OFD packet to send [13:02:14]OFD Sender: No OFD packet to send [13:02:19]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:41]accept exits with 9 [13:02:41]New connection [13:02:41]New thread 3067317604 created [13:02:41]Thread 3067460964 joined [13:02:41]Waiting for new connection... [13:02:41] Sock 9.Parse request [13:02:41]Sock 9.Check first char [13:02:41]Sock 9.First char is OK [13:02:41]request: POST /json_proto HTTP/1.0 [13:02:41]Method: POST [13:02:41]URL: /json_proto [13:02:41]Method is POST - this is cgi request [13:02:41]url: /json_proto [13:02:41]query_string will be loaded in cgi processing [13:02:41]execute_cgi json_proto POST (null) [13:02:41]execute_cgi path=json_proto method=POST [13:02:41]POST find Content-Length [13:02:41]Host: 172.17.45.132:8080 [13:02:41]Content-Length: 632 [13:02:41]Content-Type: application/json [13:02:41] [13:02:41]POST finish read [13:02:41]Found Content-Length = 632 [13:02:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126354", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:02:41]execute_script... [13:02: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)126354", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:02:41]POST & json_proto [13:02:41]process_json_proto [13:02:41]json parsed OK: [13:02:41]protocol is kg_v1.0 [13:02:41]action value=close_receipt [13:02:41]process_action close_receipt [13:02:41]cmd_close_receipt [13:02:41]MH_GetDate [13:02:41]Write to MH i2c: F0 00 00 D8 4B 12 [13:02:41]Write i2c OK [13:02:41]MH_I2C_Read... [13:02:41]Read from MH i2c: F0 [13:02:41]MH_I2C_Read... [13:02:41]Read from MH i2c: F0 09 00 [13:02:41]MH_I2C_Read... [13:02:41]Read from MH i2c: F0 09 00 D8 4B 00 77 41 A6 66 E3 0B 90 66 C3 [13:02:41]GetLastDocTimeStamp 1722171707 [13:02:41]current date 1722171767 [13:02:41]FM_GetShiftState [13:02:41]SAM_PROTO_GetShiftState [13:02:41]wFMCommunicate request_size=4 [13:02:41]MH_SAM_APDU [13:02:41]CAPDU: 80 13 01 00 [13:02:41]Write to MH i2c: E2 08 00 D9 4B 80 13 01 00 00 00 00 00 A1 [13:02:41]Write i2c OK [13:02:41]MH_I2C_Read... [13:02:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:41]Read from MH i2c: E2 [13:02:41]MH_I2C_Read... [13:02:41]Read from MH i2c: E2 0E 00 [13:02:41]MH_I2C_Read... [13:02:41]Read from MH i2c: E2 0E 00 D9 4B 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 95 [13:02:41]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [13:02:41]wFMCommunicate OK [13:02:41]SAM_PROTO_GetShiftState done [13:02:41]FM_GetShiftState done [13:02:41]opened in 1722125648 [13:02:41]opened+sec_in_day 1722212048 [13:02:41]quantity*price = 4000 [13:02:41]sum+1 = 4001 [13:02:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 40.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 103 28.07.2024 13:02 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2052 ФПД: 214389813678382 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T130247&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2052&fm=214389813678382&tin=02508201610067®Number=0000000000189667&sum=4000 0 [13:02:42]StoreToDocumentArchive [13:02:42]shift 13 fd 2052 [13:02:42]save to /storage/0013/doc_00002052 [13:02:42]save last doc name /storage/0013/doc_00002052 to /storage/kkm_last_doc_name [13:02:42]save OK [13:02:42]Clear old archive folders... [13:02:42]ProcessDocumentItem done err = 0, tmpTLVsize=271 [13:02:42]tlvbuf is 0200EDC0 [13:02:42]SAM_PROTO_ClearQueue [13:02:42]wFMCommunicate request_size=4 [13:02:42]MH_SAM_APDU [13:02:42]CAPDU: 80 09 00 00 [13:02:42]Write to MH i2c: E2 08 00 E6 4B 80 09 00 00 00 00 00 00 A3 [13:02:42]Write i2c OK [13:02:42]MH_I2C_Read... [13:02:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:02:43]Read from MH i2c: E2 [13:02:43]MH_I2C_Read... [13:02:43]Read from MH i2c: E2 03 00 [13:02:43]MH_I2C_Read... [13:02:43]Read from MH i2c: E2 03 00 E6 4B 00 90 00 A5 [13:02:43]RAPDU: 90 00 [13:02:43]wFMCommunicate OK [13:02:43]SAM_PROTO_ClearQueue done [13:02:43]KKMCreateOFDPacket [13:02:43]OFDProtocolAddRootSTLVToBuf [13:02:43]FM_MakeSignedData [13:02:43]FM_MakeSignedData [13:02:43]SAM_PROTO_SignData [13:02:43]wFMCommunicate request_size=4 [13:02:43]MH_SAM_APDU [13:02:43]CAPDU: 80 0D 01 02 [13:02:43]Write to MH i2c: E2 08 00 E7 4B 80 0D 01 02 00 00 00 00 AB [13:02:43]Write i2c OK [13:02:43]MH_I2C_Read... [13:02:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:02:43]Read from MH i2c: E2 [13:02:43]MH_I2C_Read... [13:02:43]Read from MH i2c: E2 03 00 [13:02:43]MH_I2C_Read... [13:02:43]Read from MH i2c: E2 03 00 E7 4B 00 90 00 A6 [13:02:43]RAPDU: 90 00 [13:02:43]wFMCommunicate OK [13:02:43]wFMCommunicate request_size=255 [13:02:43]MH_SAM_APDU [13:02:43]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 77 41 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 [13:02:43]Write to MH i2c: E2 02 01 E8 4B 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 77 41 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 D4 [13:02:43]Write i2c OK [13:02:43]MH_I2C_Read... [13:02:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:43]Read from MH i2c: E2 [13:02:43]MH_I2C_Read... [13:02:43]Read from MH i2c: E2 03 00 [13:02:43]MH_I2C_Read... [13:02:43]Read from MH i2c: E2 03 00 E8 4B 00 90 00 A7 [13:02:43]RAPDU: 90 00 [13:02:43]wFMCommunicate OK [13:02:43]wFMCommunicate request_size=30 [13:02:43]MH_SAM_APDU [13:02:43]CAPDU: 80 0D 02 02 19 32 30 39 34 32 34 38 10 04 04 00 04 08 00 00 35 04 06 00 C2 FC 84 B0 11 2E [13:02:43]Write to MH i2c: E2 21 00 E9 4B 80 0D 02 02 19 00 32 30 39 34 32 34 38 10 04 04 00 04 08 00 00 35 04 06 00 C2 FC 84 B0 11 2E 00 00 E1 [13:02:43]Write i2c OK [13:02:43]MH_I2C_Read... [13:02:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:43]Read from MH i2c: E2 [13:02:43]MH_I2C_Read... [13:02:43]Read from MH i2c: E2 03 00 [13:02:43]MH_I2C_Read... [13:02:43]Read from MH i2c: E2 03 00 E9 4B 00 90 00 A8 [13:02:43]RAPDU: 90 00 [13:02:43]wFMCommunicate OK [13:02:43]wFMCommunicate request_size=4 [13:02:43]MH_SAM_APDU [13:02:43]CAPDU: 80 0D 03 02 [13:02:43]Write to MH i2c: E2 08 00 EA 4B 80 0D 03 02 00 00 00 00 B0 [13:02:43]Write i2c OK [13:02:43]MH_I2C_Read... [13:02:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:02:43]Read from MH i2c: E2 [13:02:43]MH_I2C_Read... [13:02:43]Read from MH i2c: E2 0B 00 [13:02:43]MH_I2C_Read... [13:02:43]Read from MH i2c: E2 0B 00 EA 4B 00 8E DF B7 BC C2 CE 13 A2 90 00 D6 [13:02:43]RAPDU: 8E DF B7 BC C2 CE 13 A2 90 00 [13:02:43]wFMCommunicate OK [13:02:43]SAM_PROTO_SignData done [13:02:43]FM_MakeSignedData done [13:02:43]CreateOFDProtocolMessage [13:02:43]wFMCommunicate request_size=4 [13:02:43]MH_SAM_APDU [13:02:43]CAPDU: 80 11 00 00 [13:02:43]Write to MH i2c: E2 08 00 EB 4B 80 11 00 00 00 00 00 00 B0 [13:02:43]Write i2c OK [13:02:43]MH_I2C_Read... [13:02:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:43]Read from MH i2c: E2 [13:02:43]MH_I2C_Read... [13:02:43]Read from MH i2c: E2 17 00 [13:02:43]MH_I2C_Read... [13:02:43]Read from MH i2c: E2 17 00 EB 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 00 [13:02:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [13:02:43]wFMCommunicate OK [13:02:43]CreateOFDProtocolMessage done [13:02:43]OFDSenderStorePacket 2052 [13:02:43]StoreOFDPacket docnum=2052 [13:02:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 23 01 00 00 1B 09 1B 01 D7 B7 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 77 41 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 04 08 00 00 35 04 06 00 C2 FC 84 B0 11 2E 8E DF B7 BC C2 CE 13 A2 [13:02:43]CheckFolder [13:02:43]dirname=/storage/ofd_packets [13:02:43]CheckFolder done [13:02:43]ProducePacketName [13:02:43]name=ofd_packets/00002052 [13:02:43]NVStorageSaveData ofd_packets/00002052 [13:02:43]File name is /storage/ofd_packets/00002052 [13:02:43]Write 321 bytes [13:02:43]NVStorageSaveData done [13:02:43]OFDSenderStorePacket done [13:02:43]KKMCreateOFDPacket done [13:02:43]NVStorageSaveData kkm_last_timestamp [13:02:43]File name is /storage/kkm_last_timestamp [13:02:43]Write 4 bytes [13:02:43]NVStorageSaveData done [13:02:43]ExternCall_PrintAddStr [13:02:43]wPrintStart [13:02:43]Write to MH i2c: 01 00 00 EC 4B 37 [13:02:43]Write i2c OK [13:02:43]MH_I2C_Read... [13:02:43]Read from MH i2c: 01 [13:02:43]MH_I2C_Read... [13:02:43]Read from MH i2c: 01 07 00 [13:02:43]MH_I2C_Read... [13:02:43]Read from MH i2c: 01 07 00 EC 4B 00 00 00 00 00 FF 0F 4C [13:02:43]RasterBufferAndPrint [13:02:43]line Счет N : (3)126354 [13:02:43]line ИНН: 02508201610067 [13:02:43]line Контрольно-Кассовый Чек [13:02:43]line ПРОДАЖА [13:02:43]line Товар: 4700000160211 [13:02:43]line Вода Легенда 0,5л [13:02:43]line 1.000 * 40.00 [13:02:43]line = 40.00 [13:02:43]line НДС 12% НСП 1% [13:02:43]line > о реализуемом товаре [13:02:43]line ИТОГО: 40.00 [13:02:43]line НСП 1% : 0.35 [13:02:43]line НДС 12% : 4.25 [13:02:43]line Наличными: 40.00 [13:02:43]line Безнал.: 0.00 [13:02:43]line Место: АЗС № 127 "Партнер Нефть" [13:02:43]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [13:02:43]line СНО: Общий режим [13:02:43]line Чек 103 28.07.2024 13:02 [13:02:43]line Смена: 13 ФФД: 1.0 [13:02:43]line ЗНМ: 0300000161 [13:02:43]line РНМ: 0000000000189667 [13:02:43]line Версия ККМ: v1.0 [13:02:43]line ФМ: 0000000002094248 [13:02:43]line ФД: 2052 [13:02:43]line ФПД: 214389813678382 [13:02:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T130247&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2052&fm=214389813678382&tin=02508201610067®Number=0000000000189667&sum=4000 [13:02:43]OFD Sender: Processing packet 2052 [packets to send 1, broken 0] [13:02:43]ProducePacketName [13:02:43]name=ofd_packets/00002052 [13:02:43]OFD Sender: To server: pG, [13:02:43]CommunicateWithHost lk.salyk.kg:30040 [13:02:43]ConnectInit lk.salyk.kg [13:02:43]line 0 [13:02:43]written 0, free lines is 4095 [13:02:44]Write to MH i2c: 01 00 00 14 4C 60 [13:02:44]Write i2c OK [13:02:44]MH_I2C_Read... [13:02:44]Read from MH i2c: 01 [13:02:44]MH_I2C_Read... [13:02:44]Read from MH i2c: 01 07 00 [13:02:44]MH_I2C_Read... [13:02:44]Read from MH i2c: 01 07 00 14 4C 00 00 00 00 00 01 0D 75 [13:02:44]RasterBufferAndPrint [13:02:44]line [13:02:44]line [13:02:44]line [13:02:44]line [13:02:44]line [13:02:44]written 0, free lines is 3335 [13:02:44]MH_Cut [13:02:44]Write to MH i2c: D1 01 00 1B 4C 01 39 [13:02:44]Write i2c OK [13:02:44]MH_I2C_Read... [13:02:44]Read from MH i2c: D1 [13:02:44]MH_I2C_Read... [13:02:44]Read from MH i2c: D1 01 00 [13:02:44]MH_I2C_Read... [13:02:44]Read from MH i2c: D1 01 00 1B 4C 00 38 [13:02:44]Write to MH i2c: 01 00 00 1C 4C 68 [13:02:44]Write i2c OK [13:02:44]MH_I2C_Read... [13:02:44]Connected sock=8 [13:02:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 23 01 00 00 1B 09 1B 01 D7 B7 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 77 41 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 04 08 00 00 35 04 06 00 C2 FC 84 B0 11 2E 8E DF B7 BC C2 CE 13 A2 [13:02:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 41 86 47 00 80 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 04 08 00 00 F4 03 04 00 E7 EC A5 66 B6 04 01 00 00 A2 EB 3B A8 F3 F1 52 1F [13:02:44]CommunicateWithHost err = 0 [13:02:44]CheckOFDResponse [13:02:44]1017 (14) - 77093643461234 [13:02:44]1041 (16) - 0000000002094248 [13:02:44]1040 (4) - 2052 [13:02:44]1012 (4) - 28.07.2024 07:01 [13:02:44]1206 (1) - 0 [13:02:44]OFD Sender: Remove packet 2052 [13:02:44]ProducePacketName [13:02:44]name=ofd_packets/00002052 [13:02:44]NVStorageDeleteData [13:02:44]*** Cut start [13:02:44]*** Partial cut [13:02:44]*** CUTSNS_PIN = 1 [13:02:45]*** CUTSNS_PIN = 0 [13:02:45]*** Brake cut motor [13:02:45]OFD Sender: No OFD packet to send [13:02:45]Read from MH i2c: 01 [13:02:45]MH_I2C_Read... [13:02:45]*** Stop cut motor [13:02:45]*** Cut end [13:02:45]Read from MH i2c: 01 07 00 [13:02:45]MH_I2C_Read... [13:02:45]Read from MH i2c: 01 07 00 1C 4C 00 00 00 00 00 FF 0F 7D [13:02:45]process_action close_receipt done [13:02:45]requested_data is exist [13:02:45]produce_requested_data [13:02:45]requested_item fm.sn is exist - process it [13:02:45]wFMCommunicate request_size=4 [13:02:45]MH_SAM_APDU [13:02:45]CAPDU: 80 11 00 00 [13:02:45]Write to MH i2c: E2 08 00 1D 4C 80 11 00 00 00 00 00 00 E3 [13:02:45]Write i2c OK [13:02:45]MH_I2C_Read... [13:02:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:45]Read from MH i2c: E2 [13:02:45]MH_I2C_Read... [13:02:45]Read from MH i2c: E2 17 00 [13:02:45]MH_I2C_Read... [13:02:45]Read from MH i2c: E2 17 00 1D 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 33 [13:02:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [13:02:45]wFMCommunicate OK [13:02:45]requested_item fd.num is exist - process it [13:02:45]SAM_PROTO_GetFieldsCounters [13:02:45]wFMCommunicate request_size=4 [13:02:45]MH_SAM_APDU [13:02:45]CAPDU: 80 13 00 00 [13:02:45]Write to MH i2c: E2 08 00 1E 4C 80 13 00 00 00 00 00 00 E6 [13:02:45]Write i2c OK [13:02:45]MH_I2C_Read... [13:02:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:02:45]Read from MH i2c: E2 [13:02:45]MH_I2C_Read... [13:02:45]Read from MH i2c: E2 62 00 [13:02:45]MH_I2C_Read... [13:02:45]Read from MH i2c: E2 62 00 1E 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 04 08 00 00 0E 04 04 00 0D 00 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 5E [13:02:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 04 08 00 00 0E 04 04 00 0D 00 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 [13:02:45]wFMCommunicate OK [13:02:45]SAM_PROTO_GetFieldsCounters done [13:02:45]requested_item shift.num is exist - process it [13:02:45]requested_item shift.opened is exist - process it [13:02:45]req_shift_opened [13:02:45]FM_GetShiftState [13:02:45]SAM_PROTO_GetShiftState [13:02:45]wFMCommunicate request_size=4 [13:02:45]MH_SAM_APDU [13:02:45]CAPDU: 80 13 01 00 [13:02:45]Write to MH i2c: E2 08 00 1F 4C 80 13 01 00 00 00 00 00 E8 [13:02:45]Write i2c OK [13:02:45]MH_I2C_Read... [13:02:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:45]Read from MH i2c: E2 [13:02:45]MH_I2C_Read... [13:02:45]Read from MH i2c: E2 0E 00 [13:02:45]MH_I2C_Read... [13:02:45]Read from MH i2c: E2 0E 00 1F 4C 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 DC [13:02:45]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [13:02:45]wFMCommunicate OK [13:02:45]SAM_PROTO_GetShiftState done [13:02:45]FM_GetShiftState done [13:02:45]req_shift_opened done [13:02:45]requested_item shift.open_date is exist - process it [13:02:45]req_shift_open_date [13:02:45]req_shift_open_date done [13:02:45]produce_requested_data done [13:02:45]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2052,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [13:02:45]process_action_free close_receipt [13:02:45]json_value_free [13:02:45]json_value_free done [13:02:45]process_json_proto returns [13:02:45]Send response to host [13:02:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2052,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [13:02:45]free response buf [13:02:45]execute_script done [13:02:45]execute_script returns [13:02:45]free content buf [13:02:45]Sock 9.Close socket [13:02:45]Sock 9.Thread stoped [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:03:57]accept exits with 10 [13:03:57]New connection [13:03:57]New thread 3067460964 created [13:03:57]Thread 3067317604 joined [13:03:57]Waiting for new connection... [13:03:57] Sock 10.Parse request [13:03:57]Sock 10.Check first char [13:03:57]Sock 10.First char is OK [13:03:57]request: POST /json_proto HTTP/1.0 [13:03:57]Method: POST [13:03:57]URL: /json_proto [13:03:57]Method is POST - this is cgi request [13:03:57]url: /json_proto [13:03:57]query_string will be loaded in cgi processing [13:03:57]execute_cgi json_proto POST (null) [13:03:57]execute_cgi path=json_proto method=POST [13:03:57]POST find Content-Length [13:03:57]Host: 172.17.45.132:8080 [13:03:57]Content-Length: 630 [13:03:57]Content-Type: application/json [13:03:57] [13:03:57]POST finish read [13:03:57]Found Content-Length = 630 [13:03:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126355", "tax_sys" : 0, "items" : [ { "code": "5449000066473", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:03:57]execute_script... [13:03: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)126355", "tax_sys" : 0, "items" : [ { "code": "5449000066473", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:03:57]POST & json_proto [13:03:57]process_json_proto [13:03:57]json parsed OK: [13:03:57]protocol is kg_v1.0 [13:03:57]action value=close_receipt [13:03:57]process_action close_receipt [13:03:57]cmd_close_receipt [13:03:57]MH_GetDate [13:03:57]Write to MH i2c: F0 00 00 20 4C 5B [13:03:57]Write i2c OK [13:03:57]MH_I2C_Read... [13:03:57]Read from MH i2c: F0 [13:03:57]MH_I2C_Read... [13:03:57]Read from MH i2c: F0 09 00 [13:03:57]MH_I2C_Read... [13:03:57]Read from MH i2c: F0 09 00 20 4C 00 C3 41 A6 66 E3 0B 90 66 58 [13:03:57]GetLastDocTimeStamp 1722171767 [13:03:57]current date 1722171843 [13:03:57]FM_GetShiftState [13:03:57]SAM_PROTO_GetShiftState [13:03:57]wFMCommunicate request_size=4 [13:03:57]MH_SAM_APDU [13:03:57]CAPDU: 80 13 01 00 [13:03:57]Write to MH i2c: E2 08 00 21 4C 80 13 01 00 00 00 00 00 EA [13:03:57]Write i2c OK [13:03:57]MH_I2C_Read... [13:03:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:57]Read from MH i2c: E2 [13:03:57]MH_I2C_Read... [13:03:57]Read from MH i2c: E2 0E 00 [13:03:57]MH_I2C_Read... [13:03:57]Read from MH i2c: E2 0E 00 21 4C 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 DE [13:03:57]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [13:03:57]wFMCommunicate OK [13:03:57]SAM_PROTO_GetShiftState done [13:03:57]FM_GetShiftState done [13:03:57]opened in 1722125648 [13:03:57]opened+sec_in_day 1722212048 [13:03:57]quantity*price = 5000 [13:03:57]sum+1 = 5001 [13:03:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 104 28.07.2024 13:04 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2053 ФПД: 270087142723858 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T130403&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2053&fm=270087142723858&tin=02508201610067®Number=0000000000189667&sum=5000 0 [13:03:58]StoreToDocumentArchive [13:03:58]shift 13 fd 2053 [13:03:58]save to /storage/0013/doc_00002053 [13:03:58]save last doc name /storage/0013/doc_00002053 to /storage/kkm_last_doc_name [13:03:58]save OK [13:03:58]Clear old archive folders... [13:03:58]ProcessDocumentItem done err = 0, tmpTLVsize=269 [13:03:58]tlvbuf is 02048CF0 [13:03:58]SAM_PROTO_ClearQueue [13:03:58]wFMCommunicate request_size=4 [13:03:58]MH_SAM_APDU [13:03:58]CAPDU: 80 09 00 00 [13:03:58]Write to MH i2c: E2 08 00 2E 4C 80 09 00 00 00 00 00 00 EC [13:03:58]Write i2c OK [13:03:58]MH_I2C_Read... [13:03:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:03:59]Read from MH i2c: E2 [13:03:59]MH_I2C_Read... [13:03:59]Read from MH i2c: E2 03 00 [13:03:59]MH_I2C_Read... [13:03:59]Read from MH i2c: E2 03 00 2E 4C 00 90 00 EE [13:03:59]RAPDU: 90 00 [13:03:59]wFMCommunicate OK [13:03:59]SAM_PROTO_ClearQueue done [13:03:59]KKMCreateOFDPacket [13:03:59]OFDProtocolAddRootSTLVToBuf [13:03:59]FM_MakeSignedData [13:03:59]FM_MakeSignedData [13:03:59]SAM_PROTO_SignData [13:03:59]wFMCommunicate request_size=4 [13:03:59]MH_SAM_APDU [13:03:59]CAPDU: 80 0D 01 02 [13:03:59]Write to MH i2c: E2 08 00 2F 4C 80 0D 01 02 00 00 00 00 F4 [13:03:59]Write i2c OK [13:03:59]MH_I2C_Read... [13:03:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:03:59]Read from MH i2c: E2 [13:03:59]MH_I2C_Read... [13:03:59]Read from MH i2c: E2 03 00 [13:03:59]MH_I2C_Read... [13:03:59]Read from MH i2c: E2 03 00 2F 4C 00 90 00 EF [13:03:59]RAPDU: 90 00 [13:03:59]wFMCommunicate OK [13:03:59]wFMCommunicate request_size=255 [13:03:59]MH_SAM_APDU [13:03:59]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 35 34 34 39 30 30 30 30 36 36 34 37 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 C3 41 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 [13:03:59]Write to MH i2c: E2 02 01 30 4C 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 35 34 34 39 30 30 30 30 36 36 34 37 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 C3 41 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 00 00 A3 [13:03:59]Write i2c OK [13:03:59]MH_I2C_Read... [13:03:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:59]Read from MH i2c: E2 [13:03:59]MH_I2C_Read... [13:03:59]Read from MH i2c: E2 03 00 [13:03:59]MH_I2C_Read... [13:03:59]Read from MH i2c: E2 03 00 30 4C 00 90 00 F0 [13:03:59]RAPDU: 90 00 [13:03:59]wFMCommunicate OK [13:03:59]wFMCommunicate request_size=28 [13:03:59]MH_SAM_APDU [13:03:59]CAPDU: 80 0D 02 02 17 39 34 32 34 38 10 04 04 00 05 08 00 00 35 04 06 00 F5 A4 90 33 51 12 [13:03:59]Write to MH i2c: E2 1F 00 31 4C 80 0D 02 02 17 00 39 34 32 34 38 10 04 04 00 05 08 00 00 35 04 06 00 F5 A4 90 33 51 12 00 00 53 [13:03:59]Write i2c OK [13:03:59]MH_I2C_Read... [13:03:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:59]Read from MH i2c: E2 [13:03:59]MH_I2C_Read... [13:03:59]Read from MH i2c: E2 03 00 [13:03:59]MH_I2C_Read... [13:03:59]Read from MH i2c: E2 03 00 31 4C 00 90 00 F1 [13:03:59]RAPDU: 90 00 [13:03:59]wFMCommunicate OK [13:03:59]wFMCommunicate request_size=4 [13:03:59]MH_SAM_APDU [13:03:59]CAPDU: 80 0D 03 02 [13:03:59]Write to MH i2c: E2 08 00 32 4C 80 0D 03 02 00 00 00 00 F9 [13:03:59]Write i2c OK [13:03:59]MH_I2C_Read... [13:03:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:03:59]Read from MH i2c: E2 [13:03:59]MH_I2C_Read... [13:03:59]Read from MH i2c: E2 0B 00 [13:03:59]MH_I2C_Read... [13:03:59]Read from MH i2c: E2 0B 00 32 4C 00 A7 7A 12 3A B1 A2 AE 98 90 00 00 [13:03:59]RAPDU: A7 7A 12 3A B1 A2 AE 98 90 00 [13:03:59]wFMCommunicate OK [13:03:59]SAM_PROTO_SignData done [13:03:59]FM_MakeSignedData done [13:03:59]CreateOFDProtocolMessage [13:03:59]wFMCommunicate request_size=4 [13:03:59]MH_SAM_APDU [13:03:59]CAPDU: 80 11 00 00 [13:03:59]Write to MH i2c: E2 08 00 33 4C 80 11 00 00 00 00 00 00 F9 [13:03:59]Write i2c OK [13:03:59]MH_I2C_Read... [13:03:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:59]Read from MH i2c: E2 [13:03:59]MH_I2C_Read... [13:03:59]Read from MH i2c: E2 17 00 [13:03:59]MH_I2C_Read... [13:03:59]Read from MH i2c: E2 17 00 33 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 49 [13:03:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [13:03:59]wFMCommunicate OK [13:03:59]CreateOFDProtocolMessage done [13:03:59]OFDSenderStorePacket 2053 [13:03:59]StoreOFDPacket docnum=2053 [13:03:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 21 01 00 00 A6 AB 19 01 C0 45 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 35 34 34 39 30 30 30 30 36 36 34 37 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 C3 41 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 05 08 00 00 35 04 06 00 F5 A4 90 33 51 12 A7 7A 12 3A B1 A2 AE 98 [13:03:59]CheckFolder [13:03:59]dirname=/storage/ofd_packets [13:03:59]CheckFolder done [13:03:59]ProducePacketName [13:03:59]name=ofd_packets/00002053 [13:03:59]NVStorageSaveData ofd_packets/00002053 [13:03:59]File name is /storage/ofd_packets/00002053 [13:03:59]Write 319 bytes [13:03:59]NVStorageSaveData done [13:03:59]OFDSenderStorePacket done [13:03:59]KKMCreateOFDPacket done [13:03:59]NVStorageSaveData kkm_last_timestamp [13:03:59]File name is /storage/kkm_last_timestamp [13:03:59]Write 4 bytes [13:03:59]NVStorageSaveData done [13:03:59]ExternCall_PrintAddStr [13:03:59]wPrintStart [13:03:59]Write to MH i2c: 01 00 00 34 4C 80 [13:03:59]Write i2c OK [13:03:59]MH_I2C_Read... [13:03:59]Read from MH i2c: 01 [13:03:59]MH_I2C_Read... [13:03:59]Read from MH i2c: 01 07 00 [13:03:59]MH_I2C_Read... [13:03:59]Read from MH i2c: 01 07 00 34 4C 00 00 00 00 00 FF 0F 95 [13:03:59]RasterBufferAndPrint [13:03:59]line Счет N : (3)126355 [13:03:59]line ИНН: 02508201610067 [13:03:59]line Контрольно-Кассовый Чек [13:03:59]line ПРОДАЖА [13:03:59]line Товар: 5449000066473 [13:03:59]line Вода Бонаква 1л [13:03:59]line 1.000 * 50.00 [13:03:59]line = 50.00 [13:03:59]line НДС 12% НСП 1% [13:03:59]line > о реализуемом товаре [13:03:59]line ИТОГО: 50.00 [13:03:59]line НСП 1% : 0.44 [13:03:59]line НДС 12% : 5.31 [13:03:59]line Наличными: 50.00 [13:03:59]line Безнал.: 0.00 [13:03:59]line Место: АЗС № 127 "Партнер Нефть" [13:03:59]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [13:03:59]line СНО: Общий режим [13:03:59]line Чек 104 28.07.2024 13:04 [13:03:59]line Смена: 13 ФФД: 1.0 [13:03:59]line ЗНМ: 0300000161 [13:03:59]line РНМ: 0000000000189667 [13:03:59]line Версия ККМ: v1.0 [13:03:59]line ФМ: 0000000002094248 [13:03:59]line ФД: 2053 [13:03:59]line ФПД: 270087142723858 [13:03:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T130403&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2053&fm=270087142723858&tin=02508201610067®Number=0000000000189667&sum=5000 [13:03:59]line 0 [13:03:59]OFD Sender: Processing packet 2053 [packets to send 1, broken 0] [13:03:59]ProducePacketName [13:03:59]name=ofd_packets/00002053 [13:03:59]OFD Sender: To server: pG, [13:03:59]CommunicateWithHost lk.salyk.kg:30040 [13:03:59]ConnectInit lk.salyk.kg [13:03:59]written 0, free lines is 4095 [13:03:59]Connected sock=9 [13:03:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 21 01 00 00 A6 AB 19 01 C0 45 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 35 34 34 39 30 30 30 30 36 36 34 37 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 C3 41 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 05 08 00 00 35 04 06 00 F5 A4 90 33 51 12 A7 7A 12 3A B1 A2 AE 98 [13:04:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 3C 04 47 00 DA 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 32 30 39 34 32 34 38 10 04 04 00 05 08 00 00 F4 03 04 00 33 ED A5 66 B6 04 01 00 00 C7 BB 32 98 5C B0 D9 0B [13:04:00]CommunicateWithHost err = 0 [13:04:00]CheckOFDResponse [13:04:00]1017 (14) - 77093643461234 [13:04:00]1041 (16) - 0000000002094248 [13:04:00]1040 (4) - 2053 [13:04:00]1012 (4) - 28.07.2024 07:03 [13:04:00]1206 (1) - 0 [13:04:00]OFD Sender: Remove packet 2053 [13:04:00]ProducePacketName [13:04:00]name=ofd_packets/00002053 [13:04:00]NVStorageDeleteData [13:04:00]Write to MH i2c: 01 00 00 5C 4C A8 [13:04:00]Write i2c OK [13:04:00]MH_I2C_Read... [13:04:00]Read from MH i2c: 01 [13:04:00]MH_I2C_Read... [13:04:00]Read from MH i2c: 01 07 00 [13:04:00]MH_I2C_Read... [13:04:00]Read from MH i2c: 01 07 00 5C 4C 00 00 00 00 00 08 0D C4 [13:04:00]RasterBufferAndPrint [13:04:00]line [13:04:00]line [13:04:00]line [13:04:00]line [13:04:00]line [13:04:00]written 0, free lines is 3346 [13:04:00]MH_Cut [13:04:00]Write to MH i2c: D1 01 00 63 4C 01 81 [13:04:00]Write i2c OK [13:04:00]MH_I2C_Read... [13:04:00]Read from MH i2c: D1 [13:04:00]MH_I2C_Read... [13:04:00]Read from MH i2c: D1 01 00 [13:04:00]MH_I2C_Read... [13:04:00]Read from MH i2c: D1 01 00 63 4C 00 80 [13:04:00]Write to MH i2c: 01 00 00 64 4C B0 [13:04:00]Write i2c OK [13:04:00]MH_I2C_Read... [13:04:00]OFD Sender: No OFD packet to send [13:04:00]*** Cut start [13:04:00]*** Partial cut [13:04:00]*** CUTSNS_PIN = 1 [13:04:01]*** CUTSNS_PIN = 0 [13:04:01]*** Brake cut motor [13:04:01]Read from MH i2c: 01 [13:04:01]MH_I2C_Read... [13:04:01]*** Stop cut motor [13:04:01]*** Cut end [13:04:01]Read from MH i2c: 01 07 00 [13:04:01]MH_I2C_Read... [13:04:01]Read from MH i2c: 01 07 00 64 4C 00 00 00 00 00 FF 0F C5 [13:04:01]process_action close_receipt done [13:04:01]requested_data is exist [13:04:01]produce_requested_data [13:04:01]requested_item fm.sn is exist - process it [13:04:01]wFMCommunicate request_size=4 [13:04:01]MH_SAM_APDU [13:04:01]CAPDU: 80 11 00 00 [13:04:01]Write to MH i2c: E2 08 00 65 4C 80 11 00 00 00 00 00 00 2B [13:04:01]Write i2c OK [13:04:01]MH_I2C_Read... [13:04:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:01]Read from MH i2c: E2 [13:04:01]MH_I2C_Read... [13:04:01]Read from MH i2c: E2 17 00 [13:04:01]MH_I2C_Read... [13:04:01]Read from MH i2c: E2 17 00 65 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 7B [13:04:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [13:04:01]wFMCommunicate OK [13:04:01]requested_item fd.num is exist - process it [13:04:01]SAM_PROTO_GetFieldsCounters [13:04:01]wFMCommunicate request_size=4 [13:04:01]MH_SAM_APDU [13:04:01]CAPDU: 80 13 00 00 [13:04:01]Write to MH i2c: E2 08 00 66 4C 80 13 00 00 00 00 00 00 2E [13:04:01]Write i2c OK [13:04:01]MH_I2C_Read... [13:04:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:04:01]Read from MH i2c: E2 [13:04:01]MH_I2C_Read... [13:04:01]Read from MH i2c: E2 62 00 [13:04:01]MH_I2C_Read... [13:04:01]Read from MH i2c: E2 62 00 66 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 05 08 00 00 0E 04 04 00 0D 00 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 AA [13:04:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 05 08 00 00 0E 04 04 00 0D 00 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 [13:04:01]wFMCommunicate OK [13:04:01]SAM_PROTO_GetFieldsCounters done [13:04:01]requested_item shift.num is exist - process it [13:04:01]requested_item shift.opened is exist - process it [13:04:01]req_shift_opened [13:04:01]FM_GetShiftState [13:04:01]SAM_PROTO_GetShiftState [13:04:01]wFMCommunicate request_size=4 [13:04:01]MH_SAM_APDU [13:04:01]CAPDU: 80 13 01 00 [13:04:01]Write to MH i2c: E2 08 00 67 4C 80 13 01 00 00 00 00 00 30 [13:04:01]Write i2c OK [13:04:01]MH_I2C_Read... [13:04:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:01]Read from MH i2c: E2 [13:04:01]MH_I2C_Read... [13:04:01]Read from MH i2c: E2 0E 00 [13:04:01]MH_I2C_Read... [13:04:01]Read from MH i2c: E2 0E 00 67 4C 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 24 [13:04:01]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [13:04:01]wFMCommunicate OK [13:04:01]SAM_PROTO_GetShiftState done [13:04:01]FM_GetShiftState done [13:04:01]req_shift_opened done [13:04:01]requested_item shift.open_date is exist - process it [13:04:01]req_shift_open_date [13:04:01]req_shift_open_date done [13:04:01]produce_requested_data done [13:04:01]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2053,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [13:04:01]process_action_free close_receipt [13:04:01]json_value_free [13:04:01]json_value_free done [13:04:01]process_json_proto returns [13:04:01]Send response to host [13:04:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2053,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [13:04:01]free response buf [13:04:01]execute_script done [13:04:01]execute_script returns [13:04:01]free content buf [13:04:01]Sock 10.Close socket [13:04:01]Sock 10.Thread stoped [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:46]accept exits with 8 [13:04:46]New connection [13:04:46]New thread 3067317604 created [13:04:46]Thread 3067460964 joined [13:04:46]Waiting for new connection... [13:04:46] Sock 8.Parse request [13:04:46]Sock 8.Check first char [13:04:46]Sock 8.First char is OK [13:04:46]request: POST /json_proto HTTP/1.0 [13:04:46]Method: POST [13:04:46]URL: /json_proto [13:04:46]Method is POST - this is cgi request [13:04:46]url: /json_proto [13:04:46]query_string will be loaded in cgi processing [13:04:46]execute_cgi json_proto POST (null) [13:04:46]execute_cgi path=json_proto method=POST [13:04:46]POST find Content-Length [13:04:46]Host: 172.17.45.132:8080 [13:04:46]Content-Length: 690 [13:04:46]Content-Type: application/json [13:04:46] [13:04:46]POST finish read [13:04:46]Found Content-Length = 690 [13:04:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126356", "tax_sys" : 0, "items" : [ { "code": "4630007400990", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D \u0412\u0435\u043B\u0438\u043A\u0430\u043D 100\u0433\u0440", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:04:46]execute_script... [13:04: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)126356", "tax_sys" : 0, "items" : [ { "code": "4630007400990", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D \u0412\u0435\u043B\u0438\u043A\u0430\u043D 100\u0433\u0440", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:04:46]POST & json_proto [13:04:46]process_json_proto [13:04:46]json parsed OK: [13:04:46]protocol is kg_v1.0 [13:04:46]action value=close_receipt [13:04:46]process_action close_receipt [13:04:46]cmd_close_receipt [13:04:46]MH_GetDate [13:04:46]Write to MH i2c: F0 00 00 68 4C A3 [13:04:46]Write i2c OK [13:04:46]MH_I2C_Read... [13:04:46]Read from MH i2c: F0 [13:04:46]MH_I2C_Read... [13:04:46]Read from MH i2c: F0 09 00 [13:04:46]MH_I2C_Read... [13:04:46]Read from MH i2c: F0 09 00 68 4C 00 F4 41 A6 66 E3 0B 90 66 D1 [13:04:46]GetLastDocTimeStamp 1722171843 [13:04:46]current date 1722171892 [13:04:46]FM_GetShiftState [13:04:46]SAM_PROTO_GetShiftState [13:04:46]wFMCommunicate request_size=4 [13:04:46]MH_SAM_APDU [13:04:46]CAPDU: 80 13 01 00 [13:04:46]Write to MH i2c: E2 08 00 69 4C 80 13 01 00 00 00 00 00 32 [13:04:46]Write i2c OK [13:04:46]MH_I2C_Read... [13:04:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:46]Read from MH i2c: E2 [13:04:46]MH_I2C_Read... [13:04:46]Read from MH i2c: E2 0E 00 [13:04:46]MH_I2C_Read... [13:04:46]Read from MH i2c: E2 0E 00 69 4C 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 26 [13:04:46]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [13:04:46]wFMCommunicate OK [13:04:46]SAM_PROTO_GetShiftState done [13:04:46]FM_GetShiftState done [13:04:46]opened in 1722125648 [13:04:46]opened+sec_in_day 1722212048 [13:04:46]quantity*price = 12000 [13:04:46]sum+1 = 12001 [13:04:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 120.00 НСП 1% : 1.06 НДС 12% : 12.74 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 105 28.07.2024 13:04 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2054 ФПД: 587360898914 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T130452&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2054&fm=587360898914&tin=02508201610067®Number=0000000000189667&sum=12000 0 [13:04:47]StoreToDocumentArchive [13:04:47]shift 13 fd 2054 [13:04:47]save to /storage/0013/doc_00002054 [13:04:47]save last doc name /storage/0013/doc_00002054 to /storage/kkm_last_doc_name [13:04:47]save OK [13:04:47]Clear old archive folders... [13:04:47]ProcessDocumentItem done err = 0, tmpTLVsize=290 [13:04:47]tlvbuf is 02010960 [13:04:47]SAM_PROTO_ClearQueue [13:04:47]wFMCommunicate request_size=4 [13:04:47]MH_SAM_APDU [13:04:47]CAPDU: 80 09 00 00 [13:04:47]Write to MH i2c: E2 08 00 76 4C 80 09 00 00 00 00 00 00 34 [13:04:47]Write i2c OK [13:04:47]MH_I2C_Read... [13:04:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:04:47]Read from MH i2c: E2 [13:04:47]MH_I2C_Read... [13:04:47]Read from MH i2c: E2 03 00 [13:04:47]MH_I2C_Read... [13:04:47]Read from MH i2c: E2 03 00 76 4C 00 90 00 36 [13:04:47]RAPDU: 90 00 [13:04:47]wFMCommunicate OK [13:04:47]SAM_PROTO_ClearQueue done [13:04:47]KKMCreateOFDPacket [13:04:47]OFDProtocolAddRootSTLVToBuf [13:04:47]FM_MakeSignedData [13:04:47]FM_MakeSignedData [13:04:47]SAM_PROTO_SignData [13:04:47]wFMCommunicate request_size=4 [13:04:47]MH_SAM_APDU [13:04:47]CAPDU: 80 0D 01 02 [13:04:47]Write to MH i2c: E2 08 00 77 4C 80 0D 01 02 00 00 00 00 3C [13:04:47]Write i2c OK [13:04:47]MH_I2C_Read... [13:04:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:04:48]Read from MH i2c: E2 [13:04:48]MH_I2C_Read... [13:04:48]Read from MH i2c: E2 03 00 [13:04:48]MH_I2C_Read... [13:04:48]Read from MH i2c: E2 03 00 77 4C 00 90 00 37 [13:04:48]RAPDU: 90 00 [13:04:48]wFMCommunicate OK [13:04:48]wFMCommunicate request_size=255 [13:04:48]MH_SAM_APDU [13:04:48]CAPDU: 80 0D 02 02 FA 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 39 30 06 04 30 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 F4 41 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 [13:04:48]Write to MH i2c: E2 02 01 78 4C 80 0D 02 02 FA 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 39 30 06 04 30 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 F4 41 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 28 [13:04:48]Write i2c OK [13:04:48]MH_I2C_Read... [13:04:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:04:48]Read from MH i2c: E2 [13:04:48]MH_I2C_Read... [13:04:48]Read from MH i2c: E2 03 00 [13:04:48]MH_I2C_Read... [13:04:48]Read from MH i2c: E2 03 00 78 4C 00 90 00 38 [13:04:48]RAPDU: 90 00 [13:04:48]wFMCommunicate OK [13:04:48]wFMCommunicate request_size=49 [13:04:48]MH_SAM_APDU [13:04:48]CAPDU: 80 0D 02 02 2C 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 06 08 00 00 35 04 06 00 00 88 C1 70 0F 62 [13:04:48]Write to MH i2c: E2 34 00 79 4C 80 0D 02 02 2C 00 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 06 08 00 00 35 04 06 00 00 88 C1 70 0F 62 00 00 AD [13:04:48]Write i2c OK [13:04:48]MH_I2C_Read... [13:04:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:04:48]Read from MH i2c: E2 [13:04:48]MH_I2C_Read... [13:04:48]Read from MH i2c: E2 03 00 [13:04:48]MH_I2C_Read... [13:04:48]Read from MH i2c: E2 03 00 79 4C 00 90 00 39 [13:04:48]RAPDU: 90 00 [13:04:48]wFMCommunicate OK [13:04:48]wFMCommunicate request_size=4 [13:04:48]MH_SAM_APDU [13:04:48]CAPDU: 80 0D 03 02 [13:04:48]Write to MH i2c: E2 08 00 7A 4C 80 0D 03 02 00 00 00 00 41 [13:04:48]Write i2c OK [13:04:48]MH_I2C_Read... [13:04:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:04:48]Read from MH i2c: E2 [13:04:48]MH_I2C_Read... [13:04:48]Read from MH i2c: E2 0B 00 [13:04:48]MH_I2C_Read... [13:04:48]Read from MH i2c: E2 0B 00 7A 4C 00 B1 3E B7 78 B8 6C D9 82 90 00 DF [13:04:48]RAPDU: B1 3E B7 78 B8 6C D9 82 90 00 [13:04:48]wFMCommunicate OK [13:04:48]SAM_PROTO_SignData done [13:04:48]FM_MakeSignedData done [13:04:48]CreateOFDProtocolMessage [13:04:48]wFMCommunicate request_size=4 [13:04:48]MH_SAM_APDU [13:04:48]CAPDU: 80 11 00 00 [13:04:48]Write to MH i2c: E2 08 00 7B 4C 80 11 00 00 00 00 00 00 41 [13:04:48]Write i2c OK [13:04:48]MH_I2C_Read... [13:04:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:48]Read from MH i2c: E2 [13:04:48]MH_I2C_Read... [13:04:48]Read from MH i2c: E2 17 00 [13:04:48]MH_I2C_Read... [13:04:48]Read from MH i2c: E2 17 00 7B 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 91 [13:04:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [13:04:48]wFMCommunicate OK [13:04:48]CreateOFDProtocolMessage done [13:04:48]OFDSenderStorePacket 2054 [13:04:48]StoreOFDPacket docnum=2054 [13:04:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 36 01 00 00 CC E6 2E 01 3D 6C 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 39 30 06 04 30 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 F4 41 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 06 08 00 00 35 04 06 00 00 88 C1 70 0F 62 B1 3E B7 78 B8 6C D9 82 [13:04:48]CheckFolder [13:04:48]dirname=/storage/ofd_packets [13:04:48]CheckFolder done [13:04:48]ProducePacketName [13:04:48]name=ofd_packets/00002054 [13:04:48]NVStorageSaveData ofd_packets/00002054 [13:04:48]File name is /storage/ofd_packets/00002054 [13:04:48]Write 340 bytes [13:04:48]NVStorageSaveData done [13:04:48]OFDSenderStorePacket done [13:04:48]KKMCreateOFDPacket done [13:04:48]NVStorageSaveData kkm_last_timestamp [13:04:48]File name is /storage/kkm_last_timestamp [13:04:48]Write 4 bytes [13:04:48]NVStorageSaveData done [13:04:48]ExternCall_PrintAddStr [13:04:48]wPrintStart [13:04:48]Write to MH i2c: 01 00 00 7C 4C C8 [13:04:48]Write i2c OK [13:04:48]MH_I2C_Read... [13:04:48]Read from MH i2c: 01 [13:04:48]MH_I2C_Read... [13:04:48]Read from MH i2c: 01 07 00 [13:04:48]MH_I2C_Read... [13:04:48]Read from MH i2c: 01 07 00 7C 4C 00 00 00 00 00 FF 0F DD [13:04:48]RasterBufferAndPrint [13:04:48]line Счет N : (3)126356 [13:04:48]line ИНН: 02508201610067 [13:04:48]line Контрольно-Кассовый Чек [13:04:48]line ПРОДАЖА [13:04:48]line Товар: 4630007400990 [13:04:48]line Семечки ДЖИНН Великан 100гр [13:04:48]line 1.000 * 120.00 [13:04:48]line = 120.00 [13:04:48]line НДС 12% НСП 1% [13:04:48]line > о реализуемом товаре [13:04:48]line ИТОГО: 120.00 [13:04:48]line НСП 1% : 1.06 [13:04:48]line НДС 12% : 12.74 [13:04:48]line Наличными: 120.00 [13:04:48]line Безнал.: 0.00 [13:04:48]line Место: АЗС № 127 "Партнер Нефть" [13:04:48]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [13:04:48]line СНО: Общий режим [13:04:48]line Чек 105 28.07.2024 13:04 [13:04:48]line Смена: 13 ФФД: 1.0 [13:04:48]line ЗНМ: 0300000161 [13:04:48]line РНМ: 0000000000189667 [13:04:48]line Версия ККМ: v1.0 [13:04:48]line ФМ: 0000000002094248 [13:04:48]line ФД: 2054 [13:04:48]line ФПД: 587360898914 [13:04:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T130452&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2054&fm=587360898914&tin=02508201610067®Number=0000000000189667&sum=12000 [13:04:48]line 0 [13:04:48]OFD Sender: Processing packet 2054 [packets to send 1, broken 0] [13:04:48]ProducePacketName [13:04:48]name=ofd_packets/00002054 [13:04:48]OFD Sender: To server: pG, [13:04:48]CommunicateWithHost lk.salyk.kg:30040 [13:04:48]ConnectInit lk.salyk.kg [13:04:48]written 0, free lines is 4095 [13:04:48]Connected sock=10 [13:04:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 36 01 00 00 CC E6 2E 01 3D 6C 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 39 30 06 04 30 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 F4 41 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 06 08 00 00 35 04 06 00 00 88 C1 70 0F 62 B1 3E B7 78 B8 6C D9 82 [13:04:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 9A FD 47 00 C9 D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 06 08 00 00 F4 03 04 00 64 ED A5 66 B6 04 01 00 00 8E A2 EA 67 FF AA 40 21 [13:04:49]CommunicateWithHost err = 0 [13:04:49]CheckOFDResponse [13:04:49]1017 (14) - 77093643461234 [13:04:49]1041 (16) - 0000000002094248 [13:04:49]1040 (4) - 2054 [13:04:49]1012 (4) - 28.07.2024 07:04 [13:04:49]1206 (1) - 0 [13:04:49]OFD Sender: Remove packet 2054 [13:04:49]ProducePacketName [13:04:49]name=ofd_packets/00002054 [13:04:49]NVStorageDeleteData [13:04:49]Write to MH i2c: 01 00 00 A5 4C F1 [13:04:49]Write i2c OK [13:04:49]MH_I2C_Read... [13:04:49]Read from MH i2c: 01 [13:04:49]MH_I2C_Read... [13:04:49]Read from MH i2c: 01 07 00 [13:04:49]MH_I2C_Read... [13:04:49]Read from MH i2c: 01 07 00 A5 4C 00 00 00 00 00 06 0D 0B [13:04:49]RasterBufferAndPrint [13:04:49]line [13:04:49]line [13:04:49]line [13:04:49]line [13:04:49]line [13:04:49]written 0, free lines is 3343 [13:04:49]MH_Cut [13:04:49]Write to MH i2c: D1 01 00 AC 4C 01 CA [13:04:49]Write i2c OK [13:04:49]MH_I2C_Read... [13:04:49]Read from MH i2c: D1 [13:04:49]MH_I2C_Read... [13:04:49]Read from MH i2c: D1 01 00 [13:04:49]MH_I2C_Read... [13:04:49]Read from MH i2c: D1 01 00 AC 4C 00 C9 [13:04:49]Write to MH i2c: 01 00 00 AD 4C F9 [13:04:49]Write i2c OK [13:04:49]MH_I2C_Read... [13:04:49]OFD Sender: No OFD packet to send [13:04:49]*** Cut start [13:04:49]*** Partial cut [13:04:49]*** CUTSNS_PIN = 1 [13:04:49]*** CUTSNS_PIN = 0 [13:04:50]*** Brake cut motor [13:04:50]Read from MH i2c: 01 [13:04:50]MH_I2C_Read... [13:04:50]*** Stop cut motor [13:04:50]*** Cut end [13:04:50]Read from MH i2c: 01 07 00 [13:04:50]MH_I2C_Read... [13:04:50]Read from MH i2c: 01 07 00 AD 4C 00 00 00 00 00 FF 0F 0E [13:04:50]process_action close_receipt done [13:04:50]requested_data is exist [13:04:50]produce_requested_data [13:04:50]requested_item fm.sn is exist - process it [13:04:50]wFMCommunicate request_size=4 [13:04:50]MH_SAM_APDU [13:04:50]CAPDU: 80 11 00 00 [13:04:50]Write to MH i2c: E2 08 00 AE 4C 80 11 00 00 00 00 00 00 74 [13:04:50]Write i2c OK [13:04:50]MH_I2C_Read... [13:04:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:50]Read from MH i2c: E2 [13:04:50]MH_I2C_Read... [13:04:50]Read from MH i2c: E2 17 00 [13:04:50]MH_I2C_Read... [13:04:50]Read from MH i2c: E2 17 00 AE 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 C4 [13:04:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [13:04:50]wFMCommunicate OK [13:04:50]requested_item fd.num is exist - process it [13:04:50]SAM_PROTO_GetFieldsCounters [13:04:50]wFMCommunicate request_size=4 [13:04:50]MH_SAM_APDU [13:04:50]CAPDU: 80 13 00 00 [13:04:50]Write to MH i2c: E2 08 00 AF 4C 80 13 00 00 00 00 00 00 77 [13:04:50]Write i2c OK [13:04:50]MH_I2C_Read... [13:04:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:04:50]Read from MH i2c: E2 [13:04:50]MH_I2C_Read... [13:04:50]Read from MH i2c: E2 62 00 [13:04:50]MH_I2C_Read... [13:04:50]Read from MH i2c: E2 62 00 AF 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 06 08 00 00 0E 04 04 00 0D 00 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 F7 [13:04:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 06 08 00 00 0E 04 04 00 0D 00 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 [13:04:50]wFMCommunicate OK [13:04:50]SAM_PROTO_GetFieldsCounters done [13:04:50]requested_item shift.num is exist - process it [13:04:50]requested_item shift.opened is exist - process it [13:04:50]req_shift_opened [13:04:50]FM_GetShiftState [13:04:50]SAM_PROTO_GetShiftState [13:04:50]wFMCommunicate request_size=4 [13:04:50]MH_SAM_APDU [13:04:50]CAPDU: 80 13 01 00 [13:04:50]Write to MH i2c: E2 08 00 B0 4C 80 13 01 00 00 00 00 00 79 [13:04:50]Write i2c OK [13:04:50]MH_I2C_Read... [13:04:50]Read from MH i2c: E2 [13:04:50]MH_I2C_Read... [13:04:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:50]Read from MH i2c: E2 0E 00 [13:04:50]MH_I2C_Read... [13:04:50]Read from MH i2c: E2 0E 00 B0 4C 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 6D [13:04:50]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [13:04:50]wFMCommunicate OK [13:04:50]SAM_PROTO_GetShiftState done [13:04:50]FM_GetShiftState done [13:04:50]req_shift_opened done [13:04:50]requested_item shift.open_date is exist - process it [13:04:50]req_shift_open_date [13:04:50]req_shift_open_date done [13:04:50]produce_requested_data done [13:04:50]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2054,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [13:04:50]process_action_free close_receipt [13:04:50]json_value_free [13:04:50]json_value_free done [13:04:50]process_json_proto returns [13:04:50]Send response to host [13:04:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2054,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [13:04:50]free response buf [13:04:50]execute_script done [13:04:50]execute_script returns [13:04:50]free content buf [13:04:50]Sock 8.Close socket [13:04:50]Sock 8.Thread stoped [13:04:54]OFD Sender: No OFD packet to send [13:04:59]OFD Sender: No OFD packet to send [13:05:04]OFD Sender: No OFD packet to send [13:05:09]OFD Sender: No OFD packet to send [13:05:14]OFD Sender: No OFD packet to send [13:05:19]OFD Sender: No OFD packet to send [13:05:24]OFD Sender: No OFD packet to send [13:05:29]OFD Sender: No OFD packet to send [13:05:34]OFD Sender: No OFD packet to send [13:05:39]OFD Sender: No OFD packet to send [13:05:44]OFD Sender: No OFD packet to send [13:05:49]OFD Sender: No OFD packet to send [13:05:54]OFD Sender: No OFD packet to send [13:05:59]OFD Sender: No OFD packet to send [13:06:04]OFD Sender: No OFD packet to send [13:06:09]OFD Sender: No OFD packet to send [13:06:14]OFD Sender: No OFD packet to send [13:06:19]OFD Sender: No OFD packet to send [13:06:24]OFD Sender: No OFD packet to send [13:06:27]accept exits with 9 [13:06:27]New connection [13:06:27]New thread 3067460964 created [13:06:27]Thread 3067317604 joined [13:06:27]Waiting for new connection... [13:06:27] Sock 9.Parse request [13:06:27]Sock 9.Check first char [13:06:27]Sock 9.First char is OK [13:06:27]request: POST /json_proto HTTP/1.0 [13:06:27]Method: POST [13:06:27]URL: /json_proto [13:06:27]Method is POST - this is cgi request [13:06:27]url: /json_proto [13:06:27]query_string will be loaded in cgi processing [13:06:27]execute_cgi json_proto POST (null) [13:06:27]execute_cgi path=json_proto method=POST [13:06:27]POST find Content-Length [13:06:27]Host: 172.17.45.132:8080 [13:06:27]Content-Length: 980 [13:06:27]Content-Type: application/json [13:06:27] [13:06:27]POST finish read [13:06:27]Found Content-Length = 980 [13:06:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126357", "tax_sys" : 0, "items" : [ { "code": "4870235681383", "name": "\u0427\u0418\u041F\u0421\u042B SLANG \u0421\u041E \u0412\u041A\u0423\u0421\u041E\u041C \u0421\u041C\u0415\u0422\u0410\u041D\u0410/\u0417\u0415\u041B\u0415\u041D\u042C 60\u0413", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:06:27]execute_script... [13:06:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126357", "tax_sys" : 0, "items" : [ { "code": "4870235681383", "name": "\u0427\u0418\u041F\u0421\u042B SLANG \u0421\u041E \u0412\u041A\u0423\u0421\u041E\u041C \u0421\u041C\u0415\u0422\u0410\u041D\u0410/\u0417\u0415\u041B\u0415\u041D\u042C 60\u0413", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:06:27]POST & json_proto [13:06:27]process_json_proto [13:06:27]json parsed OK: [13:06:27]protocol is kg_v1.0 [13:06:27]action value=close_receipt [13:06:27]process_action close_receipt [13:06:27]cmd_close_receipt [13:06:27]MH_GetDate [13:06:27]Write to MH i2c: F0 00 00 B1 4C EC [13:06:27]Write i2c OK [13:06:27]MH_I2C_Read... [13:06:27]Read from MH i2c: F0 [13:06:27]MH_I2C_Read... [13:06:27]Read from MH i2c: F0 09 00 [13:06:27]MH_I2C_Read... [13:06:27]Read from MH i2c: F0 09 00 B1 4C 00 59 42 A6 66 E3 0B 90 66 80 [13:06:27]GetLastDocTimeStamp 1722171892 [13:06:27]current date 1722171993 [13:06:27]FM_GetShiftState [13:06:27]SAM_PROTO_GetShiftState [13:06:27]wFMCommunicate request_size=4 [13:06:27]MH_SAM_APDU [13:06:27]CAPDU: 80 13 01 00 [13:06:27]Write to MH i2c: E2 08 00 B2 4C 80 13 01 00 00 00 00 00 7B [13:06:27]Write i2c OK [13:06:27]MH_I2C_Read... [13:06:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:06:28]Read from MH i2c: E2 [13:06:28]MH_I2C_Read... [13:06:28]Read from MH i2c: E2 0E 00 [13:06:28]MH_I2C_Read... [13:06:28]Read from MH i2c: E2 0E 00 B2 4C 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 6F [13:06:28]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [13:06:28]wFMCommunicate OK [13:06:28]SAM_PROTO_GetShiftState done [13:06:28]FM_GetShiftState done [13:06:28]opened in 1722125648 [13:06:28]opened+sec_in_day 1722212048 [13:06:28]quantity*price = 9500 [13:06:28]sum+1 = 9501 [13:06:28]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160211 Вода Легенда 0,5л 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 135.00 НСП 1% : 1.19 НДС 12% : 14.34 Наличными: 135.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 106 28.07.2024 13:06 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2055 ФПД: 46978133781505 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T130633&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2055&fm=46978133781505&tin=02508201610067®Number=0000000000189667&sum=13500 0 [13:06:29]StoreToDocumentArchive [13:06:29]shift 13 fd 2055 [13:06:29]save to /storage/0013/doc_00002055 [13:06:29]save last doc name /storage/0013/doc_00002055 to /storage/kkm_last_doc_name [13:06:29]save OK [13:06:29]Clear old archive folders... [13:06:29]ProcessDocumentItem done err = 0, tmpTLVsize=410 [13:06:29]tlvbuf is 020AA820 [13:06:29]SAM_PROTO_ClearQueue [13:06:29]wFMCommunicate request_size=4 [13:06:29]MH_SAM_APDU [13:06:29]CAPDU: 80 09 00 00 [13:06:29]Write to MH i2c: E2 08 00 BF 4C 80 09 00 00 00 00 00 00 7D [13:06:29]Write i2c OK [13:06:29]MH_I2C_Read... [13:06:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:06:29]Read from MH i2c: E2 [13:06:29]MH_I2C_Read... [13:06:29]Read from MH i2c: E2 03 00 [13:06:29]MH_I2C_Read... [13:06:29]Read from MH i2c: E2 03 00 BF 4C 00 90 00 7F [13:06:29]RAPDU: 90 00 [13:06:29]wFMCommunicate OK [13:06:29]SAM_PROTO_ClearQueue done [13:06:29]KKMCreateOFDPacket [13:06:29]OFDProtocolAddRootSTLVToBuf [13:06:29]FM_MakeSignedData [13:06:29]FM_MakeSignedData [13:06:29]SAM_PROTO_SignData [13:06:29]wFMCommunicate request_size=4 [13:06:29]MH_SAM_APDU [13:06:29]CAPDU: 80 0D 01 02 [13:06:29]Write to MH i2c: E2 08 00 C0 4C 80 0D 01 02 00 00 00 00 85 [13:06:29]Write i2c OK [13:06:29]MH_I2C_Read... [13:06:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:06:29]Read from MH i2c: E2 [13:06:29]MH_I2C_Read... [13:06:29]Read from MH i2c: E2 03 00 [13:06:29]MH_I2C_Read... [13:06:29]Read from MH i2c: E2 03 00 C0 4C 00 90 00 80 [13:06:29]RAPDU: 90 00 [13:06:29]wFMCommunicate OK [13:06:29]wFMCommunicate request_size=255 [13:06:29]MH_SAM_APDU [13:06:29]CAPDU: 80 0D 02 02 FA 03 00 9A 01 1E 04 01 00 01 23 04 87 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 38 33 06 04 43 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 A1 D0 9C D0 95 D0 A2 D0 90 D0 9D D0 90 2F D0 97 D0 95 D0 9B D0 95 D0 9D D0 AC 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC [13:06:29]Write to MH i2c: E2 02 01 C1 4C 80 0D 02 02 FA 00 03 00 9A 01 1E 04 01 00 01 23 04 87 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 38 33 06 04 43 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 A1 D0 9C D0 95 D0 A2 D0 90 D0 9D D0 90 2F D0 97 D0 95 D0 9B D0 95 D0 9D D0 AC 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 00 00 2D [13:06:29]Write i2c OK [13:06:29]MH_I2C_Read... [13:06:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:06:29]Read from MH i2c: E2 [13:06:29]MH_I2C_Read... [13:06:29]Read from MH i2c: E2 03 00 [13:06:29]MH_I2C_Read... [13:06:29]Read from MH i2c: E2 03 00 C1 4C 00 90 00 81 [13:06:29]RAPDU: 90 00 [13:06:29]wFMCommunicate OK [13:06:29]wFMCommunicate request_size=169 [13:06:29]MH_SAM_APDU [13:06:29]CAPDU: 80 0D 02 02 A4 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 6A 00 00 00 F4 03 04 00 59 42 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 07 08 00 00 35 04 06 00 2A B9 F2 F9 EC 01 [13:06:29]Write to MH i2c: E2 AC 00 C2 4C 80 0D 02 02 A4 00 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 6A 00 00 00 F4 03 04 00 59 42 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 07 08 00 00 35 04 06 00 2A B9 F2 F9 EC 01 00 00 FD [13:06:29]Write i2c OK [13:06:29]MH_I2C_Read... [13:06:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:06:29]Read from MH i2c: E2 [13:06:29]MH_I2C_Read... [13:06:29]Read from MH i2c: E2 03 00 [13:06:29]MH_I2C_Read... [13:06:29]Read from MH i2c: E2 03 00 C2 4C 00 90 00 82 [13:06:29]RAPDU: 90 00 [13:06:29]wFMCommunicate OK [13:06:29]wFMCommunicate request_size=4 [13:06:29]MH_SAM_APDU [13:06:29]CAPDU: 80 0D 03 02 [13:06:29]Write to MH i2c: E2 08 00 C3 4C 80 0D 03 02 00 00 00 00 8A [13:06:29]Write i2c OK [13:06:29]MH_I2C_Read... [13:06:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:06:29]Read from MH i2c: E2 [13:06:29]MH_I2C_Read... [13:06:29]Read from MH i2c: E2 0B 00 [13:06:29]MH_I2C_Read... [13:06:29]Read from MH i2c: E2 0B 00 C3 4C 00 72 6D 30 1A 0E DC 15 12 90 00 C5 [13:06:29]RAPDU: 72 6D 30 1A 0E DC 15 12 90 00 [13:06:29]wFMCommunicate OK [13:06:29]SAM_PROTO_SignData done [13:06:29]FM_MakeSignedData done [13:06:29]CreateOFDProtocolMessage [13:06:29]wFMCommunicate request_size=4 [13:06:29]MH_SAM_APDU [13:06:29]CAPDU: 80 11 00 00 [13:06:29]Write to MH i2c: E2 08 00 C4 4C 80 11 00 00 00 00 00 00 8A [13:06:29]Write i2c OK [13:06:29]MH_I2C_Read... [13:06:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:29]Read from MH i2c: E2 [13:06:29]MH_I2C_Read... [13:06:29]Read from MH i2c: E2 17 00 [13:06:29]MH_I2C_Read... [13:06:29]Read from MH i2c: E2 17 00 C4 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 DA [13:06:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [13:06:29]wFMCommunicate OK [13:06:29]CreateOFDProtocolMessage done [13:06:29]OFDSenderStorePacket 2055 [13:06:29]StoreOFDPacket docnum=2055 [13:06:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 AE 01 00 00 BA F2 A6 01 D0 9B 5A 03 01 00 03 00 9A 01 1E 04 01 00 01 23 04 87 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 38 33 06 04 43 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 A1 D0 9C D0 95 D0 A2 D0 90 D0 9D D0 90 2F D0 97 D0 95 D0 9B D0 95 D0 9D D0 AC 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 6A 00 00 00 F4 03 04 00 59 42 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 07 08 00 00 35 04 06 00 2A B9 F2 F9 EC 01 72 6D 30 1A 0E DC 15 12 [13:06:29]CheckFolder [13:06:29]dirname=/storage/ofd_packets [13:06:29]CheckFolder done [13:06:29]ProducePacketName [13:06:29]name=ofd_packets/00002055 [13:06:29]NVStorageSaveData ofd_packets/00002055 [13:06:29]File name is /storage/ofd_packets/00002055 [13:06:29]Write 460 bytes [13:06:29]NVStorageSaveData done [13:06:29]OFDSenderStorePacket done [13:06:29]KKMCreateOFDPacket done [13:06:29]NVStorageSaveData kkm_last_timestamp [13:06:29]File name is /storage/kkm_last_timestamp [13:06:29]Write 4 bytes [13:06:29]NVStorageSaveData done [13:06:29]ExternCall_PrintAddStr [13:06:29]wPrintStart [13:06:29]Write to MH i2c: 01 00 00 C5 4C 11 [13:06:29]OFD Sender: No OFD packet to send [13:06:29]Write i2c OK [13:06:29]MH_I2C_Read... [13:06:29]Read from MH i2c: 01 [13:06:29]MH_I2C_Read... [13:06:29]Read from MH i2c: 01 07 00 [13:06:29]MH_I2C_Read... [13:06:29]Read from MH i2c: 01 07 00 C5 4C 00 00 00 00 00 FF 0F 26 [13:06:29]RasterBufferAndPrint [13:06:30]line Счет N : (3)126357 [13:06:30]line ИНН: 02508201610067 [13:06:30]line Контрольно-Кассовый Чек [13:06:30]line ПРОДАЖА [13:06:30]line Товар: 4870235681383 [13:06:30]line ЧИПСЫ SLANG СО ВКУСОМ СМЕТАНА/ЗЕЛЕНЬ 60Г [13:06:30]line 1.000 * 95.00 [13:06:30]line = 95.00 [13:06:30]line НДС 12% НСП 1% [13:06:30]line > о реализуемом товаре [13:06:30]line Товар: 4700000160211 [13:06:30]line Вода Легенда 0,5л [13:06:30]line 1.000 * 40.00 [13:06:30]line = 40.00 [13:06:30]line НДС 12% НСП 1% [13:06:30]line > о реализуемом товаре [13:06:30]line ИТОГО: 135.00 [13:06:30]line НСП 1% : 1.19 [13:06:30]line НДС 12% : 14.34 [13:06:30]line Наличными: 135.00 [13:06:30]line Безнал.: 0.00 [13:06:30]line Место: АЗС № 127 "Партнер Нефть" [13:06:30]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [13:06:30]line СНО: Общий режим [13:06:30]line Чек 106 28.07.2024 13:06 [13:06:30]line Смена: 13 ФФД: 1.0 [13:06:30]line ЗНМ: 0300000161 [13:06:30]line РНМ: 0000000000189667 [13:06:30]line Версия ККМ: v1.0 [13:06:30]line ФМ: 0000000002094248 [13:06:30]line ФД: 2055 [13:06:30]line ФПД: 46978133781505 [13:06:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T130633&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2055&fm=46978133781505&tin=02508201610067®Number=0000000000189667&sum=13500 [13:06:30]line 0 [13:06:30]OFD Sender: Processing packet 2055 [packets to send 1, broken 0] [13:06:30]ProducePacketName [13:06:30]name=ofd_packets/00002055 [13:06:30]OFD Sender: To server: pG, [13:06:30]CommunicateWithHost lk.salyk.kg:30040 [13:06:30]ConnectInit lk.salyk.kg [13:06:30]written 0, free lines is 4095 [13:06:30]Connected sock=10 [13:06:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 AE 01 00 00 BA F2 A6 01 D0 9B 5A 03 01 00 03 00 9A 01 1E 04 01 00 01 23 04 87 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 38 33 06 04 43 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 A1 D0 9C D0 95 D0 A2 D0 90 D0 9D D0 90 2F D0 97 D0 95 D0 9B D0 95 D0 9D D0 AC 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 6A 00 00 00 F4 03 04 00 59 42 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 07 08 00 00 35 04 06 00 2A B9 F2 F9 EC 01 72 6D 30 1A 0E DC 15 12 [13:06:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 27 34 47 00 FB 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 32 30 39 34 32 34 38 10 04 04 00 07 08 00 00 F4 03 04 00 C9 ED A5 66 B6 04 01 00 00 15 16 C8 4A 57 A9 2B E0 [13:06:30]CommunicateWithHost err = 0 [13:06:30]CheckOFDResponse [13:06:30]1017 (14) - 77093643461234 [13:06:30]1041 (16) - 0000000002094248 [13:06:30]1040 (4) - 2055 [13:06:30]1012 (4) - 28.07.2024 07:05 [13:06:30]1206 (1) - 0 [13:06:30]OFD Sender: Remove packet 2055 [13:06:30]ProducePacketName [13:06:30]name=ofd_packets/00002055 [13:06:30]NVStorageDeleteData [13:06:30]Write to MH i2c: 01 00 00 F4 4C 40 [13:06:30]Write i2c OK [13:06:30]MH_I2C_Read... [13:06:30]Read from MH i2c: 01 [13:06:30]MH_I2C_Read... [13:06:30]Read from MH i2c: 01 07 00 [13:06:30]MH_I2C_Read... [13:06:30]Read from MH i2c: 01 07 00 F4 4C 00 00 00 00 00 CD 0C 20 [13:06:30]RasterBufferAndPrint [13:06:30]line [13:06:30]line [13:06:30]line [13:06:30]line [13:06:30]line [13:06:30]written 0, free lines is 3286 [13:06:30]MH_Cut [13:06:30]Write to MH i2c: D1 01 00 FB 4C 01 19 [13:06:30]Write i2c OK [13:06:30]MH_I2C_Read... [13:06:30]Read from MH i2c: D1 [13:06:30]MH_I2C_Read... [13:06:30]Read from MH i2c: D1 01 00 [13:06:30]MH_I2C_Read... [13:06:30]Read from MH i2c: D1 01 00 FB 4C 00 18 [13:06:30]Write to MH i2c: 01 00 00 FC 4C 48 [13:06:30]Write i2c OK [13:06:30]MH_I2C_Read... [13:06:31]OFD Sender: No OFD packet to send [13:06:31]*** Cut start [13:06:31]*** Partial cut [13:06:31]*** CUTSNS_PIN = 1 [13:06:31]*** CUTSNS_PIN = 0 [13:06:31]*** Brake cut motor [13:06:32]Read from MH i2c: 01 [13:06:32]MH_I2C_Read... [13:06:32]*** Stop cut motor [13:06:32]*** Cut end [13:06:32]Read from MH i2c: 01 07 00 [13:06:32]MH_I2C_Read... [13:06:32]Read from MH i2c: 01 07 00 FC 4C 00 00 00 00 00 FF 0F 5D [13:06:32]process_action close_receipt done [13:06:32]requested_data is exist [13:06:32]produce_requested_data [13:06:32]requested_item fm.sn is exist - process it [13:06:32]wFMCommunicate request_size=4 [13:06:32]MH_SAM_APDU [13:06:32]CAPDU: 80 11 00 00 [13:06:32]Write to MH i2c: E2 08 00 FD 4C 80 11 00 00 00 00 00 00 C3 [13:06:32]Write i2c OK [13:06:32]MH_I2C_Read... [13:06:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:32]Read from MH i2c: E2 [13:06:32]MH_I2C_Read... [13:06:32]Read from MH i2c: E2 17 00 [13:06:32]MH_I2C_Read... [13:06:32]Read from MH i2c: E2 17 00 FD 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 13 [13:06:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [13:06:32]wFMCommunicate OK [13:06:32]requested_item fd.num is exist - process it [13:06:32]SAM_PROTO_GetFieldsCounters [13:06:32]wFMCommunicate request_size=4 [13:06:32]MH_SAM_APDU [13:06:32]CAPDU: 80 13 00 00 [13:06:32]Write to MH i2c: E2 08 00 FE 4C 80 13 00 00 00 00 00 00 C6 [13:06:32]Write i2c OK [13:06:32]MH_I2C_Read... [13:06:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:06:32]Read from MH i2c: E2 [13:06:32]MH_I2C_Read... [13:06:32]Read from MH i2c: E2 62 00 [13:06:32]MH_I2C_Read... [13:06:32]Read from MH i2c: E2 62 00 FE 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 07 08 00 00 0E 04 04 00 0D 00 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 4A [13:06:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 07 08 00 00 0E 04 04 00 0D 00 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 [13:06:32]wFMCommunicate OK [13:06:32]SAM_PROTO_GetFieldsCounters done [13:06:32]requested_item shift.num is exist - process it [13:06:32]requested_item shift.opened is exist - process it [13:06:32]req_shift_opened [13:06:32]FM_GetShiftState [13:06:32]SAM_PROTO_GetShiftState [13:06:32]wFMCommunicate request_size=4 [13:06:32]MH_SAM_APDU [13:06:32]CAPDU: 80 13 01 00 [13:06:32]Write to MH i2c: E2 08 00 FF 4C 80 13 01 00 00 00 00 00 C8 [13:06:32]Write i2c OK [13:06:32]MH_I2C_Read... [13:06:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:06:32]Read from MH i2c: E2 [13:06:32]MH_I2C_Read... [13:06:32]Read from MH i2c: E2 0E 00 [13:06:32]MH_I2C_Read... [13:06:32]Read from MH i2c: E2 0E 00 FF 4C 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 BC [13:06:32]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [13:06:32]wFMCommunicate OK [13:06:32]SAM_PROTO_GetShiftState done [13:06:32]FM_GetShiftState done [13:06:32]req_shift_opened done [13:06:32]requested_item shift.open_date is exist - process it [13:06:32]req_shift_open_date [13:06:32]req_shift_open_date done [13:06:32]produce_requested_data done [13:06:32]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2055,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [13:06:32]process_action_free close_receipt [13:06:32]json_value_free [13:06:32]json_value_free done [13:06:32]process_json_proto returns [13:06:32]Send response to host [13:06:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2055,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [13:06:32]free response buf [13:06:32]execute_script done [13:06:32]execute_script returns [13:06:32]free content buf [13:06:32]Sock 9.Close socket [13:06:32]Sock 9.Thread stoped [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:27]accept exits with 8 [13:09:27]New connection [13:09:27]New thread 3067317604 created [13:09:27]Thread 3067460964 joined [13:09:27]Waiting for new connection... [13:09:27] Sock 8.Parse request [13:09:27]Sock 8.Check first char [13:09:27]Sock 8.First char is OK [13:09:27]request: POST /json_proto HTTP/1.0 [13:09:27]Method: POST [13:09:27]URL: /json_proto [13:09:27]Method is POST - this is cgi request [13:09:27]url: /json_proto [13:09:27]query_string will be loaded in cgi processing [13:09:27]execute_cgi json_proto POST (null) [13:09:27]execute_cgi path=json_proto method=POST [13:09:27]POST find Content-Length [13:09:27]Host: 172.17.45.132:8080 [13:09:27]Content-Length: 868 [13:09:27]Content-Type: application/json [13:09:27] [13:09:27]POST finish read [13:09:27]Found Content-Length = 868 [13:09:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126358", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "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" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:09:27]execute_script... [13:09: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)126358", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "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" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:09:27]POST & json_proto [13:09:27]process_json_proto [13:09:27]json parsed OK: [13:09:27]protocol is kg_v1.0 [13:09:27]action value=close_receipt [13:09:27]process_action close_receipt [13:09:27]cmd_close_receipt [13:09:27]MH_GetDate [13:09:27]Write to MH i2c: F0 00 00 00 4D 3C [13:09:27]Write i2c OK [13:09:27]MH_I2C_Read... [13:09:27]Read from MH i2c: F0 [13:09:27]MH_I2C_Read... [13:09:27]Read from MH i2c: F0 09 00 [13:09:27]MH_I2C_Read... [13:09:27]Read from MH i2c: F0 09 00 00 4D 00 0D 43 A6 66 E3 0B 90 66 85 [13:09:27]GetLastDocTimeStamp 1722171993 [13:09:27]current date 1722172173 [13:09:27]FM_GetShiftState [13:09:27]SAM_PROTO_GetShiftState [13:09:27]wFMCommunicate request_size=4 [13:09:27]MH_SAM_APDU [13:09:27]CAPDU: 80 13 01 00 [13:09:27]Write to MH i2c: E2 08 00 01 4D 80 13 01 00 00 00 00 00 CB [13:09:27]Write i2c OK [13:09:27]MH_I2C_Read... [13:09:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:27]Read from MH i2c: E2 [13:09:27]MH_I2C_Read... [13:09:27]Read from MH i2c: E2 0E 00 [13:09:27]MH_I2C_Read... [13:09:27]Read from MH i2c: E2 0E 00 01 4D 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 BF [13:09:27]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [13:09:27]wFMCommunicate OK [13:09:27]SAM_PROTO_GetShiftState done [13:09:27]FM_GetShiftState done [13:09:27]opened in 1722125648 [13:09:27]opened+sec_in_day 1722212048 [13:09:27]quantity*price = 5000 [13:09:27]sum+1 = 5001 [13:09:27]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48743570 Сигареты Winston XStyle Blue 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 190.00 НСП 1% : 1.68 НДС 12% : 20.18 Наличными: 190.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 107 28.07.2024 13:09 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2056 ФПД: 136885377846781 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T130933&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2056&fm=136885377846781&tin=02508201610067®Number=0000000000189667&sum=19000 0 [13:09:29]StoreToDocumentArchive [13:09:29]shift 13 fd 2056 [13:09:29]save to /storage/0013/doc_00002056 [13:09:29]save last doc name /storage/0013/doc_00002056 to /storage/kkm_last_doc_name [13:09:29]save OK [13:09:29]Clear old archive folders... [13:09:29]ProcessDocumentItem done err = 0, tmpTLVsize=372 [13:09:29]tlvbuf is 020C3C60 [13:09:29]SAM_PROTO_ClearQueue [13:09:29]wFMCommunicate request_size=4 [13:09:29]MH_SAM_APDU [13:09:29]CAPDU: 80 09 00 00 [13:09:29]Write to MH i2c: E2 08 00 0E 4D 80 09 00 00 00 00 00 00 CD [13:09:29]Write i2c OK [13:09:29]MH_I2C_Read... [13:09:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:09:29]Read from MH i2c: E2 [13:09:29]MH_I2C_Read... [13:09:29]Read from MH i2c: E2 03 00 [13:09:29]MH_I2C_Read... [13:09:29]Read from MH i2c: E2 03 00 0E 4D 00 90 00 CF [13:09:29]RAPDU: 90 00 [13:09:29]wFMCommunicate OK [13:09:29]SAM_PROTO_ClearQueue done [13:09:29]KKMCreateOFDPacket [13:09:29]OFDProtocolAddRootSTLVToBuf [13:09:29]FM_MakeSignedData [13:09:29]FM_MakeSignedData [13:09:29]SAM_PROTO_SignData [13:09:29]wFMCommunicate request_size=4 [13:09:29]MH_SAM_APDU [13:09:29]CAPDU: 80 0D 01 02 [13:09:29]Write to MH i2c: E2 08 00 0F 4D 80 0D 01 02 00 00 00 00 D5 [13:09:29]Write i2c OK [13:09:29]MH_I2C_Read... [13:09:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:09:29]Read from MH i2c: E2 [13:09:29]MH_I2C_Read... [13:09:29]Read from MH i2c: E2 03 00 [13:09:29]MH_I2C_Read... [13:09:29]Read from MH i2c: E2 03 00 0F 4D 00 90 00 D0 [13:09:29]RAPDU: 90 00 [13:09:29]wFMCommunicate OK [13:09:29]wFMCommunicate request_size=255 [13:09:29]MH_SAM_APDU [13:09:29]CAPDU: 80 0D 02 02 FA 03 00 74 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 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 [13:09:29]Write to MH i2c: E2 02 01 10 4D 80 0D 02 02 FA 00 03 00 74 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 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 00 00 BB [13:09:29]Write i2c OK [13:09:29]MH_I2C_Read... [13:09:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:29]Read from MH i2c: E2 [13:09:29]MH_I2C_Read... [13:09:29]Read from MH i2c: E2 03 00 [13:09:29]MH_I2C_Read... [13:09:29]Read from MH i2c: E2 03 00 10 4D 00 90 00 D1 [13:09:29]RAPDU: 90 00 [13:09:29]wFMCommunicate OK [13:09:29]wFMCommunicate request_size=131 [13:09:29]MH_SAM_APDU [13:09:29]CAPDU: 80 0D 02 02 7E 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 6B 00 00 00 F4 03 04 00 0D 43 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 08 08 00 00 35 04 06 00 7C 7F 1C 52 4D FD [13:09:29]Write to MH i2c: E2 86 00 11 4D 80 0D 02 02 7E 00 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 6B 00 00 00 F4 03 04 00 0D 43 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 08 08 00 00 35 04 06 00 7C 7F 1C 52 4D FD 00 00 17 [13:09:29]Write i2c OK [13:09:29]MH_I2C_Read... [13:09:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:29]Read from MH i2c: E2 [13:09:29]MH_I2C_Read... [13:09:29]Read from MH i2c: E2 03 00 [13:09:29]MH_I2C_Read... [13:09:29]Read from MH i2c: E2 03 00 11 4D 00 90 00 D2 [13:09:29]RAPDU: 90 00 [13:09:29]wFMCommunicate OK [13:09:29]wFMCommunicate request_size=4 [13:09:29]MH_SAM_APDU [13:09:29]CAPDU: 80 0D 03 02 [13:09:29]Write to MH i2c: E2 08 00 12 4D 80 0D 03 02 00 00 00 00 DA [13:09:29]Write i2c OK [13:09:29]MH_I2C_Read... [13:09:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:09:29]Read from MH i2c: E2 [13:09:29]MH_I2C_Read... [13:09:29]Read from MH i2c: E2 0B 00 [13:09:29]MH_I2C_Read... [13:09:29]Read from MH i2c: E2 0B 00 12 4D 00 DD 10 72 3A 9E B5 54 A3 90 00 BE [13:09:29]RAPDU: DD 10 72 3A 9E B5 54 A3 90 00 [13:09:29]wFMCommunicate OK [13:09:29]SAM_PROTO_SignData done [13:09:29]FM_MakeSignedData done [13:09:29]CreateOFDProtocolMessage [13:09:29]wFMCommunicate request_size=4 [13:09:29]MH_SAM_APDU [13:09:29]CAPDU: 80 11 00 00 [13:09:29]Write to MH i2c: E2 08 00 13 4D 80 11 00 00 00 00 00 00 DA [13:09:29]Write i2c OK [13:09:29]MH_I2C_Read... [13:09:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:29]Read from MH i2c: E2 [13:09:29]MH_I2C_Read... [13:09:29]Read from MH i2c: E2 17 00 [13:09:29]MH_I2C_Read... [13:09:29]Read from MH i2c: E2 17 00 13 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 2A [13:09:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [13:09:29]wFMCommunicate OK [13:09:29]CreateOFDProtocolMessage done [13:09:29]OFDSenderStorePacket 2056 [13:09:29]StoreOFDPacket docnum=2056 [13:09:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 88 01 00 00 83 81 80 01 81 C5 5A 03 01 00 03 00 74 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 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 6B 00 00 00 F4 03 04 00 0D 43 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 08 08 00 00 35 04 06 00 7C 7F 1C 52 4D FD DD 10 72 3A 9E B5 54 A3 [13:09:29]CheckFolder [13:09:29]dirname=/storage/ofd_packets [13:09:29]CheckFolder done [13:09:29]ProducePacketName [13:09:29]name=ofd_packets/00002056 [13:09:29]NVStorageSaveData ofd_packets/00002056 [13:09:29]File name is /storage/ofd_packets/00002056 [13:09:29]Write 422 bytes [13:09:29]NVStorageSaveData done [13:09:29]OFDSenderStorePacket done [13:09:29]KKMCreateOFDPacket done [13:09:29]NVStorageSaveData kkm_last_timestamp [13:09:29]File name is /storage/kkm_last_timestamp [13:09:29]Write 4 bytes [13:09:29]NVStorageSaveData done [13:09:29]ExternCall_PrintAddStr [13:09:29]wPrintStart [13:09:29]Write to MH i2c: 01 00 00 14 4D 61 [13:09:29]Write i2c OK [13:09:29]MH_I2C_Read... [13:09:29]Read from MH i2c: 01 [13:09:29]MH_I2C_Read... [13:09:29]Read from MH i2c: 01 07 00 [13:09:29]MH_I2C_Read... [13:09:29]Read from MH i2c: 01 07 00 14 4D 00 00 00 00 00 FF 0F 76 [13:09:29]RasterBufferAndPrint [13:09:29]line Счет N : (3)126358 [13:09:29]line ИНН: 02508201610067 [13:09:30]line Контрольно-Кассовый Чек [13:09:30]line ПРОДАЖА [13:09:30]line Товар: 4700000160358 [13:09:30]line Вода Легенда 1л [13:09:30]line 1.000 * 50.00 [13:09:30]line = 50.00 [13:09:30]line НДС 12% НСП 1% [13:09:30]line > о реализуемом товаре [13:09:30]line Товар: 48743570 [13:09:30]line Сигареты Winston XStyle Blue [13:09:30]line 1.000 * 140.00 [13:09:30]line = 140.00 [13:09:30]line НДС 12% НСП 1% [13:09:30]line > о реализуемом товаре [13:09:30]line ИТОГО: 190.00 [13:09:30]line НСП 1% : 1.68 [13:09:30]line НДС 12% : 20.18 [13:09:30]line Наличными: 190.00 [13:09:30]line Безнал.: 0.00 [13:09:30]line Место: АЗС № 127 "Партнер Нефть" [13:09:30]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [13:09:30]line СНО: Общий режим [13:09:30]line Чек 107 28.07.2024 13:09 [13:09:30]line Смена: 13 ФФД: 1.0 [13:09:30]line ЗНМ: 0300000161 [13:09:30]line РНМ: 0000000000189667 [13:09:30]line Версия ККМ: v1.0 [13:09:30]line ФМ: 0000000002094248 [13:09:30]line ФД: 2056 [13:09:30]line ФПД: 136885377846781 [13:09:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T130933&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2056&fm=136885377846781&tin=02508201610067®Number=0000000000189667&sum=19000 [13:09:30]line 0 [13:09:30]OFD Sender: Processing packet 2056 [packets to send 1, broken 0] [13:09:30]ProducePacketName [13:09:30]name=ofd_packets/00002056 [13:09:30]OFD Sender: To server: pG, [13:09:30]CommunicateWithHost lk.salyk.kg:30040 [13:09:30]ConnectInit lk.salyk.kg [13:09:30]written 0, free lines is 4095 [13:09:30]Connected sock=10 [13:09:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 88 01 00 00 83 81 80 01 81 C5 5A 03 01 00 03 00 74 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 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 6B 00 00 00 F4 03 04 00 0D 43 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 08 08 00 00 35 04 06 00 7C 7F 1C 52 4D FD DD 10 72 3A 9E B5 54 A3 [13:09:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 BB A7 47 00 02 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 08 08 00 00 F4 03 04 00 7D EE A5 66 B6 04 01 00 00 CD FB 51 06 AC 11 52 C4 [13:09:30]CommunicateWithHost err = 0 [13:09:30]CheckOFDResponse [13:09:30]1017 (14) - 77093643461234 [13:09:30]1041 (16) - 0000000002094248 [13:09:30]1040 (4) - 2056 [13:09:30]1012 (4) - 28.07.2024 07:08 [13:09:30]1206 (1) - 0 [13:09:30]OFD Sender: Remove packet 2056 [13:09:30]ProducePacketName [13:09:30]name=ofd_packets/00002056 [13:09:30]NVStorageDeleteData [13:09:30]Write to MH i2c: 01 00 00 42 4D 8F [13:09:30]Write i2c OK [13:09:30]MH_I2C_Read... [13:09:30]Read from MH i2c: 01 [13:09:30]MH_I2C_Read... [13:09:30]Read from MH i2c: 01 07 00 [13:09:30]MH_I2C_Read... [13:09:30]Read from MH i2c: 01 07 00 42 4D 00 00 00 00 00 C6 0C 68 [13:09:30]RasterBufferAndPrint [13:09:30]line [13:09:30]line [13:09:30]line [13:09:30]line [13:09:30]line [13:09:30]written 0, free lines is 3279 [13:09:30]MH_Cut [13:09:30]Write to MH i2c: D1 01 00 49 4D 01 68 [13:09:30]Write i2c OK [13:09:30]MH_I2C_Read... [13:09:30]Read from MH i2c: D1 [13:09:30]MH_I2C_Read... [13:09:30]Read from MH i2c: D1 01 00 [13:09:30]MH_I2C_Read... [13:09:30]Read from MH i2c: D1 01 00 49 4D 00 67 [13:09:30]Write to MH i2c: 01 00 00 4A 4D 97 [13:09:30]Write i2c OK [13:09:30]MH_I2C_Read... [13:09:30]OFD Sender: No OFD packet to send [13:09:31]*** Cut start [13:09:31]*** Partial cut [13:09:31]*** CUTSNS_PIN = 1 [13:09:31]*** CUTSNS_PIN = 0 [13:09:31]*** Brake cut motor [13:09:31]Read from MH i2c: 01 [13:09:31]MH_I2C_Read... [13:09:31]*** Stop cut motor [13:09:31]*** Cut end [13:09:31]Read from MH i2c: 01 07 00 [13:09:31]MH_I2C_Read... [13:09:31]Read from MH i2c: 01 07 00 4A 4D 00 00 00 00 00 FF 0F AC [13:09:31]process_action close_receipt done [13:09:31]requested_data is exist [13:09:31]produce_requested_data [13:09:31]requested_item fm.sn is exist - process it [13:09:31]wFMCommunicate request_size=4 [13:09:31]MH_SAM_APDU [13:09:31]CAPDU: 80 11 00 00 [13:09:31]Write to MH i2c: E2 08 00 4B 4D 80 11 00 00 00 00 00 00 12 [13:09:31]Write i2c OK [13:09:31]MH_I2C_Read... [13:09:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:31]Read from MH i2c: E2 [13:09:31]MH_I2C_Read... [13:09:31]Read from MH i2c: E2 17 00 [13:09:31]MH_I2C_Read... [13:09:31]Read from MH i2c: E2 17 00 4B 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 62 [13:09:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [13:09:31]wFMCommunicate OK [13:09:31]requested_item fd.num is exist - process it [13:09:31]SAM_PROTO_GetFieldsCounters [13:09:31]wFMCommunicate request_size=4 [13:09:31]MH_SAM_APDU [13:09:31]CAPDU: 80 13 00 00 [13:09:31]Write to MH i2c: E2 08 00 4C 4D 80 13 00 00 00 00 00 00 15 [13:09:31]Write i2c OK [13:09:31]MH_I2C_Read... [13:09:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:09:32]Read from MH i2c: E2 [13:09:32]MH_I2C_Read... [13:09:32]Read from MH i2c: E2 62 00 [13:09:32]MH_I2C_Read... [13:09:32]Read from MH i2c: E2 62 00 4C 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 08 08 00 00 0E 04 04 00 0D 00 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 9D [13:09:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 08 08 00 00 0E 04 04 00 0D 00 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 [13:09:32]wFMCommunicate OK [13:09:32]SAM_PROTO_GetFieldsCounters done [13:09:32]requested_item shift.num is exist - process it [13:09:32]requested_item shift.opened is exist - process it [13:09:32]req_shift_opened [13:09:32]FM_GetShiftState [13:09:32]SAM_PROTO_GetShiftState [13:09:32]wFMCommunicate request_size=4 [13:09:32]MH_SAM_APDU [13:09:32]CAPDU: 80 13 01 00 [13:09:32]Write to MH i2c: E2 08 00 4D 4D 80 13 01 00 00 00 00 00 17 [13:09:32]Write i2c OK [13:09:32]MH_I2C_Read... [13:09:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:32]Read from MH i2c: E2 [13:09:32]MH_I2C_Read... [13:09:32]Read from MH i2c: E2 0E 00 [13:09:32]MH_I2C_Read... [13:09:32]Read from MH i2c: E2 0E 00 4D 4D 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 0B [13:09:32]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [13:09:32]wFMCommunicate OK [13:09:32]SAM_PROTO_GetShiftState done [13:09:32]FM_GetShiftState done [13:09:32]req_shift_opened done [13:09:32]requested_item shift.open_date is exist - process it [13:09:32]req_shift_open_date [13:09:32]req_shift_open_date done [13:09:32]produce_requested_data done [13:09:32]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2056,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [13:09:32]process_action_free close_receipt [13:09:32]json_value_free [13:09:32]json_value_free done [13:09:32]process_json_proto returns [13:09:32]Send response to host [13:09:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2056,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [13:09:32]free response buf [13:09:32]execute_script done [13:09:32]execute_script returns [13:09:32]free content buf [13:09:32]Sock 8.Close socket [13:09:32]Sock 8.Thread stoped [13:09:35]OFD Sender: No OFD packet to send [13:09:40]OFD Sender: No OFD packet to send [13:09:45]OFD Sender: No OFD packet to send [13:09:50]OFD Sender: No OFD packet to send [13:09:55]OFD Sender: No OFD packet to send [13:10:00]OFD Sender: No OFD packet to send [13:10:05]OFD Sender: No OFD packet to send [13:10:10]OFD Sender: No OFD packet to send [13:10:15]OFD Sender: No OFD packet to send [13:10:20]OFD Sender: No OFD packet to send [13:10:25]OFD Sender: No OFD packet to send [13:10:30]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:20]accept exits with 9 [13:17:20]New connection [13:17:20]New thread 3067460964 created [13:17:20]Thread 3067317604 joined [13:17:20]Waiting for new connection... [13:17:20] Sock 9.Parse request [13:17:20]Sock 9.Check first char [13:17:20]Sock 9.First char is OK [13:17:20]request: POST /json_proto HTTP/1.0 [13:17:20]Method: POST [13:17:20]URL: /json_proto [13:17:20]Method is POST - this is cgi request [13:17:20]url: /json_proto [13:17:20]query_string will be loaded in cgi processing [13:17:20]execute_cgi json_proto POST (null) [13:17:20]execute_cgi path=json_proto method=POST [13:17:20]POST find Content-Length [13:17:20]Host: 172.17.45.132:8080 [13:17:20]Content-Length: 869 [13:17:20]Content-Type: application/json [13:17:20] [13:17:20]POST finish read [13:17:20]Found Content-Length = 869 [13:17:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126359", "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": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 236.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:17:20]execute_script... [13:17: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)126359", "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": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 236.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:17:20]POST & json_proto [13:17:20]process_json_proto [13:17:20]json parsed OK: [13:17:20]protocol is kg_v1.0 [13:17:20]action value=close_receipt [13:17:20]process_action close_receipt [13:17:20]cmd_close_receipt [13:17:20]MH_GetDate [13:17:20]Write to MH i2c: F0 00 00 4E 4D 8A [13:17:20]Write i2c OK [13:17:20]MH_I2C_Read... [13:17:20]Read from MH i2c: F0 [13:17:20]MH_I2C_Read... [13:17:20]Read from MH i2c: F0 09 00 [13:17:20]MH_I2C_Read... [13:17:20]Read from MH i2c: F0 09 00 4E 4D 00 E6 44 A6 66 E3 0B 90 66 AD [13:17:20]GetLastDocTimeStamp 1722172173 [13:17:20]current date 1722172646 [13:17:20]FM_GetShiftState [13:17:20]SAM_PROTO_GetShiftState [13:17:20]wFMCommunicate request_size=4 [13:17:20]MH_SAM_APDU [13:17:20]CAPDU: 80 13 01 00 [13:17:20]Write to MH i2c: E2 08 00 4F 4D 80 13 01 00 00 00 00 00 19 [13:17:20]Write i2c OK [13:17:20]MH_I2C_Read... [13:17:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:20]Read from MH i2c: E2 [13:17:20]MH_I2C_Read... [13:17:20]Read from MH i2c: E2 0E 00 [13:17:20]MH_I2C_Read... [13:17:20]Read from MH i2c: E2 0E 00 4F 4D 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 0D [13:17:20]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [13:17:20]wFMCommunicate OK [13:17:20]SAM_PROTO_GetShiftState done [13:17:20]FM_GetShiftState done [13:17:20]opened in 1722125648 [13:17:20]opened+sec_in_day 1722212048 [13:17:20]quantity*price = 11100 [13:17:20]sum+1 = 11101 [13:17:20]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000006271 Напиток Фанта 1л 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 236.00 НСП 1% : 2.09 НДС 12% : 25.06 Наличными: 236.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 108 28.07.2024 13:17 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2057 ФПД: 114135837014071 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T131726&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2057&fm=114135837014071&tin=02508201610067®Number=0000000000189667&sum=23600 0 [13:17:22]StoreToDocumentArchive [13:17:22]shift 13 fd 2057 [13:17:22]save to /storage/0013/doc_00002057 [13:17:22]save last doc name /storage/0013/doc_00002057 to /storage/kkm_last_doc_name [13:17:22]save OK [13:17:22]Clear old archive folders... [13:17:22]ProcessDocumentItem done err = 0, tmpTLVsize=367 [13:17:22]tlvbuf is 020488E0 [13:17:22]SAM_PROTO_ClearQueue [13:17:22]wFMCommunicate request_size=4 [13:17:22]MH_SAM_APDU [13:17:22]CAPDU: 80 09 00 00 [13:17:22]Write to MH i2c: E2 08 00 5C 4D 80 09 00 00 00 00 00 00 1B [13:17:22]Write i2c OK [13:17:22]MH_I2C_Read... [13:17:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:17:22]Read from MH i2c: E2 [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: E2 03 00 [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: E2 03 00 5C 4D 00 90 00 1D [13:17:22]RAPDU: 90 00 [13:17:22]wFMCommunicate OK [13:17:22]SAM_PROTO_ClearQueue done [13:17:22]KKMCreateOFDPacket [13:17:22]OFDProtocolAddRootSTLVToBuf [13:17:22]FM_MakeSignedData [13:17:22]FM_MakeSignedData [13:17:22]SAM_PROTO_SignData [13:17:22]wFMCommunicate request_size=4 [13:17:22]MH_SAM_APDU [13:17:22]CAPDU: 80 0D 01 02 [13:17:22]Write to MH i2c: E2 08 00 5D 4D 80 0D 01 02 00 00 00 00 23 [13:17:22]Write i2c OK [13:17:22]MH_I2C_Read... [13:17:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:17:22]Read from MH i2c: E2 [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: E2 03 00 [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: E2 03 00 5D 4D 00 90 00 1E [13:17:22]RAPDU: 90 00 [13:17:22]wFMCommunicate OK [13:17:22]wFMCommunicate request_size=255 [13:17:22]MH_SAM_APDU [13:17:22]CAPDU: 80 0D 02 02 FA 03 00 6F 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 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 [13:17:22]Write to MH i2c: E2 02 01 5E 4D 80 0D 02 02 FA 00 03 00 6F 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 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 00 00 1D [13:17:22]Write i2c OK [13:17:22]MH_I2C_Read... [13:17:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:22]Read from MH i2c: E2 [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: E2 03 00 [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: E2 03 00 5E 4D 00 90 00 1F [13:17:22]RAPDU: 90 00 [13:17:22]wFMCommunicate OK [13:17:22]wFMCommunicate request_size=126 [13:17:22]MH_SAM_APDU [13:17:22]CAPDU: 80 0D 02 02 79 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 6C 00 00 00 F4 03 04 00 E6 44 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 09 08 00 00 35 04 06 00 67 CE 52 05 78 37 [13:17:22]Write to MH i2c: E2 81 00 5F 4D 80 0D 02 02 79 00 06 00 [13:23:25]ConnectInit Can't connect to host [13:23:29]OFD Sender: No OFD packet to send [13:23:34]OFD Sender: No OFD packet to send [13:23:39]OFD Sender: No OFD packet to send [13:23:44]OFD Sender: No OFD packet to send [13:23:49]OFD Sender: No OFD packet to send [13:23:54]OFD Sender: No OFD packet to send [13:23:59]OFD Sender: No OFD packet to send [13:24:04]OFD Sender: No OFD packet to send [13:24:09]OFD Sender: No OFD packet to send [13:24:14]OFD Sender: No OFD packet to send [13:24:19]OFD Sender: No OFD packet to send [13:24:24]OFD Sender: No OFD packet to send [13:24:29]OFD Sender: No OFD packet to send [13:24:34]OFD Sender: No OFD packet to send [13:24:39]OFD Sender: No OFD packet to send [13:24:44]OFD Sender: No OFD packet to send [13:24:49]OFD Sender: No OFD packet to send [13:24:54]OFD Sender: No OFD packet to send [13:24:59]OFD Sender: No OFD packet to send [13:25:04]OFD Sender: No OFD packet to send [13:25:09]OFD Sender: No OFD packet to send [13:25:14]OFD Sender: No OFD packet to send [13:25:19]OFD Sender: No OFD packet to send [13:25:24]OFD Sender: No OFD packet to send [13:25:29]OFD Sender: No OFD packet to send [13:25:34]OFD Sender: No OFD packet to send [13:25:39]OFD Sender: No OFD packet to send [13:25:44]OFD Sender: No OFD packet to send [13:25:49]OFD Sender: No OFD packet to send [13:25:54]OFD Sender: No OFD packet to send [13:25:59]OFD Sender: No OFD packet to send [13:26:04]OFD Sender: No OFD packet to send [13:26:09]OFD Sender: No OFD packet to send [13:26:14]OFD Sender: No OFD packet to send [13:26:19]OFD Sender: No OFD packet to send [13:26:24]OFD Sender: No OFD packet to send [13:26:29]OFD Sender: No OFD packet to send [13:26:34]OFD Sender: No OFD packet to send [13:26:39]OFD Sender: No OFD packet to send [13:26:44]OFD Sender: No OFD packet to send [13:26:49]OFD Sender: No OFD packet to send [13:26:54]OFD Sender: No OFD packet to send [13:26:59]OFD Sender: No OFD packet to send [13:27:04]OFD Sender: No OFD packet to send [13:27:09]OFD Sender: No OFD packet to send [13:27:14]OFD Sender: No OFD packet to send [13:27:19]OFD Sender: No OFD packet to send [13:27:24]OFD Sender: No OFD packet to send [13:27:29]OFD Sender: No OFD packet to send [13:27:34]OFD Sender: No OFD packet to send [13:27:39]OFD Sender: No OFD packet to send [13:27:44]OFD Sender: No OFD packet to send [13:27:49]OFD Sender: No OFD packet to send [13:27:54]OFD Sender: No OFD packet to send [13:27:59]OFD Sender: No OFD packet to send [13:28:04]OFD Sender: No OFD packet to send [13:28:09]OFD Sender: No OFD packet to send [13:28:14]OFD Sender: No OFD packet to send [13:28:19]OFD Sender: No OFD packet to send [13:28:24]OFD Sender: No OFD packet to send [13:28:29]OFD Sender: No OFD packet to send [13:33:38]ConnectInit Can't connect to host [13:33:41]ConnectInit Can't take IP for lk.salyk.kg [13:33:41]CommunicateWithHost connect error [13:33:41]CommunicateWithHost err = -1 [13:33:41]OFD Sender: Server communicate error [13:33:46]OFD Sender: Processing packet 2058 [packets to send 2, broken 0] [13:33:46]ProducePacketName [13:33:46]name=ofd_packets/00002058 [13:33:46]OFD Sender: To server: pG, [13:33:46]CommunicateWithHost lk.salyk.kg:30040 [13:33:46]ConnectInit lk.salyk.kg [13:33:46]Connected sock=8 [13:33:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 3E 01 00 00 A6 CC 36 01 C1 6B 5A 03 01 00 03 00 2A 01 1E 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 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 00 00 00 00 00 00 39 04 06 00 CC 29 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 FA 47 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 0A 08 00 00 35 04 06 00 B8 2F AE 03 00 0E 77 FB 81 3E 99 5A 08 68 [13:33:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 AE F3 47 00 E2 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 32 30 39 34 32 34 38 10 04 04 00 0A 08 00 00 F4 03 04 00 2D F4 A5 66 B6 04 01 00 00 90 9A 6A F6 27 69 15 D8 [13:33:46]CommunicateWithHost err = 0 [13:33:46]CheckOFDResponse [13:33:46]1017 (14) - 77093643461234 [13:33:46]1041 (16) - 0000000002094248 [13:33:46]1040 (4) - 2058 [13:33:46]1012 (4) - 28.07.2024 07:33 [13:33:46]1206 (1) - 0 [13:33:46]OFD Sender: Remove packet 2058 [13:33:46]ProducePacketName [13:33:46]name=ofd_packets/00002058 [13:33:46]NVStorageDeleteData [13:33:47]OFD Sender: Processing packet 2059 [packets to send 1, broken 0] [13:33:47]ProducePacketName [13:33:47]name=ofd_packets/00002059 [13:33:47]OFD Sender: To server: pG, [13:33:47]CommunicateWithHost lk.salyk.kg:30040 [13:33:47]ConnectInit lk.salyk.kg [13:33:47]Connected sock=8 [13:33:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 FB 02 00 00 3C AC F3 02 FD 98 5A 03 01 00 03 00 E7 02 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 36 30 06 04 1A 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AD D0 BD D0 B5 D1 81 D0 B0 D0 B9 20 35 D0 BB 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 23 04 73 00 8A 04 0D 00 34 36 30 30 36 38 32 30 30 30 32 38 30 06 04 2F 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 D0 BC D0 BE D1 85 D0 B8 D1 82 D0 BE 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 81 00 8A 04 0D 00 34 36 30 30 36 38 32 30 33 35 34 36 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B1 D0 B5 D0 B7 D0 B0 D0 BB D0 BA 2E 20 46 6C 61 73 68 20 55 70 20 D0 AD D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2C 34 35 20 D0 B6 2F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 8E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 0F 00 00 00 00 07 04 06 00 94 8E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 45 48 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 0B 08 00 00 35 04 06 00 7E 63 14 D3 A1 99 38 F5 DF D0 CD 5C E0 03 [13:33:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 B5 11 47 00 F0 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 32 30 39 34 32 34 38 10 04 04 00 0B 08 00 00 F4 03 04 00 2E F4 A5 66 B6 04 01 00 00 BA 0F 42 AD 8E 27 F4 C1 [13:33:47]CommunicateWithHost err = 0 [13:33:47]CheckOFDResponse [13:33:47]1017 (14) - 77093643461234 [13:33:47]1041 (16) - 0000000002094248 [13:33:47]1040 (4) - 2059 [13:33:47]1012 (4) - 28.07.2024 07:33 [13:33:47]1206 (1) - 0 [13:33:47]OFD Sender: Remove packet 2059 [13:33:47]ProducePacketName [13:33:47]name=ofd_packets/00002059 [13:33:47]NVStorageDeleteData [13:33:48]OFD Sender: No OFD packet to send [13:33:53]OFD Sender: No OFD packet to send [13:33:58]OFD Sender: No OFD packet to send [13:34:03]OFD Sender: No OFD packet to send [13:34:08]OFD Sender: No OFD packet to send [13:34:13]OFD Sender: No OFD packet to send [13:34:18]OFD Sender: No OFD packet to send [13:34:23]OFD Sender: No OFD packet to send [13:34:28]OFD Sender: No OFD packet to send [13:34:33]OFD Sender: No OFD packet to send [13:34:38]OFD Sender: No OFD packet to send [13:34:43]OFD Sender: No OFD packet to send [13:34:48]OFD Sender: No OFD packet to send [13:34:53]OFD Sender: No OFD packet to send [13:34:58]OFD Sender: No OFD packet to send [13:35:03]OFD Sender: No OFD packet to send [13:35:08]OFD Sender: No OFD packet to send [13:35:13]OFD Sender: No OFD packet to send [13:35:18]OFD Sender: No OFD packet to send [13:35:23]OFD Sender: No OFD packet to send [13:35:28]OFD Sender: No OFD packet to send [13:35:33]OFD Sender: No OFD packet to send [13:35:38]OFD Sender: No OFD packet to send [13:35:43]OFD Sender: No OFD packet to send [13:35:48]OFD Sender: No OFD packet to send [13:35:53]OFD Sender: No OFD packet to send [13:35:58]OFD Sender: No OFD packet to send [13:36:03]OFD Sender: No OFD packet to send [13:36:08]OFD Sender: No OFD packet to send [13:36:13]OFD Sender: No OFD packet to send [13:36:18]OFD Sender: No OFD packet to send [13:36:23]OFD Sender: No OFD packet to send [13:36:28]OFD Sender: No OFD packet to send [13:36:33]OFD Sender: No OFD packet to send [13:36:38]OFD Sender: No OFD packet to send [13:36:43]OFD Sender: No OFD packet to send [13:36:48]OFD Sender: No OFD packet to send [13:36:53]OFD Sender: No OFD packet to send [13:36:58]OFD Sender: No OFD packet to send [13:37:03]OFD Sender: No OFD packet to send [13:37:08]OFD Sender: No OFD packet to send [13:37:13]OFD Sender: No OFD packet to send [13:37:18]OFD Sender: No OFD packet to send [13:37:23]OFD Sender: No OFD packet to send [13:37:28]OFD Sender: No OFD packet to send [13:37:33]OFD Sender: No OFD packet to send [13:37:38]OFD Sender: No OFD packet to send [13:37:43]OFD Sender: No OFD packet to send [13:37:48]OFD Sender: No OFD packet to send [13:37:53]OFD Sender: No OFD packet to send [13:37:58]OFD Sender: No OFD packet to send [13:38:03]OFD Sender: No OFD packet to send [13:38:08]OFD Sender: No OFD packet to send [13:41:52]ConnectInit Can't connect to host [13:41:53]OFD Sender: No OFD packet to send [13:41:58]OFD Sender: No OFD packet to send [13:42:03]OFD Sender: No OFD packet to send [13:42:08]OFD Sender: No OFD packet to send [13:42:13]OFD Sender: No OFD packet to send [13:42:18]OFD Sender: No OFD packet to send [13:42:23]OFD Sender: No OFD packet to send [13:42:28]OFD Sender: No OFD packet to send [13:42:33]OFD Sender: No OFD packet to send [13:42:38]OFD Sender: No OFD packet to send [13:42:43]OFD Sender: No OFD packet to send [13:42:48]OFD Sender: No OFD packet to send [13:42:53]OFD Sender: No OFD packet to send [13:54:46]ConnectInit Can't connect to host [13:54:50]ConnectInit Can't take IP for lk.salyk.kg [13:54:50]CommunicateWithHost connect error [13:54:50]CommunicateWithHost err = -1 [13:54:50]OFD Sender: Server communicate error [13:54:55]OFD Sender: Processing packet 2060 [packets to send 5, broken 0] [13:54:55]ProducePacketName [13:54:55]name=ofd_packets/00002060 [13:54:55]OFD Sender: To server: pG, [13:54:55]CommunicateWithHost lk.salyk.kg:30040 [13:54:55]ConnectInit lk.salyk.kg [13:54:55]Connected sock=8 [13:54:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 3A 01 00 00 CD 81 32 01 14 01 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 6F 00 00 00 F4 03 04 00 33 4B A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 0C 08 00 00 35 04 06 00 9F 53 51 19 82 D5 27 DA DE B8 41 4F 95 85 [13:54:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 63 16 47 00 8F 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 32 30 39 34 32 34 38 10 04 04 00 0C 08 00 00 F4 03 04 00 22 F9 A5 66 B6 04 01 00 00 0E B9 78 A7 A3 01 C4 68 [13:54:55]CommunicateWithHost err = 0 [13:54:55]CheckOFDResponse [13:54:55]1017 (14) - 77093643461234 [13:54:55]1041 (16) - 0000000002094248 [13:54:55]1040 (4) - 2060 [13:54:55]1012 (4) - 28.07.2024 07:54 [13:54:55]1206 (1) - 0 [13:54:55]OFD Sender: Remove packet 2060 [13:54:55]ProducePacketName [13:54:55]name=ofd_packets/00002060 [13:54:55]NVStorageDeleteData [13:54:56]OFD Sender: Processing packet 2061 [packets to send 4, broken 0] [13:54:56]ProducePacketName [13:54:56]name=ofd_packets/00002061 [13:54:56]OFD Sender: To server: pG, [13:54:56]CommunicateWithHost lk.salyk.kg:30040 [13:54:56]ConnectInit lk.salyk.kg [13:54:56]Connected sock=8 [13:54:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 CD 01 00 00 3C D1 C5 01 4B 26 5A 03 01 00 03 00 B9 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 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 3C 41 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 94 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 06 00 00 00 00 07 04 06 00 3C 41 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 96 4B A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 0D 08 00 00 35 04 06 00 0C 62 5F 85 11 F8 F7 27 73 CD DD 95 01 4F [13:54:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 C4 30 47 00 84 BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 0D 08 00 00 F4 03 04 00 23 F9 A5 66 B6 04 01 00 00 1F 56 F6 6F 20 FF 12 79 [13:54:56]CommunicateWithHost err = 0 [13:54:56]CheckOFDResponse [13:54:56]1017 (14) - 77093643461234 [13:54:56]1041 (16) - 0000000002094248 [13:54:56]1040 (4) - 2061 [13:54:56]1012 (4) - 28.07.2024 07:54 [13:54:56]1206 (1) - 0 [13:54:56]OFD Sender: Remove packet 2061 [13:54:56]ProducePacketName [13:54:56]name=ofd_packets/00002061 [13:54:56]NVStorageDeleteData [13:54:57]OFD Sender: Processing packet 2062 [packets to send 3, broken 0] [13:54:57]ProducePacketName [13:54:57]name=ofd_packets/00002062 [13:54:57]OFD Sender: To server: pG, [13:54:57]CommunicateWithHost lk.salyk.kg:30040 [13:54:57]ConnectInit lk.salyk.kg [13:54:57]Connected sock=8 [13:54:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 44 01 00 00 B8 2A 3C 01 B8 03 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 33 30 31 30 30 34 39 06 04 3E 00 4C 65 74 60 73 20 47 4F 20 D0 A7 D0 B0 D0 B9 20 D0 B7 D0 B5 D0 BB D0 B5 D0 BD D1 8B D0 B9 20 D0 B3 D1 80 D0 B5 D0 B9 D0 BF D1 84 D1 80 D1 83 D1 82 20 30 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 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 B9 4B A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 0E 08 00 00 35 04 06 00 93 FD 9E 9F D2 C4 DA E3 E4 34 A2 49 45 F6 [13:54:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 62 30 47 00 29 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 32 30 39 34 32 34 38 10 04 04 00 0E 08 00 00 F4 03 04 00 24 F9 A5 66 B6 04 01 00 00 46 7E 0F D8 D3 7C 6F D0 [13:54:57]CommunicateWithHost err = 0 [13:54:57]CheckOFDResponse [13:54:57]1017 (14) - 77093643461234 [13:54:57]1041 (16) - 0000000002094248 [13:54:57]1040 (4) - 2062 [13:54:57]1012 (4) - 28.07.2024 07:54 [13:54:57]1206 (1) - 0 [13:54:57]OFD Sender: Remove packet 2062 [13:54:57]ProducePacketName [13:54:57]name=ofd_packets/00002062 [13:54:57]NVStorageDeleteData [13:54:58]OFD Sender: Processing packet 2063 [packets to send 2, broken 0] [13:54:58]ProducePacketName [13:54:58]name=ofd_packets/00002063 [13:54:58]OFD Sender: To server: pG, [13:54:58]CommunicateWithHost lk.salyk.kg:30040 [13:54:58]ConnectInit lk.salyk.kg [13:54:58]Connected sock=8 [13:54:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 27 01 00 00 AE 35 1F 01 F5 0D 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 8B 4C A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 0F 08 00 00 35 04 06 00 99 52 25 A9 46 51 B6 BA 6D 86 71 7A F7 FB [13:54:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 AF FE 47 00 8F A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 0F 08 00 00 F4 03 04 00 25 F9 A5 66 B6 04 01 00 00 1E 5A AB 9A D3 6B 61 3E [13:54:58]CommunicateWithHost err = 0 [13:54:58]CheckOFDResponse [13:54:58]1017 (14) - 77093643461234 [13:54:58]1041 (16) - 0000000002094248 [13:54:58]1040 (4) - 2063 [13:54:58]1012 (4) - 28.07.2024 07:54 [13:54:58]1206 (1) - 0 [13:54:58]OFD Sender: Remove packet 2063 [13:54:58]ProducePacketName [13:54:58]name=ofd_packets/00002063 [13:54:58]NVStorageDeleteData [13:54:58]OFD Sender: Processing packet 2064 [packets to send 1, broken 0] [13:54:58]ProducePacketName [13:54:58]name=ofd_packets/00002064 [13:54:58]OFD Sender: To server: pG, [13:54:58]CommunicateWithHost lk.salyk.kg:30040 [13:54:58]ConnectInit lk.salyk.kg [13:54:59]Connected sock=8 [13:54:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2D 01 00 00 1D 32 25 01 62 30 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 38 36 38 06 04 27 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 73 00 00 00 F4 03 04 00 AA 4C A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 10 08 00 00 35 04 06 00 AE 94 0A 83 B2 E7 DE A8 58 60 99 63 47 DE [13:54:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 58 1E 47 00 5A 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 32 30 39 34 32 34 38 10 04 04 00 10 08 00 00 F4 03 04 00 26 F9 A5 66 B6 04 01 00 00 97 05 36 4A F0 B9 B8 A5 [13:54:59]CommunicateWithHost err = 0 [13:54:59]CheckOFDResponse [13:54:59]1017 (14) - 77093643461234 [13:54:59]1041 (16) - 0000000002094248 [13:54:59]1040 (4) - 2064 [13:54:59]1012 (4) - 28.07.2024 07:54 [13:54:59]1206 (1) - 0 [13:54:59]OFD Sender: Remove packet 2064 [13:54:59]ProducePacketName [13:54:59]name=ofd_packets/00002064 [13:54:59]NVStorageDeleteData [13:54:59]OFD Sender: No OFD packet to send [13:55:04]OFD Sender: No OFD packet to send [13:55:09]OFD Sender: No OFD packet to send [13:55:14]OFD Sender: No OFD packet to send [13:55:19]OFD Sender: No OFD packet to send [13:55:24]OFD Sender: No OFD packet to send [13:55:29]OFD Sender: No OFD packet to send [13:55:34]OFD Sender: No OFD packet to send [13:55:39]OFD Sender: No OFD packet to send [13:55:44]OFD Sender: No OFD packet to send [13:55:49]OFD Sender: No OFD packet to send [13:55:54]OFD Sender: No OFD packet to send [13:55:59]OFD Sender: No OFD packet to send [13:56:04]OFD Sender: No OFD packet to send [13:56:09]OFD Sender: No OFD packet to send [13:56:14]OFD Sender: No OFD packet to send [13:56:19]OFD Sender: No OFD packet to send [13:56:24]OFD Sender: No OFD packet to send [13:56:29]OFD Sender: No OFD packet to send [13:56:34]OFD Sender: No OFD packet to send [13:56:39]OFD Sender: No OFD packet to send [13:56:44]OFD Sender: No OFD packet to send [13:56:49]OFD Sender: No OFD packet to send [13:56:54]OFD Sender: No OFD packet to send [13:56:59]OFD Sender: No OFD packet to send [13:57:04]OFD Sender: No OFD packet to send [13:57:09]OFD Sender: No OFD packet to send [13:57:14]OFD Sender: No OFD packet to send [13:57:19]OFD Sender: No OFD packet to send [13:57:24]OFD Sender: No OFD packet to send [13:57:29]OFD Sender: No OFD packet to send [13:57:34]OFD Sender: No OFD packet to send [13:57:39]OFD Sender: No OFD packet to send [13:57:44]OFD Sender: No OFD packet to send [13:57:49]OFD Sender: No OFD packet to send [13:57:54]OFD Sender: No OFD packet to send [13:57:59]OFD Sender: No OFD packet to send [13:58:04]OFD Sender: No OFD packet to send [13:58:09]OFD Sender: No OFD packet to send [13:58:14]OFD Sender: No OFD packet to send [13:58:19]OFD Sender: No OFD packet to send [13:58:24]OFD Sender: No OFD packet to send [13:58:26]accept exits with 9 [13:58:26]New connection [13:58:26]New thread 3067460964 created [13:58:26]Thread 3067317604 joined [13:58:26]Waiting for new connection... [13:58:26] Sock 9.Parse request [13:58:26]Sock 9.Check first char [13:58:26]Sock 9.First char is OK [13:58:26]request: POST /json_proto HTTP/1.0 [13:58:26]Method: POST [13:58:26]URL: /json_proto [13:58:26]Method is POST - this is cgi request [13:58:26]url: /json_proto [13:58:26]query_string will be loaded in cgi processing [13:58:26]execute_cgi json_proto POST (null) [13:58:26]execute_cgi path=json_proto method=POST [13:58:26]POST find Content-Length [13:58:26]Host: 172.17.45.132:8080 [13:58:26]Content-Length: 916 [13:58:26]Content-Type: application/json [13:58:26] [13:58:26]POST finish read [13:58:26]Found Content-Length = 916 [13:58:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126367", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46146625", "name": "\u0420/\u0436 Orbit XXL \u0441\u043B\u0430\u0434\u043A\u0430\u044F \u043C\u044F\u0442\u0430 20,4\u0433", "price" : 51.00, "quantity" : 1.000, "sum" : 51.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 181.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:26]execute_script... [13:58:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126367", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46146625", "name": "\u0420/\u0436 Orbit XXL \u0441\u043B\u0430\u0434\u043A\u0430\u044F \u043C\u044F\u0442\u0430 20,4\u0433", "price" : 51.00, "quantity" : 1.000, "sum" : 51.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 181.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:26]POST & json_proto [13:58:26]process_json_proto [13:58:26]json parsed OK: [13:58:26]protocol is kg_v1.0 [13:58:26]action value=close_receipt [13:58:26]process_action close_receipt [13:58:26]cmd_close_receipt [13:58:26]MH_GetDate [13:58:26]Write to MH i2c: F0 00 00 BD 4F FB [13:58:26]Write i2c OK [13:58:26]MH_I2C_Read... [13:58:26]Read from MH i2c: F0 [13:58:26]MH_I2C_Read... [13:58:26]Read from MH i2c: F0 09 00 [13:58:26]MH_I2C_Read... [13:58:26]Read from MH i2c: F0 09 00 BD 4F 00 88 4E A6 66 E3 0B 90 66 CA [13:58:26]GetLastDocTimeStamp 1722174634 [13:58:26]current date 1722175112 [13:58:26]FM_GetShiftState [13:58:26]SAM_PROTO_GetShiftState [13:58:26]wFMCommunicate request_size=4 [13:58:26]MH_SAM_APDU [13:58:26]CAPDU: 80 13 01 00 [13:58:26]Write to MH i2c: E2 08 00 BE 4F 80 13 01 00 00 00 00 00 8A [13:58:26]Write i2c OK [13:58:26]MH_I2C_Read... [13:58:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:27]Read from MH i2c: E2 [13:58:27]MH_I2C_Read... [13:58:27]Read from MH i2c: E2 0E 00 [13:58:27]MH_I2C_Read... [13:58:27]Read from MH i2c: E2 0E 00 BE 4F 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 7E [13:58:27]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [13:58:27]wFMCommunicate OK [13:58:27]SAM_PROTO_GetShiftState done [13:58:27]FM_GetShiftState done [13:58:27]opened in 1722125648 [13:58:27]opened+sec_in_day 1722212048 [13:58:27]quantity*price = 13000 [13:58:27]sum+1 = 13001 [13:58:27]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46146625 Р/ж Orbit XXL сладкая мята 20,4г 1.000 * 51.00 = 51.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 181.00 НСП 1% : 1.60 НДС 12% : 19.22 Наличными: 181.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 116 28.07.2024 13:58 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2065 ФПД: 241371923560379 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T135832&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2065&fm=241371923560379&tin=02508201610067®Number=0000000000189667&sum=18100 0 [13:58:28]StoreToDocumentArchive [13:58:28]shift 13 fd 2065 [13:58:28]save to /storage/0013/doc_00002065 [13:58:28]save last doc name /storage/0013/doc_00002065 to /storage/kkm_last_doc_name [13:58:28]save OK [13:58:28]Clear old archive folders... [13:58:28]ProcessDocumentItem done err = 0, tmpTLVsize=385 [13:58:28]tlvbuf is 020AA920 [13:58:28]SAM_PROTO_ClearQueue [13:58:28]wFMCommunicate request_size=4 [13:58:28]MH_SAM_APDU [13:58:28]CAPDU: 80 09 00 00 [13:58:28]Write to MH i2c: E2 08 00 CB 4F 80 09 00 00 00 00 00 00 8C [13:58:28]Write i2c OK [13:58:28]MH_I2C_Read... [13:58:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:58:28]Read from MH i2c: E2 [13:58:28]MH_I2C_Read... [13:58:28]Read from MH i2c: E2 03 00 [13:58:28]MH_I2C_Read... [13:58:28]Read from MH i2c: E2 03 00 CB 4F 00 90 00 8E [13:58:28]RAPDU: 90 00 [13:58:28]wFMCommunicate OK [13:58:28]SAM_PROTO_ClearQueue done [13:58:28]KKMCreateOFDPacket [13:58:28]OFDProtocolAddRootSTLVToBuf [13:58:28]FM_MakeSignedData [13:58:28]FM_MakeSignedData [13:58:28]SAM_PROTO_SignData [13:58:28]wFMCommunicate request_size=4 [13:58:28]MH_SAM_APDU [13:58:28]CAPDU: 80 0D 01 02 [13:58:28]Write to MH i2c: E2 08 00 CC 4F 80 0D 01 02 00 00 00 00 94 [13:58:28]Write i2c OK [13:58:28]MH_I2C_Read... [13:58:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:58:28]Read from MH i2c: E2 [13:58:28]MH_I2C_Read... [13:58:28]Read from MH i2c: E2 03 00 [13:58:28]MH_I2C_Read... [13:58:28]Read from MH i2c: E2 03 00 CC 4F 00 90 00 8F [13:58:28]RAPDU: 90 00 [13:58:28]wFMCommunicate OK [13:58:28]wFMCommunicate request_size=255 [13:58:28]MH_SAM_APDU [13:58:28]CAPDU: 80 0D 02 02 FA 03 00 81 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD 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 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 23 04 6D 00 8A 04 08 00 34 36 31 34 36 36 32 35 06 04 2E 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 58 58 4C 20 D1 81 D0 BB D0 B0 D0 B4 D0 BA D0 B0 D1 8F 20 D0 BC D1 8F D1 82 D0 B0 20 32 30 2C 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 [13:58:28]Write to MH i2c: E2 02 01 CD 4F 80 0D 02 02 FA 00 03 00 81 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD 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 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 23 04 6D 00 8A 04 08 00 34 36 31 34 36 36 32 35 06 04 2E 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 58 58 4C 20 D1 81 D0 BB D0 B0 D0 B4 D0 BA D0 B0 D1 8F 20 D0 BC D1 8F D1 82 D0 B0 20 32 30 2C 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 B3 [13:58:28]Write i2c OK [13:58:28]MH_I2C_Read... [13:58:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:28]Read from MH i2c: E2 [13:58:28]MH_I2C_Read... [13:58:28]Read from MH i2c: E2 03 00 [13:58:28]MH_I2C_Read... [13:58:28]Read from MH i2c: E2 03 00 CD 4F 00 90 00 90 [13:58:28]RAPDU: 90 00 [13:58:28]wFMCommunicate OK [13:58:28]wFMCommunicate request_size=144 [13:58:28]MH_SAM_APDU [13:58:28]CAPDU: 80 0D 02 02 8B 00 A0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 07 00 00 00 00 07 04 06 00 B4 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 74 00 00 00 F4 03 04 00 88 4E A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 11 08 00 00 35 04 06 00 DB 86 C7 C3 37 BB [13:58:28]Write to MH i2c: E2 93 00 CE 4F 80 0D 02 02 8B 00 00 A0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 07 00 00 00 00 07 04 06 00 B4 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 74 00 00 00 F4 03 04 00 88 4E A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 11 08 00 00 35 04 06 00 DB 86 C7 C3 37 BB 00 00 5F [13:58:28]Write i2c OK [13:58:28]MH_I2C_Read... [13:58:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:28]Read from MH i2c: E2 [13:58:28]MH_I2C_Read... [13:58:28]Read from MH i2c: E2 03 00 [13:58:28]MH_I2C_Read... [13:58:28]Read from MH i2c: E2 03 00 CE 4F 00 90 00 91 [13:58:28]RAPDU: 90 00 [13:58:28]wFMCommunicate OK [13:58:28]wFMCommunicate request_size=4 [13:58:28]MH_SAM_APDU [13:58:28]CAPDU: 80 0D 03 02 [13:58:28]Write to MH i2c: E2 08 00 CF 4F 80 0D 03 02 00 00 00 00 99 [13:58:28]Write i2c OK [13:58:28]MH_I2C_Read... [13:58:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:58:28]Read from MH i2c: E2 [13:58:28]MH_I2C_Read... [13:58:28]Read from MH i2c: E2 0B 00 [13:58:28]MH_I2C_Read... [13:58:28]Read from MH i2c: E2 0B 00 CF 4F 00 63 35 C1 49 7F 3D 31 9A 90 00 C3 [13:58:28]RAPDU: 63 35 C1 49 7F 3D 31 9A 90 00 [13:58:28]wFMCommunicate OK [13:58:28]SAM_PROTO_SignData done [13:58:28]FM_MakeSignedData done [13:58:28]CreateOFDProtocolMessage [13:58:28]wFMCommunicate request_size=4 [13:58:28]MH_SAM_APDU [13:58:28]CAPDU: 80 11 00 00 [13:58:28]Write to MH i2c: E2 08 00 D0 4F 80 11 00 00 00 00 00 00 99 [13:58:28]Write i2c OK [13:58:28]MH_I2C_Read... [13:58:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:28]Read from MH i2c: E2 [13:58:28]MH_I2C_Read... [13:58:28]Read from MH i2c: E2 17 00 [13:58:28]MH_I2C_Read... [13:58:28]Read from MH i2c: E2 17 00 D0 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 E9 [13:58:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [13:58:28]wFMCommunicate OK [13:58:28]CreateOFDProtocolMessage done [13:58:28]OFDSenderStorePacket 2065 [13:58:28]StoreOFDPacket docnum=2065 [13:58:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 95 01 00 00 F6 FE 8D 01 21 96 5A 03 01 00 03 00 81 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD 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 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 23 04 6D 00 8A 04 08 00 34 36 31 34 36 36 32 35 06 04 2E 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 58 58 4C 20 D1 81 D0 BB D0 B0 D0 B4 D0 BA D0 B0 D1 8F 20 D0 BC D1 8F D1 82 D0 B0 20 32 30 2C 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 07 00 00 00 00 07 04 06 00 B4 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 74 00 00 00 F4 03 04 00 88 4E A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 11 08 00 00 35 04 06 00 DB 86 C7 C3 37 BB 63 35 C1 49 7F 3D 31 9A [13:58:28]CheckFolder [13:58:28]dirname=/storage/ofd_packets [13:58:28]CheckFolder done [13:58:28]ProducePacketName [13:58:28]name=ofd_packets/00002065 [13:58:28]NVStorageSaveData ofd_packets/00002065 [13:58:28]File name is /storage/ofd_packets/00002065 [13:58:28]Write 435 bytes [13:58:28]NVStorageSaveData done [13:58:28]OFDSenderStorePacket done [13:58:28]KKMCreateOFDPacket done [13:58:28]NVStorageSaveData kkm_last_timestamp [13:58:28]File name is /storage/kkm_last_timestamp [13:58:28]Write 4 bytes [13:58:28]NVStorageSaveData done [13:58:28]ExternCall_PrintAddStr [13:58:28]wPrintStart [13:58:28]Write to MH i2c: 01 00 00 D1 4F 20 [13:58:28]Write i2c OK [13:58:28]MH_I2C_Read... [13:58:28]Read from MH i2c: 01 [13:58:28]MH_I2C_Read... [13:58:28]Read from MH i2c: 01 07 00 [13:58:28]MH_I2C_Read... [13:58:28]Read from MH i2c: 01 07 00 D1 4F 00 00 00 00 00 FF 0F 35 [13:58:28]RasterBufferAndPrint [13:58:28]line Счет N : (3)126367 [13:58:28]line ИНН: 02508201610067 [13:58:28]line Контрольно-Кассовый Чек [13:58:29]line ПРОДАЖА [13:58:29]line Товар: 47011656 [13:58:29]line Водка Пшеничная 0,1л [13:58:29]line 2.000 * 65.00 [13:58:29]line = 130.00 [13:58:29]line НДС 12% НСП 1% [13:58:29]line > о реализуемом товаре [13:58:29]line Товар: 46146625 [13:58:29]line Р/ж Orbit XXL сладкая мята 20,4г [13:58:29]line 1.000 * 51.00 [13:58:29]line = 51.00 [13:58:29]line НДС 12% НСП 1% [13:58:29]line > о реализуемом товаре [13:58:29]line ИТОГО: 181.00 [13:58:29]line НСП 1% : 1.60 [13:58:29]line НДС 12% : 19.22 [13:58:29]line Наличными: 181.00 [13:58:29]line Безнал.: 0.00 [13:58:29]line Место: АЗС № 127 "Партнер Нефть" [13:58:29]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [13:58:29]line СНО: Общий режим [13:58:29]line Чек 116 28.07.2024 13:58 [13:58:29]line Смена: 13 ФФД: 1.0 [13:58:29]line ЗНМ: 0300000161 [13:58:29]line РНМ: 0000000000189667 [13:58:29]line Версия ККМ: v1.0 [13:58:29]line ФМ: 0000000002094248 [13:58:29]line ФД: 2065 [13:58:29]line ФПД: 241371923560379 [13:58:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T135832&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2065&fm=241371923560379&tin=02508201610067®Number=0000000000189667&sum=18100 [13:58:29]line 0 [13:58:29]OFD Sender: Processing packet 2065 [packets to send 1, broken 0] [13:58:29]ProducePacketName [13:58:29]name=ofd_packets/00002065 [13:58:29]OFD Sender: To server: pG, [13:58:29]CommunicateWithHost lk.salyk.kg:30040 [13:58:29]ConnectInit lk.salyk.kg [13:58:29]written 0, free lines is 4095 [13:58:29]Connected sock=10 [13:58:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 95 01 00 00 F6 FE 8D 01 21 96 5A 03 01 00 03 00 81 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD 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 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 23 04 6D 00 8A 04 08 00 34 36 31 34 36 36 32 35 06 04 2E 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 58 58 4C 20 D1 81 D0 BB D0 B0 D0 B4 D0 BA D0 B0 D1 8F 20 D0 BC D1 8F D1 82 D0 B0 20 32 30 2C 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 07 00 00 00 00 07 04 06 00 B4 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 74 00 00 00 F4 03 04 00 88 4E A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 11 08 00 00 35 04 06 00 DB 86 C7 C3 37 BB 63 35 C1 49 7F 3D 31 9A [13:58:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 5F 94 47 00 C7 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 32 30 39 34 32 34 38 10 04 04 00 11 08 00 00 F4 03 04 00 F8 F9 A5 66 B6 04 01 00 00 5B 3E E7 3D E6 0A C2 F9 [13:58:29]CommunicateWithHost err = 0 [13:58:29]CheckOFDResponse [13:58:29]1017 (14) - 77093643461234 [13:58:29]1041 (16) - 0000000002094248 [13:58:29]1040 (4) - 2065 [13:58:29]1012 (4) - 28.07.2024 07:57 [13:58:29]1206 (1) - 0 [13:58:29]OFD Sender: Remove packet 2065 [13:58:29]ProducePacketName [13:58:29]name=ofd_packets/00002065 [13:58:29]NVStorageDeleteData [13:58:29]Write to MH i2c: 01 00 00 00 50 50 [13:58:29]Write i2c OK [13:58:29]MH_I2C_Read... [13:58:29]Read from MH i2c: 01 [13:58:29]MH_I2C_Read... [13:58:29]Read from MH i2c: 01 07 00 [13:58:29]MH_I2C_Read... [13:58:29]Read from MH i2c: 01 07 00 00 50 00 00 00 00 00 BA 0C 1D [13:58:29]RasterBufferAndPrint [13:58:29]line [13:58:29]line [13:58:29]line [13:58:29]line [13:58:29]line [13:58:29]written 0, free lines is 3269 [13:58:29]MH_Cut [13:58:29]Write to MH i2c: D1 01 00 07 50 01 29 [13:58:29]Write i2c OK [13:58:29]MH_I2C_Read... [13:58:29]Read from MH i2c: D1 [13:58:29]MH_I2C_Read... [13:58:29]Read from MH i2c: D1 01 00 [13:58:29]MH_I2C_Read... [13:58:29]Read from MH i2c: D1 01 00 07 50 00 28 [13:58:29]Write to MH i2c: 01 00 00 08 50 58 [13:58:29]Write i2c OK [13:58:29]MH_I2C_Read... [13:58:29]OFD Sender: No OFD packet to send [13:58:30]*** Cut start [13:58:30]*** Partial cut [13:58:30]*** CUTSNS_PIN = 1 [13:58:30]*** CUTSNS_PIN = 0 [13:58:30]*** Brake cut motor [13:58:30]Read from MH i2c: 01 [13:58:30]MH_I2C_Read... [13:58:30]*** Stop cut motor [13:58:30]*** Cut end [13:58:30]Read from MH i2c: 01 07 00 [13:58:30]MH_I2C_Read... [13:58:30]Read from MH i2c: 01 07 00 08 50 00 00 00 00 00 FF 0F 6D [13:58:30]process_action close_receipt done [13:58:30]requested_data is exist [13:58:30]produce_requested_data [13:58:30]requested_item fm.sn is exist - process it [13:58:30]wFMCommunicate request_size=4 [13:58:30]MH_SAM_APDU [13:58:30]CAPDU: 80 11 00 00 [13:58:30]Write to MH i2c: E2 08 00 09 50 80 11 00 00 00 00 00 00 D3 [13:58:30]Write i2c OK [13:58:30]MH_I2C_Read... [13:58:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:31]Read from MH i2c: E2 [13:58:31]MH_I2C_Read... [13:58:31]Read from MH i2c: E2 17 00 [13:58:31]MH_I2C_Read... [13:58:31]Read from MH i2c: E2 17 00 09 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 23 [13:58:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [13:58:31]wFMCommunicate OK [13:58:31]requested_item fd.num is exist - process it [13:58:31]SAM_PROTO_GetFieldsCounters [13:58:31]wFMCommunicate request_size=4 [13:58:31]MH_SAM_APDU [13:58:31]CAPDU: 80 13 00 00 [13:58:31]Write to MH i2c: E2 08 00 0A 50 80 13 00 00 00 00 00 00 D6 [13:58:31]Write i2c OK [13:58:31]MH_I2C_Read... [13:58:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:58:31]Read from MH i2c: E2 [13:58:31]MH_I2C_Read... [13:58:31]Read from MH i2c: E2 62 00 [13:58:31]MH_I2C_Read... [13:58:31]Read from MH i2c: E2 62 00 0A 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 11 08 00 00 0E 04 04 00 0D 00 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 82 [13:58:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 11 08 00 00 0E 04 04 00 0D 00 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 [13:58:31]wFMCommunicate OK [13:58:31]SAM_PROTO_GetFieldsCounters done [13:58:31]requested_item shift.num is exist - process it [13:58:31]requested_item shift.opened is exist - process it [13:58:31]req_shift_opened [13:58:31]FM_GetShiftState [13:58:31]SAM_PROTO_GetShiftState [13:58:31]wFMCommunicate request_size=4 [13:58:31]MH_SAM_APDU [13:58:31]CAPDU: 80 13 01 00 [13:58:31]Write to MH i2c: E2 08 00 0B 50 80 13 01 00 00 00 00 00 D8 [13:58:31]Write i2c OK [13:58:31]MH_I2C_Read... [13:58:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:31]Read from MH i2c: E2 [13:58:31]MH_I2C_Read... [13:58:31]Read from MH i2c: E2 0E 00 [13:58:31]MH_I2C_Read... [13:58:31]Read from MH i2c: E2 0E 00 0B 50 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 CC [13:58:31]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [13:58:31]wFMCommunicate OK [13:58:31]SAM_PROTO_GetShiftState done [13:58:31]FM_GetShiftState done [13:58:31]req_shift_opened done [13:58:31]requested_item shift.open_date is exist - process it [13:58:31]req_shift_open_date [13:58:31]req_shift_open_date done [13:58:31]produce_requested_data done [13:58:31]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2065,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [13:58:31]process_action_free close_receipt [13:58:31]json_value_free [13:58:31]json_value_free done [13:58:31]process_json_proto returns [13:58:31]Send response to host [13:58:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2065,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [13:58:31]free response buf [13:58:31]execute_script done [13:58:31]execute_script returns [13:58:31]free content buf [13:58:31]Sock 9.Close socket [13:58:31]Sock 9.Thread stoped [13:58:35]OFD Sender: No OFD packet to send [13:58:40]OFD Sender: No OFD packet to send [13:58:45]OFD Sender: No OFD packet to send [13:58:50]OFD Sender: No OFD packet to send [13:58:55]OFD Sender: No OFD packet to send [13:59:00]OFD Sender: No OFD packet to send [13:59:05]OFD Sender: No OFD packet to send [13:59:10]OFD Sender: No OFD packet to send [13:59:15]OFD Sender: No OFD packet to send [13:59:20]OFD Sender: No OFD packet to send [13:59:25]OFD Sender: No OFD packet to send [13:59:30]OFD Sender: No OFD packet to send [13:59:35]OFD Sender: No OFD packet to send [13:59:40]OFD Sender: No OFD packet to send [13:59:45]OFD Sender: No OFD packet to send [13:59:50]OFD Sender: No OFD packet to send [13:59:55]OFD Sender: No OFD packet to send [14:00:00]OFD Sender: No OFD packet to send [14:00:05]OFD Sender: No OFD packet to send [14:00:10]OFD Sender: No OFD packet to send [14:00:15]OFD Sender: No OFD packet to send [14:00:17]accept exits with 8 [14:00:17]New connection [14:00:17]New thread 3067317604 created [14:00:17]Thread 3067460964 joined [14:00:17]Waiting for new connection... [14:00:17] Sock 8.Parse request [14:00:17]Sock 8.Check first char [14:00:17]Sock 8.First char is OK [14:00:17]request: POST /json_proto HTTP/1.0 [14:00:17]Method: POST [14:00:17]URL: /json_proto [14:00:17]Method is POST - this is cgi request [14:00:17]url: /json_proto [14:00:17]query_string will be loaded in cgi processing [14:00:17]execute_cgi json_proto POST (null) [14:00:17]execute_cgi path=json_proto method=POST [14:00:17]POST find Content-Length [14:00:17]Host: 172.17.45.132:8080 [14:00:17]Content-Length: 1031 [14:00:17]Content-Type: application/json [14:00:17] [14:00:17]POST finish read [14:00:17]Found Content-Length = 1031 [14:00:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126368", "tax_sys" : 0, "items" : [ { "code": "4700000160198", "name": "\u0412\u043E\u0434\u0430 \u0411\u0430\u0439\u0442\u0438\u043A 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700007690018", "name": "\u041D\u0435\u0433\u0430\u0437 \u0432\u043E\u0434\u0430 Pamir 0,5 \u043B", "price" : 30.00, "quantity" : 1.000, "sum" : 30.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" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:00:17]execute_script... [14:00:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126368", "tax_sys" : 0, "items" : [ { "code": "4700000160198", "name": "\u0412\u043E\u0434\u0430 \u0411\u0430\u0439\u0442\u0438\u043A 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700007690018", "name": "\u041D\u0435\u0433\u0430\u0437 \u0432\u043E\u0434\u0430 Pamir 0,5 \u043B", "price" : 30.00, "quantity" : 1.000, "sum" : 30.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" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:00:17]POST & json_proto [14:00:17]process_json_proto [14:00:17]json parsed OK: [14:00:17]protocol is kg_v1.0 [14:00:17]action value=close_receipt [14:00:17]process_action close_receipt [14:00:17]cmd_close_receipt [14:00:17]MH_GetDate [14:00:17]Write to MH i2c: F0 00 00 0C 50 4B [14:00:17]Write i2c OK [14:00:17]MH_I2C_Read... [14:00:17]Read from MH i2c: F0 [14:00:17]MH_I2C_Read... [14:00:17]Read from MH i2c: F0 09 00 [14:00:17]MH_I2C_Read... [14:00:17]Read from MH i2c: F0 09 00 0C 50 00 F6 4E A6 66 E3 0B 90 66 88 [14:00:17]GetLastDocTimeStamp 1722175112 [14:00:17]current date 1722175222 [14:00:17]FM_GetShiftState [14:00:17]SAM_PROTO_GetShiftState [14:00:17]wFMCommunicate request_size=4 [14:00:17]MH_SAM_APDU [14:00:17]CAPDU: 80 13 01 00 [14:00:17]Write to MH i2c: E2 08 00 0D 50 80 13 01 00 00 00 00 00 DA [14:00:17]Write i2c OK [14:00:17]MH_I2C_Read... [14:00:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:17]Read from MH i2c: E2 [14:00:17]MH_I2C_Read... [14:00:17]Read from MH i2c: E2 0E 00 [14:00:17]MH_I2C_Read... [14:00:17]Read from MH i2c: E2 0E 00 0D 50 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 CE [14:00:17]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [14:00:17]wFMCommunicate OK [14:00:17]SAM_PROTO_GetShiftState done [14:00:17]FM_GetShiftState done [14:00:17]opened in 1722125648 [14:00:17]opened+sec_in_day 1722212048 [14:00:17]quantity*price = 4000 [14:00:17]sum+1 = 4001 [14:00:17]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700007690018 Негаз вода Pamir 0,5 л 1.000 * 30.00 = 30.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 70.00 НСП 1% : 0.61 НДС 12% : 7.44 Наличными: 0.00 Безнал.: 70.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 117 28.07.2024 14:00 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2066 ФПД: 272079093799251 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T140022&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2066&fm=272079093799251&tin=02508201610067®Number=0000000000189667&sum=7000 0 [14:00:18]StoreToDocumentArchive [14:00:18]shift 13 fd 2066 [14:00:18]save to /storage/0013/doc_00002066 [14:00:18]save last doc name /storage/0013/doc_00002066 to /storage/kkm_last_doc_name [14:00:18]save OK [14:00:18]Clear old archive folders... [14:00:18]ProcessDocumentItem done err = 0, tmpTLVsize=373 [14:00:18]tlvbuf is 020C3F50 [14:00:18]SAM_PROTO_ClearQueue [14:00:18]wFMCommunicate request_size=4 [14:00:18]MH_SAM_APDU [14:00:18]CAPDU: 80 09 00 00 [14:00:18]Write to MH i2c: E2 08 00 1A 50 80 09 00 00 00 00 00 00 DC [14:00:18]Write i2c OK [14:00:18]MH_I2C_Read... [14:00:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:00:18]Read from MH i2c: E2 [14:00:18]MH_I2C_Read... [14:00:18]Read from MH i2c: E2 03 00 [14:00:18]MH_I2C_Read... [14:00:18]Read from MH i2c: E2 03 00 1A 50 00 90 00 DE [14:00:18]RAPDU: 90 00 [14:00:18]wFMCommunicate OK [14:00:18]SAM_PROTO_ClearQueue done [14:00:18]KKMCreateOFDPacket [14:00:18]OFDProtocolAddRootSTLVToBuf [14:00:18]FM_MakeSignedData [14:00:18]FM_MakeSignedData [14:00:18]SAM_PROTO_SignData [14:00:18]wFMCommunicate request_size=4 [14:00:18]MH_SAM_APDU [14:00:18]CAPDU: 80 0D 01 02 [14:00:18]Write to MH i2c: E2 08 00 1B 50 80 0D 01 02 00 00 00 00 E4 [14:00:18]Write i2c OK [14:00:18]MH_I2C_Read... [14:00:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:00:18]Read from MH i2c: E2 [14:00:18]MH_I2C_Read... [14:00:18]Read from MH i2c: E2 03 00 [14:00:18]MH_I2C_Read... [14:00:18]Read from MH i2c: E2 03 00 1B 50 00 90 00 DF [14:00:18]RAPDU: 90 00 [14:00:18]wFMCommunicate OK [14:00:18]wFMCommunicate request_size=255 [14:00:18]MH_SAM_APDU [14:00:18]CAPDU: 80 0D 02 02 FA 03 00 75 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 39 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 D0 B8 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 37 36 39 30 30 31 38 06 04 20 00 D0 9D D0 B5 D0 B3 D0 B0 D0 B7 20 D0 B2 D0 BE D0 B4 D0 B0 20 50 61 6D 69 72 20 30 2C 35 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 00 00 00 00 00 EE 03 0F 00 F2 [14:00:18]Write to MH i2c: E2 02 01 1C 50 80 0D 02 02 FA 00 03 00 75 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 39 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 D0 B8 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 37 36 39 30 30 31 38 06 04 20 00 D0 9D D0 B5 D0 B3 D0 B0 D0 B7 20 D0 B2 D0 BE D0 B4 D0 B0 20 50 61 6D 69 72 20 30 2C 35 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 00 00 00 00 00 EE 03 0F 00 F2 00 00 2F [14:00:18]Write i2c OK [14:00:18]MH_I2C_Read... [14:00:18]Read from MH i2c: E2 [14:00:18]MH_I2C_Read... [14:00:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:18]Read from MH i2c: E2 03 00 [14:00:18]MH_I2C_Read... [14:00:18]Read from MH i2c: E2 03 00 1C 50 00 90 00 E0 [14:00:18]RAPDU: 90 00 [14:00:18]wFMCommunicate OK [14:00:18]wFMCommunicate request_size=132 [14:00:18]MH_SAM_APDU [14:00:18]CAPDU: 80 0D 02 02 7F 03 01 00 01 F3 03 06 00 E8 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 1B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 F6 4E A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 12 08 00 00 35 04 06 00 F7 74 59 BC 99 53 [14:00:18]Write to MH i2c: E2 87 00 1D 50 80 0D 02 02 7F 00 03 01 00 01 F3 03 06 00 E8 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 1B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 F6 4E A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 12 08 00 00 35 04 06 00 F7 74 59 BC 99 53 00 00 DE [14:00:18]Write i2c OK [14:00:18]MH_I2C_Read... [14:00:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:18]Read from MH i2c: E2 [14:00:18]MH_I2C_Read... [14:00:18]Read from MH i2c: E2 03 00 [14:00:18]MH_I2C_Read... [14:00:18]Read from MH i2c: E2 03 00 1D 50 00 90 00 E1 [14:00:18]RAPDU: 90 00 [14:00:18]wFMCommunicate OK [14:00:18]wFMCommunicate request_size=4 [14:00:18]MH_SAM_APDU [14:00:18]CAPDU: 80 0D 03 02 [14:00:18]Write to MH i2c: E2 08 00 1E 50 80 0D 03 02 00 00 00 00 E9 [14:00:18]Write i2c OK [14:00:18]MH_I2C_Read... [14:00:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:00:18]Read from MH i2c: E2 [14:00:18]MH_I2C_Read... [14:00:18]Read from MH i2c: E2 0B 00 [14:00:18]MH_I2C_Read... [14:00:18]Read from MH i2c: E2 0B 00 1E 50 00 8F B1 71 AD 97 56 BA B1 90 00 A0 [14:00:18]RAPDU: 8F B1 71 AD 97 56 BA B1 90 00 [14:00:18]wFMCommunicate OK [14:00:18]SAM_PROTO_SignData done [14:00:18]FM_MakeSignedData done [14:00:18]CreateOFDProtocolMessage [14:00:18]wFMCommunicate request_size=4 [14:00:18]MH_SAM_APDU [14:00:18]CAPDU: 80 11 00 00 [14:00:18]Write to MH i2c: E2 08 00 1F 50 80 11 00 00 00 00 00 00 E9 [14:00:18]Write i2c OK [14:00:18]MH_I2C_Read... [14:00:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:18]Read from MH i2c: E2 [14:00:18]MH_I2C_Read... [14:00:18]Read from MH i2c: E2 17 00 [14:00:18]MH_I2C_Read... [14:00:18]Read from MH i2c: E2 17 00 1F 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 39 [14:00:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [14:00:18]wFMCommunicate OK [14:00:18]CreateOFDProtocolMessage done [14:00:18]OFDSenderStorePacket 2066 [14:00:18]StoreOFDPacket docnum=2066 [14:00:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 89 01 00 00 0D 85 81 01 C9 7E 5A 03 01 00 03 00 75 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 39 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 D0 B8 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 37 36 39 30 30 31 38 06 04 20 00 D0 9D D0 B5 D0 B3 D0 B0 D0 B7 20 D0 B2 D0 BE D0 B4 D0 B0 20 50 61 6D 69 72 20 30 2C 35 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 1B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 F6 4E A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 12 08 00 00 35 04 06 00 F7 74 59 BC 99 53 8F B1 71 AD 97 56 BA B1 [14:00:18]CheckFolder [14:00:18]dirname=/storage/ofd_packets [14:00:18]CheckFolder done [14:00:18]ProducePacketName [14:00:18]name=ofd_packets/00002066 [14:00:18]NVStorageSaveData ofd_packets/00002066 [14:00:18]File name is /storage/ofd_packets/00002066 [14:00:18]Write 423 bytes [14:00:18]NVStorageSaveData done [14:00:18]OFDSenderStorePacket done [14:00:18]KKMCreateOFDPacket done [14:00:19]NVStorageSaveData kkm_last_timestamp [14:00:19]File name is /storage/kkm_last_timestamp [14:00:19]Write 4 bytes [14:00:19]NVStorageSaveData done [14:00:19]ExternCall_PrintAddStr [14:00:19]wPrintStart [14:00:19]Write to MH i2c: 01 00 00 20 50 70 [14:00:19]OFD Sender: Processing packet 2066 [packets to send 1, broken 0] [14:00:19]ProducePacketName [14:00:19]name=ofd_packets/00002066 [14:00:19]OFD Sender: To server: pG, [14:00:19]CommunicateWithHost lk.salyk.kg:30040 [14:00:19]ConnectInit lk.salyk.kg [14:00:19]Write i2c OK [14:00:19]MH_I2C_Read... [14:00:19]Read from MH i2c: 01 [14:00:19]MH_I2C_Read... [14:00:19]Read from MH i2c: 01 07 00 [14:00:19]MH_I2C_Read... [14:00:19]Read from MH i2c: 01 07 00 20 50 00 00 00 00 00 FF 0F 85 [14:00:19]RasterBufferAndPrint [14:00:19]line Счет N : (3)126368 [14:00:19]line ИНН: 02508201610067 [14:00:19]line Контрольно-Кассовый Чек [14:00:19]line ПРОДАЖА [14:00:19]line Товар: 4700000160198 [14:00:19]line Вода Байтик 0,5л [14:00:19]line 1.000 * 40.00 [14:00:19]line = 40.00 [14:00:19]line НДС 12% НСП 1% [14:00:19]line > о реализуемом товаре [14:00:19]line Товар: 4700007690018 [14:00:19]line Негаз вода Pamir 0,5 л [14:00:19]line 1.000 * 30.00 [14:00:19]line = 30.00 [14:00:19]line НДС 12% НСП 1% [14:00:19]line > о реализуемом товаре [14:00:19]line ИТОГО: 70.00 [14:00:19]line НСП 1% : 0.61 [14:00:19]line НДС 12% : 7.44 [14:00:19]line Наличными: 0.00 [14:00:19]line Безнал.: 70.00 [14:00:19]line Место: АЗС № 127 "Партнер Нефть" [14:00:19]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [14:00:19]line СНО: Общий режим [14:00:19]line Чек 117 28.07.2024 14:00 [14:00:19]line Смена: 13 ФФД: 1.0 [14:00:19]line ЗНМ: 0300000161 [14:00:19]line РНМ: 0000000000189667 [14:00:19]line Версия ККМ: v1.0 [14:00:19]line Платежная система: O! деньги [14:00:19]line ФМ: 0000000002094248 [14:00:19]line ФД: 2066 [14:00:19]line ФПД: 272079093799251 [14:00:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T140022&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2066&fm=272079093799251&tin=02508201610067®Number=0000000000189667&sum=7000 [14:00:19]line 0 [14:00:19]written 0, free lines is 4095 [14:00:19]Connected sock=10 [14:00:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 89 01 00 00 0D 85 81 01 C9 7E 5A 03 01 00 03 00 75 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 39 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 D0 B8 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 37 36 39 30 30 31 38 06 04 20 00 D0 9D D0 B5 D0 B3 D0 B0 D0 B7 20 D0 B2 D0 BE D0 B4 D0 B0 20 50 61 6D 69 72 20 30 2C 35 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 1B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 F6 4E A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 12 08 00 00 35 04 06 00 F7 74 59 BC 99 53 8F B1 71 AD 97 56 BA B1 [14:00:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 10 B7 47 00 3F B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 12 08 00 00 F4 03 04 00 66 FA A5 66 B6 04 01 00 00 85 24 1C 8F 2F 6E FF F6 [14:00:19]CommunicateWithHost err = 0 [14:00:19]CheckOFDResponse [14:00:19]1017 (14) - 77093643461234 [14:00:19]1041 (16) - 0000000002094248 [14:00:19]1040 (4) - 2066 [14:00:19]1012 (4) - 28.07.2024 07:59 [14:00:19]1206 (1) - 0 [14:00:19]OFD Sender: Remove packet 2066 [14:00:19]ProducePacketName [14:00:19]name=ofd_packets/00002066 [14:00:19]NVStorageDeleteData [14:00:19]Write to MH i2c: 01 00 00 50 50 A0 [14:00:19]Write i2c OK [14:00:19]MH_I2C_Read... [14:00:19]Read from MH i2c: 01 [14:00:19]MH_I2C_Read... [14:00:19]Read from MH i2c: 01 07 00 [14:00:19]MH_I2C_Read... [14:00:19]Read from MH i2c: 01 07 00 50 50 00 00 00 00 00 A9 0C 5C [14:00:19]RasterBufferAndPrint [14:00:19]line [14:00:19]line [14:00:19]line [14:00:19]line [14:00:19]line [14:00:19]written 0, free lines is 3250 [14:00:19]MH_Cut [14:00:19]Write to MH i2c: D1 01 00 57 50 01 79 [14:00:19]Write i2c OK [14:00:19]MH_I2C_Read... [14:00:19]Read from MH i2c: D1 [14:00:19]MH_I2C_Read... [14:00:19]Read from MH i2c: D1 01 00 [14:00:19]MH_I2C_Read... [14:00:19]Read from MH i2c: D1 01 00 57 50 00 78 [14:00:19]Write to MH i2c: 01 00 00 58 50 A8 [14:00:19]Write i2c OK [14:00:19]MH_I2C_Read... [14:00:19]OFD Sender: No OFD packet to send [14:00:20]*** Cut start [14:00:20]*** Partial cut [14:00:20]*** CUTSNS_PIN = 1 [14:00:20]*** CUTSNS_PIN = 0 [14:00:20]*** Brake cut motor [14:00:20]Read from MH i2c: 01 [14:00:20]MH_I2C_Read... [14:00:20]*** Stop cut motor [14:00:21]*** Cut end [14:00:21]Read from MH i2c: 01 07 00 [14:00:21]MH_I2C_Read... [14:00:21]Read from MH i2c: 01 07 00 58 50 00 00 00 00 00 FF 0F BD [14:00:21]process_action close_receipt done [14:00:21]requested_data is exist [14:00:21]produce_requested_data [14:00:21]requested_item fm.sn is exist - process it [14:00:21]wFMCommunicate request_size=4 [14:00:21]MH_SAM_APDU [14:00:21]CAPDU: 80 11 00 00 [14:00:21]Write to MH i2c: E2 08 00 59 50 80 11 00 00 00 00 00 00 23 [14:00:21]Write i2c OK [14:00:21]MH_I2C_Read... [14:00:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:21]Read from MH i2c: E2 [14:00:21]MH_I2C_Read... [14:00:21]Read from MH i2c: E2 17 00 [14:00:21]MH_I2C_Read... [14:00:21]Read from MH i2c: E2 17 00 59 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 73 [14:00:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [14:00:21]wFMCommunicate OK [14:00:21]requested_item fd.num is exist - process it [14:00:21]SAM_PROTO_GetFieldsCounters [14:00:21]wFMCommunicate request_size=4 [14:00:21]MH_SAM_APDU [14:00:21]CAPDU: 80 13 00 00 [14:00:21]Write to MH i2c: E2 08 00 5A 50 80 13 00 00 00 00 00 00 26 [14:00:21]Write i2c OK [14:00:21]MH_I2C_Read... [14:00:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:00:21]Read from MH i2c: E2 [14:00:21]MH_I2C_Read... [14:00:21]Read from MH i2c: E2 62 00 [14:00:21]MH_I2C_Read... [14:00:21]Read from MH i2c: E2 62 00 5A 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 12 08 00 00 0E 04 04 00 0D 00 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 D6 [14:00:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 12 08 00 00 0E 04 04 00 0D 00 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 [14:00:21]wFMCommunicate OK [14:00:21]SAM_PROTO_GetFieldsCounters done [14:00:21]requested_item shift.num is exist - process it [14:00:21]requested_item shift.opened is exist - process it [14:00:21]req_shift_opened [14:00:21]FM_GetShiftState [14:00:21]SAM_PROTO_GetShiftState [14:00:21]wFMCommunicate request_size=4 [14:00:21]MH_SAM_APDU [14:00:21]CAPDU: 80 13 01 00 [14:00:21]Write to MH i2c: E2 08 00 5B 50 80 13 01 00 00 00 00 00 28 [14:00:21]Write i2c OK [14:00:21]MH_I2C_Read... [14:00:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:21]Read from MH i2c: E2 [14:00:21]MH_I2C_Read... [14:00:21]Read from MH i2c: E2 0E 00 [14:00:21]MH_I2C_Read... [14:00:21]Read from MH i2c: E2 0E 00 5B 50 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 1C [14:00:21]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [14:00:21]wFMCommunicate OK [14:00:21]SAM_PROTO_GetShiftState done [14:00:21]FM_GetShiftState done [14:00:21]req_shift_opened done [14:00:21]requested_item shift.open_date is exist - process it [14:00:21]req_shift_open_date [14:00:21]req_shift_open_date done [14:00:21]produce_requested_data done [14:00:21]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2066,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [14:00:21]process_action_free close_receipt [14:00:21]json_value_free [14:00:21]json_value_free done [14:00:21]process_json_proto returns [14:00:21]Send response to host [14:00:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2066,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [14:00:21]free response buf [14:00:21]execute_script done [14:00:21]execute_script returns [14:00:21]free content buf [14:00:21]Sock 8.Close socket [14:00:21]Sock 8.Thread stoped [14:00:24]OFD Sender: No OFD packet to send [14:00:29]OFD Sender: No OFD packet to send [14:00:34]OFD Sender: No OFD packet to send [14:00:39]OFD Sender: No OFD packet to send [14:00:44]OFD Sender: No OFD packet to send [14:00:50]OFD Sender: No OFD packet to send [14:00:55]OFD Sender: No OFD packet to send [14:01:00]OFD Sender: No OFD packet to send [14:01:05]OFD Sender: No OFD packet to send [14:01:10]OFD Sender: No OFD packet to send [14:01:15]OFD Sender: No OFD packet to send [14:01:20]OFD Sender: No OFD packet to send [14:01:25]OFD Sender: No OFD packet to send [14:01:30]OFD Sender: No OFD packet to send [14:01:35]OFD Sender: No OFD packet to send [14:01:40]OFD Sender: No OFD packet to send [14:01:45]OFD Sender: No OFD packet to send [14:01:50]OFD Sender: No OFD packet to send [14:01:55]OFD Sender: No OFD packet to send [14:02:00]OFD Sender: No OFD packet to send [14:02:05]OFD Sender: No OFD packet to send [14:02:10]OFD Sender: No OFD packet to send [14:02:15]OFD Sender: No OFD packet to send [14:02:20]OFD Sender: No OFD packet to send [14:02:25]OFD Sender: No OFD packet to send [14:02:30]OFD Sender: No OFD packet to send [14:02:35]OFD Sender: No OFD packet to send [14:02:40]OFD Sender: No OFD packet to send [14:02:45]OFD Sender: No OFD packet to send [14:02:50]OFD Sender: No OFD packet to send [14:02:55]OFD Sender: No OFD packet to send [14:03:00]OFD Sender: No OFD packet to send [14:03:05]OFD Sender: No OFD packet to send [14:03:10]OFD Sender: No OFD packet to send [14:03:15]OFD Sender: No OFD packet to send [14:03:20]OFD Sender: No OFD packet to send [14:03:25]OFD Sender: No OFD packet to send [14:03:30]OFD Sender: No OFD packet to send [14:03:35]OFD Sender: No OFD packet to send [14:03:40]OFD Sender: No OFD packet to send [14:03:45]OFD Sender: No OFD packet to send [14:03:50]OFD Sender: No OFD packet to send [14:03:55]OFD Sender: No OFD packet to send [14:04:00]OFD Sender: No OFD packet to send [14:04:05]OFD Sender: No OFD packet to send [14:04:10]OFD Sender: No OFD packet to send [14:04:15]OFD Sender: No OFD packet to send [14:04:20]OFD Sender: No OFD packet to send [14:04:25]OFD Sender: No OFD packet to send [14:04:30]OFD Sender: No OFD packet to send [14:04:35]OFD Sender: No OFD packet to send [14:04:40]OFD Sender: No OFD packet to send [14:04:45]OFD Sender: No OFD packet to send [14:04:50]OFD Sender: No OFD packet to send [14:04:55]OFD Sender: No OFD packet to send [14:05:00]OFD Sender: No OFD packet to send [14:05:05]OFD Sender: No OFD packet to send [14:05:10]OFD Sender: No OFD packet to send [14:05:15]OFD Sender: No OFD packet to send [14:05:20]OFD Sender: No OFD packet to send [14:05:25]OFD Sender: No OFD packet to send [14:05:30]OFD Sender: No OFD packet to send [14:05:35]OFD Sender: No OFD packet to send [14:05:40]OFD Sender: No OFD packet to send [14:05:45]OFD Sender: No OFD packet to send [14:05:50]OFD Sender: No OFD packet to send [14:05:55]OFD Sender: No OFD packet to send [14:06:00]OFD Sender: No OFD packet to send [14:06:05]OFD Sender: No OFD packet to send [14:06:10]OFD Sender: No OFD packet to send [14:06:15]OFD Sender: No OFD packet to send [14:06:20]OFD Sender: No OFD packet to send [14:06:25]OFD Sender: No OFD packet to send [14:06:30]OFD Sender: No OFD packet to send [14:06:35]OFD Sender: No OFD packet to send [14:06:40]OFD Sender: No OFD packet to send [14:06:45]OFD Sender: No OFD packet to send [14:06:50]OFD Sender: No OFD packet to send [14:06:55]OFD Sender: No OFD packet to send [14:07:00]OFD Sender: No OFD packet to send [14:07:05]OFD Sender: No OFD packet to send [14:07:10]OFD Sender: No OFD packet to send [14:07:15]OFD Sender: No OFD packet to send [14:07:20]OFD Sender: No OFD packet to send [14:07:25]OFD Sender: No OFD packet to send [14:07:30]OFD Sender: No OFD packet to send [14:07:35]OFD Sender: No OFD packet to send [14:07:40]OFD Sender: No OFD packet to send [14:07:45]OFD Sender: No OFD packet to send [14:07:50]OFD Sender: No OFD packet to send [14:07:55]OFD Sender: No OFD packet to send [14:07:57]accept exits with 9 [14:07:57]New connection [14:07:57]New thread 3067460964 created [14:07:57]Thread 3067317604 joined [14:07:57]Waiting for new connection... [14:07:57] Sock 9.Parse request [14:07:57]Sock 9.Check first char [14:07:57]Sock 9.First char is OK [14:07:57]request: POST /json_proto HTTP/1.0 [14:07:57]Method: POST [14:07:57]URL: /json_proto [14:07:57]Method is POST - this is cgi request [14:07:57]url: /json_proto [14:07:57]query_string will be loaded in cgi processing [14:07:57]execute_cgi json_proto POST (null) [14:07:57]execute_cgi path=json_proto method=POST [14:07:57]POST find Content-Length [14:07:57]Host: 172.17.45.132:8080 [14:07:57]Content-Length: 894 [14:07:57]Content-Type: application/json [14:07:57] [14:07:57]POST finish read [14:07:57]Found Content-Length = 894 [14:07:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126369", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.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" ] } } [14:07:57]execute_script... [14:07:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126369", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.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" ] } } [14:07:57]POST & json_proto [14:07:57]process_json_proto [14:07:57]json parsed OK: [14:07:57]protocol is kg_v1.0 [14:07:57]action value=close_receipt [14:07:57]process_action close_receipt [14:07:57]cmd_close_receipt [14:07:57]MH_GetDate [14:07:57]Write to MH i2c: F0 00 00 5C 50 9B [14:07:57]Write i2c OK [14:07:57]MH_I2C_Read... [14:07:57]Read from MH i2c: F0 [14:07:57]MH_I2C_Read... [14:07:57]Read from MH i2c: F0 09 00 [14:07:57]MH_I2C_Read... [14:07:57]Read from MH i2c: F0 09 00 5C 50 00 C3 50 A6 66 E3 0B 90 66 A7 [14:07:57]GetLastDocTimeStamp 1722175222 [14:07:57]current date 1722175683 [14:07:57]FM_GetShiftState [14:07:57]SAM_PROTO_GetShiftState [14:07:57]wFMCommunicate request_size=4 [14:07:57]MH_SAM_APDU [14:07:57]CAPDU: 80 13 01 00 [14:07:57]Write to MH i2c: E2 08 00 5D 50 80 13 01 00 00 00 00 00 2A [14:07:57]Write i2c OK [14:07:57]MH_I2C_Read... [14:07:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:07:57]Read from MH i2c: E2 [14:07:57]MH_I2C_Read... [14:07:57]Read from MH i2c: E2 0E 00 [14:07:57]MH_I2C_Read... [14:07:57]Read from MH i2c: E2 0E 00 5D 50 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 1E [14:07:57]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [14:07:57]wFMCommunicate OK [14:07:57]SAM_PROTO_GetShiftState done [14:07:57]FM_GetShiftState done [14:07:57]opened in 1722125648 [14:07:57]opened+sec_in_day 1722212048 [14:07:57]quantity*price = 5000 [14:07:57]sum+1 = 5001 [14:07:57]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160204 Вода Легенда 1,5л 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 118 28.07.2024 14:08 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2067 ФПД: 257284601020533 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T140803&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2067&fm=257284601020533&tin=02508201610067®Number=0000000000189667&sum=11000 0 [14:07:59]StoreToDocumentArchive [14:07:59]shift 13 fd 2067 [14:07:59]save to /storage/0013/doc_00002067 [14:07:59]save last doc name /storage/0013/doc_00002067 to /storage/kkm_last_doc_name [14:07:59]save OK [14:07:59]Clear old archive folders... [14:07:59]ProcessDocumentItem done err = 0, tmpTLVsize=376 [14:07:59]tlvbuf is 02031AA0 [14:07:59]SAM_PROTO_ClearQueue [14:07:59]wFMCommunicate request_size=4 [14:07:59]MH_SAM_APDU [14:07:59]CAPDU: 80 09 00 00 [14:07:59]Write to MH i2c: E2 08 00 6A 50 80 09 00 00 00 00 00 00 2C [14:07:59]Write i2c OK [14:07:59]MH_I2C_Read... [14:07:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:07:59]Read from MH i2c: E2 [14:07:59]MH_I2C_Read... [14:07:59]Read from MH i2c: E2 03 00 [14:07:59]MH_I2C_Read... [14:07:59]Read from MH i2c: E2 03 00 6A 50 00 90 00 2E [14:07:59]RAPDU: 90 00 [14:07:59]wFMCommunicate OK [14:07:59]SAM_PROTO_ClearQueue done [14:07:59]KKMCreateOFDPacket [14:07:59]OFDProtocolAddRootSTLVToBuf [14:07:59]FM_MakeSignedData [14:07:59]FM_MakeSignedData [14:07:59]SAM_PROTO_SignData [14:07:59]wFMCommunicate request_size=4 [14:07:59]MH_SAM_APDU [14:07:59]CAPDU: 80 0D 01 02 [14:07:59]Write to MH i2c: E2 08 00 6B 50 80 0D 01 02 00 00 00 00 34 [14:07:59]Write i2c OK [14:07:59]MH_I2C_Read... [14:07:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:07:59]Read from MH i2c: E2 [14:07:59]MH_I2C_Read... [14:07:59]Read from MH i2c: E2 03 00 [14:07:59]MH_I2C_Read... [14:07:59]Read from MH i2c: E2 03 00 6B 50 00 90 00 2F [14:07:59]RAPDU: 90 00 [14:07:59]wFMCommunicate OK [14:07:59]wFMCommunicate request_size=255 [14:07:59]MH_SAM_APDU [14:07:59]CAPDU: 80 0D 02 02 FA 03 00 78 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 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 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 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 [14:07:59]Write to MH i2c: E2 02 01 6C 50 80 0D 02 02 FA 00 03 00 78 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 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 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 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 00 00 15 [14:07:59]Write i2c OK [14:07:59]MH_I2C_Read... [14:07:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:07:59]Read from MH i2c: E2 [14:07:59]MH_I2C_Read... [14:07:59]Read from MH i2c: E2 03 00 [14:07:59]MH_I2C_Read... [14:07:59]Read from MH i2c: E2 03 00 6C 50 00 90 00 30 [14:07:59]RAPDU: 90 00 [14:07:59]wFMCommunicate OK [14:07:59]wFMCommunicate request_size=135 [14:07:59]MH_SAM_APDU [14:07:59]CAPDU: 80 0D 02 02 82 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 76 00 00 00 F4 03 04 00 C3 50 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 13 08 00 00 35 04 06 00 E9 FF BD 40 00 75 [14:07:59]Write to MH i2c: E2 8A 00 6D 50 80 0D 02 02 82 00 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 76 00 00 00 F4 03 04 00 C3 50 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 13 08 00 00 35 04 06 00 E9 FF BD 40 00 75 00 00 4D [14:07:59]Write i2c OK [14:07:59]MH_I2C_Read... [14:07:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:07:59]Read from MH i2c: E2 [14:07:59]MH_I2C_Read... [14:07:59]Read from MH i2c: E2 03 00 [14:07:59]MH_I2C_Read... [14:07:59]Read from MH i2c: E2 03 00 6D 50 00 90 00 31 [14:07:59]RAPDU: 90 00 [14:07:59]wFMCommunicate OK [14:07:59]wFMCommunicate request_size=4 [14:07:59]MH_SAM_APDU [14:07:59]CAPDU: 80 0D 03 02 [14:07:59]Write to MH i2c: E2 08 00 6E 50 80 0D 03 02 00 00 00 00 39 [14:07:59]Write i2c OK [14:07:59]MH_I2C_Read... [14:07:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:07:59]Read from MH i2c: E2 [14:07:59]MH_I2C_Read... [14:07:59]Read from MH i2c: E2 0B 00 [14:07:59]MH_I2C_Read... [14:07:59]Read from MH i2c: E2 0B 00 6E 50 00 61 0C 06 B6 01 3A CE B2 90 00 1E [14:07:59]RAPDU: 61 0C 06 B6 01 3A CE B2 90 00 [14:07:59]wFMCommunicate OK [14:07:59]SAM_PROTO_SignData done [14:07:59]FM_MakeSignedData done [14:07:59]CreateOFDProtocolMessage [14:07:59]wFMCommunicate request_size=4 [14:07:59]MH_SAM_APDU [14:07:59]CAPDU: 80 11 00 00 [14:07:59]Write to MH i2c: E2 08 00 6F 50 80 11 00 00 00 00 00 00 39 [14:07:59]Write i2c OK [14:07:59]MH_I2C_Read... [14:07:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:07:59]Read from MH i2c: E2 [14:07:59]MH_I2C_Read... [14:07:59]Read from MH i2c: E2 17 00 [14:07:59]MH_I2C_Read... [14:07:59]Read from MH i2c: E2 17 00 6F 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 89 [14:07:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [14:07:59]wFMCommunicate OK [14:07:59]CreateOFDProtocolMessage done [14:07:59]OFDSenderStorePacket 2067 [14:07:59]StoreOFDPacket docnum=2067 [14:07:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 8C 01 00 00 B9 EC 84 01 73 B8 5A 03 01 00 03 00 78 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 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 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 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 76 00 00 00 F4 03 04 00 C3 50 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 13 08 00 00 35 04 06 00 E9 FF BD 40 00 75 61 0C 06 B6 01 3A CE B2 [14:07:59]CheckFolder [14:07:59]dirname=/storage/ofd_packets [14:07:59]CheckFolder done [14:07:59]ProducePacketName [14:07:59]name=ofd_packets/00002067 [14:07:59]NVStorageSaveData ofd_packets/00002067 [14:07:59]File name is /storage/ofd_packets/00002067 [14:07:59]Write 426 bytes [14:07:59]NVStorageSaveData done [14:07:59]OFDSenderStorePacket done [14:07:59]KKMCreateOFDPacket done [14:07:59]NVStorageSaveData kkm_last_timestamp [14:07:59]File name is /storage/kkm_last_timestamp [14:07:59]Write 4 bytes [14:07:59]NVStorageSaveData done [14:07:59]ExternCall_PrintAddStr [14:07:59]wPrintStart [14:07:59]Write to MH i2c: 01 00 00 70 50 C0 [14:07:59]Write i2c OK [14:07:59]MH_I2C_Read... [14:07:59]Read from MH i2c: 01 [14:07:59]MH_I2C_Read... [14:07:59]Read from MH i2c: 01 07 00 [14:07:59]MH_I2C_Read... [14:07:59]Read from MH i2c: 01 07 00 70 50 00 00 00 00 00 FF 0F D5 [14:07:59]RasterBufferAndPrint [14:07:59]line Счет N : (3)126369 [14:07:59]line ИНН: 02508201610067 [14:07:59]line Контрольно-Кассовый Чек [14:07:59]line ПРОДАЖА [14:08:00]line Товар: 5449000005489 [14:08:00]line Вода Бонаква 1л б/г [14:08:00]line 1.000 * 50.00 [14:08:00]line = 50.00 [14:08:00]line НДС 12% НСП 1% [14:08:00]line > о реализуемом товаре [14:08:00]line Товар: 4700000160204 [14:08:00]line Вода Легенда 1,5л [14:08:00]line 1.000 * 60.00 [14:08:00]line = 60.00 [14:08:00]line НДС 12% НСП 1% [14:08:00]line > о реализуемом товаре [14:08:00]line ИТОГО: 110.00 [14:08:00]line НСП 1% : 0.97 [14:08:00]line НДС 12% : 11.68 [14:08:00]line Наличными: 110.00 [14:08:00]line Безнал.: 0.00 [14:08:00]line Место: АЗС № 127 "Партнер Нефть" [14:08:00]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [14:08:00]line СНО: Общий режим [14:08:00]line Чек 118 28.07.2024 14:08 [14:08:00]line Смена: 13 ФФД: 1.0 [14:08:00]line ЗНМ: 0300000161 [14:08:00]line РНМ: 0000000000189667 [14:08:00]line Версия ККМ: v1.0 [14:08:00]line ФМ: 0000000002094248 [14:08:00]line ФД: 2067 [14:08:00]line ФПД: 257284601020533 [14:08:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T140803&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2067&fm=257284601020533&tin=02508201610067®Number=0000000000189667&sum=11000 [14:08:00]line 0 [14:08:00]OFD Sender: Processing packet 2067 [packets to send 1, broken 0] [14:08:00]ProducePacketName [14:08:00]name=ofd_packets/00002067 [14:08:00]OFD Sender: To server: pG, [14:08:00]CommunicateWithHost lk.salyk.kg:30040 [14:08:00]ConnectInit lk.salyk.kg [14:08:00]written 0, free lines is 4095 [14:08:00]Connected sock=10 [14:08:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 8C 01 00 00 B9 EC 84 01 73 B8 5A 03 01 00 03 00 78 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 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 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 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 76 00 00 00 F4 03 04 00 C3 50 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 13 08 00 00 35 04 06 00 E9 FF BD 40 00 75 61 0C 06 B6 01 3A CE B2 [14:08:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 03 AD 47 00 DE 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 13 08 00 00 F4 03 04 00 33 FC A5 66 B6 04 01 00 00 11 3A 33 32 5A 47 D2 45 [14:08:00]CommunicateWithHost err = 0 [14:08:00]CheckOFDResponse [14:08:00]1017 (14) - 77093643461234 [14:08:00]1041 (16) - 0000000002094248 [14:08:00]1040 (4) - 2067 [14:08:00]1012 (4) - 28.07.2024 08:07 [14:08:00]1206 (1) - 0 [14:08:00]OFD Sender: Remove packet 2067 [14:08:00]ProducePacketName [14:08:00]name=ofd_packets/00002067 [14:08:00]NVStorageDeleteData [14:08:00]Write to MH i2c: 01 00 00 9E 50 EE [14:08:00]Write i2c OK [14:08:00]MH_I2C_Read... [14:08:00]Read from MH i2c: 01 [14:08:00]MH_I2C_Read... [14:08:00]Read from MH i2c: 01 07 00 [14:08:00]MH_I2C_Read... [14:08:00]Read from MH i2c: 01 07 00 9E 50 00 00 00 00 00 D5 0C D6 [14:08:00]RasterBufferAndPrint [14:08:00]line [14:08:00]line [14:08:00]line [14:08:00]line [14:08:00]line [14:08:00]written 0, free lines is 3295 [14:08:00]MH_Cut [14:08:00]Write to MH i2c: D1 01 00 A5 50 01 C7 [14:08:00]Write i2c OK [14:08:00]MH_I2C_Read... [14:08:00]Read from MH i2c: D1 [14:08:00]MH_I2C_Read... [14:08:00]Read from MH i2c: D1 01 00 [14:08:00]MH_I2C_Read... [14:08:00]Read from MH i2c: D1 01 00 A5 50 00 C6 [14:08:00]Write to MH i2c: 01 00 00 A6 50 F6 [14:08:00]Write i2c OK [14:08:00]MH_I2C_Read... [14:08:00]OFD Sender: No OFD packet to send [14:08:01]*** Cut start [14:08:01]*** Partial cut [14:08:01]*** CUTSNS_PIN = 1 [14:08:01]*** CUTSNS_PIN = 0 [14:08:01]*** Brake cut motor [14:08:01]Read from MH i2c: 01 [14:08:01]MH_I2C_Read... [14:08:01]*** Stop cut motor [14:08:01]*** Cut end [14:08:01]Read from MH i2c: 01 07 00 [14:08:01]MH_I2C_Read... [14:08:01]Read from MH i2c: 01 07 00 A6 50 00 00 00 00 00 FF 0F 0B [14:08:01]process_action close_receipt done [14:08:01]requested_data is exist [14:08:01]produce_requested_data [14:08:01]requested_item fm.sn is exist - process it [14:08:01]wFMCommunicate request_size=4 [14:08:01]MH_SAM_APDU [14:08:01]CAPDU: 80 11 00 00 [14:08:01]Write to MH i2c: E2 08 00 A7 50 80 11 00 00 00 00 00 00 71 [14:08:01]Write i2c OK [14:08:01]MH_I2C_Read... [14:08:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:08:01]Read from MH i2c: E2 [14:08:01]MH_I2C_Read... [14:08:01]Read from MH i2c: E2 17 00 [14:08:01]MH_I2C_Read... [14:08:01]Read from MH i2c: E2 17 00 A7 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 C1 [14:08:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [14:08:01]wFMCommunicate OK [14:08:01]requested_item fd.num is exist - process it [14:08:01]SAM_PROTO_GetFieldsCounters [14:08:01]wFMCommunicate request_size=4 [14:08:01]MH_SAM_APDU [14:08:01]CAPDU: 80 13 00 00 [14:08:01]Write to MH i2c: E2 08 00 A8 50 80 13 00 00 00 00 00 00 74 [14:08:01]Write i2c OK [14:08:01]MH_I2C_Read... [14:08:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:08:02]Read from MH i2c: E2 [14:08:02]MH_I2C_Read... [14:08:02]Read from MH i2c: E2 62 00 [14:08:02]MH_I2C_Read... [14:08:02]Read from MH i2c: E2 62 00 A8 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 13 08 00 00 0E 04 04 00 0D 00 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 28 [14:08:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 13 08 00 00 0E 04 04 00 0D 00 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 [14:08:02]wFMCommunicate OK [14:08:02]SAM_PROTO_GetFieldsCounters done [14:08:02]requested_item shift.num is exist - process it [14:08:02]requested_item shift.opened is exist - process it [14:08:02]req_shift_opened [14:08:02]FM_GetShiftState [14:08:02]SAM_PROTO_GetShiftState [14:08:02]wFMCommunicate request_size=4 [14:08:02]MH_SAM_APDU [14:08:02]CAPDU: 80 13 01 00 [14:08:02]Write to MH i2c: E2 08 00 A9 50 80 13 01 00 00 00 00 00 76 [14:08:02]Write i2c OK [14:08:02]MH_I2C_Read... [14:08:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:08:02]Read from MH i2c: E2 [14:08:02]MH_I2C_Read... [14:08:02]Read from MH i2c: E2 0E 00 [14:08:02]MH_I2C_Read... [14:08:02]Read from MH i2c: E2 0E 00 A9 50 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 6A [14:08:02]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [14:08:02]wFMCommunicate OK [14:08:02]SAM_PROTO_GetShiftState done [14:08:02]FM_GetShiftState done [14:08:02]req_shift_opened done [14:08:02]requested_item shift.open_date is exist - process it [14:08:02]req_shift_open_date [14:08:02]req_shift_open_date done [14:08:02]produce_requested_data done [14:08:02]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2067,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [14:08:02]process_action_free close_receipt [14:08:02]json_value_free [14:08:02]json_value_free done [14:08:02]process_json_proto returns [14:08:02]Send response to host [14:08:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2067,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [14:08:02]free response buf [14:08:02]execute_script done [14:08:02]execute_script returns [14:08:02]free content buf [14:08:02]Sock 9.Close socket [14:08:02]Sock 9.Thread stoped [14:08:05]OFD Sender: No OFD packet to send [14:08:10]OFD Sender: No OFD packet to send [14:08:15]OFD Sender: No OFD packet to send [14:08:20]OFD Sender: No OFD packet to send [14:08:25]OFD Sender: No OFD packet to send [14:08:30]OFD Sender: No OFD packet to send [14:08:35]OFD Sender: No OFD packet to send [14:08:40]OFD Sender: No OFD packet to send [14:08:45]OFD Sender: No OFD packet to send [14:08:50]OFD Sender: No OFD packet to send [14:08:55]OFD Sender: No OFD packet to send [14:09:00]OFD Sender: No OFD packet to send [14:09:05]OFD Sender: No OFD packet to send [14:09:10]OFD Sender: No OFD packet to send [14:09:15]OFD Sender: No OFD packet to send [14:09:20]OFD Sender: No OFD packet to send [14:09:25]OFD Sender: No OFD packet to send [14:09:30]OFD Sender: No OFD packet to send [14:09:35]OFD Sender: No OFD packet to send [14:09:41]OFD Sender: No OFD packet to send [14:09:46]OFD Sender: No OFD packet to send [14:09:51]OFD Sender: No OFD packet to send [14:09:56]OFD Sender: No OFD packet to send [14:10:01]OFD Sender: No OFD packet to send [14:10:06]OFD Sender: No OFD packet to send [14:10:11]OFD Sender: No OFD packet to send [14:10:16]OFD Sender: No OFD packet to send [14:10:21]OFD Sender: No OFD packet to send [14:10:26]OFD Sender: No OFD packet to send [14:10:31]OFD Sender: No OFD packet to send [14:10:36]OFD Sender: No OFD packet to send [14:10:41]OFD Sender: No OFD packet to send [14:10:46]OFD Sender: No OFD packet to send [14:10:51]OFD Sender: No OFD packet to send [14:10:56]OFD Sender: No OFD packet to send [14:11:01]OFD Sender: No OFD packet to send [14:11:06]OFD Sender: No OFD packet to send [14:11:11]OFD Sender: No OFD packet to send [14:11:16]OFD Sender: No OFD packet to send [14:11:21]OFD Sender: No OFD packet to send [14:11:26]OFD Sender: No OFD packet to send [14:11:31]OFD Sender: No OFD packet to send [14:11:36]OFD Sender: No OFD packet to send [14:11:41]OFD Sender: No OFD packet to send [14:11:46]OFD Sender: No OFD packet to send [14:11:51]OFD Sender: No OFD packet to send [14:11:56]OFD Sender: No OFD packet to send [14:12:01]OFD Sender: No OFD packet to send [14:12:06]OFD Sender: No OFD packet to send [14:12:11]OFD Sender: No OFD packet to send [14:12:16]OFD Sender: No OFD packet to send [14:12:21]OFD Sender: No OFD packet to send [14:12:26]OFD Sender: No OFD packet to send [14:12:31]OFD Sender: No OFD packet to send [14:12:36]OFD Sender: No OFD packet to send [14:12:41]OFD Sender: No OFD packet to send [14:12:46]OFD Sender: No OFD packet to send [14:12:51]OFD Sender: No OFD packet to send [14:12:56]OFD Sender: No OFD packet to send [14:13:01]OFD Sender: No OFD packet to send [14:13:06]OFD Sender: No OFD packet to send [14:13:11]OFD Sender: No OFD packet to send [14:13:16]OFD Sender: No OFD packet to send [14:13:21]OFD Sender: No OFD packet to send [14:13:26]OFD Sender: No OFD packet to send [14:13:31]OFD Sender: No OFD packet to send [14:13:36]OFD Sender: No OFD packet to send [14:13:41]OFD Sender: No OFD packet to send [14:13:46]OFD Sender: No OFD packet to send [14:13:51]OFD Sender: No OFD packet to send [14:13:56]OFD Sender: No OFD packet to send [14:14:01]OFD Sender: No OFD packet to send [14:14:06]OFD Sender: No OFD packet to send [14:14:11]OFD Sender: No OFD packet to send [14:14:16]OFD Sender: No OFD packet to send [14:14:21]OFD Sender: No OFD packet to send [14:14:26]OFD Sender: No OFD packet to send [14:14:31]OFD Sender: No OFD packet to send [14:14:36]OFD Sender: No OFD packet to send [14:14:41]OFD Sender: No OFD packet to send [14:14:46]OFD Sender: No OFD packet to send [14:14:51]OFD Sender: No OFD packet to send [14:14:56]OFD Sender: No OFD packet to send [14:15:01]OFD Sender: No OFD packet to send [14:15:06]OFD Sender: No OFD packet to send [14:15:11]OFD Sender: No OFD packet to send [14:15:16]OFD Sender: No OFD packet to send [14:15:21]OFD Sender: No OFD packet to send [14:15:26]OFD Sender: No OFD packet to send [14:15:31]OFD Sender: No OFD packet to send [14:15:36]OFD Sender: No OFD packet to send [14:15:41]OFD Sender: No OFD packet to send [14:15:46]OFD Sender: No OFD packet to send [14:15:51]OFD Sender: No OFD packet to send [14:15:56]OFD Sender: No OFD packet to send [14:16:01]OFD Sender: No OFD packet to send [14:16:06]OFD Sender: No OFD packet to send [14:16:11]OFD Sender: No OFD packet to send [14:16:16]OFD Sender: No OFD packet to send [14:16:21]OFD Sender: No OFD packet to send [14:16:26]OFD Sender: No OFD packet to send [14:16:31]OFD Sender: No OFD packet to send [14:16:36]OFD Sender: No OFD packet to send [14:16:41]OFD Sender: No OFD packet to send [14:16:46]OFD Sender: No OFD packet to send [14:16:51]OFD Sender: No OFD packet to send [14:16:56]OFD Sender: No OFD packet to send [14:17:01]OFD Sender: No OFD packet to send [14:17:06]OFD Sender: No OFD packet to send [14:17:11]OFD Sender: No OFD packet to send [14:17:16]OFD Sender: No OFD packet to send [14:17:21]OFD Sender: No OFD packet to send [14:17:26]OFD Sender: No OFD packet to send [14:17:31]OFD Sender: No OFD packet to send [14:17:36]OFD Sender: No OFD packet to send [14:17:41]OFD Sender: No OFD packet to send [14:17:46]OFD Sender: No OFD packet to send [14:17:51]OFD Sender: No OFD packet to send [14:17:56]OFD Sender: No OFD packet to send [14:18:01]OFD Sender: No OFD packet to send [14:18:06]OFD Sender: No OFD packet to send [14:18:11]OFD Sender: No OFD packet to send [14:18:16]OFD Sender: No OFD packet to send [14:18:21]OFD Sender: No OFD packet to send [14:18:26]OFD Sender: No OFD packet to send [14:18:31]OFD Sender: No OFD packet to send [14:18:36]OFD Sender: No OFD packet to send [14:18:41]OFD Sender: No OFD packet to send [14:18:46]OFD Sender: No OFD packet to send [14:18:51]OFD Sender: No OFD packet to send [14:18:56]OFD Sender: No OFD packet to send [14:19:01]OFD Sender: No OFD packet to send [14:19:06]OFD Sender: No OFD packet to send [14:19:11]OFD Sender: No OFD packet to send [14:19:16]OFD Sender: No OFD packet to send [14:19:21]OFD Sender: No OFD packet to send [14:19:26]OFD Sender: No OFD packet to send [14:19:31]OFD Sender: No OFD packet to send [14:19:36]OFD Sender: No OFD packet to send [14:19:41]OFD Sender: No OFD packet to send [14:19:46]OFD Sender: No OFD packet to send [14:19:51]OFD Sender: No OFD packet to send [14:19:56]OFD Sender: No OFD packet to send [14:20:01]OFD Sender: No OFD packet to send [14:20:06]OFD Sender: No OFD packet to send [14:20:11]OFD Sender: No OFD packet to send [14:20:16]OFD Sender: No OFD packet to send [14:20:21]OFD Sender: No OFD packet to send [14:20:26]OFD Sender: No OFD packet to send [14:20:31]OFD Sender: No OFD packet to send [14:20:36]OFD Sender: No OFD packet to send [14:20:41]OFD Sender: No OFD packet to send [14:20:46]OFD Sender: No OFD packet to send [14:20:51]OFD Sender: No OFD packet to send [14:20:56]OFD Sender: No OFD packet to send [14:21:01]OFD Sender: No OFD packet to send [14:21:06]OFD Sender: No OFD packet to send [14:21:11]OFD Sender: No OFD packet to send [14:21:16]OFD Sender: No OFD packet to send [14:21:21]OFD Sender: No OFD packet to send [14:21:26]OFD Sender: No OFD packet to send [14:21:31]OFD Sender: No OFD packet to send [14:21:36]OFD Sender: No OFD packet to send [14:21:41]OFD Sender: No OFD packet to send [14:21:46]OFD Sender: No OFD packet to send [14:21:51]OFD Sender: No OFD packet to send [14:21:56]OFD Sender: No OFD packet to send [14:22:01]OFD Sender: No OFD packet to send [14:22:06]OFD Sender: No OFD packet to send [14:22:11]OFD Sender: No OFD packet to send [14:22:16]OFD Sender: No OFD packet to send [14:22:21]OFD Sender: No OFD packet to send [14:22:26]OFD Sender: No OFD packet to send [14:22:31]OFD Sender: No OFD packet to send [14:22:36]OFD Sender: No OFD packet to send [14:22:41]OFD Sender: No OFD packet to send [14:22:46]OFD Sender: No OFD packet to send [14:22:47]accept exits with 8 [14:22:47]New connection [14:22:47]New thread 3067317604 created [14:22:47]Thread 3067460964 joined [14:22:47]Waiting for new connection... [14:22:47] Sock 8.Parse request [14:22:47]Sock 8.Check first char [14:22:47]Sock 8.First char is OK [14:22:47]request: POST /json_proto HTTP/1.0 [14:22:47]Method: POST [14:22:47]URL: /json_proto [14:22:47]Method is POST - this is cgi request [14:22:47]url: /json_proto [14:22:47]query_string will be loaded in cgi processing [14:22:47]execute_cgi json_proto POST (null) [14:22:47]execute_cgi path=json_proto method=POST [14:22:47]POST find Content-Length [14:22:47]Host: 172.17.45.132:8080 [14:22:47]Content-Length: 677 [14:22:47]Content-Type: application/json [14:22:47] [14:22:47]POST finish read [14:22:47]Found Content-Length = 677 [14:22:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)609299", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:22:47]execute_script... [14:22:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)609299", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:22:47]POST & json_proto [14:22:47]process_json_proto [14:22:47]json parsed OK: [14:22:47]protocol is kg_v1.0 [14:22:47]action value=close_receipt [14:22:47]process_action close_receipt [14:22:47]cmd_close_receipt [14:22:47]MH_GetDate [14:22:47]Write to MH i2c: F0 00 00 AA 50 E9 [14:22:47]Write i2c OK [14:22:47]MH_I2C_Read... [14:22:47]Read from MH i2c: F0 [14:22:47]MH_I2C_Read... [14:22:47]Read from MH i2c: F0 09 00 [14:22:47]MH_I2C_Read... [14:22:47]Read from MH i2c: F0 09 00 AA 50 00 3D 54 A6 66 E3 0B 90 66 73 [14:22:47]GetLastDocTimeStamp 1722175683 [14:22:47]current date 1722176573 [14:22:47]FM_GetShiftState [14:22:47]SAM_PROTO_GetShiftState [14:22:47]wFMCommunicate request_size=4 [14:22:47]MH_SAM_APDU [14:22:47]CAPDU: 80 13 01 00 [14:22:47]Write to MH i2c: E2 08 00 AB 50 80 13 01 00 00 00 00 00 78 [14:22:47]Write i2c OK [14:22:47]MH_I2C_Read... [14:22:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:22:47]Read from MH i2c: E2 [14:22:47]MH_I2C_Read... [14:22:47]Read from MH i2c: E2 0E 00 [14:22:47]MH_I2C_Read... [14:22:47]Read from MH i2c: E2 0E 00 AB 50 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 6C [14:22:47]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [14:22:47]wFMCommunicate OK [14:22:47]SAM_PROTO_GetShiftState done [14:22:47]FM_GetShiftState done [14:22:47]opened in 1722125648 [14:22:47]opened+sec_in_day 1722212048 [14:22:47]quantity*price = 50036 [14:22:47]sum+1 = 50037 [14:22:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 119 28.07.2024 14:22 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2068 ФПД: 60290695767312 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T142253&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2068&fm=60290695767312&tin=02508201610067®Number=0000000000189667&sum=50000 [14:22:48]StoreToDocumentArchive [14:22:48]shift 13 fd 2068 [14:22:48]save to /storage/0013/doc_00002068 [14:22:48]save last doc name /storage/0013/doc_00002068 to /storage/kkm_last_doc_name [14:22:48]save OK [14:22:48]Clear old archive folders... [14:22:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:22:48]tlvbuf is 020AA8C0 [14:22:48]SAM_PROTO_ClearQueue [14:22:48]wFMCommunicate request_size=4 [14:22:48]MH_SAM_APDU [14:22:48]CAPDU: 80 09 00 00 [14:22:48]Write to MH i2c: E2 08 00 B8 50 80 09 00 00 00 00 00 00 7A [14:22:48]Write i2c OK [14:22:48]MH_I2C_Read... [14:22:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:22:48]Read from MH i2c: E2 [14:22:48]MH_I2C_Read... [14:22:48]Read from MH i2c: E2 03 00 [14:22:48]MH_I2C_Read... [14:22:48]Read from MH i2c: E2 03 00 B8 50 00 90 00 7C [14:22:48]RAPDU: 90 00 [14:22:48]wFMCommunicate OK [14:22:48]SAM_PROTO_ClearQueue done [14:22:48]KKMCreateOFDPacket [14:22:48]OFDProtocolAddRootSTLVToBuf [14:22:48]FM_MakeSignedData [14:22:48]FM_MakeSignedData [14:22:48]SAM_PROTO_SignData [14:22:48]wFMCommunicate request_size=4 [14:22:48]MH_SAM_APDU [14:22:48]CAPDU: 80 0D 01 02 [14:22:48]Write to MH i2c: E2 08 00 B9 50 80 0D 01 02 00 00 00 00 82 [14:22:48]Write i2c OK [14:22:48]MH_I2C_Read... [14:22:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:22:48]Read from MH i2c: E2 [14:22:48]MH_I2C_Read... [14:22:48]Read from MH i2c: E2 03 00 [14:22:48]MH_I2C_Read... [14:22:48]Read from MH i2c: E2 03 00 B9 50 00 90 00 7D [14:22:48]RAPDU: 90 00 [14:22:48]wFMCommunicate OK [14:22:48]wFMCommunicate request_size=255 [14:22:48]MH_SAM_APDU [14:22:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 3D 54 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 14 08 00 00 35 04 06 00 36 [14:22:48]Write to MH i2c: E2 02 01 BA 50 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 3D 54 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 14 08 00 00 35 04 06 00 36 00 00 7A [14:22:48]Write i2c OK [14:22:48]MH_I2C_Read... [14:22:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:22:48]Read from MH i2c: E2 [14:22:48]MH_I2C_Read... [14:22:48]Read from MH i2c: E2 03 00 [14:22:48]MH_I2C_Read... [14:22:48]Read from MH i2c: E2 03 00 BA 50 00 90 00 7E [14:22:48]RAPDU: 90 00 [14:22:48]wFMCommunicate OK [14:22:48]wFMCommunicate request_size=10 [14:22:48]MH_SAM_APDU [14:22:48]CAPDU: 80 0D 02 02 05 D5 85 81 25 10 [14:22:48]Write to MH i2c: E2 0D 00 BB 50 80 0D 02 02 05 00 D5 85 81 25 10 00 00 9F [14:22:48]Write i2c OK [14:22:48]MH_I2C_Read... [14:22:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:22:48]Read from MH i2c: E2 [14:22:48]MH_I2C_Read... [14:22:48]Read from MH i2c: E2 03 00 [14:22:48]MH_I2C_Read... [14:22:48]Read from MH i2c: E2 03 00 BB 50 00 90 00 7F [14:22:48]RAPDU: 90 00 [14:22:48]wFMCommunicate OK [14:22:48]wFMCommunicate request_size=4 [14:22:48]MH_SAM_APDU [14:22:48]CAPDU: 80 0D 03 02 [14:22:48]Write to MH i2c: E2 08 00 BC 50 80 0D 03 02 00 00 00 00 87 [14:22:48]Write i2c OK [14:22:48]MH_I2C_Read... [14:22:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:22:49]Read from MH i2c: E2 [14:22:49]MH_I2C_Read... [14:22:49]Read from MH i2c: E2 0B 00 [14:22:49]MH_I2C_Read... [14:22:49]Read from MH i2c: E2 0B 00 BC 50 00 C7 E6 A1 6A CF 8E B0 00 90 00 4D [14:22:49]RAPDU: C7 E6 A1 6A CF 8E B0 00 90 00 [14:22:49]wFMCommunicate OK [14:22:49]SAM_PROTO_SignData done [14:22:49]FM_MakeSignedData done [14:22:49]CreateOFDProtocolMessage [14:22:49]wFMCommunicate request_size=4 [14:22:49]MH_SAM_APDU [14:22:49]CAPDU: 80 11 00 00 [14:22:49]Write to MH i2c: E2 08 00 BD 50 80 11 00 00 00 00 00 00 87 [14:22:49]Write i2c OK [14:22:49]MH_I2C_Read... [14:22:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:49]Read from MH i2c: E2 [14:22:49]MH_I2C_Read... [14:22:49]Read from MH i2c: E2 17 00 [14:22:49]MH_I2C_Read... [14:22:49]Read from MH i2c: E2 17 00 BD 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 D7 [14:22:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [14:22:49]wFMCommunicate OK [14:22:49]CreateOFDProtocolMessage done [14:22:49]OFDSenderStorePacket 2068 [14:22:49]StoreOFDPacket docnum=2068 [14:22:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 2C 35 07 01 B4 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 3D 54 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 14 08 00 00 35 04 06 00 36 D5 85 81 25 10 C7 E6 A1 6A CF 8E B0 00 [14:22:49]CheckFolder [14:22:49]dirname=/storage/ofd_packets [14:22:49]CheckFolder done [14:22:49]ProducePacketName [14:22:49]name=ofd_packets/00002068 [14:22:49]NVStorageSaveData ofd_packets/00002068 [14:22:49]File name is /storage/ofd_packets/00002068 [14:22:49]Write 301 bytes [14:22:49]NVStorageSaveData done [14:22:49]OFDSenderStorePacket done [14:22:49]KKMCreateOFDPacket done [14:22:49]NVStorageSaveData kkm_last_timestamp [14:22:49]File name is /storage/kkm_last_timestamp [14:22:49]Write 4 bytes [14:22:49]NVStorageSaveData done [14:22:49]ExternCall_PrintAddStr [14:22:49]wPrintStart [14:22:49]Write to MH i2c: 01 00 00 BE 50 0E [14:22:49]Write i2c OK [14:22:49]MH_I2C_Read... [14:22:49]Read from MH i2c: 01 [14:22:49]MH_I2C_Read... [14:22:49]Read from MH i2c: 01 07 00 [14:22:49]MH_I2C_Read... [14:22:49]Read from MH i2c: 01 07 00 BE 50 00 00 00 00 00 FF 0F 23 [14:22:49]RasterBufferAndPrint [14:22:49]line Счет N : (1)609299 [14:22:49]line ИНН: 02508201610067 [14:22:49]line Контрольно-Кассовый Чек [14:22:49]line ПРОДАЖА [14:22:49]line ТРК (МРК, ГНК) : 42 [14:22:49]line Товар: 2710124130 [14:22:49]line Аи-92-К-2 [14:22:49]line 7.380 * 67.80 [14:22:49]line = 500.36 [14:22:49]line НДС 12% НСП 1% [14:22:49]line > о реализуемом товаре [14:22:49]line ОКРУГЛЕНИЕ: -0.36 [14:22:49]line ИТОГО: 500.00 [14:22:49]line Внесено: 500.00 [14:22:49]line СДАЧА: 0.00 [14:22:49]line НСП 1% : 4.43 [14:22:49]line НДС 12% : 53.14 [14:22:49]line Наличными: 500.00 [14:22:49]line Безнал.: 0.00 [14:22:49]line Место: АЗС № 127 "Партнер Нефть" [14:22:49]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [14:22:49]line СНО: Общий режим [14:22:49]line Чек 119 28.07.2024 14:22 [14:22:49]line Смена: 13 ФФД: 1.0 [14:22:49]line ЗНМ: 0300000161 [14:22:49]line РНМ: 0000000000189667 [14:22:49]line Версия ККМ: v1.0 [14:22:49]line ФМ: 0000000002094248 [14:22:49]line ФД: 2068 [14:22:49]line ФПД: 60290695767312 [14:22:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T142253&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2068&fm=60290695767312&tin=02508201610067®Number=0000000000189667&sum=50000 [14:22:49]OFD Sender: Processing packet 2068 [packets to send 1, broken 0] [14:22:49]ProducePacketName [14:22:49]name=ofd_packets/00002068 [14:22:49]OFD Sender: To server: pG, [14:22:49]CommunicateWithHost lk.salyk.kg:30040 [14:22:49]ConnectInit lk.salyk.kg [14:22:49]written 0, free lines is 4095 [14:22:49]Write to MH i2c: 01 00 00 E9 50 39 [14:22:49]Write i2c OK [14:22:49]MH_I2C_Read... [14:22:49]Read from MH i2c: 01 [14:22:49]MH_I2C_Read... [14:22:49]Read from MH i2c: 01 07 00 [14:22:49]MH_I2C_Read... [14:22:49]Read from MH i2c: 01 07 00 E9 50 00 00 00 00 00 E1 0C 2D [14:22:49]RasterBufferAndPrint [14:22:49]line [14:22:49]line [14:22:49]line [14:22:49]line [14:22:49]line [14:22:49]written 0, free lines is 3303 [14:22:49]MH_Cut [14:22:49]Write to MH i2c: D1 01 00 F0 50 01 12 [14:22:49]Write i2c OK [14:22:49]MH_I2C_Read... [14:22:49]Read from MH i2c: D1 [14:22:49]MH_I2C_Read... [14:22:49]Read from MH i2c: D1 01 00 [14:22:49]MH_I2C_Read... [14:22:49]Read from MH i2c: D1 01 00 F0 50 00 11 [14:22:49]Write to MH i2c: 01 00 00 F1 50 41 [14:22:49]Write i2c OK [14:22:49]MH_I2C_Read... [14:22:50]*** Cut start [14:22:50]*** Partial cut [14:22:50]*** CUTSNS_PIN = 1 [14:22:50]*** CUTSNS_PIN = 0 [14:22:50]*** Brake cut motor [14:22:51]Read from MH i2c: 01 [14:22:51]MH_I2C_Read... [14:22:51]*** Stop cut motor [14:22:51]*** Cut end [14:22:51]Read from MH i2c: 01 07 00 [14:22:51]MH_I2C_Read... [14:22:51]Read from MH i2c: 01 07 00 F1 50 00 00 00 00 00 FF 0F 56 [14:22:51]process_action close_receipt done [14:22:51]requested_data is exist [14:22:51]produce_requested_data [14:22:51]requested_item fm.sn is exist - process it [14:22:51]wFMCommunicate request_size=4 [14:22:51]MH_SAM_APDU [14:22:51]CAPDU: 80 11 00 00 [14:22:51]Write to MH i2c: E2 08 00 F2 50 80 11 00 00 00 00 00 00 BC [14:22:51]Write i2c OK [14:22:51]MH_I2C_Read... [14:22:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:51]Read from MH i2c: E2 [14:22:51]MH_I2C_Read... [14:22:51]Read from MH i2c: E2 17 00 [14:22:51]MH_I2C_Read... [14:22:51]Read from MH i2c: E2 17 00 F2 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 0C [14:22:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [14:22:51]wFMCommunicate OK [14:22:51]requested_item fd.num is exist - process it [14:22:51]SAM_PROTO_GetFieldsCounters [14:22:51]wFMCommunicate request_size=4 [14:22:51]MH_SAM_APDU [14:22:51]CAPDU: 80 13 00 00 [14:22:51]Write to MH i2c: E2 08 00 F3 50 80 13 00 00 00 00 00 00 BF [14:22:51]Write i2c OK [14:22:51]MH_I2C_Read... [14:22:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:22:51]Read from MH i2c: E2 [14:22:51]MH_I2C_Read... [14:22:51]Read from MH i2c: E2 62 00 [14:22:51]MH_I2C_Read... [14:22:51]Read from MH i2c: E2 62 00 F3 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 14 08 00 00 0E 04 04 00 0D 00 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 77 [14:22:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 14 08 00 00 0E 04 04 00 0D 00 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 [14:22:51]wFMCommunicate OK [14:22:51]SAM_PROTO_GetFieldsCounters done [14:22:51]requested_item shift.num is exist - process it [14:22:51]requested_item shift.opened is exist - process it [14:22:51]req_shift_opened [14:22:51]FM_GetShiftState [14:22:51]SAM_PROTO_GetShiftState [14:22:51]wFMCommunicate request_size=4 [14:22:51]MH_SAM_APDU [14:22:51]CAPDU: 80 13 01 00 [14:22:51]Write to MH i2c: E2 08 00 F4 50 80 13 01 00 00 00 00 00 C1 [14:22:51]Write i2c OK [14:22:51]MH_I2C_Read... [14:22:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:22:51]Read from MH i2c: E2 [14:22:51]MH_I2C_Read... [14:22:51]Read from MH i2c: E2 0E 00 [14:22:51]MH_I2C_Read... [14:22:51]Read from MH i2c: E2 0E 00 F4 50 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 B5 [14:22:51]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [14:22:51]wFMCommunicate OK [14:22:51]SAM_PROTO_GetShiftState done [14:22:51]FM_GetShiftState done [14:22:51]req_shift_opened done [14:22:51]requested_item shift.open_date is exist - process it [14:22:51]req_shift_open_date [14:22:51]req_shift_open_date done [14:22:51]produce_requested_data done [14:22:51]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2068,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [14:22:51]process_action_free close_receipt [14:22:51]json_value_free [14:22:51]json_value_free done [14:22:51]process_json_proto returns [14:22:51]Send response to host [14:22:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2068,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [14:22:51]free response buf [14:22:51]execute_script done [14:22:51]execute_script returns [14:22:51]free content buf [14:22:51]Sock 8.Close socket [14:22:51]Sock 8.Thread stoped [14:22:54]ConnectInit Can't take IP for lk.salyk.kg [14:22:54]CommunicateWithHost connect error [14:22:54]CommunicateWithHost err = -1 [14:22:54]OFD Sender: Server communicate error [14:22:59]OFD Sender: Processing packet 2068 [packets to send 1, broken 0] [14:22:59]ProducePacketName [14:22:59]name=ofd_packets/00002068 [14:22:59]OFD Sender: To server: pG, [14:22:59]CommunicateWithHost lk.salyk.kg:30040 [14:22:59]ConnectInit lk.salyk.kg [14:23:04]ConnectInit Can't take IP for lk.salyk.kg [14:23:04]CommunicateWithHost connect error [14:23:04]CommunicateWithHost err = -1 [14:23:04]OFD Sender: Server communicate error [14:23:09]OFD Sender: Processing packet 2068 [packets to send 1, broken 0] [14:23:09]ProducePacketName [14:23:09]name=ofd_packets/00002068 [14:23:09]OFD Sender: To server: pG, [14:23:09]CommunicateWithHost lk.salyk.kg:30040 [14:23:09]ConnectInit lk.salyk.kg [14:23:14]ConnectInit Can't take IP for lk.salyk.kg [14:23:14]CommunicateWithHost connect error [14:23:14]CommunicateWithHost err = -1 [14:23:14]OFD Sender: Server communicate error [14:23:19]OFD Sender: Processing packet 2068 [packets to send 1, broken 0] [14:23:19]ProducePacketName [14:23:19]name=ofd_packets/00002068 [14:23:19]OFD Sender: To server: pG, [14:23:19]CommunicateWithHost lk.salyk.kg:30040 [14:23:19]ConnectInit lk.salyk.kg [14:23:24]ConnectInit Can't take IP for lk.salyk.kg [14:23:24]CommunicateWithHost connect error [14:23:24]CommunicateWithHost err = -1 [14:23:24]OFD Sender: Server communicate error [14:23:29]OFD Sender: Processing packet 2068 [packets to send 1, broken 0] [14:23:29]ProducePacketName [14:23:29]name=ofd_packets/00002068 [14:23:29]OFD Sender: To server: pG, [14:23:29]CommunicateWithHost lk.salyk.kg:30040 [14:23:29]ConnectInit lk.salyk.kg [14:23:34]ConnectInit Can't take IP for lk.salyk.kg [14:23:34]CommunicateWithHost connect error [14:23:34]CommunicateWithHost err = -1 [14:23:34]OFD Sender: Server communicate error [14:23:39]OFD Sender: Processing packet 2068 [packets to send 1, broken 0] [14:23:39]ProducePacketName [14:23:39]name=ofd_packets/00002068 [14:23:39]OFD Sender: To server: pG, [14:23:39]CommunicateWithHost lk.salyk.kg:30040 [14:23:39]ConnectInit lk.salyk.kg [14:23:39]Connected sock=8 [14:23:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 2C 35 07 01 B4 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 3D 54 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 14 08 00 00 35 04 06 00 36 D5 85 81 25 10 C7 E6 A1 6A CF 8E B0 00 [14:23:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 32 74 47 00 53 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 14 08 00 00 F4 03 04 00 DE FF A5 66 B6 04 01 00 00 BF 87 15 BD 14 5F DE 34 [14:23:39]CommunicateWithHost err = 0 [14:23:39]CheckOFDResponse [14:23:39]1017 (14) - 77093643461234 [14:23:39]1041 (16) - 0000000002094248 [14:23:39]1040 (4) - 2068 [14:23:39]1012 (4) - 28.07.2024 08:22 [14:23:39]1206 (1) - 0 [14:23:39]OFD Sender: Remove packet 2068 [14:23:39]ProducePacketName [14:23:39]name=ofd_packets/00002068 [14:23:39]NVStorageDeleteData [14:23:40]OFD Sender: No OFD packet to send [14:23:45]OFD Sender: No OFD packet to send [14:23:50]OFD Sender: No OFD packet to send [14:23:55]OFD Sender: No OFD packet to send [14:24:00]OFD Sender: No OFD packet to send [14:24:05]OFD Sender: No OFD packet to send [14:24:10]OFD Sender: No OFD packet to send [14:24:15]OFD Sender: No OFD packet to send [14:24:20]OFD Sender: No OFD packet to send [14:24:25]OFD Sender: No OFD packet to send [14:24:30]OFD Sender: No OFD packet to send [14:27:30]ConnectInit Can't connect to host [14:27:30]OFD Sender: No OFD packet to send [14:27:35]OFD Sender: No OFD packet to send [14:27:40]OFD Sender: No OFD packet to send [14:27:45]OFD Sender: No OFD packet to send [14:27:50]OFD Sender: No OFD packet to send [14:27:55]OFD Sender: No OFD packet to send [14:28:00]OFD Sender: No OFD packet to send [14:28:05]OFD Sender: No OFD packet to send [14:28:10]OFD Sender: No OFD packet to send [14:28:15]OFD Sender: No OFD packet to send [14:28:20]OFD Sender: No OFD packet to send [14:28:25]OFD Sender: No OFD packet to send [14:41:25]ConnectInit Can't connect to host [14:41:28]OFD Sender: Processing packet 2069 [packets to send 8, broken 0] [14:41:28]ProducePacketName [14:41:28]name=ofd_packets/00002069 [14:41:28]OFD Sender: To server: pG, [14:41:28]CommunicateWithHost lk.salyk.kg:30040 [14:41:28]ConnectInit lk.salyk.kg [14:41:28]Connected sock=8 [14:41:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 23 01 00 00 E5 20 1B 01 10 F8 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 30 30 35 31 06 04 1D 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 4D 65 6E 74 68 6F 6C 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 78 00 00 00 F4 03 04 00 0A 56 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 15 08 00 00 35 04 06 00 67 2F C1 F5 6E AE 9F 8F 0D 46 93 36 55 45 [14:41:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 63 83 47 00 D1 BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 15 08 00 00 F4 03 04 00 0C 04 A6 66 B6 04 01 00 00 C3 3D 38 E0 CA F9 1B 40 [14:41:28]CommunicateWithHost err = 0 [14:41:28]CheckOFDResponse [14:41:28]1017 (14) - 77093643461234 [14:41:28]1041 (16) - 0000000002094248 [14:41:28]1040 (4) - 2069 [14:41:28]1012 (4) - 28.07.2024 08:40 [14:41:28]1206 (1) - 0 [14:41:28]OFD Sender: Remove packet 2069 [14:41:28]ProducePacketName [14:41:28]name=ofd_packets/00002069 [14:41:28]NVStorageDeleteData [14:41:29]OFD Sender: Processing packet 2070 [packets to send 7, broken 0] [14:41:29]ProducePacketName [14:41:29]name=ofd_packets/00002070 [14:41:29]OFD Sender: To server: pG, [14:41:29]CommunicateWithHost lk.salyk.kg:30040 [14:41:29]ConnectInit lk.salyk.kg [14:41:29]Connected sock=8 [14:41:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 25 01 00 00 5E D6 1D 01 1E 87 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 79 00 00 00 F4 03 04 00 62 56 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 16 08 00 00 35 04 06 00 2F 08 14 75 F1 5F AE B8 21 81 C2 75 D8 CB [14:41:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 B4 D5 47 00 4F D3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 16 08 00 00 F4 03 04 00 0C 04 A6 66 B6 04 01 00 00 4E 35 79 BE 64 AD B8 83 [14:41:29]CommunicateWithHost err = 0 [14:41:29]CheckOFDResponse [14:41:29]1017 (14) - 77093643461234 [14:41:29]1041 (16) - 0000000002094248 [14:41:29]1040 (4) - 2070 [14:41:29]1012 (4) - 28.07.2024 08:40 [14:41:29]1206 (1) - 0 [14:41:29]OFD Sender: Remove packet 2070 [14:41:29]ProducePacketName [14:41:29]name=ofd_packets/00002070 [14:41:29]NVStorageDeleteData [14:41:30]OFD Sender: Processing packet 2071 [packets to send 6, broken 0] [14:41:30]ProducePacketName [14:41:30]name=ofd_packets/00002071 [14:41:30]OFD Sender: To server: pG, [14:41:30]CommunicateWithHost lk.salyk.kg:30040 [14:41:30]ConnectInit lk.salyk.kg [14:41:30]Connected sock=8 [14:41:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 44 01 00 00 55 58 3C 01 86 89 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 7A 00 00 00 F4 03 04 00 71 56 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 17 08 00 00 35 04 06 00 95 1B 6C 32 69 47 37 E6 10 E6 A3 27 85 9B [14:41:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 5F DF 47 00 B1 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 17 08 00 00 F4 03 04 00 0D 04 A6 66 B6 04 01 00 00 5D 3E 79 C1 E8 E6 08 A3 [14:41:30]CommunicateWithHost err = 0 [14:41:30]CheckOFDResponse [14:41:30]1017 (14) - 77093643461234 [14:41:30]1041 (16) - 0000000002094248 [14:41:30]1040 (4) - 2071 [14:41:30]1012 (4) - 28.07.2024 08:40 [14:41:30]1206 (1) - 0 [14:41:30]OFD Sender: Remove packet 2071 [14:41:30]ProducePacketName [14:41:30]name=ofd_packets/00002071 [14:41:30]NVStorageDeleteData [14:41:31]OFD Sender: Processing packet 2072 [packets to send 5, broken 0] [14:41:31]ProducePacketName [14:41:31]name=ofd_packets/00002072 [14:41:31]OFD Sender: To server: pG, [14:41:31]CommunicateWithHost lk.salyk.kg:30040 [14:41:31]ConnectInit lk.salyk.kg [14:41:31]Connected sock=8 [14:41:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2A 01 00 00 05 F6 22 01 D0 2E 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 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 84 56 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 18 08 00 00 35 04 06 00 0A F5 F7 39 54 A4 AE B4 52 76 BC D0 31 5C [14:41:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 9D 18 47 00 40 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 32 30 39 34 32 34 38 10 04 04 00 18 08 00 00 F4 03 04 00 0E 04 A6 66 B6 04 01 00 00 62 C2 03 2A 7B 5A 0A 68 [14:41:31]CommunicateWithHost err = 0 [14:41:31]CheckOFDResponse [14:41:31]1017 (14) - 77093643461234 [14:41:31]1041 (16) - 0000000002094248 [14:41:31]1040 (4) - 2072 [14:41:31]1012 (4) - 28.07.2024 08:40 [14:41:31]1206 (1) - 0 [14:41:31]OFD Sender: Remove packet 2072 [14:41:31]ProducePacketName [14:41:31]name=ofd_packets/00002072 [14:41:31]NVStorageDeleteData [14:41:32]OFD Sender: Processing packet 2073 [packets to send 4, broken 0] [14:41:32]ProducePacketName [14:41:32]name=ofd_packets/00002073 [14:41:32]OFD Sender: To server: pG, [14:41:32]CommunicateWithHost lk.salyk.kg:30040 [14:41:32]ConnectInit lk.salyk.kg [14:41:32]Connected sock=8 [14:41:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 31 02 00 00 DA 5D 29 02 83 3D 5A 03 01 00 03 00 1D 02 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 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 D6 56 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 19 08 00 00 35 04 06 00 5A 96 7A BD C4 C2 00 15 9A 97 F6 12 D9 BF [14:41:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 EF 06 47 00 76 EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 19 08 00 00 F4 03 04 00 0F 04 A6 66 B6 04 01 00 00 A8 57 BB 4E B9 D7 5A C6 [14:41:32]CommunicateWithHost err = 0 [14:41:32]CheckOFDResponse [14:41:32]1017 (14) - 77093643461234 [14:41:32]1041 (16) - 0000000002094248 [14:41:32]1040 (4) - 2073 [14:41:32]1012 (4) - 28.07.2024 08:40 [14:41:32]1206 (1) - 0 [14:41:32]OFD Sender: Remove packet 2073 [14:41:32]ProducePacketName [14:41:32]name=ofd_packets/00002073 [14:41:32]NVStorageDeleteData [14:41:33]OFD Sender: Processing packet 2074 [packets to send 3, broken 0] [14:41:33]ProducePacketName [14:41:33]name=ofd_packets/00002074 [14:41:33]OFD Sender: To server: pG, [14:41:33]CommunicateWithHost lk.salyk.kg:30040 [14:41:33]ConnectInit lk.salyk.kg [14:41:33]Connected sock=8 [14:41:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 A8 01 00 00 18 E2 A0 01 FB 25 5A 03 01 00 03 00 94 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 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 23 04 6D 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 33 31 06 04 29 00 D0 9F D0 B5 D1 87 2E D0 B7 D0 B0 D1 82 2E 54 4F 4E 44 49 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2E D0 B2 D0 BA 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 21 00 00 00 00 13 04 06 00 98 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 08 00 00 00 00 07 04 06 00 90 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 29 57 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 1A 08 00 00 35 04 06 00 C1 B9 54 44 B5 00 31 A6 92 18 D7 99 DF 41 [14:41:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 75 A3 47 00 43 E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 1A 08 00 00 F4 03 04 00 10 04 A6 66 B6 04 01 00 00 57 28 7A 1F 74 BA 3F C3 [14:41:33]CommunicateWithHost err = 0 [14:41:33]CheckOFDResponse [14:41:33]1017 (14) - 77093643461234 [14:41:33]1041 (16) - 0000000002094248 [14:41:33]1040 (4) - 2074 [14:41:33]1012 (4) - 28.07.2024 08:40 [14:41:33]1206 (1) - 0 [14:41:33]OFD Sender: Remove packet 2074 [14:41:33]ProducePacketName [14:41:33]name=ofd_packets/00002074 [14:41:33]NVStorageDeleteData [14:41:33]OFD Sender: Processing packet 2075 [packets to send 2, broken 0] [14:41:33]ProducePacketName [14:41:33]name=ofd_packets/00002075 [14:41:33]OFD Sender: To server: pG, [14:41:33]CommunicateWithHost lk.salyk.kg:30040 [14:41:33]ConnectInit lk.salyk.kg [14:41:34]Connected sock=8 [14:41:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2F 03 00 00 27 FD 27 03 5C A1 5A 03 01 00 03 00 1B 03 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 32 35 06 04 2F 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 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 38 30 06 04 3E 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 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 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 33 31 06 04 2F 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 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 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 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 39 39 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 DC 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 F6 57 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 1B 08 00 00 35 04 06 00 F6 09 3C F6 17 FE E1 F3 E8 FB B3 74 2F 3F [14:41:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 DD 80 47 00 04 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 1B 08 00 00 F4 03 04 00 11 04 A6 66 B6 04 01 00 00 1B B6 6D 18 A9 82 55 64 [14:41:34]CommunicateWithHost err = 0 [14:41:34]CheckOFDResponse [14:41:34]1017 (14) - 77093643461234 [14:41:34]1041 (16) - 0000000002094248 [14:41:34]1040 (4) - 2075 [14:41:34]1012 (4) - 28.07.2024 08:40 [14:41:34]1206 (1) - 0 [14:41:34]OFD Sender: Remove packet 2075 [14:41:34]ProducePacketName [14:41:34]name=ofd_packets/00002075 [14:41:34]NVStorageDeleteData [14:41:35]OFD Sender: Processing packet 2076 [packets to send 1, broken 0] [14:41:35]ProducePacketName [14:41:35]name=ofd_packets/00002076 [14:41:35]OFD Sender: To server: pG, [14:41:35]CommunicateWithHost lk.salyk.kg:30040 [14:41:35]ConnectInit lk.salyk.kg [14:41:35]Connected sock=8 [14:41:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 9F 01 00 00 EF 60 97 01 99 E5 5A 03 01 00 03 00 8B 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 39 39 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 DC 05 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 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 7F 00 00 00 F4 03 04 00 5F 58 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 1C 08 00 00 35 04 06 00 1F CD B7 87 26 6F 01 BF AD B8 56 FF 93 48 [14:41:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 E1 C7 47 00 A6 A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 1C 08 00 00 F4 03 04 00 12 04 A6 66 B6 04 01 00 00 72 00 45 30 36 5A F0 9E [14:41:35]CommunicateWithHost err = 0 [14:41:35]CheckOFDResponse [14:41:35]1017 (14) - 77093643461234 [14:41:35]1041 (16) - 0000000002094248 [14:41:35]1040 (4) - 2076 [14:41:35]1012 (4) - 28.07.2024 08:40 [14:41:35]1206 (1) - 0 [14:41:35]OFD Sender: Remove packet 2076 [14:41:35]ProducePacketName [14:41:35]name=ofd_packets/00002076 [14:41:35]NVStorageDeleteData [14:41:35]OFD Sender: No OFD packet to send [14:41:40]OFD Sender: No OFD packet to send [14:41:45]OFD Sender: No OFD packet to send [14:41:50]OFD Sender: No OFD packet to send [14:41:55]OFD Sender: No OFD packet to send [14:42:00]OFD Sender: No OFD packet to send [14:42:05]OFD Sender: No OFD packet to send [14:42:10]OFD Sender: No OFD packet to send [14:42:15]OFD Sender: No OFD packet to send [14:42:20]OFD Sender: No OFD packet to send [14:42:25]OFD Sender: No OFD packet to send [14:48:50]ConnectInit Can't connect to host [14:48:52]ConnectInit Can't take IP for lk.salyk.kg [14:48:52]CommunicateWithHost connect error [14:48:52]CommunicateWithHost err = -1 [14:48:52]OFD Sender: Server communicate error [14:48:57]OFD Sender: Processing packet 2077 [packets to send 1, broken 0] [14:48:57]ProducePacketName [14:48:57]name=ofd_packets/00002077 [14:48:57]OFD Sender: To server: pG, [14:48:57]CommunicateWithHost lk.salyk.kg:30040 [14:48:57]ConnectInit lk.salyk.kg [14:48:58]Connected sock=8 [14:48:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 E1 E0 07 01 EB D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 13 59 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 1D 08 00 00 35 04 06 00 23 91 15 C2 13 09 92 52 DB F2 75 0C D0 A0 [14:48:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 88 85 47 00 34 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 32 30 39 34 32 34 38 10 04 04 00 1D 08 00 00 F4 03 04 00 CD 05 A6 66 B6 04 01 00 00 92 A8 6D 9D 02 3F B6 EE [14:48:58]CommunicateWithHost err = 0 [14:48:58]CheckOFDResponse [14:48:58]1017 (14) - 77093643461234 [14:48:58]1041 (16) - 0000000002094248 [14:48:58]1040 (4) - 2077 [14:48:58]1012 (4) - 28.07.2024 08:48 [14:48:58]1206 (1) - 0 [14:48:58]OFD Sender: Remove packet 2077 [14:48:58]ProducePacketName [14:48:58]name=ofd_packets/00002077 [14:48:58]NVStorageDeleteData [14:48:58]OFD Sender: No OFD packet to send [14:49:03]OFD Sender: No OFD packet to send [14:49:08]OFD Sender: No OFD packet to send [14:49:13]OFD Sender: No OFD packet to send [14:49:18]OFD Sender: No OFD packet to send [14:49:23]OFD Sender: No OFD packet to send [14:49:28]OFD Sender: No OFD packet to send [14:49:33]OFD Sender: No OFD packet to send [14:49:38]OFD Sender: No OFD packet to send [14:49:43]OFD Sender: No OFD packet to send [14:49:48]OFD Sender: No OFD packet to send [14:49:53]OFD Sender: No OFD packet to send [14:56:50]ConnectInit Can't connect to host [14:56:54]OFD Sender: No OFD packet to send [14:56:59]OFD Sender: No OFD packet to send [14:57:04]OFD Sender: No OFD packet to send [14:57:09]OFD Sender: No OFD packet to send [14:57:14]OFD Sender: No OFD packet to send [14:57:19]OFD Sender: No OFD packet to send [14:57:24]OFD Sender: No OFD packet to send [14:57:29]OFD Sender: No OFD packet to send [14:57:34]OFD Sender: No OFD packet to send [14:57:39]OFD Sender: No OFD packet to send [14:57:44]OFD Sender: No OFD packet to send [14:57:49]OFD Sender: No OFD packet to send [14:57:54]OFD Sender: No OFD packet to send [14:57:55]accept exits with 9 [14:57:55]New connection [14:57:55]New thread 3067317604 created [14:57:55]Thread 3067460964 joined [14:57:55]Waiting for new connection... [14:57:55] Sock 9.Parse request [14:57:55]Sock 9.Check first char [14:57:55]Sock 9.First char is OK [14:57:55]request: POST /json_proto HTTP/1.0 [14:57:55]Method: POST [14:57:55]URL: /json_proto [14:57:55]Method is POST - this is cgi request [14:57:55]url: /json_proto [14:57:55]query_string will be loaded in cgi processing [14:57:55]execute_cgi json_proto POST (null) [14:57:55]execute_cgi path=json_proto method=POST [14:57:55]POST find Content-Length [14:57:55]Host: 172.17.45.132:8080 [14:57:55]Content-Length: 633 [14:57:55]Content-Type: application/json [14:57:55] [14:57:55]POST finish read [14:57:55]Found Content-Length = 633 [14:57:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126378", "tax_sys" : 0, "items" : [ { "code": "40822938", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:57:55]execute_script... [14:57:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126378", "tax_sys" : 0, "items" : [ { "code": "40822938", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:57:55]POST & json_proto [14:57:55]process_json_proto [14:57:55]json parsed OK: [14:57:55]protocol is kg_v1.0 [14:57:55]action value=close_receipt [14:57:55]process_action close_receipt [14:57:55]cmd_close_receipt [14:57:55]MH_GetDate [14:57:55]Write to MH i2c: F0 00 00 BA 53 FC [14:57:55]Write i2c OK [14:57:55]MH_I2C_Read... [14:57:55]Read from MH i2c: F0 [14:57:55]MH_I2C_Read... [14:57:55]Read from MH i2c: F0 09 00 [14:57:55]MH_I2C_Read... [14:57:55]Read from MH i2c: F0 09 00 BA 53 00 79 5C A6 66 E3 0B 90 66 CA [14:57:55]GetLastDocTimeStamp 1722177811 [14:57:55]current date 1722178681 [14:57:55]FM_GetShiftState [14:57:55]SAM_PROTO_GetShiftState [14:57:55]wFMCommunicate request_size=4 [14:57:55]MH_SAM_APDU [14:57:55]CAPDU: 80 13 01 00 [14:57:55]Write to MH i2c: E2 08 00 BB 53 80 13 01 00 00 00 00 00 8B [14:57:55]Write i2c OK [14:57:55]MH_I2C_Read... [14:57:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:55]Read from MH i2c: E2 [14:57:55]MH_I2C_Read... [14:57:55]Read from MH i2c: E2 0E 00 [14:57:55]MH_I2C_Read... [14:57:55]Read from MH i2c: E2 0E 00 BB 53 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 7F [14:57:55]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [14:57:55]wFMCommunicate OK [14:57:55]SAM_PROTO_GetShiftState done [14:57:55]FM_GetShiftState done [14:57:55]opened in 1722125648 [14:57:55]opened+sec_in_day 1722212048 [14:57:55]quantity*price = 7500 [14:57:55]sum+1 = 7501 [14:57:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 75.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 129 28.07.2024 14:58 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2078 ФПД: 145321606318639 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T145801&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2078&fm=145321606318639&tin=02508201610067®Number=0000000000189667&sum=7500 0 [14:57:56]StoreToDocumentArchive [14:57:56]shift 13 fd 2078 [14:57:56]save to /storage/0013/doc_00002078 [14:57:56]save last doc name /storage/0013/doc_00002078 to /storage/kkm_last_doc_name [14:57:56]save OK [14:57:56]Clear old archive folders... [14:57:56]ProcessDocumentItem done err = 0, tmpTLVsize=268 [14:57:56]tlvbuf is 0200EA70 [14:57:56]SAM_PROTO_ClearQueue [14:57:56]wFMCommunicate request_size=4 [14:57:56]MH_SAM_APDU [14:57:56]CAPDU: 80 09 00 00 [14:57:56]Write to MH i2c: E2 08 00 C8 53 80 09 00 00 00 00 00 00 8D [14:57:56]Write i2c OK [14:57:56]MH_I2C_Read... [14:57:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:57:56]Read from MH i2c: E2 [14:57:56]MH_I2C_Read... [14:57:56]Read from MH i2c: E2 03 00 [14:57:56]MH_I2C_Read... [14:57:56]Read from MH i2c: E2 03 00 C8 53 00 90 00 8F [14:57:56]RAPDU: 90 00 [14:57:56]wFMCommunicate OK [14:57:56]SAM_PROTO_ClearQueue done [14:57:56]KKMCreateOFDPacket [14:57:56]OFDProtocolAddRootSTLVToBuf [14:57:56]FM_MakeSignedData [14:57:56]FM_MakeSignedData [14:57:56]SAM_PROTO_SignData [14:57:56]wFMCommunicate request_size=4 [14:57:56]MH_SAM_APDU [14:57:56]CAPDU: 80 0D 01 02 [14:57:56]Write to MH i2c: E2 08 00 C9 53 80 0D 01 02 00 00 00 00 95 [14:57:56]Write i2c OK [14:57:56]MH_I2C_Read... [14:57:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:57:56]Read from MH i2c: E2 [14:57:56]MH_I2C_Read... [14:57:56]Read from MH i2c: E2 03 00 [14:57:56]MH_I2C_Read... [14:57:56]Read from MH i2c: E2 03 00 C9 53 00 90 00 90 [14:57:56]RAPDU: 90 00 [14:57:56]wFMCommunicate OK [14:57:56]wFMCommunicate request_size=255 [14:57:56]MH_SAM_APDU [14:57:56]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 79 5C A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 [14:57:56]Write to MH i2c: E2 02 01 CA 53 80 0D 02 02 FA 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 79 5C A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 00 00 67 [14:57:56]Write i2c OK [14:57:56]MH_I2C_Read... [14:57:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:57]Read from MH i2c: E2 [14:57:57]MH_I2C_Read... [14:57:57]Read from MH i2c: E2 03 00 [14:57:57]MH_I2C_Read... [14:57:57]Read from MH i2c: E2 03 00 CA 53 00 90 00 91 [14:57:57]RAPDU: 90 00 [14:57:57]wFMCommunicate OK [14:57:57]wFMCommunicate request_size=27 [14:57:57]MH_SAM_APDU [14:57:57]CAPDU: 80 0D 02 02 16 34 32 34 38 10 04 04 00 1E 08 00 00 35 04 06 00 84 2B 52 B9 0A 2F [14:57:57]Write to MH i2c: E2 1E 00 CB 53 80 0D 02 02 16 00 34 32 34 38 10 04 04 00 1E 08 00 00 35 04 06 00 84 2B 52 B9 0A 2F 00 00 06 [14:57:57]Write i2c OK [14:57:57]MH_I2C_Read... [14:57:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:57]Read from MH i2c: E2 [14:57:57]MH_I2C_Read... [14:57:57]Read from MH i2c: E2 03 00 [14:57:57]MH_I2C_Read... [14:57:57]Read from MH i2c: E2 03 00 CB 53 00 90 00 92 [14:57:57]RAPDU: 90 00 [14:57:57]wFMCommunicate OK [14:57:57]wFMCommunicate request_size=4 [14:57:57]MH_SAM_APDU [14:57:57]CAPDU: 80 0D 03 02 [14:57:57]Write to MH i2c: E2 08 00 CC 53 80 0D 03 02 00 00 00 00 9A [14:57:57]Write i2c OK [14:57:57]MH_I2C_Read... [14:57:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:57:57]Read from MH i2c: E2 [14:57:57]MH_I2C_Read... [14:57:57]Read from MH i2c: E2 0B 00 [14:57:57]MH_I2C_Read... [14:57:57]Read from MH i2c: E2 0B 00 CC 53 00 71 8B B5 1B 8B 77 70 3B 90 00 14 [14:57:57]RAPDU: 71 8B B5 1B 8B 77 70 3B 90 00 [14:57:57]wFMCommunicate OK [14:57:57]SAM_PROTO_SignData done [14:57:57]FM_MakeSignedData done [14:57:57]CreateOFDProtocolMessage [14:57:57]wFMCommunicate request_size=4 [14:57:57]MH_SAM_APDU [14:57:57]CAPDU: 80 11 00 00 [14:57:57]Write to MH i2c: E2 08 00 CD 53 80 11 00 00 00 00 00 00 9A [14:57:57]Write i2c OK [14:57:57]MH_I2C_Read... [14:57:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:57]Read from MH i2c: E2 [14:57:57]MH_I2C_Read... [14:57:57]Read from MH i2c: E2 17 00 [14:57:57]MH_I2C_Read... [14:57:57]Read from MH i2c: E2 17 00 CD 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 EA [14:57:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [14:57:57]wFMCommunicate OK [14:57:57]CreateOFDProtocolMessage done [14:57:57]OFDSenderStorePacket 2078 [14:57:57]StoreOFDPacket docnum=2078 [14:57:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 20 01 00 00 F2 B5 18 01 62 C5 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 79 5C A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 1E 08 00 00 35 04 06 00 84 2B 52 B9 0A 2F 71 8B B5 1B 8B 77 70 3B [14:57:57]CheckFolder [14:57:57]dirname=/storage/ofd_packets [14:57:57]CheckFolder done [14:57:57]ProducePacketName [14:57:57]name=ofd_packets/00002078 [14:57:57]NVStorageSaveData ofd_packets/00002078 [14:57:57]File name is /storage/ofd_packets/00002078 [14:57:57]Write 318 bytes [14:57:57]NVStorageSaveData done [14:57:57]OFDSenderStorePacket done [14:57:57]KKMCreateOFDPacket done [14:57:57]NVStorageSaveData kkm_last_timestamp [14:57:57]File name is /storage/kkm_last_timestamp [14:57:57]Write 4 bytes [14:57:57]NVStorageSaveData done [14:57:57]ExternCall_PrintAddStr [14:57:57]wPrintStart [14:57:57]Write to MH i2c: 01 00 00 CE 53 21 [14:57:57]Write i2c OK [14:57:57]MH_I2C_Read... [14:57:57]Read from MH i2c: 01 [14:57:57]MH_I2C_Read... [14:57:57]Read from MH i2c: 01 07 00 [14:57:57]MH_I2C_Read... [14:57:57]Read from MH i2c: 01 07 00 CE 53 00 00 00 00 00 FF 0F 36 [14:57:57]RasterBufferAndPrint [14:57:57]line Счет N : (3)126378 [14:57:57]line ИНН: 02508201610067 [14:57:57]line Контрольно-Кассовый Чек [14:57:57]line ПРОДАЖА [14:57:57]line Товар: 40822938 [14:57:57]line Напиток Фанта 0,5л [14:57:57]line 1.000 * 75.00 [14:57:57]line = 75.00 [14:57:57]line НДС 12% НСП 1% [14:57:57]line > о реализуемом товаре [14:57:57]line ИТОГО: 75.00 [14:57:57]line НСП 1% : 0.66 [14:57:57]line НДС 12% : 7.96 [14:57:57]line Наличными: 75.00 [14:57:57]line Безнал.: 0.00 [14:57:57]line Место: АЗС № 127 "Партнер Нефть" [14:57:57]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [14:57:57]line СНО: Общий режим [14:57:57]line Чек 129 28.07.2024 14:58 [14:57:57]line Смена: 13 ФФД: 1.0 [14:57:57]line ЗНМ: 0300000161 [14:57:57]line РНМ: 0000000000189667 [14:57:57]line Версия ККМ: v1.0 [14:57:57]line ФМ: 0000000002094248 [14:57:57]line ФД: 2078 [14:57:57]line ФПД: 145321606318639 [14:57:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T145801&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2078&fm=145321606318639&tin=02508201610067®Number=0000000000189667&sum=7500 [14:57:57]line 0 [14:57:57]OFD Sender: Processing packet 2078 [packets to send 1, broken 0] [14:57:57]ProducePacketName [14:57:57]name=ofd_packets/00002078 [14:57:57]OFD Sender: To server: pG, [14:57:57]CommunicateWithHost lk.salyk.kg:30040 [14:57:57]ConnectInit lk.salyk.kg [14:57:57]written 0, free lines is 4095 [14:57:58]Write to MH i2c: 01 00 00 F6 53 49 [14:57:58]Write i2c OK [14:57:58]MH_I2C_Read... [14:57:58]Read from MH i2c: 01 [14:57:58]MH_I2C_Read... [14:57:58]Read from MH i2c: 01 07 00 [14:57:58]MH_I2C_Read... [14:57:58]Read from MH i2c: 01 07 00 F6 53 00 00 00 00 00 09 0D 66 [14:57:58]RasterBufferAndPrint [14:57:58]line [14:57:58]line [14:57:58]line [14:57:58]line [14:57:58]line [14:57:58]written 0, free lines is 3343 [14:57:58]MH_Cut [14:57:58]Write to MH i2c: D1 01 00 FD 53 01 22 [14:57:58]Write i2c OK [14:57:58]MH_I2C_Read... [14:57:58]Read from MH i2c: D1 [14:57:58]MH_I2C_Read... [14:57:58]Read from MH i2c: D1 01 00 [14:57:58]MH_I2C_Read... [14:57:58]Read from MH i2c: D1 01 00 FD 53 00 21 [14:57:58]Write to MH i2c: 01 00 00 FE 53 51 [14:57:58]Write i2c OK [14:57:58]MH_I2C_Read... [14:57:58]*** Cut start [14:57:58]*** Partial cut [14:57:58]*** CUTSNS_PIN = 1 [14:57:58]*** CUTSNS_PIN = 0 [14:57:59]*** Brake cut motor [14:57:59]Read from MH i2c: 01 [14:57:59]MH_I2C_Read... [14:57:59]*** Stop cut motor [14:57:59]*** Cut end [14:57:59]Read from MH i2c: 01 07 00 [14:57:59]MH_I2C_Read... [14:57:59]Read from MH i2c: 01 07 00 FE 53 00 00 00 00 00 FF 0F 66 [14:57:59]process_action close_receipt done [14:57:59]requested_data is exist [14:57:59]produce_requested_data [14:57:59]requested_item fm.sn is exist - process it [14:57:59]wFMCommunicate request_size=4 [14:57:59]MH_SAM_APDU [14:57:59]CAPDU: 80 11 00 00 [14:57:59]Write to MH i2c: E2 08 00 FF 53 80 11 00 00 00 00 00 00 CC [14:57:59]Write i2c OK [14:57:59]MH_I2C_Read... [14:57:59]Connected sock=10 [14:57:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 20 01 00 00 F2 B5 18 01 62 C5 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 79 5C A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 1E 08 00 00 35 04 06 00 84 2B 52 B9 0A 2F 71 8B B5 1B 8B 77 70 3B [14:57:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:59]Read from MH i2c: E2 [14:57:59]MH_I2C_Read... [14:57:59]Read from MH i2c: E2 17 00 [14:57:59]MH_I2C_Read... [14:57:59]Read from MH i2c: E2 17 00 FF 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 1C [14:57:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [14:57:59]wFMCommunicate OK [14:57:59]requested_item fd.num is exist - process it [14:57:59]SAM_PROTO_GetFieldsCounters [14:57:59]wFMCommunicate request_size=4 [14:57:59]MH_SAM_APDU [14:57:59]CAPDU: 80 13 00 00 [14:57:59]Write to MH i2c: E2 08 00 00 54 80 13 00 00 00 00 00 00 D0 [14:57:59]Write i2c OK [14:57:59]MH_I2C_Read... [14:57:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:57:59]Read from MH i2c: E2 [14:57:59]MH_I2C_Read... [14:57:59]Read from MH i2c: E2 62 00 [14:57:59]MH_I2C_Read... [14:57:59]Read from MH i2c: E2 62 00 00 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 1E 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [14:57:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 1E 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:57:59]wFMCommunicate OK [14:57:59]SAM_PROTO_GetFieldsCounters done [14:57:59]requested_item shift.num is exist - process it [14:57:59]requested_item shift.opened is exist - process it [14:57:59]req_shift_opened [14:57:59]FM_GetShiftState [14:57:59]SAM_PROTO_GetShiftState [14:57:59]wFMCommunicate request_size=4 [14:57:59]MH_SAM_APDU [14:57:59]CAPDU: 80 13 01 00 [14:57:59]Write to MH i2c: E2 08 00 01 54 80 13 01 00 00 00 00 00 D2 [14:57:59]Write i2c OK [14:57:59]MH_I2C_Read... [14:57:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:59]Read from MH i2c: E2 [14:57:59]MH_I2C_Read... [14:57:59]Read from MH i2c: E2 0E 00 [14:57:59]MH_I2C_Read... [14:57:59]Read from MH i2c: E2 0E 00 01 54 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 C6 [14:57:59]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [14:57:59]wFMCommunicate OK [14:57:59]SAM_PROTO_GetShiftState done [14:57:59]FM_GetShiftState done [14:57:59]req_shift_opened done [14:57:59]requested_item shift.open_date is exist - process it [14:57:59]req_shift_open_date [14:57:59]req_shift_open_date done [14:57:59]produce_requested_data done [14:57:59]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2078,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [14:57:59]process_action_free close_receipt [14:57:59]json_value_free [14:57:59]json_value_free done [14:57:59]process_json_proto returns [14:57:59]Send response to host [14:57:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2078,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [14:57:59]free response buf [14:57:59]execute_script done [14:57:59]execute_script returns [14:57:59]free content buf [14:57:59]Sock 9.Close socket [14:57:59]Sock 9.Thread stoped [14:58:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 F3 2A 47 00 60 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 32 30 39 34 32 34 38 10 04 04 00 1E 08 00 00 F4 03 04 00 EA 07 A6 66 B6 04 01 00 00 A5 84 74 29 0A F3 80 48 [14:58:00]CommunicateWithHost err = 0 [14:58:00]CheckOFDResponse [14:58:00]1017 (14) - 77093643461234 [14:58:00]1041 (16) - 0000000002094248 [14:58:00]1040 (4) - 2078 [14:58:00]1012 (4) - 28.07.2024 08:57 [14:58:00]1206 (1) - 0 [14:58:00]OFD Sender: Remove packet 2078 [14:58:00]ProducePacketName [14:58:00]name=ofd_packets/00002078 [14:58:00]NVStorageDeleteData [14:58:01]OFD Sender: No OFD packet to send [14:58:06]OFD Sender: No OFD packet to send [14:58:11]OFD Sender: No OFD packet to send [14:58:16]OFD Sender: No OFD packet to send [14:58:21]OFD Sender: No OFD packet to send [14:58:26]OFD Sender: No OFD packet to send [14:58:31]OFD Sender: No OFD packet to send [14:58:36]OFD Sender: No OFD packet to send [14:58:41]OFD Sender: No OFD packet to send [15:01:36]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2079,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [15:01:36]process_action_free close_receipt [15:01:36]json_value_free [15:01:36]json_value_free done [15:01:36]process_json_proto returns [15:01:36]Send response to host [15:01:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2079,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [15:01:36]free response buf [15:01:36]execute_script done [15:01:36]execute_script returns [15:01:36]free content buf [15:01:36]Sock 8.Close socket [15:01:36]Sock 8.Thread stoped [15:01:38]ConnectInit Can't connect to host [15:01:39]ConnectInit Can't take IP for lk.salyk.kg [15:01:39]CommunicateWithHost connect error [15:01:39]CommunicateWithHost err = -1 [15:01:39]OFD Sender: Server communicate error [15:01:43]ConnectInit Can't connect to host [15:01:44]OFD Sender: Processing packet 2079 [packets to send 1, broken 0] [15:01:44]ProducePacketName [15:01:44]name=ofd_packets/00002079 [15:01:44]OFD Sender: To server: pG, [15:01:44]CommunicateWithHost lk.salyk.kg:30040 [15:01:44]ConnectInit lk.salyk.kg [15:01:47]Connected sock=8 [15:01:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2D 01 00 00 4C A6 25 01 6E 14 5A 03 01 00 03 00 19 01 1E 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 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 52 5D A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 1F 08 00 00 35 04 06 00 4A 8D 8A A7 B6 B1 7A 9E 54 28 C5 60 F5 AF [15:01:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 BE F1 47 00 F4 DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 1F 08 00 00 F4 03 04 00 CE 08 A6 66 B6 04 01 00 00 45 66 A8 2D C9 53 AE 3A [15:01:47]CommunicateWithHost err = 0 [15:01:47]CheckOFDResponse [15:01:47]1017 (14) - 77093643461234 [15:01:47]1041 (16) - 0000000002094248 [15:01:47]1040 (4) - 2079 [15:01:47]1012 (4) - 28.07.2024 09:01 [15:01:47]1206 (1) - 0 [15:01:47]OFD Sender: Remove packet 2079 [15:01:47]ProducePacketName [15:01:47]name=ofd_packets/00002079 [15:01:47]NVStorageDeleteData [15:01:48]OFD Sender: No OFD packet to send [15:01:53]OFD Sender: No OFD packet to send [15:01:58]OFD Sender: No OFD packet to send [15:02:03]OFD Sender: No OFD packet to send [15:02:08]OFD Sender: No OFD packet to send [15:02:13]OFD Sender: No OFD packet to send [15:02:18]OFD Sender: No OFD packet to send [15:02:23]OFD Sender: No OFD packet to send [15:02:28]OFD Sender: No OFD packet to send [15:02:33]OFD Sender: No OFD packet to send [15:02:38]OFD Sender: No OFD packet to send [15:02:43]OFD Sender: No OFD packet to send [15:02:48]OFD Sender: No OFD packet to send [15:02:53]OFD Sender: No OFD packet to send [15:02:58]OFD Sender: No OFD packet to send [15:03:03]OFD Sender: No OFD packet to send [15:03:08]OFD Sender: No OFD packet to send [15:03:13]OFD Sender: No OFD packet to send [15:03:18]OFD Sender: No OFD packet to send [15:03:23]OFD Sender: No OFD packet to send [15:03:28]OFD Sender: No OFD packet to send [15:03:33]OFD Sender: No OFD packet to send [15:03:38]OFD Sender: No OFD packet to send [15:03:43]OFD Sender: No OFD packet to send [15:03:48]OFD Sender: No OFD packet to send [15:03:53]OFD Sender: No OFD packet to send [15:03:58]OFD Sender: No OFD packet to send [15:04:03]OFD Sender: No OFD packet to send [15:04:08]OFD Sender: No OFD packet to send [15:04:13]OFD Sender: No OFD packet to send [15:04:18]OFD Sender: No OFD packet to send [15:04:23]OFD Sender: No OFD packet to send [15:04:28]OFD Sender: No OFD packet to send [15:04:33]OFD Sender: No OFD packet to send [15:04:38]OFD Sender: No OFD packet to send [15:04:43]OFD Sender: No OFD packet to send [15:04:48]OFD Sender: No OFD packet to send [15:04:53]OFD Sender: No OFD packet to send [15:04:58]OFD Sender: No OFD packet to send [15:05:03]OFD Sender: No OFD packet to send [15:05:08]OFD Sender: No OFD packet to send [15:05:13]OFD Sender: No OFD packet to send [15:05:18]OFD Sender: No OFD packet to send [15:05:23]OFD Sender: No OFD packet to send [15:05:28]OFD Sender: No OFD packet to send [15:05:33]OFD Sender: No OFD packet to send [15:05:38]OFD Sender: No OFD packet to send [15:05:43]OFD Sender: No OFD packet to send [15:05:48]OFD Sender: No OFD packet to send [15:05:53]OFD Sender: No OFD packet to send [15:05:58]OFD Sender: No OFD packet to send [15:06:03]OFD Sender: No OFD packet to send [15:06:03]accept exits with 9 [15:06:03]New connection [15:06:03]New thread 3067317604 created [15:06:03]Thread 3067460964 joined [15:06:03]Waiting for new connection... [15:06:03] Sock 9.Parse request [15:06:03]Sock 9.Check first char [15:06:03]Sock 9.First char is OK [15:06:03]request: POST /json_proto HTTP/1.0 [15:06:03]Method: POST [15:06:03]URL: /json_proto [15:06:03]Method is POST - this is cgi request [15:06:03]url: /json_proto [15:06:03]query_string will be loaded in cgi processing [15:06:03]execute_cgi json_proto POST (null) [15:06:03]execute_cgi path=json_proto method=POST [15:06:03]POST find Content-Length [15:06:03]Host: 172.17.45.132:8080 [15:06:03]Content-Length: 641 [15:06:03]Content-Type: application/json [15:06:03] [15:06:03]POST finish read [15:06:03]Found Content-Length = 641 [15:06:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126380", "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" ] } } [15:06:03]execute_script... [15:06: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)126380", "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" ] } } [15:06:03]POST & json_proto [15:06:03]process_json_proto [15:06:03]json parsed OK: [15:06:03]protocol is kg_v1.0 [15:06:03]action value=close_receipt [15:06:03]process_action close_receipt [15:06:03]cmd_close_receipt [15:06:03]MH_GetDate [15:06:03]Write to MH i2c: F0 00 00 4A 54 8D [15:06:03]Write i2c OK [15:06:03]MH_I2C_Read... [15:06:03]Read from MH i2c: F0 [15:06:03]MH_I2C_Read... [15:06:03]Read from MH i2c: F0 09 00 [15:06:03]MH_I2C_Read... [15:06:03]Read from MH i2c: F0 09 00 4A 54 00 61 5E A6 66 E3 0B 90 66 45 [15:06:03]GetLastDocTimeStamp 1722178898 [15:06:03]current date 1722179169 [15:06:03]FM_GetShiftState [15:06:03]SAM_PROTO_GetShiftState [15:06:03]wFMCommunicate request_size=4 [15:06:03]MH_SAM_APDU [15:06:03]CAPDU: 80 13 01 00 [15:06:03]Write to MH i2c: E2 08 00 4B 54 80 13 01 00 00 00 00 00 1C [15:06:03]Write i2c OK [15:06:03]MH_I2C_Read... [15:06:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:06:03]Read from MH i2c: E2 [15:06:03]MH_I2C_Read... [15:06:03]Read from MH i2c: E2 0E 00 [15:06:03]MH_I2C_Read... [15:06:03]Read from MH i2c: E2 0E 00 4B 54 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 10 [15:06:03]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [15:06:03]wFMCommunicate OK [15:06:03]SAM_PROTO_GetShiftState done [15:06:03]FM_GetShiftState done [15:06:03]opened in 1722125648 [15:06:03]opened+sec_in_day 1722212048 [15:06:03]quantity*price = 70000 [15:06:03]sum+1 = 70001 [15:06:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.00 НСП 1% : 6.19 НДС 12% : 74.34 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 131 28.07.2024 15:06 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2080 ФПД: 164462298467036 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T150609&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2080&fm=164462298467036&tin=02508201610067®Number=0000000000189667&sum=70000 0 [15:06:04]StoreToDocumentArchive [15:06:04]shift 13 fd 2080 [15:06:04]save to /storage/0013/doc_00002080 [15:06:04]save last doc name /storage/0013/doc_00002080 to /storage/kkm_last_doc_name [15:06:04]save OK [15:06:04]Clear old archive folders... [15:06:04]ProcessDocumentItem done err = 0, tmpTLVsize=281 [15:06:04]tlvbuf is 0208D660 [15:06:04]SAM_PROTO_ClearQueue [15:06:04]wFMCommunicate request_size=4 [15:06:04]MH_SAM_APDU [15:06:04]CAPDU: 80 09 00 00 [15:06:04]Write to MH i2c: E2 08 00 58 54 80 09 00 00 00 00 00 00 1E [15:06:04]Write i2c OK [15:06:04]MH_I2C_Read... [15:06:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:06:04]Read from MH i2c: E2 [15:06:04]MH_I2C_Read... [15:06:04]Read from MH i2c: E2 03 00 [15:06:04]MH_I2C_Read... [15:06:04]Read from MH i2c: E2 03 00 58 54 00 90 00 20 [15:06:04]RAPDU: 90 00 [15:06:04]wFMCommunicate OK [15:06:04]SAM_PROTO_ClearQueue done [15:06:04]KKMCreateOFDPacket [15:06:04]OFDProtocolAddRootSTLVToBuf [15:06:04]FM_MakeSignedData [15:06:04]FM_MakeSignedData [15:06:04]SAM_PROTO_SignData [15:06:04]wFMCommunicate request_size=4 [15:06:04]MH_SAM_APDU [15:06:04]CAPDU: 80 0D 01 02 [15:06:04]Write to MH i2c: E2 08 00 59 54 80 0D 01 02 00 00 00 00 26 [15:06:04]Write i2c OK [15:06:04]MH_I2C_Read... [15:06:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:06:04]Read from MH i2c: E2 [15:06:04]MH_I2C_Read... [15:06:04]Read from MH i2c: E2 03 00 [15:06:04]MH_I2C_Read... [15:06:04]Read from MH i2c: E2 03 00 59 54 00 90 00 21 [15:06:04]RAPDU: 90 00 [15:06:04]wFMCommunicate OK [15:06:04]wFMCommunicate request_size=255 [15:06:04]MH_SAM_APDU [15:06:04]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 83 00 00 00 F4 03 04 00 61 5E A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 [15:06:04]Write to MH i2c: E2 02 01 5A 54 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 83 00 00 00 F4 03 04 00 61 5E A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 00 F1 [15:06:04]Write i2c OK [15:06:04]MH_I2C_Read... [15:06:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:06:05]Read from MH i2c: E2 [15:06:05]MH_I2C_Read... [15:06:05]Read from MH i2c: E2 03 00 [15:06:05]MH_I2C_Read... [15:06:05]Read from MH i2c: E2 03 00 5A 54 00 90 00 22 [15:06:05]RAPDU: 90 00 [15:06:05]wFMCommunicate OK [15:06:05]wFMCommunicate request_size=40 [15:06:05]MH_SAM_APDU [15:06:05]CAPDU: 80 0D 02 02 23 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 20 08 00 00 35 04 06 00 95 93 DC E1 0A DC [15:06:05]Write to MH i2c: E2 2B 00 5B 54 80 0D 02 02 23 00 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 20 08 00 00 35 04 06 00 95 93 DC E1 0A DC 00 00 D6 [15:06:05]Write i2c OK [15:06:05]MH_I2C_Read... [15:06:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:06:05]Read from MH i2c: E2 [15:06:05]MH_I2C_Read... [15:06:05]Read from MH i2c: E2 03 00 [15:06:05]MH_I2C_Read... [15:06:05]Read from MH i2c: E2 03 00 5B 54 00 90 00 23 [15:06:05]RAPDU: 90 00 [15:06:05]wFMCommunicate OK [15:06:05]wFMCommunicate request_size=4 [15:06:05]MH_SAM_APDU [15:06:05]CAPDU: 80 0D 03 02 [15:06:05]Write to MH i2c: E2 08 00 5C 54 80 0D 03 02 00 00 00 00 2B [15:06:05]Write i2c OK [15:06:05]MH_I2C_Read... [15:06:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:06:05]Read from MH i2c: E2 [15:06:05]MH_I2C_Read... [15:06:05]Read from MH i2c: E2 0B 00 [15:06:05]MH_I2C_Read... [15:06:05]Read from MH i2c: E2 0B 00 5C 54 00 0B CD CF E3 C8 3F 5B A7 90 00 BF [15:06:05]RAPDU: 0B CD CF E3 C8 3F 5B A7 90 00 [15:06:05]wFMCommunicate OK [15:06:05]SAM_PROTO_SignData done [15:06:05]FM_MakeSignedData done [15:06:05]CreateOFDProtocolMessage [15:06:05]wFMCommunicate request_size=4 [15:06:05]MH_SAM_APDU [15:06:05]CAPDU: 80 11 00 00 [15:06:05]Write to MH i2c: E2 08 00 5D 54 80 11 00 00 00 00 00 00 2B [15:06:05]Write i2c OK [15:06:05]MH_I2C_Read... [15:06:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:06:05]Read from MH i2c: E2 [15:06:05]MH_I2C_Read... [15:06:05]Read from MH i2c: E2 17 00 [15:06:05]MH_I2C_Read... [15:06:05]Read from MH i2c: E2 17 00 5D 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 7B [15:06:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [15:06:05]wFMCommunicate OK [15:06:05]CreateOFDProtocolMessage done [15:06:05]OFDSenderStorePacket 2080 [15:06:05]StoreOFDPacket docnum=2080 [15:06:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2D 01 00 00 E4 CB 25 01 86 EF 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 83 00 00 00 F4 03 04 00 61 5E A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 20 08 00 00 35 04 06 00 95 93 DC E1 0A DC 0B CD CF E3 C8 3F 5B A7 [15:06:05]CheckFolder [15:06:05]dirname=/storage/ofd_packets [15:06:05]CheckFolder done [15:06:05]ProducePacketName [15:06:05]name=ofd_packets/00002080 [15:06:05]NVStorageSaveData ofd_packets/00002080 [15:06:05]File name is /storage/ofd_packets/00002080 [15:06:05]Write 331 bytes [15:06:05]NVStorageSaveData done [15:06:05]OFDSenderStorePacket done [15:06:05]KKMCreateOFDPacket done [15:06:05]NVStorageSaveData kkm_last_timestamp [15:06:05]File name is /storage/kkm_last_timestamp [15:06:05]Write 4 bytes [15:06:05]NVStorageSaveData done [15:06:05]ExternCall_PrintAddStr [15:06:05]wPrintStart [15:06:05]Write to MH i2c: 01 00 00 5E 54 B2 [15:06:05]Write i2c OK [15:06:05]MH_I2C_Read... [15:06:05]Read from MH i2c: 01 [15:06:05]MH_I2C_Read... [15:06:05]Read from MH i2c: 01 07 00 [15:06:05]MH_I2C_Read... [15:06:05]Read from MH i2c: 01 07 00 5E 54 00 00 00 00 00 FF 0F C7 [15:06:05]RasterBufferAndPrint [15:06:05]line Счет N : (3)126380 [15:06:05]line ИНН: 02508201610067 [15:06:05]line Контрольно-Кассовый Чек [15:06:05]line ПРОДАЖА [15:06:05]line Товар: 4700003150929 [15:06:05]line Новая Водка Organic 40% 0,7л [15:06:05]line 1.000 * 700.00 [15:06:05]line = 700.00 [15:06:05]line НДС 12% НСП 1% [15:06:05]line > о реализуемом товаре [15:06:05]line ИТОГО: 700.00 [15:06:05]line НСП 1% : 6.19 [15:06:05]line НДС 12% : 74.34 [15:06:05]line Наличными: 700.00 [15:06:05]line Безнал.: 0.00 [15:06:05]line Место: АЗС № 127 "Партнер Нефть" [15:06:05]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [15:06:05]line СНО: Общий режим [15:06:05]line Чек 131 28.07.2024 15:06 [15:06:05]line Смена: 13 ФФД: 1.0 [15:06:05]line ЗНМ: 0300000161 [15:06:05]line РНМ: 0000000000189667 [15:06:05]line Версия ККМ: v1.0 [15:06:05]line ФМ: 0000000002094248 [15:06:05]line ФД: 2080 [15:06:05]line ФПД: 164462298467036 [15:06:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T150609&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2080&fm=164462298467036&tin=02508201610067®Number=0000000000189667&sum=70000 [15:06:05]line 0 [15:06:05]written 0, free lines is 4095 [15:06:05]OFD Sender: Processing packet 2080 [packets to send 1, broken 0] [15:06:05]ProducePacketName [15:06:05]name=ofd_packets/00002080 [15:06:05]OFD Sender: To server: pG, [15:06:05]CommunicateWithHost lk.salyk.kg:30040 [15:06:05]ConnectInit lk.salyk.kg [15:06:05]Write to MH i2c: 01 00 00 86 54 DA [15:06:05]Write i2c OK [15:06:05]MH_I2C_Read... [15:06:05]Read from MH i2c: 01 [15:06:05]MH_I2C_Read... [15:06:05]Read from MH i2c: 01 07 00 [15:06:05]MH_I2C_Read... [15:06:05]Read from MH i2c: 01 07 00 86 54 00 00 00 00 00 22 0D 10 [15:06:05]RasterBufferAndPrint [15:06:05]line [15:06:05]line [15:06:05]line [15:06:05]line [15:06:05]line [15:06:05]written 0, free lines is 3367 [15:06:05]MH_Cut [15:06:05]Write to MH i2c: D1 01 00 8D 54 01 B3 [15:06:05]Write i2c OK [15:06:05]MH_I2C_Read... [15:06:05]Read from MH i2c: D1 [15:06:05]MH_I2C_Read... [15:06:05]Read from MH i2c: D1 01 00 [15:06:05]MH_I2C_Read... [15:06:05]Read from MH i2c: D1 01 00 8D 54 00 B2 [15:06:05]Write to MH i2c: 01 00 00 8E 54 E2 [15:06:05]Write i2c OK [15:06:05]MH_I2C_Read... [15:06:06]*** Cut start [15:06:06]*** Partial cut [15:06:06]*** CUTSNS_PIN = 1 [15:06:06]*** CUTSNS_PIN = 0 [15:06:06]*** Brake cut motor [15:06:07]Read from MH i2c: 01 [15:06:07]MH_I2C_Read... [15:06:07]*** Stop cut motor [15:06:07]*** Cut end [15:06:07]Read from MH i2c: 01 07 00 [15:06:07]MH_I2C_Read... [15:06:07]Read from MH i2c: 01 07 00 8E 54 00 00 00 00 00 FF 0F F7 [15:06:07]process_action close_receipt done [15:06:07]requested_data is exist [15:06:07]produce_requested_data [15:06:07]requested_item fm.sn is exist - process it [15:06:07]wFMCommunicate request_size=4 [15:06:07]MH_SAM_APDU [15:06:07]CAPDU: 80 11 00 00 [15:06:07]Write to MH i2c: E2 08 00 8F 54 80 11 00 00 00 00 00 00 5D [15:06:07]Write i2c OK [15:06:07]MH_I2C_Read... [15:06:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:06:07]Read from MH i2c: E2 [15:06:07]MH_I2C_Read... [15:06:07]Read from MH i2c: E2 17 00 [15:06:07]MH_I2C_Read... [15:06:07]Read from MH i2c: E2 17 00 8F 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 AD [15:06:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [15:06:07]wFMCommunicate OK [15:06:07]requested_item fd.num is exist - process it [15:06:07]SAM_PROTO_GetFieldsCounters [15:06:07]wFMCommunicate request_size=4 [15:06:07]MH_SAM_APDU [15:06:07]CAPDU: 80 13 00 00 [15:06:07]Write to MH i2c: E2 08 00 90 54 80 13 00 00 00 00 00 00 60 [15:06:07]Write i2c OK [15:06:07]MH_I2C_Read... [15:06:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:06:07]Read from MH i2c: E2 [15:06:07]MH_I2C_Read... [15:06:07]Read from MH i2c: E2 62 00 [15:06:07]MH_I2C_Read... [15:06:07]Read from MH i2c: E2 62 00 90 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 20 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 48 [15:06:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 20 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:06:07]wFMCommunicate OK [15:06:07]SAM_PROTO_GetFieldsCounters done [15:06:07]requested_item shift.num is exist - process it [15:06:07]requested_item shift.opened is exist - process it [15:06:07]req_shift_opened [15:06:07]FM_GetShiftState [15:06:07]SAM_PROTO_GetShiftState [15:06:07]wFMCommunicate request_size=4 [15:06:07]MH_SAM_APDU [15:06:07]CAPDU: 80 13 01 00 [15:06:07]Write to MH i2c: E2 08 00 91 54 80 13 01 00 00 00 00 00 62 [15:06:07]Write i2c OK [15:06:07]MH_I2C_Read... [15:06:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:06:07]Read from MH i2c: E2 [15:06:07]MH_I2C_Read... [15:06:07]Read from MH i2c: E2 0E 00 [15:06:07]MH_I2C_Read... [15:06:07]Read from MH i2c: E2 0E 00 91 54 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 56 [15:06:07]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [15:06:07]wFMCommunicate OK [15:06:07]SAM_PROTO_GetShiftState done [15:06:07]FM_GetShiftState done [15:06:07]req_shift_opened done [15:06:07]requested_item shift.open_date is exist - process it [15:06:07]req_shift_open_date [15:06:07]req_shift_open_date done [15:06:07]produce_requested_data done [15:06:07]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2080,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [15:06:07]process_action_free close_receipt [15:06:07]json_value_free [15:06:07]json_value_free done [15:06:07]process_json_proto returns [15:06:07]Send response to host [15:06:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2080,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [15:06:07]free response buf [15:06:07]execute_script done [15:06:07]execute_script returns [15:06:07]free content buf [15:06:07]Sock 9.Close socket [15:06:07]Sock 9.Thread stoped [15:06:10]ConnectInit Can't take IP for lk.salyk.kg [15:06:10]CommunicateWithHost connect error [15:06:10]CommunicateWithHost err = -1 [15:06:10]OFD Sender: Server communicate error [15:06:15]OFD Sender: Processing packet 2080 [packets to send 1, broken 0] [15:06:15]ProducePacketName [15:06:15]name=ofd_packets/00002080 [15:06:15]OFD Sender: To server: pG, [15:06:15]CommunicateWithHost lk.salyk.kg:30040 [15:06:15]ConnectInit lk.salyk.kg [15:06:20]ConnectInit Can't take IP for lk.salyk.kg [15:06:20]CommunicateWithHost connect error [15:06:20]CommunicateWithHost err = -1 [15:06:20]OFD Sender: Server communicate error [15:06:25]OFD Sender: Processing packet 2080 [packets to send 1, broken 0] [15:06:25]ProducePacketName [15:06:25]name=ofd_packets/00002080 [15:06:25]OFD Sender: To server: pG, [15:06:25]CommunicateWithHost lk.salyk.kg:30040 [15:06:25]ConnectInit lk.salyk.kg [15:06:30]ConnectInit Can't take IP for lk.salyk.kg [15:06:30]CommunicateWithHost connect error [15:06:30]CommunicateWithHost err = -1 [15:06:30]OFD Sender: Server communicate error [15:06:35]OFD Sender: Processing packet 2080 [packets to send 1, broken 0] [15:06:35]ProducePacketName [15:06:35]name=ofd_packets/00002080 [15:06:35]OFD Sender: To server: pG, [15:06:35]CommunicateWithHost lk.salyk.kg:30040 [15:06:35]ConnectInit lk.salyk.kg [15:06:40]ConnectInit Can't take IP for lk.salyk.kg [15:06:40]CommunicateWithHost connect error [15:06:40]CommunicateWithHost err = -1 [15:06:40]OFD Sender: Server communicate error [15:06:44]accept exits with 10 [15:06:44]New connection [15:06:44]New thread 3067460964 created [15:06:44]Thread 3067317604 joined [15:06:44]Waiting for new connection... [15:06:44] Sock 10.Parse request [15:06:44]Sock 10.Check first char [15:06:44]Sock 10.First char is OK [15:06:44]request: POST /json_proto HTTP/1.0 [15:06:44]Method: POST [15:06:44]URL: /json_proto [15:06:44]Method is POST - this is cgi request [15:06:44]url: /json_proto [15:06:44]query_string will be loaded in cgi processing [15:06:44]execute_cgi json_proto POST (null) [15:06:44]execute_cgi path=json_proto method=POST [15:06:44]POST find Content-Length [15:06:44]Host: 172.17.45.132:8080 [15:06:44]Content-Length: 851 [15:06:44]Content-Type: application/json [15:06:44] [15:06:44]POST finish read [15:06:44]Found Content-Length = 851 [15:06:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126381", "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 }]} ], "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" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:06:44]execute_script... [15:06: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)126381", "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 }]} ], "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" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:06:44]POST & json_proto [15:06:44]process_json_proto [15:06:44]json parsed OK: [15:06:44]protocol is kg_v1.0 [15:06:44]action value=close_receipt [15:06:44]process_action close_receipt [15:06:44]cmd_close_receipt [15:06:44]MH_GetDate [15:06:44]Write to MH i2c: F0 00 00 92 54 D5 [15:06:44]Write i2c OK [15:06:44]MH_I2C_Read... [15:06:44]Read from MH i2c: F0 [15:06:44]MH_I2C_Read... [15:06:44]Read from MH i2c: F0 09 00 [15:06:44]MH_I2C_Read... [15:06:44]Read from MH i2c: F0 09 00 92 54 00 8A 5E A6 66 E3 0B 90 66 B6 [15:06:44]GetLastDocTimeStamp 1722179169 [15:06:44]current date 1722179210 [15:06:44]FM_GetShiftState [15:06:44]SAM_PROTO_GetShiftState [15:06:44]wFMCommunicate request_size=4 [15:06:44]MH_SAM_APDU [15:06:44]CAPDU: 80 13 01 00 [15:06:44]Write to MH i2c: E2 08 00 93 54 80 13 01 00 00 00 00 00 64 [15:06:44]Write i2c OK [15:06:44]MH_I2C_Read... [15:06:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:06:44]Read from MH i2c: E2 [15:06:44]MH_I2C_Read... [15:06:44]Read from MH i2c: E2 0E 00 [15:06:44]MH_I2C_Read... [15:06:44]Read from MH i2c: E2 0E 00 93 54 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 58 [15:06:44]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [15:06:44]wFMCommunicate OK [15:06:44]SAM_PROTO_GetShiftState done [15:06:44]FM_GetShiftState done [15:06:44]opened in 1722125648 [15:06:44]opened+sec_in_day 1722212048 [15:06:44]quantity*price = 12500 [15:06:44]sum+1 = 12501 [15:06:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 0.00 Безнал.: 125.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 132 28.07.2024 15:06 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2081 ФПД: 9956444011217 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T150650&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2081&fm=9956444011217&tin=02508201610067®Number=0000000000189667&sum=12500 0 [15:06:45]StoreToDocumentArchive [15:06:45]shift 13 fd 2081 [15:06:45]save to /storage/0013/doc_00002081 [15:06:45]save last doc name /storage/0013/doc_00002081 to /storage/kkm_last_doc_name [15:06:45]save OK [15:06:45]Clear old archive folders... [15:06:45]ProcessDocumentItem done err = 0, tmpTLVsize=294 [15:06:45]tlvbuf is 01FAE9A0 [15:06:45]SAM_PROTO_ClearQueue [15:06:45]wFMCommunicate request_size=4 [15:06:45]MH_SAM_APDU [15:06:45]CAPDU: 80 09 00 00 [15:06:45]Write to MH i2c: E2 08 00 A0 54 80 09 00 00 00 00 00 00 66 [15:06:45]Write i2c OK [15:06:45]MH_I2C_Read... [15:06:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:06:45]Read from MH i2c: E2 [15:06:45]MH_I2C_Read... [15:06:45]Read from MH i2c: E2 03 00 [15:06:45]MH_I2C_Read... [15:06:45]Read from MH i2c: E2 03 00 A0 54 00 90 00 68 [15:06:45]RAPDU: 90 00 [15:06:45]wFMCommunicate OK [15:06:45]SAM_PROTO_ClearQueue done [15:06:45]KKMCreateOFDPacket [15:06:45]OFDProtocolAddRootSTLVToBuf [15:06:45]FM_MakeSignedData [15:06:45]FM_MakeSignedData [15:06:45]SAM_PROTO_SignData [15:06:45]wFMCommunicate request_size=4 [15:06:45]MH_SAM_APDU [15:06:45]CAPDU: 80 0D 01 02 [15:06:45]Write to MH i2c: E2 08 00 A1 54 80 0D 01 02 00 00 00 00 6E [15:06:45]Write i2c OK [15:06:45]MH_I2C_Read... [15:06:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:06:45]Read from MH i2c: E2 [15:06:45]MH_I2C_Read... [15:06:45]Read from MH i2c: E2 03 00 [15:06:45]MH_I2C_Read... [15:06:45]Read from MH i2c: E2 03 00 A1 54 00 90 00 69 [15:06:45]RAPDU: 90 00 [15:06:45]wFMCommunicate OK [15:06:45]wFMCommunicate request_size=255 [15:06:45]MH_SAM_APDU [15:06:45]CAPDU: 80 0D 02 02 FA 03 00 26 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 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 8A 5E A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [15:06:45]Write to MH i2c: E2 02 01 A2 54 80 0D 02 02 FA 00 03 00 26 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 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 8A 5E A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 76 [15:06:46]Write i2c OK [15:06:46]MH_I2C_Read... [15:06:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:06:46]Read from MH i2c: E2 [15:06:46]MH_I2C_Read... [15:06:46]Read from MH i2c: E2 03 00 [15:06:46]MH_I2C_Read... [15:06:46]Read from MH i2c: E2 03 00 A2 54 00 90 00 6A [15:06:46]RAPDU: 90 00 [15:06:46]wFMCommunicate OK [15:06:46]wFMCommunicate request_size=53 [15:06:46]MH_SAM_APDU [15:06:46]CAPDU: 80 0D 02 02 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 21 08 00 00 35 04 06 00 09 0E 2A 4E FA D1 [15:06:46]Write to MH i2c: E2 38 00 A3 54 80 0D 02 02 30 00 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 21 08 00 00 35 04 06 00 09 0E 2A 4E FA D1 00 00 F2 [15:06:46]Write i2c OK [15:06:46]MH_I2C_Read... [15:06:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:06:46]Read from MH i2c: E2 [15:06:46]MH_I2C_Read... [15:06:46]Read from MH i2c: E2 03 00 [15:06:46]MH_I2C_Read... [15:06:46]Read from MH i2c: E2 03 00 A3 54 00 90 00 6B [15:06:46]RAPDU: 90 00 [15:06:46]wFMCommunicate OK [15:06:46]wFMCommunicate request_size=4 [15:06:46]MH_SAM_APDU [15:06:46]CAPDU: 80 0D 03 02 [15:06:46]Write to MH i2c: E2 08 00 A4 54 80 0D 03 02 00 00 00 00 73 [15:06:46]Write i2c OK [15:06:46]MH_I2C_Read... [15:06:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:06:46]Read from MH i2c: E2 [15:06:46]MH_I2C_Read... [15:06:46]Read from MH i2c: E2 0B 00 [15:06:46]MH_I2C_Read... [15:06:46]Read from MH i2c: E2 0B 00 A4 54 00 C1 8F BB 3A 6B 3B CD B1 90 00 DD [15:06:46]RAPDU: C1 8F BB 3A 6B 3B CD B1 90 00 [15:06:46]wFMCommunicate OK [15:06:46]SAM_PROTO_SignData done [15:06:46]FM_MakeSignedData done [15:06:46]CreateOFDProtocolMessage [15:06:46]wFMCommunicate request_size=4 [15:06:46]MH_SAM_APDU [15:06:46]CAPDU: 80 11 00 00 [15:06:46]Write to MH i2c: E2 08 00 A5 54 80 11 00 00 00 00 00 00 73 [15:06:46]Write i2c OK [15:06:46]MH_I2C_Read... [15:06:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:06:46]Read from MH i2c: E2 [15:06:46]MH_I2C_Read... [15:06:46]Read from MH i2c: E2 17 00 [15:06:46]MH_I2C_Read... [15:06:46]Read from MH i2c: E2 17 00 A5 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 C3 [15:06:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [15:06:46]wFMCommunicate OK [15:06:46]CreateOFDProtocolMessage done [15:06:46]OFDSenderStorePacket 2081 [15:06:46]StoreOFDPacket docnum=2081 [15:06:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 3A 01 00 00 7E 4C 32 01 0C EA 5A 03 01 00 03 00 26 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 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 8A 5E A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 21 08 00 00 35 04 06 00 09 0E 2A 4E FA D1 C1 8F BB 3A 6B 3B CD B1 [15:06:46]CheckFolder [15:06:46]dirname=/storage/ofd_packets [15:06:46]CheckFolder done [15:06:46]ProducePacketName [15:06:46]name=ofd_packets/00002081 [15:06:46]NVStorageSaveData ofd_packets/00002081 [15:06:46]File name is /storage/ofd_packets/00002081 [15:06:46]Write 344 bytes [15:06:46]NVStorageSaveData done [15:06:46]OFDSenderStorePacket done [15:06:46]KKMCreateOFDPacket done [15:06:46]NVStorageSaveData kkm_last_timestamp [15:06:46]File name is /storage/kkm_last_timestamp [15:06:46]Write 4 bytes [15:06:46]NVStorageSaveData done [15:06:46]ExternCall_PrintAddStr [15:06:46]wPrintStart [15:06:46]Write to MH i2c: 01 00 00 A6 54 FA [15:06:46]Write i2c OK [15:06:46]MH_I2C_Read... [15:06:46]Read from MH i2c: 01 [15:06:46]MH_I2C_Read... [15:06:46]Read from MH i2c: 01 07 00 [15:06:46]MH_I2C_Read... [15:06:46]Read from MH i2c: 01 07 00 A6 54 00 00 00 00 00 FF 0F 0F [15:06:46]RasterBufferAndPrint [15:06:46]line Счет N : (3)126381 [15:06:46]line ИНН: 02508201610067 [15:06:46]line Контрольно-Кассовый Чек [15:06:46]line ПРОДАЖА [15:06:46]line Товар: 4870202521247 [15:06:46]line Напиток MAXI чай 1,2 черн.персик [15:06:46]line 1.000 * 125.00 [15:06:46]line = 125.00 [15:06:46]line НДС 12% НСП 1% [15:06:46]line > о реализуемом товаре [15:06:46]line ИТОГО: 125.00 [15:06:46]line НСП 1% : 1.11 [15:06:46]line НДС 12% : 13.27 [15:06:46]line Наличными: 0.00 [15:06:46]line Безнал.: 125.00 [15:06:46]line Место: АЗС № 127 "Партнер Нефть" [15:06:46]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [15:06:46]line СНО: Общий режим [15:06:46]line Чек 132 28.07.2024 15:06 [15:06:46]line Смена: 13 ФФД: 1.0 [15:06:46]line ЗНМ: 0300000161 [15:06:46]line РНМ: 0000000000189667 [15:06:46]line Версия ККМ: v1.0 [15:06:46]line Платежная система: O! деньги [15:06:46]line ФМ: 0000000002094248 [15:06:46]line ФД: 2081 [15:06:46]line ФПД: 9956444011217 [15:06:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T150650&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2081&fm=9956444011217&tin=02508201610067®Number=0000000000189667&sum=12500 [15:06:46]line 0 [15:06:46]written 0, free lines is 4095 [15:06:47]Write to MH i2c: 01 00 00 D1 54 25 [15:06:47]Write i2c OK [15:06:47]MH_I2C_Read... [15:06:47]Read from MH i2c: 01 [15:06:47]MH_I2C_Read... [15:06:47]Read from MH i2c: 01 07 00 [15:06:47]MH_I2C_Read... [15:06:47]Read from MH i2c: 01 07 00 D1 54 00 00 00 00 00 E7 0C 1F [15:06:47]RasterBufferAndPrint [15:06:47]line [15:06:47]line [15:06:47]line [15:06:47]line [15:06:47]line [15:06:47]written 0, free lines is 3318 [15:06:47]MH_Cut [15:06:47]Write to MH i2c: D1 01 00 D8 54 01 FE [15:06:47]Write i2c OK [15:06:47]MH_I2C_Read... [15:06:47]Read from MH i2c: D1 [15:06:47]MH_I2C_Read... [15:06:47]Read from MH i2c: D1 01 00 [15:06:47]MH_I2C_Read... [15:06:47]Read from MH i2c: D1 01 00 D8 54 00 FD [15:06:47]Write to MH i2c: 01 00 00 D9 54 2D [15:06:47]Write i2c OK [15:06:47]MH_I2C_Read... [15:06:47]*** Cut start [15:06:47]*** Partial cut [15:06:47]*** CUTSNS_PIN = 1 [15:06:47]*** CUTSNS_PIN = 0 [15:06:48]*** Brake cut motor [15:06:48]Read from MH i2c: 01 [15:06:48]MH_I2C_Read... [15:06:48]*** Stop cut motor [15:06:48]*** Cut end [15:06:48]Read from MH i2c: 01 07 00 [15:06:48]MH_I2C_Read... [15:06:48]Read from MH i2c: 01 07 00 D9 54 00 00 00 00 00 FF 0F 42 [15:06:48]process_action close_receipt done [15:06:48]requested_data is exist [15:06:48]produce_requested_data [15:06:48]requested_item fm.sn is exist - process it [15:06:48]wFMCommunicate request_size=4 [15:06:48]MH_SAM_APDU [15:06:48]CAPDU: 80 11 00 00 [15:06:48]Write to MH i2c: E2 08 00 DA 54 80 11 00 00 00 00 00 00 A8 [15:06:48]Write i2c OK [15:06:48]MH_I2C_Read... [15:06:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:06:48]Read from MH i2c: E2 [15:06:48]MH_I2C_Read... [15:06:48]Read from MH i2c: E2 17 00 [15:06:48]MH_I2C_Read... [15:06:48]Read from MH i2c: E2 17 00 DA 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 F8 [15:06:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [15:06:48]wFMCommunicate OK [15:06:48]requested_item fd.num is exist - process it [15:06:48]SAM_PROTO_GetFieldsCounters [15:06:48]wFMCommunicate request_size=4 [15:06:48]MH_SAM_APDU [15:06:48]CAPDU: 80 13 00 00 [15:06:48]Write to MH i2c: E2 08 00 DB 54 80 13 00 00 00 00 00 00 AB [15:06:48]Write i2c OK [15:06:48]MH_I2C_Read... [15:06:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:06:48]Read from MH i2c: E2 [15:06:48]MH_I2C_Read... [15:06:48]Read from MH i2c: E2 62 00 [15:06:48]MH_I2C_Read... [15:06:48]Read from MH i2c: E2 62 00 DB 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 21 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 97 [15:06:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 21 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:06:48]wFMCommunicate OK [15:06:48]SAM_PROTO_GetFieldsCounters done [15:06:48]requested_item shift.num is exist - process it [15:06:48]requested_item shift.opened is exist - process it [15:06:48]req_shift_opened [15:06:48]FM_GetShiftState [15:06:48]SAM_PROTO_GetShiftState [15:06:48]wFMCommunicate request_size=4 [15:06:48]MH_SAM_APDU [15:06:48]CAPDU: 80 13 01 00 [15:06:48]Write to MH i2c: E2 08 00 DC 54 80 13 01 00 00 00 00 00 AD [15:06:48]Write i2c OK [15:06:48]MH_I2C_Read... [15:06:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:06:48]Read from MH i2c: E2 [15:06:48]MH_I2C_Read... [15:06:48]Read from MH i2c: E2 0E 00 [15:06:48]MH_I2C_Read... [15:06:48]Read from MH i2c: E2 0E 00 DC 54 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 A1 [15:06:48]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [15:06:48]wFMCommunicate OK [15:06:48]SAM_PROTO_GetShiftState done [15:06:48]FM_GetShiftState done [15:06:48]req_shift_opened done [15:06:48]requested_item shift.open_date is exist - process it [15:06:48]req_shift_open_date [15:06:48]req_shift_open_date done [15:06:48]produce_requested_data done [15:06:48]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2081,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [15:06:48]process_action_free close_receipt [15:06:48]json_value_free [15:06:48]json_value_free done [15:06:48]process_json_proto returns [15:06:48]Send response to host [15:06:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2081,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [15:06:48]free response buf [15:06:48]execute_script done [15:06:48]execute_script returns [15:06:48]free content buf [15:06:48]Sock 10.Close socket [15:06:48]Sock 10.Thread stoped [15:06:50]ConnectInit Can't take IP for lk.salyk.kg [15:06:50]CommunicateWithHost connect error [15:06:50]CommunicateWithHost err = -1 [15:06:50]OFD Sender: Server communicate error [15:06:50]OFD Sender: Processing packet 2080 [packets to send 2, broken 0] [15:06:50]ProducePacketName [15:06:50]name=ofd_packets/00002080 [15:06:50]OFD Sender: To server: pG, [15:06:50]CommunicateWithHost lk.salyk.kg:30040 [15:06:50]ConnectInit lk.salyk.kg [15:06:50]Connected sock=10 [15:06:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2D 01 00 00 E4 CB 25 01 86 EF 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 83 00 00 00 F4 03 04 00 61 5E A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 20 08 00 00 35 04 06 00 95 93 DC E1 0A DC 0B CD CF E3 C8 3F 5B A7 [15:06:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 5E C9 47 00 3D 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 32 30 39 34 32 34 38 10 04 04 00 20 08 00 00 F4 03 04 00 FE 09 A6 66 B6 04 01 00 00 05 87 9E 1A 73 84 5F 1E [15:06:51]CommunicateWithHost err = 0 [15:06:51]CheckOFDResponse [15:06:51]1017 (14) - 77093643461234 [15:06:51]1041 (16) - 0000000002094248 [15:06:51]1040 (4) - 2080 [15:06:51]1012 (4) - 28.07.2024 09:06 [15:06:51]1206 (1) - 0 [15:06:51]OFD Sender: Remove packet 2080 [15:06:51]ProducePacketName [15:06:51]name=ofd_packets/00002080 [15:06:51]NVStorageDeleteData [15:06:51]OFD Sender: Processing packet 2081 [packets to send 1, broken 0] [15:06:51]ProducePacketName [15:06:51]name=ofd_packets/00002081 [15:06:51]OFD Sender: To server: pG, [15:06:51]CommunicateWithHost lk.salyk.kg:30040 [15:06:51]ConnectInit lk.salyk.kg [15:06:51]Connected sock=10 [15:06:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 3A 01 00 00 7E 4C 32 01 0C EA 5A 03 01 00 03 00 26 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 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 8A 5E A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 21 08 00 00 35 04 06 00 09 0E 2A 4E FA D1 C1 8F BB 3A 6B 3B CD B1 [15:06:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 28 6D 47 00 3B 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 32 30 39 34 32 34 38 10 04 04 00 21 08 00 00 F4 03 04 00 FF 09 A6 66 B6 04 01 00 00 49 9C B7 55 C2 28 2F E8 [15:06:52]CommunicateWithHost err = 0 [15:06:52]CheckOFDResponse [15:06:52]1017 (14) - 77093643461234 [15:06:52]1041 (16) - 0000000002094248 [15:06:52]1040 (4) - 2081 [15:06:52]1012 (4) - 28.07.2024 09:06 [15:06:52]1206 (1) - 0 [15:06:52]OFD Sender: Remove packet 2081 [15:06:52]ProducePacketName [15:06:52]name=ofd_packets/00002081 [15:06:52]NVStorageDeleteData [15:06:52]OFD Sender: No OFD packet to send [15:06:57]OFD Sender: No OFD packet to send [15:07:02]OFD Sender: No OFD packet to send [15:07:07]OFD Sender: No OFD packet to send [15:07:12]OFD Sender: No OFD packet to send [15:07:17]OFD Sender: No OFD packet to send [15:07:22]OFD Sender: No OFD packet to send [15:07:27]OFD Sender: No OFD packet to send [15:07:32]OFD Sender: No OFD packet to send [15:07:37]OFD Sender: No OFD packet to send [15:07:42]OFD Sender: No OFD packet to send [15:07:47]OFD Sender: No OFD packet to send [15:07:52]OFD Sender: No OFD packet to send [15:07:57]OFD Sender: No OFD packet to send [15:08:02]OFD Sender: No OFD packet to send [15:08:07]OFD Sender: No OFD packet to send [15:08:12]OFD Sender: No OFD packet to send [15:08:17]OFD Sender: No OFD packet to send [15:08:22]OFD Sender: No OFD packet to send [15:08:27]OFD Sender: No OFD packet to send [15:08:32]OFD Sender: No OFD packet to send [15:08:37]OFD Sender: No OFD packet to send [15:08:42]OFD Sender: No OFD packet to send [15:08:47]OFD Sender: No OFD packet to send [15:08:52]OFD Sender: No OFD packet to send [15:08:57]OFD Sender: No OFD packet to send [15:09:02]OFD Sender: No OFD packet to send [15:09:07]OFD Sender: No OFD packet to send [15:09:12]OFD Sender: No OFD packet to send [15:09:17]OFD Sender: No OFD packet to send [15:09:22]OFD Sender: No OFD packet to send [15:09:27]OFD Sender: No OFD packet to send [15:09:32]OFD Sender: No OFD packet to send [15:09:37]OFD Sender: No OFD packet to send [15:09:42]OFD Sender: No OFD packet to send [15:09:47]OFD Sender: No OFD packet to send [15:09:52]OFD Sender: No OFD packet to send [15:09:57]OFD Sender: No OFD packet to send [15:10:02]OFD Sender: No OFD packet to send [15:10:07]OFD Sender: No OFD packet to send [15:10:12]OFD Sender: No OFD packet to send [15:10:17]OFD Sender: No OFD packet to send [15:10:22]OFD Sender: No OFD packet to send [15:10:27]OFD Sender: No OFD packet to send [15:10:32]OFD Sender: No OFD packet to send [15:10:37]OFD Sender: No OFD packet to send [15:10:42]OFD Sender: No OFD packet to send [15:10:47]OFD Sender: No OFD packet to send [15:10:52]OFD Sender: No OFD packet to send [15:10:57]OFD Sender: No OFD packet to send [15:11:02]OFD Sender: No OFD packet to send [15:11:07]OFD Sender: No OFD packet to send [15:11:12]OFD Sender: No OFD packet to send [15:11:17]OFD Sender: No OFD packet to send [15:11:22]OFD Sender: No OFD packet to send [15:11:27]OFD Sender: No OFD packet to send [15:11:32]OFD Sender: No OFD packet to send [15:11:37]OFD Sender: No OFD packet to send [15:11:42]OFD Sender: No OFD packet to send [15:11:47]OFD Sender: No OFD packet to send [15:11:52]OFD Sender: No OFD packet to send [15:11:57]OFD Sender: No OFD packet to send [15:12:02]OFD Sender: No OFD packet to send [15:12:07]OFD Sender: No OFD packet to send [15:12:12]OFD Sender: No OFD packet to send [15:12:17]OFD Sender: No OFD packet to send [15:12:22]OFD Sender: No OFD packet to send [15:12:27]OFD Sender: No OFD packet to send [15:12:32]OFD Sender: No OFD packet to send [15:12:37]OFD Sender: No OFD packet to send [15:12:42]OFD Sender: No OFD packet to send [15:12:47]OFD Sender: No OFD packet to send [15:12:53]OFD Sender: No OFD packet to send [15:12:58]OFD Sender: No OFD packet to send [15:13:03]OFD Sender: No OFD packet to send [15:13:08]OFD Sender: No OFD packet to send [15:13:13]OFD Sender: No OFD packet to send [15:13:18]OFD Sender: No OFD packet to send [15:13:23]OFD Sender: No OFD packet to send [15:13:28]OFD Sender: No OFD packet to send [15:13:33]OFD Sender: No OFD packet to send [15:13:38]OFD Sender: No OFD packet to send [15:13:43]OFD Sender: No OFD packet to send [15:13:48]OFD Sender: No OFD packet to send [15:14:08]OFD Sender: No OFD packet to send [15:14:13]OFD Sender: No OFD packet to send [15:14:18]OFD Sender: No OFD packet to send [15:14:23]OFD Sender: No OFD packet to send [15:14:28]OFD Sender: No OFD packet to send [15:14:33]OFD Sender: No OFD packet to send [15:14:38]OFD Sender: No OFD packet to send [15:14:43]OFD Sender: No OFD packet to send [15:14:48]OFD Sender: No OFD packet to send [15:14:53]OFD Sender: No OFD packet to send [15:14:58]OFD Sender: No OFD packet to send [15:15:03]OFD Sender: No OFD packet to send [15:15:08]OFD Sender: No OFD packet to send [15:15:13]OFD Sender: No OFD packet to send [15:15:18]OFD Sender: No OFD packet to send [15:15:23]OFD Sender: No OFD packet to send [15:15:28]OFD Sender: No OFD packet to send [15:15:33]OFD Sender: No OFD packet to send [15:15:38]OFD Sender: No OFD packet to send [15:15:43]OFD Sender: No OFD packet to send [15:15:48]OFD Sender: No OFD packet to send [15:15:53]OFD Sender: No OFD packet to send [15:15:58]OFD Sender: No OFD packet to send [15:16:03]OFD Sender: No OFD packet to send [15:16:08]OFD Sender: No OFD packet to send [15:16:13]OFD Sender: No OFD packet to send [15:16:14]ConnectInit Can't connect to host [15:16:18]OFD Sender: No OFD packet to send [15:16:23]OFD Sender: No OFD packet to send [15:16:28]OFD Sender: No OFD packet to send [15:16:33]OFD Sender: No OFD packet to send [15:16:38]OFD Sender: No OFD packet to send [15:16:46]ConnectInit Can't connect to host [15:16:48]OFD Sender: No OFD packet to send [15:16:53]OFD Sender: No OFD packet to send [15:16:58]OFD Sender: No OFD packet to send [15:17:03]OFD Sender: No OFD packet to send [15:17:08]OFD Sender: No OFD packet to send [15:22:34]ConnectInit Can't connect to host [15:22:38]ConnectInit Can't take IP for lk.salyk.kg [15:22:38]CommunicateWithHost connect error [15:22:38]CommunicateWithHost err = -1 [15:22:38]OFD Sender: Server communicate error [15:22:43]OFD Sender: Processing packet 2082 [packets to send 1, broken 0] [15:22:43]ProducePacketName [15:22:43]name=ofd_packets/00002082 [15:22:43]OFD Sender: To server: pG, [15:22:43]CommunicateWithHost lk.salyk.kg:30040 [15:22:43]ConnectInit lk.salyk.kg [15:22:44]Connected sock=8 [15:22:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 35 01 00 00 85 E7 2D 01 CA 67 5A 03 01 00 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 30 30 36 38 32 30 30 30 32 38 30 06 04 2F 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 D0 BC D0 BE D1 85 D0 B8 D1 82 D0 BE 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 85 00 00 00 F4 03 04 00 07 61 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 22 08 00 00 35 04 06 00 D5 E9 A7 76 77 54 22 A1 F9 C2 6F 32 11 F9 [15:22:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 76 55 47 00 D3 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 32 30 39 34 32 34 38 10 04 04 00 22 08 00 00 F4 03 04 00 B7 0D A6 66 B6 04 01 00 00 54 72 F9 A0 AE CC 3A 0A [15:22:44]CommunicateWithHost err = 0 [15:22:44]CheckOFDResponse [15:22:44]1017 (14) - 77093643461234 [15:22:44]1041 (16) - 0000000002094248 [15:22:44]1040 (4) - 2082 [15:22:44]1012 (4) - 28.07.2024 09:21 [15:22:44]1206 (1) - 0 [15:22:44]OFD Sender: Remove packet 2082 [15:22:44]ProducePacketName [15:22:44]name=ofd_packets/00002082 [15:22:44]NVStorageDeleteData [15:22:44]OFD Sender: No OFD packet to send [15:22:49]OFD Sender: No OFD packet to send [15:22:54]OFD Sender: No OFD packet to send [15:22:59]OFD Sender: No OFD packet to send [15:23:04]OFD Sender: No OFD packet to send [15:23:09]OFD Sender: No OFD packet to send [15:23:14]OFD Sender: No OFD packet to send [15:23:19]OFD Sender: No OFD packet to send [15:23:24]OFD Sender: No OFD packet to send [15:23:29]OFD Sender: No OFD packet to send [15:23:34]OFD Sender: No OFD packet to send [15:23:39]OFD Sender: No OFD packet to send [15:23:44]OFD Sender: No OFD packet to send [15:23:49]OFD Sender: No OFD packet to send [15:23:54]OFD Sender: No OFD packet to send [15:23:59]OFD Sender: No OFD packet to send [15:24:04]OFD Sender: No OFD packet to send [15:24:09]OFD Sender: No OFD packet to send [15:24:14]OFD Sender: No OFD packet to send [15:24:19]OFD Sender: No OFD packet to send [15:24:24]OFD Sender: No OFD packet to send [15:24:29]OFD Sender: No OFD packet to send [15:24:34]OFD Sender: No OFD packet to send [15:24:39]OFD Sender: No OFD packet to send [15:24:44]OFD Sender: No OFD packet to send [15:24:49]OFD Sender: No OFD packet to send [15:24:54]OFD Sender: No OFD packet to send [15:24:59]OFD Sender: No OFD packet to send [15:25:04]OFD Sender: No OFD packet to send [15:25:09]OFD Sender: No OFD packet to send [15:25:14]OFD Sender: No OFD packet to send [15:25:19]OFD Sender: No OFD packet to send [15:25:24]OFD Sender: No OFD packet to send [15:25:29]OFD Sender: No OFD packet to send [15:25:34]OFD Sender: No OFD packet to send [15:25:39]OFD Sender: No OFD packet to send [15:25:44]OFD Sender: No OFD packet to send [15:25:49]OFD Sender: No OFD packet to send [15:25:54]OFD Sender: No OFD packet to send [15:25:59]OFD Sender: No OFD packet to send [15:26:04]OFD Sender: No OFD packet to send [15:26:09]OFD Sender: No OFD packet to send [15:26:14]OFD Sender: No OFD packet to send [15:26:19]OFD Sender: No OFD packet to send [15:26:24]OFD Sender: No OFD packet to send [15:26:29]OFD Sender: No OFD packet to send [15:26:34]OFD Sender: No OFD packet to send [15:26:39]OFD Sender: No OFD packet to send [15:31:37]ConnectInit Can't connect to host [15:31:40]OFD Sender: No OFD packet to send [15:31:45]OFD Sender: No OFD packet to send [15:31:50]OFD Sender: No OFD packet to send [15:31:55]OFD Sender: No OFD packet to send [15:32:00]OFD Sender: No OFD packet to send [15:32:05]OFD Sender: No OFD packet to send [15:32:10]OFD Sender: No OFD packet to send [15:32:15]OFD Sender: No OFD packet to send [15:32:20]OFD Sender: No OFD packet to send [15:32:25]OFD Sender: No OFD packet to send [15:32:30]OFD Sender: No OFD packet to send [15:32:35]OFD Sender: No OFD packet to send [15:32:40]OFD Sender: No OFD packet to send [15:32:45]OFD Sender: No OFD packet to send [15:32:50]OFD Sender: No OFD packet to send [15:32:55]OFD Sender: No OFD packet to send [15:33:00]OFD Sender: No OFD packet to send [15:37:46]ConnectInit Can't connect to host [15:37:50]OFD Sender: No OFD packet to send [15:37:55]OFD Sender: No OFD packet to send [15:38:00]OFD Sender: No OFD packet to send [15:38:05]OFD Sender: No OFD packet to send [15:38:10]OFD Sender: No OFD packet to send [15:38:15]OFD Sender: No OFD packet to send [15:38:20]OFD Sender: No OFD packet to send [15:38:25]OFD Sender: No OFD packet to send [15:38:30]OFD Sender: No OFD packet to send [15:38:35]OFD Sender: No OFD packet to send [15:38:40]OFD Sender: No OFD packet to send [15:38:45]OFD Sender: No OFD packet to send [15:38:50]OFD Sender: No OFD packet to send [15:38:55]OFD Sender: No OFD packet to send [15:39:00]OFD Sender: No OFD packet to send [15:39:05]OFD Sender: No OFD packet to send [15:39:10]OFD Sender: No OFD packet to send [15:39:15]OFD Sender: No OFD packet to send [15:39:16]accept exits with 10 [15:39:16]New connection [15:39:16]New thread 3067460964 created [15:39:16]Thread 3067317604 joined [15:39:16]Waiting for new connection... [15:39:16] Sock 10.Parse request [15:39:16]Sock 10.Check first char [15:39:16]Sock 10.First char is OK [15:39:16]request: POST /json_proto HTTP/1.0 [15:39:16]Method: POST [15:39:16]URL: /json_proto [15:39:16]Method is POST - this is cgi request [15:39:16]url: /json_proto [15:39:16]query_string will be loaded in cgi processing [15:39:16]execute_cgi json_proto POST (null) [15:39:16]execute_cgi path=json_proto method=POST [15:39:16]POST find Content-Length [15:39:16]Host: 172.17.45.132:8080 [15:39:16]Content-Length: 654 [15:39:16]Content-Type: application/json [15:39:16] [15:39:16]POST finish read [15:39:16]Found Content-Length = 654 [15:39:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126383", "tax_sys" : 0, "items" : [ { "code": "46214638", "name": "\u0420/\u0436 mentos p.white \u043D\u0435\u0436\u043D\u0430\u044F \u043C\u044F\u0442\u0430 16/15,5\u0433", "price" : 49.00, "quantity" : 2.000, "sum" : 98.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 98.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:39:16]execute_script... [15:39: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)126383", "tax_sys" : 0, "items" : [ { "code": "46214638", "name": "\u0420/\u0436 mentos p.white \u043D\u0435\u0436\u043D\u0430\u044F \u043C\u044F\u0442\u0430 16/15,5\u0433", "price" : 49.00, "quantity" : 2.000, "sum" : 98.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 98.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:39:16]POST & json_proto [15:39:16]process_json_proto [15:39:16]json parsed OK: [15:39:16]protocol is kg_v1.0 [15:39:16]action value=close_receipt [15:39:16]process_action close_receipt [15:39:16]cmd_close_receipt [15:39:16]MH_GetDate [15:39:16]Write to MH i2c: F0 00 00 28 55 6C [15:39:16]Write i2c OK [15:39:16]MH_I2C_Read... [15:39:16]Read from MH i2c: F0 [15:39:16]MH_I2C_Read... [15:39:16]Read from MH i2c: F0 09 00 [15:39:16]MH_I2C_Read... [15:39:16]Read from MH i2c: F0 09 00 28 55 00 2A 66 A6 66 E3 0B 90 66 F5 [15:39:16]GetLastDocTimeStamp 1722179847 [15:39:16]current date 1722181162 [15:39:16]FM_GetShiftState [15:39:16]SAM_PROTO_GetShiftState [15:39:16]wFMCommunicate request_size=4 [15:39:16]MH_SAM_APDU [15:39:16]CAPDU: 80 13 01 00 [15:39:16]Write to MH i2c: E2 08 00 29 55 80 13 01 00 00 00 00 00 FB [15:39:16]Write i2c OK [15:39:16]MH_I2C_Read... [15:39:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:39:16]Read from MH i2c: E2 [15:39:16]MH_I2C_Read... [15:39:16]Read from MH i2c: E2 0E 00 [15:39:16]MH_I2C_Read... [15:39:16]Read from MH i2c: E2 0E 00 29 55 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 EF [15:39:16]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [15:39:16]wFMCommunicate OK [15:39:16]SAM_PROTO_GetShiftState done [15:39:16]FM_GetShiftState done [15:39:16]opened in 1722125648 [15:39:16]opened+sec_in_day 1722212048 [15:39:16]quantity*price = 9800 [15:39:16]sum+1 = 9801 [15:39:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 98.00 НСП 1% : 0.87 НДС 12% : 10.41 Наличными: 98.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 134 28.07.2024 15:39 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2083 ФПД: 196013412613770 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T153922&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2083&fm=196013412613770&tin=02508201610067®Number=0000000000189667&sum=9800 0 [15:39:17]StoreToDocumentArchive [15:39:17]shift 13 fd 2083 [15:39:17]save to /storage/0013/doc_00002083 [15:39:17]save last doc name /storage/0013/doc_00002083 to /storage/kkm_last_doc_name [15:39:17]save OK [15:39:17]Clear old archive folders... [15:39:17]ProcessDocumentItem done err = 0, tmpTLVsize=289 [15:39:17]tlvbuf is 0204CB40 [15:39:17]SAM_PROTO_ClearQueue [15:39:17]wFMCommunicate request_size=4 [15:39:17]MH_SAM_APDU [15:39:17]CAPDU: 80 09 00 00 [15:39:17]Write to MH i2c: E2 08 00 36 55 80 09 00 00 00 00 00 00 FD [15:39:17]Write i2c OK [15:39:17]MH_I2C_Read... [15:39:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:39:17]Read from MH i2c: E2 [15:39:17]MH_I2C_Read... [15:39:17]Read from MH i2c: E2 03 00 [15:39:17]MH_I2C_Read... [15:39:17]Read from MH i2c: E2 03 00 36 55 00 90 00 FF [15:39:17]RAPDU: 90 00 [15:39:17]wFMCommunicate OK [15:39:17]SAM_PROTO_ClearQueue done [15:39:17]KKMCreateOFDPacket [15:39:17]OFDProtocolAddRootSTLVToBuf [15:39:17]FM_MakeSignedData [15:39:17]FM_MakeSignedData [15:39:17]SAM_PROTO_SignData [15:39:17]wFMCommunicate request_size=4 [15:39:17]MH_SAM_APDU [15:39:17]CAPDU: 80 0D 01 02 [15:39:17]Write to MH i2c: E2 08 00 37 55 80 0D 01 02 00 00 00 00 05 [15:39:17]Write i2c OK [15:39:17]MH_I2C_Read... [15:39:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:39:17]Read from MH i2c: E2 [15:39:17]MH_I2C_Read... [15:39:17]Read from MH i2c: E2 03 00 [15:39:17]MH_I2C_Read... [15:39:17]Read from MH i2c: E2 03 00 37 55 00 90 00 00 [15:39:17]RAPDU: 90 00 [15:39:17]wFMCommunicate OK [15:39:17]wFMCommunicate request_size=255 [15:39:17]MH_SAM_APDU [15:39:17]CAPDU: 80 0D 02 02 FA 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 08 00 34 36 32 31 34 36 33 38 06 04 34 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 2E 77 68 69 74 65 20 D0 BD D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 82 D0 B0 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 48 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 11 04 00 00 00 00 07 04 06 00 48 26 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 2A 66 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 [15:39:17]Write to MH i2c: E2 02 01 38 55 80 0D 02 02 FA 00 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 08 00 34 36 32 31 34 36 33 38 06 04 34 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 2E 77 68 69 74 65 20 D0 BD D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 82 D0 B0 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 48 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 11 04 00 00 00 00 07 04 06 00 48 26 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 2A 66 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 00 00 C3 [15:39:17]Write i2c OK [15:39:17]MH_I2C_Read... [15:39:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:39:18]Read from MH i2c: E2 [15:39:18]MH_I2C_Read... [15:39:18]Read from MH i2c: E2 03 00 [15:39:18]MH_I2C_Read... [15:39:18]Read from MH i2c: E2 03 00 38 55 00 90 00 01 [15:39:18]RAPDU: 90 00 [15:39:18]wFMCommunicate OK [15:39:18]wFMCommunicate request_size=48 [15:39:18]MH_SAM_APDU [15:39:18]CAPDU: 80 0D 02 02 2B 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 23 08 00 00 35 04 06 00 B2 45 ED D4 7E 8A [15:39:18]Write to MH i2c: E2 33 00 39 55 80 0D 02 02 2B 00 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 23 08 00 00 35 04 06 00 B2 45 ED D4 7E 8A 00 00 F6 [15:39:18]Write i2c OK [15:39:18]MH_I2C_Read... [15:39:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:39:18]Read from MH i2c: E2 [15:39:18]MH_I2C_Read... [15:39:18]Read from MH i2c: E2 03 00 [15:39:18]MH_I2C_Read... [15:39:18]Read from MH i2c: E2 03 00 39 55 00 90 00 02 [15:39:18]RAPDU: 90 00 [15:39:18]wFMCommunicate OK [15:39:18]wFMCommunicate request_size=4 [15:39:18]MH_SAM_APDU [15:39:18]CAPDU: 80 0D 03 02 [15:39:18]Write to MH i2c: E2 08 00 3A 55 80 0D 03 02 00 00 00 00 0A [15:39:18]Write i2c OK [15:39:18]MH_I2C_Read... [15:39:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:39:18]Read from MH i2c: E2 [15:39:18]MH_I2C_Read... [15:39:18]Read from MH i2c: E2 0B 00 [15:39:18]MH_I2C_Read... [15:39:18]Read from MH i2c: E2 0B 00 3A 55 00 56 02 80 94 A2 98 76 A9 90 00 D0 [15:39:18]RAPDU: 56 02 80 94 A2 98 76 A9 90 00 [15:39:18]wFMCommunicate OK [15:39:18]SAM_PROTO_SignData done [15:39:18]FM_MakeSignedData done [15:39:18]CreateOFDProtocolMessage [15:39:18]wFMCommunicate request_size=4 [15:39:18]MH_SAM_APDU [15:39:18]CAPDU: 80 11 00 00 [15:39:18]Write to MH i2c: E2 08 00 3B 55 80 11 00 00 00 00 00 00 0A [15:39:18]Write i2c OK [15:39:18]MH_I2C_Read... [15:39:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:39:18]Read from MH i2c: E2 [15:39:18]MH_I2C_Read... [15:39:18]Read from MH i2c: E2 17 00 [15:39:18]MH_I2C_Read... [15:39:18]Read from MH i2c: E2 17 00 3B 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 5A [15:39:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [15:39:18]wFMCommunicate OK [15:39:18]CreateOFDProtocolMessage done [15:39:18]OFDSenderStorePacket 2083 [15:39:18]StoreOFDPacket docnum=2083 [15:39:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 35 01 00 00 E0 65 2D 01 82 58 5A 03 01 00 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 08 00 34 36 32 31 34 36 33 38 06 04 34 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 2E 77 68 69 74 65 20 D0 BD D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 82 D0 B0 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 48 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 11 04 00 00 00 00 07 04 06 00 48 26 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 2A 66 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 23 08 00 00 35 04 06 00 B2 45 ED D4 7E 8A 56 02 80 94 A2 98 76 A9 [15:39:18]CheckFolder [15:39:18]dirname=/storage/ofd_packets [15:39:18]CheckFolder done [15:39:18]ProducePacketName [15:39:18]name=ofd_packets/00002083 [15:39:18]NVStorageSaveData ofd_packets/00002083 [15:39:18]File name is /storage/ofd_packets/00002083 [15:39:18]Write 339 bytes [15:39:18]NVStorageSaveData done [15:39:18]OFDSenderStorePacket done [15:39:18]KKMCreateOFDPacket done [15:39:18]NVStorageSaveData kkm_last_timestamp [15:39:18]File name is /storage/kkm_last_timestamp [15:39:18]Write 4 bytes [15:39:18]NVStorageSaveData done [15:39:18]ExternCall_PrintAddStr [15:39:18]wPrintStart [15:39:18]Write to MH i2c: 01 00 00 3C 55 91 [15:39:18]Write i2c OK [15:39:18]MH_I2C_Read... [15:39:18]Read from MH i2c: 01 [15:39:18]MH_I2C_Read... [15:39:18]Read from MH i2c: 01 07 00 [15:39:18]MH_I2C_Read... [15:39:18]Read from MH i2c: 01 07 00 3C 55 00 00 00 00 00 FF 0F A6 [15:39:18]RasterBufferAndPrint [15:39:18]line Счет N : (3)126383 [15:39:18]line ИНН: 02508201610067 [15:39:18]line Контрольно-Кассовый Чек [15:39:18]line ПРОДАЖА [15:39:18]line Товар: 46214638 [15:39:18]line Р/ж mentos p.white нежная мята 16/15,5г [15:39:18]line 2.000 * 49.00 [15:39:18]line = 98.00 [15:39:18]line НДС 12% НСП 1% [15:39:18]line > о реализуемом товаре [15:39:18]line ИТОГО: 98.00 [15:39:18]line НСП 1% : 0.87 [15:39:18]line НДС 12% : 10.41 [15:39:18]line Наличными: 98.00 [15:39:18]line Безнал.: 0.00 [15:39:18]line Место: АЗС № 127 "Партнер Нефть" [15:39:18]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [15:39:18]line СНО: Общий режим [15:39:18]line Чек 134 28.07.2024 15:39 [15:39:18]line Смена: 13 ФФД: 1.0 [15:39:18]line ЗНМ: 0300000161 [15:39:18]line РНМ: 0000000000189667 [15:39:18]line Версия ККМ: v1.0 [15:39:18]line ФМ: 0000000002094248 [15:39:18]line ФД: 2083 [15:39:18]line ФПД: 196013412613770 [15:39:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T153922&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2083&fm=196013412613770&tin=02508201610067®Number=0000000000189667&sum=9800 [15:39:18]line 0 [15:39:18]OFD Sender: Processing packet 2083 [packets to send 1, broken 0] [15:39:18]ProducePacketName [15:39:18]name=ofd_packets/00002083 [15:39:18]OFD Sender: To server: pG, [15:39:18]CommunicateWithHost lk.salyk.kg:30040 [15:39:18]ConnectInit lk.salyk.kg [15:39:18]written 0, free lines is 4095 [15:39:18]Connected sock=9 [15:39:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 35 01 00 00 E0 65 2D 01 82 58 5A 03 01 00 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 08 00 34 36 32 31 34 36 33 38 06 04 34 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 2E 77 68 69 74 65 20 D0 BD D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 82 D0 B0 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 48 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 11 04 00 00 00 00 07 04 06 00 48 26 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 2A 66 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 23 08 00 00 35 04 06 00 B2 45 ED D4 7E 8A 56 02 80 94 A2 98 76 A9 [15:39:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 15 17 47 00 BB F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 23 08 00 00 F4 03 04 00 9A 11 A6 66 B6 04 01 00 00 65 8A 73 85 95 3B EB 28 [15:39:18]CommunicateWithHost err = 0 [15:39:18]CheckOFDResponse [15:39:18]1017 (14) - 77093643461234 [15:39:18]1041 (16) - 0000000002094248 [15:39:18]1040 (4) - 2083 [15:39:18]1012 (4) - 28.07.2024 09:38 [15:39:18]1206 (1) - 0 [15:39:18]OFD Sender: Remove packet 2083 [15:39:18]ProducePacketName [15:39:18]name=ofd_packets/00002083 [15:39:18]NVStorageDeleteData [15:39:19]Write to MH i2c: 01 00 00 65 55 BA [15:39:19]Write i2c OK [15:39:19]MH_I2C_Read... [15:39:19]Read from MH i2c: 01 [15:39:19]MH_I2C_Read... [15:39:19]Read from MH i2c: 01 07 00 [15:39:19]MH_I2C_Read... [15:39:19]Read from MH i2c: 01 07 00 65 55 00 00 00 00 00 09 0D D7 [15:39:19]RasterBufferAndPrint [15:39:19]line [15:39:19]line [15:39:19]line [15:39:19]line [15:39:19]line [15:39:19]written 0, free lines is 3343 [15:39:19]MH_Cut [15:39:19]Write to MH i2c: D1 01 00 6C 55 01 93 [15:39:19]Write i2c OK [15:39:19]MH_I2C_Read... [15:39:19]Read from MH i2c: D1 [15:39:19]MH_I2C_Read... [15:39:19]Read from MH i2c: D1 01 00 [15:39:19]MH_I2C_Read... [15:39:19]Read from MH i2c: D1 01 00 6C 55 00 92 [15:39:19]Write to MH i2c: 01 00 00 6D 55 C2 [15:39:19]Write i2c OK [15:39:19]MH_I2C_Read... [15:39:19]OFD Sender: No OFD packet to send [15:39:19]*** Cut start [15:39:19]*** Partial cut [15:39:19]*** CUTSNS_PIN = 1 [15:39:19]*** CUTSNS_PIN = 0 [15:39:19]*** Brake cut motor [15:39:20]Read from MH i2c: 01 [15:39:20]MH_I2C_Read... [15:39:20]*** Stop cut motor [15:39:20]*** Cut end [15:39:20]Read from MH i2c: 01 07 00 [15:39:20]MH_I2C_Read... [15:39:20]Read from MH i2c: 01 07 00 6D 55 00 00 00 00 00 FF 0F D7 [15:39:20]process_action close_receipt done [15:39:20]requested_data is exist [15:39:20]produce_requested_data [15:39:20]requested_item fm.sn is exist - process it [15:39:20]wFMCommunicate request_size=4 [15:39:20]MH_SAM_APDU [15:39:20]CAPDU: 80 11 00 00 [15:39:20]Write to MH i2c: E2 08 00 6E 55 80 11 00 00 00 00 00 00 3D [15:39:20]Write i2c OK [15:39:20]MH_I2C_Read... [15:39:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:39:20]Read from MH i2c: E2 [15:39:20]MH_I2C_Read... [15:39:20]Read from MH i2c: E2 17 00 [15:39:20]MH_I2C_Read... [15:39:20]Read from MH i2c: E2 17 00 6E 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 8D [15:39:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [15:39:20]wFMCommunicate OK [15:39:20]requested_item fd.num is exist - process it [15:39:20]SAM_PROTO_GetFieldsCounters [15:39:20]wFMCommunicate request_size=4 [15:39:20]MH_SAM_APDU [15:39:20]CAPDU: 80 13 00 00 [15:39:20]Write to MH i2c: E2 08 00 6F 55 80 13 00 00 00 00 00 00 40 [15:39:20]Write i2c OK [15:39:20]MH_I2C_Read... [15:39:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:39:20]Read from MH i2c: E2 [15:39:20]MH_I2C_Read... [15:39:20]Read from MH i2c: E2 62 00 [15:39:20]MH_I2C_Read... [15:39:20]Read from MH i2c: E2 62 00 6F 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 23 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 34 [15:39:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 23 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:39:20]wFMCommunicate OK [15:39:20]SAM_PROTO_GetFieldsCounters done [15:39:20]requested_item shift.num is exist - process it [15:39:20]requested_item shift.opened is exist - process it [15:39:20]req_shift_opened [15:39:20]FM_GetShiftState [15:39:20]SAM_PROTO_GetShiftState [15:39:20]wFMCommunicate request_size=4 [15:39:20]MH_SAM_APDU [15:39:20]CAPDU: 80 13 01 00 [15:39:20]Write to MH i2c: E2 08 00 70 55 80 13 01 00 00 00 00 00 42 [15:39:20]Write i2c OK [15:39:20]MH_I2C_Read... [15:39:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:39:20]Read from MH i2c: E2 [15:39:20]MH_I2C_Read... [15:39:20]Read from MH i2c: E2 0E 00 [15:39:20]MH_I2C_Read... [15:39:20]Read from MH i2c: E2 0E 00 70 55 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 36 [15:39:20]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [15:39:20]wFMCommunicate OK [15:39:20]SAM_PROTO_GetShiftState done [15:39:20]FM_GetShiftState done [15:39:20]req_shift_opened done [15:39:20]requested_item shift.open_date is exist - process it [15:39:20]req_shift_open_date [15:39:20]req_shift_open_date done [15:39:20]produce_requested_data done [15:39:20]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2083,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [15:39:20]process_action_free close_receipt [15:39:20]json_value_free [15:39:20]json_value_free done [15:39:20]process_json_proto returns [15:39:20]Send response to host [15:39:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2083,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [15:39:20]free response buf [15:39:20]execute_script done [15:39:20]execute_script returns [15:39:20]free content buf [15:39:20]Sock 10.Close socket [15:39:20]Sock 10.Thread stoped [15:39:24]OFD Sender: No OFD packet to send [15:39:29]OFD Sender: No OFD packet to send [15:39:34]OFD Sender: No OFD packet to send [15:39:39]OFD Sender: No OFD packet to send [15:39:44]OFD Sender: No OFD packet to send [15:39:49]OFD Sender: No OFD packet to send [15:39:50]accept exits with 8 [15:39:50]New connection [15:39:50]New thread 3067317604 created [15:39:50]Thread 3067460964 joined [15:39:50]Waiting for new connection... [15:39:50] Sock 8.Parse request [15:39:50]Sock 8.Check first char [15:39:50]Sock 8.First char is OK [15:39:50]request: POST /json_proto HTTP/1.0 [15:39:50]Method: POST [15:39:50]URL: /json_proto [15:39:50]Method is POST - this is cgi request [15:39:50]url: /json_proto [15:39:50]query_string will be loaded in cgi processing [15:39:50]execute_cgi json_proto POST (null) [15:39:50]execute_cgi path=json_proto method=POST [15:39:50]POST find Content-Length [15:39:50]Host: 172.17.45.132:8080 [15:39:50]Content-Length: 644 [15:39:50]Content-Type: application/json [15:39:50] [15:39:50]POST finish read [15:39:50]Found Content-Length = 644 [15:39:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126384", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 35.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:39:50]execute_script... [15:39:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126384", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 35.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:39:50]POST & json_proto [15:39:50]process_json_proto [15:39:50]json parsed OK: [15:39:50]protocol is kg_v1.0 [15:39:50]action value=close_receipt [15:39:50]process_action close_receipt [15:39:50]cmd_close_receipt [15:39:50]MH_GetDate [15:39:50]Write to MH i2c: F0 00 00 71 55 B5 [15:39:50]Write i2c OK [15:39:50]MH_I2C_Read... [15:39:50]Read from MH i2c: F0 [15:39:50]MH_I2C_Read... [15:39:50]Read from MH i2c: F0 09 00 [15:39:50]MH_I2C_Read... [15:39:50]Read from MH i2c: F0 09 00 71 55 00 4C 66 A6 66 E3 0B 90 66 60 [15:39:50]GetLastDocTimeStamp 1722181162 [15:39:50]current date 1722181196 [15:39:50]FM_GetShiftState [15:39:50]SAM_PROTO_GetShiftState [15:39:50]wFMCommunicate request_size=4 [15:39:50]MH_SAM_APDU [15:39:50]CAPDU: 80 13 01 00 [15:39:50]Write to MH i2c: E2 08 00 72 55 80 13 01 00 00 00 00 00 44 [15:39:50]Write i2c OK [15:39:50]MH_I2C_Read... [15:39:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:39:50]Read from MH i2c: E2 [15:39:50]MH_I2C_Read... [15:39:50]Read from MH i2c: E2 0E 00 [15:39:50]MH_I2C_Read... [15:39:50]Read from MH i2c: E2 0E 00 72 55 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 38 [15:39:50]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [15:39:50]wFMCommunicate OK [15:39:50]SAM_PROTO_GetShiftState done [15:39:50]FM_GetShiftState done [15:39:50]opened in 1722125648 [15:39:50]opened+sec_in_day 1722212048 [15:39:50]quantity*price = 3500 [15:39:50]sum+1 = 3501 [15:39:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 35.00 НСП 1% : 0.31 НДС 12% : 3.72 Наличными: 35.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 135 28.07.2024 15:39 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2084 ФПД: 148132953008734 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T153956&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2084&fm=148132953008734&tin=02508201610067®Number=0000000000189667&sum=3500 0 [15:39:51]StoreToDocumentArchive [15:39:51]shift 13 fd 2084 [15:39:51]save to /storage/0013/doc_00002084 [15:39:51]save last doc name /storage/0013/doc_00002084 to /storage/kkm_last_doc_name [15:39:51]save OK [15:39:51]Clear old archive folders... [15:39:51]ProcessDocumentItem done err = 0, tmpTLVsize=275 [15:39:51]tlvbuf is 02048350 [15:39:51]SAM_PROTO_ClearQueue [15:39:51]wFMCommunicate request_size=4 [15:39:51]MH_SAM_APDU [15:39:51]CAPDU: 80 09 00 00 [15:39:51]Write to MH i2c: E2 08 00 7F 55 80 09 00 00 00 00 00 00 46 [15:39:51]Write i2c OK [15:39:51]MH_I2C_Read... [15:39:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:39:51]Read from MH i2c: E2 [15:39:51]MH_I2C_Read... [15:39:51]Read from MH i2c: E2 03 00 [15:39:51]MH_I2C_Read... [15:39:51]Read from MH i2c: E2 03 00 7F 55 00 90 00 48 [15:39:51]RAPDU: 90 00 [15:39:51]wFMCommunicate OK [15:39:51]SAM_PROTO_ClearQueue done [15:39:51]KKMCreateOFDPacket [15:39:51]OFDProtocolAddRootSTLVToBuf [15:39:51]FM_MakeSignedData [15:39:51]FM_MakeSignedData [15:39:51]SAM_PROTO_SignData [15:39:51]wFMCommunicate request_size=4 [15:39:51]MH_SAM_APDU [15:39:51]CAPDU: 80 0D 01 02 [15:39:51]Write to MH i2c: E2 08 00 80 55 80 0D 01 02 00 00 00 00 4E [15:39:51]Write i2c OK [15:39:51]MH_I2C_Read... [15:39:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:39:51]Read from MH i2c: E2 [15:39:51]MH_I2C_Read... [15:39:51]Read from MH i2c: E2 03 00 [15:39:51]MH_I2C_Read... [15:39:51]Read from MH i2c: E2 03 00 80 55 00 90 00 49 [15:39:51]RAPDU: 90 00 [15:39:51]wFMCommunicate OK [15:39:51]wFMCommunicate request_size=255 [15:39:51]MH_SAM_APDU [15:39:51]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 4C 66 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 [15:39:51]Write to MH i2c: E2 02 01 81 55 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 4C 66 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 00 00 94 [15:39:51]Write i2c OK [15:39:51]MH_I2C_Read... [15:39:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:39:52]Read from MH i2c: E2 [15:39:52]MH_I2C_Read... [15:39:52]Read from MH i2c: E2 03 00 [15:39:52]MH_I2C_Read... [15:39:52]Read from MH i2c: E2 03 00 81 55 00 90 00 4A [15:39:52]RAPDU: 90 00 [15:39:52]wFMCommunicate OK [15:39:52]wFMCommunicate request_size=34 [15:39:52]MH_SAM_APDU [15:39:52]CAPDU: 80 0D 02 02 1D 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 24 08 00 00 35 04 06 00 86 B9 E4 0B 2A 5E [15:39:52]Write to MH i2c: E2 25 00 82 55 80 0D 02 02 1D 00 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 24 08 00 00 35 04 06 00 86 B9 E4 0B 2A 5E 00 00 F1 [15:39:52]Write i2c OK [15:39:52]MH_I2C_Read... [15:39:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:39:52]Read from MH i2c: E2 [15:39:52]MH_I2C_Read... [15:39:52]Read from MH i2c: E2 03 00 [15:39:52]MH_I2C_Read... [15:39:52]Read from MH i2c: E2 03 00 82 55 00 90 00 4B [15:39:52]RAPDU: 90 00 [15:39:52]wFMCommunicate OK [15:39:52]wFMCommunicate request_size=4 [15:39:52]MH_SAM_APDU [15:39:52]CAPDU: 80 0D 03 02 [15:39:52]Write to MH i2c: E2 08 00 83 55 80 0D 03 02 00 00 00 00 53 [15:39:52]Write i2c OK [15:39:52]MH_I2C_Read... [15:39:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:39:52]Read from MH i2c: E2 [15:39:52]MH_I2C_Read... [15:39:52]Read from MH i2c: E2 0B 00 [15:39:52]MH_I2C_Read... [15:39:52]Read from MH i2c: E2 0B 00 83 55 00 82 8A 22 4D DE 2E 06 E0 90 00 C1 [15:39:52]RAPDU: 82 8A 22 4D DE 2E 06 E0 90 00 [15:39:52]wFMCommunicate OK [15:39:52]SAM_PROTO_SignData done [15:39:52]FM_MakeSignedData done [15:39:52]CreateOFDProtocolMessage [15:39:52]wFMCommunicate request_size=4 [15:39:52]MH_SAM_APDU [15:39:52]CAPDU: 80 11 00 00 [15:39:52]Write to MH i2c: E2 08 00 84 55 80 11 00 00 00 00 00 00 53 [15:39:52]Write i2c OK [15:39:52]MH_I2C_Read... [15:39:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:39:52]Read from MH i2c: E2 [15:39:52]MH_I2C_Read... [15:39:52]Read from MH i2c: E2 17 00 [15:39:52]MH_I2C_Read... [15:39:52]Read from MH i2c: E2 17 00 84 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 A3 [15:39:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [15:39:52]wFMCommunicate OK [15:39:52]CreateOFDProtocolMessage done [15:39:52]OFDSenderStorePacket 2084 [15:39:52]StoreOFDPacket docnum=2084 [15:39:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 27 01 00 00 EA 7B 1F 01 09 A7 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 4C 66 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 24 08 00 00 35 04 06 00 86 B9 E4 0B 2A 5E 82 8A 22 4D DE 2E 06 E0 [15:39:52]CheckFolder [15:39:52]dirname=/storage/ofd_packets [15:39:52]CheckFolder done [15:39:52]ProducePacketName [15:39:52]name=ofd_packets/00002084 [15:39:52]NVStorageSaveData ofd_packets/00002084 [15:39:52]File name is /storage/ofd_packets/00002084 [15:39:52]Write 325 bytes [15:39:52]NVStorageSaveData done [15:39:52]OFDSenderStorePacket done [15:39:52]KKMCreateOFDPacket done [15:39:52]NVStorageSaveData kkm_last_timestamp [15:39:52]File name is /storage/kkm_last_timestamp [15:39:52]Write 4 bytes [15:39:52]NVStorageSaveData done [15:39:52]ExternCall_PrintAddStr [15:39:52]wPrintStart [15:39:52]Write to MH i2c: 01 00 00 85 55 DA [15:39:52]Write i2c OK [15:39:52]MH_I2C_Read... [15:39:52]Read from MH i2c: 01 [15:39:52]MH_I2C_Read... [15:39:52]Read from MH i2c: 01 07 00 [15:39:52]MH_I2C_Read... [15:39:52]Read from MH i2c: 01 07 00 85 55 00 00 00 00 00 FF 0F EF [15:39:52]RasterBufferAndPrint [15:39:52]line Счет N : (3)126384 [15:39:52]line ИНН: 02508201610067 [15:39:52]line Контрольно-Кассовый Чек [15:39:52]line ПРОДАЖА [15:39:52]line Товар: 4700000310326 [15:39:52]line Вода Адыгене 1л б/г [15:39:52]line 1.000 * 35.00 [15:39:52]line = 35.00 [15:39:52]line НДС 12% НСП 1% [15:39:52]line > о реализуемом товаре [15:39:52]line ИТОГО: 35.00 [15:39:52]line НСП 1% : 0.31 [15:39:52]line НДС 12% : 3.72 [15:39:52]line Наличными: 35.00 [15:39:52]line Безнал.: 0.00 [15:39:52]line Место: АЗС № 127 "Партнер Нефть" [15:39:52]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [15:39:52]line СНО: Общий режим [15:39:52]line Чек 135 28.07.2024 15:39 [15:39:52]line Смена: 13 ФФД: 1.0 [15:39:52]line ЗНМ: 0300000161 [15:39:52]line РНМ: 0000000000189667 [15:39:52]line Версия ККМ: v1.0 [15:39:52]line ФМ: 0000000002094248 [15:39:52]line ФД: 2084 [15:39:52]line ФПД: 148132953008734 [15:39:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T153956&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2084&fm=148132953008734&tin=02508201610067®Number=0000000000189667&sum=3500 [15:39:52]line 0 [15:39:52]OFD Sender: Processing packet 2084 [packets to send 1, broken 0] [15:39:52]ProducePacketName [15:39:52]name=ofd_packets/00002084 [15:39:52]OFD Sender: To server: pG, [15:39:52]CommunicateWithHost lk.salyk.kg:30040 [15:39:52]ConnectInit lk.salyk.kg [15:39:52]written 0, free lines is 4095 [15:39:52]Connected sock=10 [15:39:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 27 01 00 00 EA 7B 1F 01 09 A7 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 4C 66 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 24 08 00 00 35 04 06 00 86 B9 E4 0B 2A 5E 82 8A 22 4D DE 2E 06 E0 [15:39:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 CC 94 47 00 BD 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 24 08 00 00 F4 03 04 00 BC 11 A6 66 B6 04 01 00 00 98 EB C5 DC 6B 68 45 AC [15:39:53]CommunicateWithHost err = 0 [15:39:53]CheckOFDResponse [15:39:53]1017 (14) - 77093643461234 [15:39:53]1041 (16) - 0000000002094248 [15:39:53]1040 (4) - 2084 [15:39:53]1012 (4) - 28.07.2024 09:39 [15:39:53]1206 (1) - 0 [15:39:53]OFD Sender: Remove packet 2084 [15:39:53]ProducePacketName [15:39:53]name=ofd_packets/00002084 [15:39:53]NVStorageDeleteData [15:39:53]Write to MH i2c: 01 00 00 AD 55 02 [15:39:53]Write i2c OK [15:39:53]MH_I2C_Read... [15:39:53]Read from MH i2c: 01 [15:39:53]MH_I2C_Read... [15:39:53]Read from MH i2c: 01 07 00 [15:39:53]MH_I2C_Read... [15:39:53]Read from MH i2c: 01 07 00 AD 55 00 00 00 00 00 22 0D 38 [15:39:53]RasterBufferAndPrint [15:39:53]line [15:39:53]line [15:39:53]line [15:39:53]line [15:39:53]line [15:39:53]written 0, free lines is 3370 [15:39:53]MH_Cut [15:39:53]Write to MH i2c: D1 01 00 B4 55 01 DB [15:39:53]Write i2c OK [15:39:53]MH_I2C_Read... [15:39:53]Read from MH i2c: D1 [15:39:53]MH_I2C_Read... [15:39:53]Read from MH i2c: D1 01 00 [15:39:53]MH_I2C_Read... [15:39:53]Read from MH i2c: D1 01 00 B4 55 00 DA [15:39:53]Write to MH i2c: 01 00 00 B5 55 0A [15:39:53]Write i2c OK [15:39:53]MH_I2C_Read... [15:39:53]OFD Sender: No OFD packet to send [15:39:53]*** Cut start [15:39:53]*** Partial cut [15:39:53]*** CUTSNS_PIN = 1 [15:39:53]*** CUTSNS_PIN = 0 [15:39:54]*** Brake cut motor [15:39:54]Read from MH i2c: 01 [15:39:54]MH_I2C_Read... [15:39:54]*** Stop cut motor [15:39:54]*** Cut end [15:39:54]Read from MH i2c: 01 07 00 [15:39:54]MH_I2C_Read... [15:39:54]Read from MH i2c: 01 07 00 B5 55 00 00 00 00 00 FF 0F 1F [15:39:54]process_action close_receipt done [15:39:54]requested_data is exist [15:39:54]produce_requested_data [15:39:54]requested_item fm.sn is exist - process it [15:39:54]wFMCommunicate request_size=4 [15:39:54]MH_SAM_APDU [15:39:54]CAPDU: 80 11 00 00 [15:39:54]Write to MH i2c: E2 08 00 B6 55 80 11 00 00 00 00 00 00 85 [15:39:54]Write i2c OK [15:39:54]MH_I2C_Read... [15:39:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:39:54]Read from MH i2c: E2 [15:39:54]MH_I2C_Read... [15:39:54]Read from MH i2c: E2 17 00 [15:39:54]MH_I2C_Read... [15:39:54]Read from MH i2c: E2 17 00 B6 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 D5 [15:39:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [15:39:54]wFMCommunicate OK [15:39:54]requested_item fd.num is exist - process it [15:39:54]SAM_PROTO_GetFieldsCounters [15:39:54]wFMCommunicate request_size=4 [15:39:54]MH_SAM_APDU [15:39:54]CAPDU: 80 13 00 00 [15:39:54]Write to MH i2c: E2 08 00 B7 55 80 13 00 00 00 00 00 00 88 [15:39:54]Write i2c OK [15:39:54]MH_I2C_Read... [15:39:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:39:54]Read from MH i2c: E2 [15:39:54]MH_I2C_Read... [15:39:54]Read from MH i2c: E2 62 00 [15:39:54]MH_I2C_Read... [15:39:54]Read from MH i2c: E2 62 00 B7 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 24 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [15:39:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 24 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:39:54]wFMCommunicate OK [15:39:54]SAM_PROTO_GetFieldsCounters done [15:39:54]requested_item shift.num is exist - process it [15:39:54]requested_item shift.opened is exist - process it [15:39:54]req_shift_opened [15:39:54]FM_GetShiftState [15:39:54]SAM_PROTO_GetShiftState [15:39:54]wFMCommunicate request_size=4 [15:39:54]MH_SAM_APDU [15:39:54]CAPDU: 80 13 01 00 [15:39:54]Write to MH i2c: E2 08 00 B8 55 80 13 01 00 00 00 00 00 8A [15:39:54]Write i2c OK [15:39:54]MH_I2C_Read... [15:39:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:39:54]Read from MH i2c: E2 [15:39:54]MH_I2C_Read... [15:39:54]Read from MH i2c: E2 0E 00 [15:39:54]MH_I2C_Read... [15:39:54]Read from MH i2c: E2 0E 00 B8 55 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 7E [15:39:54]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [15:39:54]wFMCommunicate OK [15:39:54]SAM_PROTO_GetShiftState done [15:39:54]FM_GetShiftState done [15:39:54]req_shift_opened done [15:39:54]requested_item shift.open_date is exist - process it [15:39:54]req_shift_open_date [15:39:54]req_shift_open_date done [15:39:54]produce_requested_data done [15:39:54]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2084,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [15:39:54]process_action_free close_receipt [15:39:54]json_value_free [15:39:54]json_value_free done [15:39:54]process_json_proto returns [15:39:54]Send response to host [15:39:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2084,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [15:39:54]free response buf [15:39:54]execute_script done [15:39:54]execute_script returns [15:39:54]free content buf [15:39:54]Sock 8.Close socket [15:39:54]Sock 8.Thread stoped [15:39:58]OFD Sender: No OFD packet to send [15:40:03]OFD Sender: No OFD packet to send [15:40:08]OFD Sender: No OFD packet to send [15:40:13]OFD Sender: No OFD packet to send [15:40:18]OFD Sender: No OFD packet to send [15:40:23]OFD Sender: No OFD packet to send [15:40:25]accept exits with 9 [15:40:25]New connection [15:40:25]New thread 3067460964 created [15:40:25]Thread 3067317604 joined [15:40:25]Waiting for new connection... [15:40:25] Sock 9.Parse request [15:40:25]Sock 9.Check first char [15:40:25]Sock 9.First char is OK [15:40:25]request: POST /json_proto HTTP/1.0 [15:40:25]Method: POST [15:40:25]URL: /json_proto [15:40:25]Method is POST - this is cgi request [15:40:25]url: /json_proto [15:40:25]query_string will be loaded in cgi processing [15:40:25]execute_cgi json_proto POST (null) [15:40:25]execute_cgi path=json_proto method=POST [15:40:25]POST find Content-Length [15:40:25]Host: 172.17.45.132:8080 [15:40:25]Content-Length: 645 [15:40:25]Content-Type: application/json [15:40:25] [15:40:25]POST finish read [15:40:25]Found Content-Length = 645 [15:40:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126385", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\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" ] } } [15:40:25]execute_script... [15:40:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126385", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\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" ] } } [15:40:25]POST & json_proto [15:40:25]process_json_proto [15:40:25]json parsed OK: [15:40:25]protocol is kg_v1.0 [15:40:25]action value=close_receipt [15:40:25]process_action close_receipt [15:40:25]cmd_close_receipt [15:40:25]MH_GetDate [15:40:25]Write to MH i2c: F0 00 00 B9 55 FD [15:40:25]Write i2c OK [15:40:25]MH_I2C_Read... [15:40:25]Read from MH i2c: F0 [15:40:25]MH_I2C_Read... [15:40:25]Read from MH i2c: F0 09 00 [15:40:25]MH_I2C_Read... [15:40:25]Read from MH i2c: F0 09 00 B9 55 00 6F 66 A6 66 E3 0B 90 66 CB [15:40:25]GetLastDocTimeStamp 1722181196 [15:40:25]current date 1722181231 [15:40:25]FM_GetShiftState [15:40:25]SAM_PROTO_GetShiftState [15:40:25]wFMCommunicate request_size=4 [15:40:25]MH_SAM_APDU [15:40:25]CAPDU: 80 13 01 00 [15:40:25]Write to MH i2c: E2 08 00 BA 55 80 13 01 00 00 00 00 00 8C [15:40:25]Write i2c OK [15:40:25]MH_I2C_Read... [15:40:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:25]Read from MH i2c: E2 [15:40:25]MH_I2C_Read... [15:40:25]Read from MH i2c: E2 0E 00 [15:40:25]MH_I2C_Read... [15:40:25]Read from MH i2c: E2 0E 00 BA 55 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 80 [15:40:25]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [15:40:25]wFMCommunicate OK [15:40:25]SAM_PROTO_GetShiftState done [15:40:25]FM_GetShiftState done [15:40:25]opened in 1722125648 [15:40:25]opened+sec_in_day 1722212048 [15:40:25]quantity*price = 6500 [15:40:25]sum+1 = 6501 [15:40:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 136 28.07.2024 15:40 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2085 ФПД: 250757003438533 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T154031&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2085&fm=250757003438533&tin=02508201610067®Number=0000000000189667&sum=6500 0 [15:40:26]StoreToDocumentArchive [15:40:26]shift 13 fd 2085 [15:40:26]save to /storage/0013/doc_00002085 [15:40:26]save last doc name /storage/0013/doc_00002085 to /storage/kkm_last_doc_name [15:40:26]save OK [15:40:26]Clear old archive folders... [15:40:26]ProcessDocumentItem done err = 0, tmpTLVsize=272 [15:40:26]tlvbuf is 01FC2790 [15:40:26]SAM_PROTO_ClearQueue [15:40:26]wFMCommunicate request_size=4 [15:40:26]MH_SAM_APDU [15:40:26]CAPDU: 80 09 00 00 [15:40:26]Write to MH i2c: E2 08 00 C7 55 80 09 00 00 00 00 00 00 8E [15:40:26]Write i2c OK [15:40:26]MH_I2C_Read... [15:40:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:40:26]Read from MH i2c: E2 [15:40:26]MH_I2C_Read... [15:40:26]Read from MH i2c: E2 03 00 [15:40:26]MH_I2C_Read... [15:40:26]Read from MH i2c: E2 03 00 C7 55 00 90 00 90 [15:40:26]RAPDU: 90 00 [15:40:26]wFMCommunicate OK [15:40:26]SAM_PROTO_ClearQueue done [15:40:26]KKMCreateOFDPacket [15:40:26]OFDProtocolAddRootSTLVToBuf [15:40:26]FM_MakeSignedData [15:40:26]FM_MakeSignedData [15:40:26]SAM_PROTO_SignData [15:40:26]wFMCommunicate request_size=4 [15:40:26]MH_SAM_APDU [15:40:26]CAPDU: 80 0D 01 02 [15:40:26]Write to MH i2c: E2 08 00 C8 55 80 0D 01 02 00 00 00 00 96 [15:40:26]Write i2c OK [15:40:26]MH_I2C_Read... [15:40:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:40:26]Read from MH i2c: E2 [15:40:26]MH_I2C_Read... [15:40:26]Read from MH i2c: E2 03 00 [15:40:26]MH_I2C_Read... [15:40:26]Read from MH i2c: E2 03 00 C8 55 00 90 00 91 [15:40:26]RAPDU: 90 00 [15:40:26]wFMCommunicate OK [15:40:26]wFMCommunicate request_size=255 [15:40:26]MH_SAM_APDU [15:40:26]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD 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 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 88 00 00 00 F4 03 04 00 6F 66 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 [15:40:26]Write to MH i2c: E2 02 01 C9 55 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD 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 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 88 00 00 00 F4 03 04 00 6F 66 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 00 00 64 [15:40:26]Write i2c OK [15:40:26]MH_I2C_Read... [15:40:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:27]Read from MH i2c: E2 [15:40:27]MH_I2C_Read... [15:40:27]Read from MH i2c: E2 03 00 [15:40:27]MH_I2C_Read... [15:40:27]Read from MH i2c: E2 03 00 C9 55 00 90 00 92 [15:40:27]RAPDU: 90 00 [15:40:27]wFMCommunicate OK [15:40:27]wFMCommunicate request_size=31 [15:40:27]MH_SAM_APDU [15:40:27]CAPDU: 80 0D 02 02 1A 30 32 30 39 34 32 34 38 10 04 04 00 25 08 00 00 35 04 06 00 E4 0F EA 1D 69 C5 [15:40:27]Write to MH i2c: E2 22 00 CA 55 80 0D 02 02 1A 00 30 32 30 39 34 32 34 38 10 04 04 00 25 08 00 00 35 04 06 00 E4 0F EA 1D 69 C5 00 00 16 [15:40:27]Write i2c OK [15:40:27]MH_I2C_Read... [15:40:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:27]Read from MH i2c: E2 [15:40:27]MH_I2C_Read... [15:40:27]Read from MH i2c: E2 03 00 [15:40:27]MH_I2C_Read... [15:40:27]Read from MH i2c: E2 03 00 CA 55 00 90 00 93 [15:40:27]RAPDU: 90 00 [15:40:27]wFMCommunicate OK [15:40:27]wFMCommunicate request_size=4 [15:40:27]MH_SAM_APDU [15:40:27]CAPDU: 80 0D 03 02 [15:40:27]Write to MH i2c: E2 08 00 CB 55 80 0D 03 02 00 00 00 00 9B [15:40:27]Write i2c OK [15:40:27]MH_I2C_Read... [15:40:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:40:27]Read from MH i2c: E2 [15:40:27]MH_I2C_Read... [15:40:27]Read from MH i2c: E2 0B 00 [15:40:27]MH_I2C_Read... [15:40:27]Read from MH i2c: E2 0B 00 CB 55 00 EA 81 0C 63 93 56 71 CC 90 00 9C [15:40:27]RAPDU: EA 81 0C 63 93 56 71 CC 90 00 [15:40:27]wFMCommunicate OK [15:40:27]SAM_PROTO_SignData done [15:40:27]FM_MakeSignedData done [15:40:27]CreateOFDProtocolMessage [15:40:27]wFMCommunicate request_size=4 [15:40:27]MH_SAM_APDU [15:40:27]CAPDU: 80 11 00 00 [15:40:27]Write to MH i2c: E2 08 00 CC 55 80 11 00 00 00 00 00 00 9B [15:40:27]Write i2c OK [15:40:27]MH_I2C_Read... [15:40:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:27]Read from MH i2c: E2 [15:40:27]MH_I2C_Read... [15:40:27]Read from MH i2c: E2 17 00 [15:40:27]MH_I2C_Read... [15:40:27]Read from MH i2c: E2 17 00 CC 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 EB [15:40:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [15:40:27]wFMCommunicate OK [15:40:27]CreateOFDProtocolMessage done [15:40:27]OFDSenderStorePacket 2085 [15:40:27]StoreOFDPacket docnum=2085 [15:40:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 24 01 00 00 6B 71 1C 01 84 FE 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD 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 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 88 00 00 00 F4 03 04 00 6F 66 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 25 08 00 00 35 04 06 00 E4 0F EA 1D 69 C5 EA 81 0C 63 93 56 71 CC [15:40:27]CheckFolder [15:40:27]dirname=/storage/ofd_packets [15:40:27]CheckFolder done [15:40:27]ProducePacketName [15:40:27]name=ofd_packets/00002085 [15:40:27]NVStorageSaveData ofd_packets/00002085 [15:40:27]File name is /storage/ofd_packets/00002085 [15:40:27]Write 322 bytes [15:40:27]NVStorageSaveData done [15:40:27]OFDSenderStorePacket done [15:40:27]KKMCreateOFDPacket done [15:40:27]NVStorageSaveData kkm_last_timestamp [15:40:27]File name is /storage/kkm_last_timestamp [15:40:27]Write 4 bytes [15:40:27]NVStorageSaveData done [15:40:27]ExternCall_PrintAddStr [15:40:27]wPrintStart [15:40:27]Write to MH i2c: 01 00 00 CD 55 22 [15:40:27]OFD Sender: Processing packet 2085 [packets to send 1, broken 0] [15:40:27]ProducePacketName [15:40:27]name=ofd_packets/00002085 [15:40:27]OFD Sender: To server: pG, [15:40:27]CommunicateWithHost lk.salyk.kg:30040 [15:40:27]ConnectInit lk.salyk.kg [15:40:27]Write i2c OK [15:40:27]MH_I2C_Read... [15:40:27]Read from MH i2c: 01 [15:40:27]MH_I2C_Read... [15:40:27]Read from MH i2c: 01 07 00 [15:40:27]MH_I2C_Read... [15:40:27]Read from MH i2c: 01 07 00 CD 55 00 00 00 00 00 FF 0F 37 [15:40:27]RasterBufferAndPrint [15:40:27]line Счет N : (3)126385 [15:40:27]line ИНН: 02508201610067 [15:40:27]line Контрольно-Кассовый Чек [15:40:27]line ПРОДАЖА [15:40:27]line Товар: 47011656 [15:40:27]line Водка Пшеничная 0,1л [15:40:27]line 1.000 * 65.00 [15:40:27]line = 65.00 [15:40:27]line НДС 12% НСП 1% [15:40:27]line > о реализуемом товаре [15:40:27]line ИТОГО: 65.00 [15:40:27]line НСП 1% : 0.57 [15:40:27]line НДС 12% : 6.90 [15:40:27]line Наличными: 65.00 [15:40:27]line Безнал.: 0.00 [15:40:27]line Место: АЗС № 127 "Партнер Нефть" [15:40:27]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [15:40:27]line СНО: Общий режим [15:40:27]line Чек 136 28.07.2024 15:40 [15:40:27]line Смена: 13 ФФД: 1.0 [15:40:27]line ЗНМ: 0300000161 [15:40:27]line РНМ: 0000000000189667 [15:40:27]line Версия ККМ: v1.0 [15:40:27]line ФМ: 0000000002094248 [15:40:27]line ФД: 2085 [15:40:27]line ФПД: 250757003438533 [15:40:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T154031&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2085&fm=250757003438533&tin=02508201610067®Number=0000000000189667&sum=6500 [15:40:27]line 0 [15:40:27]written 0, free lines is 4095 [15:40:27]Write to MH i2c: 01 00 00 F5 55 4A [15:40:27]Write i2c OK [15:40:27]MH_I2C_Read... [15:40:27]Read from MH i2c: 01 [15:40:27]MH_I2C_Read... [15:40:27]Read from MH i2c: 01 07 00 [15:40:27]MH_I2C_Read... [15:40:27]Read from MH i2c: 01 07 00 F5 55 00 00 00 00 00 08 0D 66 [15:40:27]RasterBufferAndPrint [15:40:27]line [15:40:27]line [15:40:27]line [15:40:27]line [15:40:27]line [15:40:27]written 0, free lines is 3342 [15:40:27]MH_Cut [15:40:27]Write to MH i2c: D1 01 00 FC 55 01 23 [15:40:27]Write i2c OK [15:40:27]MH_I2C_Read... [15:40:27]Read from MH i2c: D1 [15:40:27]MH_I2C_Read... [15:40:27]Read from MH i2c: D1 01 00 [15:40:27]MH_I2C_Read... [15:40:27]Read from MH i2c: D1 01 00 FC 55 00 22 [15:40:27]Write to MH i2c: 01 00 00 FD 55 52 [15:40:27]Write i2c OK [15:40:27]MH_I2C_Read... [15:40:28]*** Cut start [15:40:28]*** Partial cut [15:40:28]*** CUTSNS_PIN = 1 [15:40:28]*** CUTSNS_PIN = 0 [15:40:28]*** Brake cut motor [15:40:28]Read from MH i2c: 01 [15:40:28]MH_I2C_Read... [15:40:28]*** Stop cut motor [15:40:28]*** Cut end [15:40:28]Read from MH i2c: 01 07 00 [15:40:28]MH_I2C_Read... [15:40:28]Read from MH i2c: 01 07 00 FD 55 00 00 00 00 00 FF 0F 67 [15:40:28]process_action close_receipt done [15:40:28]requested_data is exist [15:40:28]produce_requested_data [15:40:28]requested_item fm.sn is exist - process it [15:40:28]wFMCommunicate request_size=4 [15:40:28]MH_SAM_APDU [15:40:28]CAPDU: 80 11 00 00 [15:40:28]Write to MH i2c: E2 08 00 FE 55 80 11 00 00 00 00 00 00 CD [15:40:28]Write i2c OK [15:40:28]MH_I2C_Read... [15:40:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:29]Read from MH i2c: E2 [15:40:29]MH_I2C_Read... [15:40:29]Read from MH i2c: E2 17 00 [15:40:29]MH_I2C_Read... [15:40:29]Read from MH i2c: E2 17 00 FE 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 1D [15:40:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [15:40:29]wFMCommunicate OK [15:40:29]requested_item fd.num is exist - process it [15:40:29]SAM_PROTO_GetFieldsCounters [15:40:29]wFMCommunicate request_size=4 [15:40:29]MH_SAM_APDU [15:40:29]CAPDU: 80 13 00 00 [15:40:29]Write to MH i2c: E2 08 00 FF 55 80 13 00 00 00 00 00 00 D0 [15:40:29]Write i2c OK [15:40:29]MH_I2C_Read... [15:40:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:40:29]Read from MH i2c: E2 [15:40:29]MH_I2C_Read... [15:40:29]Read from MH i2c: E2 62 00 [15:40:29]MH_I2C_Read... [15:40:29]Read from MH i2c: E2 62 00 FF 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 25 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 CC [15:40:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 25 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:40:29]wFMCommunicate OK [15:40:29]SAM_PROTO_GetFieldsCounters done [15:40:29]requested_item shift.num is exist - process it [15:40:29]requested_item shift.opened is exist - process it [15:40:29]req_shift_opened [15:40:29]FM_GetShiftState [15:40:29]SAM_PROTO_GetShiftState [15:40:29]wFMCommunicate request_size=4 [15:40:29]MH_SAM_APDU [15:40:29]CAPDU: 80 13 01 00 [15:40:29]Write to MH i2c: E2 08 00 00 56 80 13 01 00 00 00 00 00 D3 [15:40:29]Write i2c OK [15:40:29]MH_I2C_Read... [15:40:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:29]Read from MH i2c: E2 [15:40:29]MH_I2C_Read... [15:40:29]Read from MH i2c: E2 0E 00 [15:40:29]MH_I2C_Read... [15:40:29]Read from MH i2c: E2 0E 00 00 56 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 C7 [15:40:29]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [15:40:29]wFMCommunicate OK [15:40:29]SAM_PROTO_GetShiftState done [15:40:29]FM_GetShiftState done [15:40:29]req_shift_opened done [15:40:29]requested_item shift.open_date is exist - process it [15:40:29]req_shift_open_date [15:40:29]req_shift_open_date done [15:40:29]produce_requested_data done [15:40:29]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2085,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [15:40:29]process_action_free close_receipt [15:40:29]json_value_free [15:40:29]json_value_free done [15:40:29]process_json_proto returns [15:40:29]Send response to host [15:40:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2085,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [15:40:29]free response buf [15:40:29]execute_script done [15:40:29]execute_script returns [15:40:29]free content buf [15:40:29]Sock 9.Close socket [15:40:29]Sock 9.Thread stoped [15:42:36]ConnectInit Can't connect to host [15:42:36]CommunicateWithHost connect error [15:42:36]CommunicateWithHost err = -1 [15:42:36]OFD Sender: Server communicate error [15:42:41]OFD Sender: Processing packet 2085 [packets to send 1, broken 0] [15:42:41]ProducePacketName [15:42:41]name=ofd_packets/00002085 [15:42:41]OFD Sender: To server: pG, [15:42:41]CommunicateWithHost lk.salyk.kg:30040 [15:42:41]ConnectInit lk.salyk.kg [15:42:41]Connected sock=9 [15:42:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 24 01 00 00 6B 71 1C 01 84 FE 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD 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 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 88 00 00 00 F4 03 04 00 6F 66 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 25 08 00 00 35 04 06 00 E4 0F EA 1D 69 C5 EA 81 0C 63 93 56 71 CC [15:42:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 D3 65 47 00 F0 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 25 08 00 00 F4 03 04 00 65 12 A6 66 B6 04 01 00 00 F8 B2 95 E4 3C 8D 97 6D [15:42:41]CommunicateWithHost err = 0 [15:42:41]CheckOFDResponse [15:42:41]1017 (14) - 77093643461234 [15:42:41]1041 (16) - 0000000002094248 [15:42:41]1040 (4) - 2085 [15:42:41]1012 (4) - 28.07.2024 09:41 [15:42:41]1206 (1) - 0 [15:42:41]OFD Sender: Remove packet 2085 [15:42:41]ProducePacketName [15:42:41]name=ofd_packets/00002085 [15:42:41]NVStorageDeleteData [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:52:18]ConnectInit Can't connect to host [15:52:22]OFD Sender: No OFD packet to send [15:52:27]OFD Sender: No OFD packet to send [15:52:32]OFD Sender: No OFD packet to send [15:52:37]OFD Sender: No OFD packet to send [15:52:42]OFD Sender: No OFD packet to send [15:52:47]OFD Sender: No OFD packet to send [15:52:52]OFD Sender: No OFD packet to send [15:52:57]OFD Sender: No OFD packet to send [15:53:02]OFD Sender: No OFD packet to send [15:53:07]OFD Sender: No OFD packet to send [15:53:12]OFD Sender: No OFD packet to send [15:53:17]OFD Sender: No OFD packet to send [15:53:22]OFD Sender: No OFD packet to send [15:53:27]OFD Sender: No OFD packet to send [15:53:32]OFD Sender: No OFD packet to send [15:53:37]OFD Sender: No OFD packet to send [15:53:42]OFD Sender: No OFD packet to send [15:53:47]OFD Sender: No OFD packet to send [15:53:52]OFD Sender: No OFD packet to send [15:53:57]OFD Sender: No OFD packet to send [15:54:02]OFD Sender: No OFD packet to send [15:54:07]OFD Sender: No OFD packet to send [15:54:12]OFD Sender: No OFD packet to send [15:54:17]OFD Sender: No OFD packet to send [15:54:22]OFD Sender: No OFD packet to send [15:54:27]OFD Sender: No OFD packet to send [15:54:32]OFD Sender: No OFD packet to send [15:54:37]OFD Sender: No OFD packet to send [15:54:42]OFD Sender: No OFD packet to send [15:54:47]OFD Sender: No OFD packet to send [15:54:52]OFD Sender: No OFD packet to send [15:54:57]OFD Sender: No OFD packet to send [15:55:02]OFD Sender: No OFD packet to send [15:55:07]OFD Sender: No OFD packet to send [15:55:12]OFD Sender: No OFD packet to send [15:55:17]OFD Sender: No OFD packet to send [15:55:23]OFD Sender: No OFD packet to send [15:55:28]OFD Sender: No OFD packet to send [15:55:33]OFD Sender: No OFD packet to send [15:55:38]OFD Sender: No OFD packet to send [15:55:43]OFD Sender: No OFD packet to send [15:55:48]OFD Sender: No OFD packet to send [15:55:53]OFD Sender: No OFD packet to send [15:55:58]OFD Sender: No OFD packet to send [15:56:03]OFD Sender: No OFD packet to send [15:56:08]OFD Sender: No OFD packet to send [15:56:13]OFD Sender: No OFD packet to send [15:56:18]OFD Sender: No OFD packet to send [15:56:23]OFD Sender: No OFD packet to send [15:56:28]OFD Sender: No OFD packet to send [15:56:33]OFD Sender: No OFD packet to send [15:56:38]OFD Sender: No OFD packet to send [15:56:43]OFD Sender: No OFD packet to send [15:56:48]OFD Sender: No OFD packet to send [15:56:53]OFD Sender: No OFD packet to send [15:56:58]OFD Sender: No OFD packet to send [15:57:03]OFD Sender: No OFD packet to send [15:57:08]OFD Sender: No OFD packet to send [15:57:13]OFD Sender: No OFD packet to send [15:57:18]OFD Sender: No OFD packet to send [15:57:23]OFD Sender: No OFD packet to send [15:57:28]OFD Sender: No OFD packet to send [15:57:33]OFD Sender: No OFD packet to send [15:57:38]OFD Sender: No OFD packet to send [15:57:43]OFD Sender: No OFD packet to send [15:57:48]OFD Sender: No OFD packet to send [15:57:53]OFD Sender: No OFD packet to send [15:57:58]OFD Sender: No OFD packet to send [15:58:03]OFD Sender: No OFD packet to send [15:58:08]OFD Sender: No OFD packet to send [15:58:13]OFD Sender: No OFD packet to send [15:58:18]OFD Sender: No OFD packet to send [15:58:23]OFD Sender: No OFD packet to send [15:58:28]OFD Sender: No OFD packet to send [15:58:33]OFD Sender: No OFD packet to send [15:58:38]OFD Sender: No OFD packet to send [15:58:43]OFD Sender: No OFD packet to send [15:58:48]OFD Sender: No OFD packet to send [15:58:53]OFD Sender: No OFD packet to send [15:58:58]OFD Sender: No OFD packet to send [15:59:03]OFD Sender: No OFD packet to send [15:59:08]OFD Sender: No OFD packet to send [15:59:13]OFD Sender: No OFD packet to send [15:59:18]OFD Sender: No OFD packet to send [15:59:23]OFD Sender: No OFD packet to send [15:59:28]OFD Sender: No OFD packet to send [15:59:33]OFD Sender: No OFD packet to send [15:59:38]OFD Sender: No OFD packet to send [15:59:43]OFD Sender: No OFD packet to send [15:59:48]OFD Sender: No OFD packet to send [15:59:53]OFD Sender: No OFD packet to send [15:59:58]OFD Sender: No OFD packet to send [16:00:03]OFD Sender: No OFD packet to send [16:00:08]OFD Sender: No OFD packet to send [16:00:13]OFD Sender: No OFD packet to send [16:00:18]OFD Sender: No OFD packet to send [16:00:23]OFD Sender: No OFD packet to send [16:00:28]OFD Sender: No OFD packet to send [16:00:33]OFD Sender: No OFD packet to send [16:00:38]OFD Sender: No OFD packet to send [16:00:43]OFD Sender: No OFD packet to send [16:00:48]OFD Sender: No OFD packet to send [16:00:53]OFD Sender: No OFD packet to send [16:00:58]OFD Sender: No OFD packet to send [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:18]OFD Sender: No OFD packet to send [16:02:23]OFD Sender: No OFD packet to send [16:02:28]OFD Sender: No OFD packet to send [16:02:33]OFD Sender: No OFD packet to send [16:02:38]OFD Sender: No OFD packet to send [16:02:43]OFD Sender: No OFD packet to send [16:02:48]OFD Sender: No OFD packet to send [16:02:53]OFD Sender: No OFD packet to send [16:02:58]OFD Sender: No OFD packet to send [16:03:03]OFD Sender: No OFD packet to send [16:03:08]OFD Sender: No OFD packet to send [16:03:13]OFD Sender: No OFD packet to send [16:03:18]OFD Sender: No OFD packet to send [16:03:23]OFD Sender: No OFD packet to send [16:03:28]OFD Sender: No OFD packet to send [16:03:33]OFD Sender: No OFD packet to send [16:03:38]OFD Sender: No OFD packet to send [16:03:43]OFD Sender: No OFD packet to send [16:03:48]OFD Sender: No OFD packet to send [16:03:53]OFD Sender: No OFD packet to send [16:03:58]OFD Sender: No OFD packet to send [16:04:03]OFD Sender: No OFD packet to send [16:04:08]OFD Sender: No OFD packet to send [16:04:13]OFD Sender: No OFD packet to send [16:04:18]OFD Sender: No OFD packet to send [16:04:23]OFD Sender: No OFD packet to send [16:04:28]OFD Sender: No OFD packet to send [16:04:33]OFD Sender: No OFD packet to send [16:04:38]OFD Sender: No OFD packet to send [16:04:43]OFD Sender: No OFD packet to send [16:04:48]OFD Sender: No OFD packet to send [16:04:53]OFD Sender: No OFD packet to send [16:04:58]OFD Sender: No OFD packet to send [16:05:03]OFD Sender: No OFD packet to send [16:05:08]OFD Sender: No OFD packet to send [16:05:13]OFD Sender: No OFD packet to send [16:05:18]OFD Sender: No OFD packet to send [16:05:23]OFD Sender: No OFD packet to send [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:43]OFD Sender: No OFD packet to send [16:05:48]OFD Sender: No OFD packet to send [16:05:53]OFD Sender: No OFD packet to send [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:49]accept exits with 8 [16:08:49]New connection [16:08:49]New thread 3067317604 created [16:08:49]Thread 3067460964 joined [16:08:49]Waiting for new connection... [16:08:49] Sock 8.Parse request [16:08:49]Sock 8.Check first char [16:08:49]Sock 8.First char is OK [16:08:49]request: POST /json_proto HTTP/1.0 [16:08:49]Method: POST [16:08:49]URL: /json_proto [16:08:49]Method is POST - this is cgi request [16:08:49]url: /json_proto [16:08:49]query_string will be loaded in cgi processing [16:08:49]execute_cgi json_proto POST (null) [16:08:49]execute_cgi path=json_proto method=POST [16:08:49]POST find Content-Length [16:08:49]Host: 172.17.45.132:8080 [16:08:49]Content-Length: 946 [16:08:49]Content-Type: application/json [16:08:49] [16:08:49]POST finish read [16:08:49]Found Content-Length = 946 [16:08:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126386", "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 }]} ,{ "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:08:49]execute_script... [16:08: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)126386", "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 }]} ,{ "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:08:49]POST & json_proto [16:08:49]process_json_proto [16:08:49]json parsed OK: [16:08:49]protocol is kg_v1.0 [16:08:49]action value=close_receipt [16:08:49]process_action close_receipt [16:08:49]cmd_close_receipt [16:08:49]MH_GetDate [16:08:49]Write to MH i2c: F0 00 00 01 56 46 [16:08:49]Write i2c OK [16:08:49]MH_I2C_Read... [16:08:49]Read from MH i2c: F0 [16:08:49]MH_I2C_Read... [16:08:49]Read from MH i2c: F0 09 00 [16:08:49]MH_I2C_Read... [16:08:49]Read from MH i2c: F0 09 00 01 56 00 18 6D A6 66 E3 0B 90 66 C4 [16:08:49]GetLastDocTimeStamp 1722181231 [16:08:49]current date 1722182936 [16:08:49]FM_GetShiftState [16:08:49]SAM_PROTO_GetShiftState [16:08:49]wFMCommunicate request_size=4 [16:08:49]MH_SAM_APDU [16:08:49]CAPDU: 80 13 01 00 [16:08:49]Write to MH i2c: E2 08 00 02 56 80 13 01 00 00 00 00 00 D5 [16:08:49]Write i2c OK [16:08:49]MH_I2C_Read... [16:08:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:49]Read from MH i2c: E2 [16:08:49]MH_I2C_Read... [16:08:49]Read from MH i2c: E2 0E 00 [16:08:49]MH_I2C_Read... [16:08:49]Read from MH i2c: E2 0E 00 02 56 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 C9 [16:08:49]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [16:08:49]wFMCommunicate OK [16:08:49]SAM_PROTO_GetShiftState done [16:08:49]FM_GetShiftState done [16:08:49]opened in 1722125648 [16:08:49]opened+sec_in_day 1722212048 [16:08:49]quantity*price = 14000 [16:08:49]sum+1 = 14001 [16:08:49]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4660085515163 Шок Батончик Сникерс супер 95/80г 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 230.00 НСП 1% : 2.04 НДС 12% : 24.43 Наличными: 230.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 137 28.07.2024 16:08 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2086 ФПД: 2562958337085 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T160856&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2086&fm=2562958337085&tin=02508201610067®Number=0000000000189667&sum=23000 0 [16:08:50]StoreToDocumentArchive [16:08:50]shift 13 fd 2086 [16:08:50]save to /storage/0013/doc_00002086 [16:08:50]save last doc name /storage/0013/doc_00002086 to /storage/kkm_last_doc_name [16:08:50]save OK [16:08:50]Clear old archive folders... [16:08:50]ProcessDocumentItem done err = 0, tmpTLVsize=402 [16:08:50]tlvbuf is 020E4540 [16:08:50]SAM_PROTO_ClearQueue [16:08:50]wFMCommunicate request_size=4 [16:08:50]MH_SAM_APDU [16:08:50]CAPDU: 80 09 00 00 [16:08:50]Write to MH i2c: E2 08 00 0F 56 80 09 00 00 00 00 00 00 D7 [16:08:50]Write i2c OK [16:08:50]MH_I2C_Read... [16:08:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:08:50]Read from MH i2c: E2 [16:08:50]MH_I2C_Read... [16:08:50]Read from MH i2c: E2 03 00 [16:08:50]MH_I2C_Read... [16:08:50]Read from MH i2c: E2 03 00 0F 56 00 90 00 D9 [16:08:50]RAPDU: 90 00 [16:08:50]wFMCommunicate OK [16:08:50]SAM_PROTO_ClearQueue done [16:08:50]KKMCreateOFDPacket [16:08:50]OFDProtocolAddRootSTLVToBuf [16:08:50]FM_MakeSignedData [16:08:50]FM_MakeSignedData [16:08:50]SAM_PROTO_SignData [16:08:50]wFMCommunicate request_size=4 [16:08:50]MH_SAM_APDU [16:08:50]CAPDU: 80 0D 01 02 [16:08:50]Write to MH i2c: E2 08 00 10 56 80 0D 01 02 00 00 00 00 DF [16:08:50]Write i2c OK [16:08:50]MH_I2C_Read... [16:08:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:08:50]Read from MH i2c: E2 [16:08:50]MH_I2C_Read... [16:08:50]Read from MH i2c: E2 03 00 [16:08:50]MH_I2C_Read... [16:08:50]Read from MH i2c: E2 03 00 10 56 00 90 00 DA [16:08:50]RAPDU: 90 00 [16:08:50]wFMCommunicate OK [16:08:50]wFMCommunicate request_size=255 [16:08:50]MH_SAM_APDU [16:08:50]CAPDU: 80 0D 02 02 FA 03 00 92 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 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 [16:08:50]Write to MH i2c: E2 02 01 11 56 80 0D 02 02 FA 00 03 00 92 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 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 00 AC [16:08:50]Write i2c OK [16:08:50]MH_I2C_Read... [16:08:51]Read from MH i2c: E2 [16:08:51]MH_I2C_Read... [16:08:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:51]Read from MH i2c: E2 03 00 [16:08:51]MH_I2C_Read... [16:08:51]Read from MH i2c: E2 03 00 11 56 00 90 00 DB [16:08:51]RAPDU: 90 00 [16:08:51]wFMCommunicate OK [16:08:51]wFMCommunicate request_size=161 [16:08:51]MH_SAM_APDU [16:08:51]CAPDU: 80 0D 02 02 9C 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 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 89 00 00 00 F4 03 04 00 18 6D A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 26 08 00 00 35 04 06 00 02 54 BC 38 A4 3D [16:08:51]Write to MH i2c: E2 A4 00 12 56 80 0D 02 02 9C 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 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 89 00 00 00 F4 03 04 00 18 6D A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 26 08 00 00 35 04 06 00 02 54 BC 38 A4 3D 00 00 71 [16:08:51]Write i2c OK [16:08:51]MH_I2C_Read... [16:08:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:51]Read from MH i2c: E2 [16:08:51]MH_I2C_Read... [16:08:51]Read from MH i2c: E2 03 00 [16:08:51]MH_I2C_Read... [16:08:51]Read from MH i2c: E2 03 00 12 56 00 90 00 DC [16:08:51]RAPDU: 90 00 [16:08:51]wFMCommunicate OK [16:08:51]wFMCommunicate request_size=4 [16:08:51]MH_SAM_APDU [16:08:51]CAPDU: 80 0D 03 02 [16:08:51]Write to MH i2c: E2 08 00 13 56 80 0D 03 02 00 00 00 00 E4 [16:08:51]Write i2c OK [16:08:51]MH_I2C_Read... [16:08:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:08:51]Read from MH i2c: E2 [16:08:51]MH_I2C_Read... [16:08:51]Read from MH i2c: E2 0B 00 [16:08:51]MH_I2C_Read... [16:08:51]Read from MH i2c: E2 0B 00 13 56 00 3F B7 39 0B 36 82 A1 D2 90 00 4A [16:08:51]RAPDU: 3F B7 39 0B 36 82 A1 D2 90 00 [16:08:51]wFMCommunicate OK [16:08:51]SAM_PROTO_SignData done [16:08:51]FM_MakeSignedData done [16:08:51]CreateOFDProtocolMessage [16:08:51]wFMCommunicate request_size=4 [16:08:51]MH_SAM_APDU [16:08:51]CAPDU: 80 11 00 00 [16:08:51]Write to MH i2c: E2 08 00 14 56 80 11 00 00 00 00 00 00 E4 [16:08:51]Write i2c OK [16:08:51]MH_I2C_Read... [16:08:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:51]Read from MH i2c: E2 [16:08:51]MH_I2C_Read... [16:08:51]Read from MH i2c: E2 17 00 [16:08:51]MH_I2C_Read... [16:08:51]Read from MH i2c: E2 17 00 14 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 34 [16:08:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [16:08:51]wFMCommunicate OK [16:08:51]CreateOFDProtocolMessage done [16:08:51]OFDSenderStorePacket 2086 [16:08:51]StoreOFDPacket docnum=2086 [16:08:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 A6 01 00 00 C4 11 9E 01 2E 48 5A 03 01 00 03 00 92 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 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 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 89 00 00 00 F4 03 04 00 18 6D A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 26 08 00 00 35 04 06 00 02 54 BC 38 A4 3D 3F B7 39 0B 36 82 A1 D2 [16:08:51]CheckFolder [16:08:51]dirname=/storage/ofd_packets [16:08:51]CheckFolder done [16:08:51]ProducePacketName [16:08:51]name=ofd_packets/00002086 [16:08:51]NVStorageSaveData ofd_packets/00002086 [16:08:51]File name is /storage/ofd_packets/00002086 [16:08:51]Write 452 bytes [16:08:51]NVStorageSaveData done [16:08:51]OFDSenderStorePacket done [16:08:51]KKMCreateOFDPacket done [16:08:51]NVStorageSaveData kkm_last_timestamp [16:08:51]File name is /storage/kkm_last_timestamp [16:08:51]Write 4 bytes [16:08:51]NVStorageSaveData done [16:08:51]ExternCall_PrintAddStr [16:08:51]wPrintStart [16:08:51]Write to MH i2c: 01 00 00 15 56 6B [16:08:51]Write i2c OK [16:08:51]MH_I2C_Read... [16:08:51]Read from MH i2c: 01 [16:08:51]MH_I2C_Read... [16:08:51]Read from MH i2c: 01 07 00 [16:08:51]MH_I2C_Read... [16:08:51]Read from MH i2c: 01 07 00 15 56 00 00 00 00 00 FF 0F 80 [16:08:51]RasterBufferAndPrint [16:08:51]line Счет N : (3)126386 [16:08:51]line ИНН: 02508201610067 [16:08:51]line Контрольно-Кассовый Чек [16:08:51]line ПРОДАЖА [16:08:51]line Товар: 48743570 [16:08:51]line Сигареты Winston XStyle Blue [16:08:51]line 1.000 * 140.00 [16:08:51]line = 140.00 [16:08:51]line НДС 12% НСП 1% [16:08:51]line > о реализуемом товаре [16:08:51]line Товар: 4660085515163 [16:08:51]line Шок Батончик Сникерс супер 95/80г [16:08:51]line 1.000 * 90.00 [16:08:51]line = 90.00 [16:08:51]line НДС 12% НСП 1% [16:08:51]line > о реализуемом товаре [16:08:51]line ИТОГО: 230.00 [16:08:51]line НСП 1% : 2.04 [16:08:51]line НДС 12% : 24.43 [16:08:51]line Наличными: 230.00 [16:08:51]line Безнал.: 0.00 [16:08:51]line Место: АЗС № 127 "Партнер Нефть" [16:08:51]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [16:08:51]line СНО: Общий режим [16:08:51]line Чек 137 28.07.2024 16:08 [16:08:51]line Смена: 13 ФФД: 1.0 [16:08:51]line ЗНМ: 0300000161 [16:08:51]line РНМ: 0000000000189667 [16:08:51]line Версия ККМ: v1.0 [16:08:51]line ФМ: 0000000002094248 [16:08:51]line ФД: 2086 [16:08:51]line ФПД: 2562958337085 [16:08:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T160856&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2086&fm=2562958337085&tin=02508201610067®Number=0000000000189667&sum=23000 [16:08:51]line 0 [16:08:51]OFD Sender: Processing packet 2086 [packets to send 1, broken 0] [16:08:51]ProducePacketName [16:08:51]name=ofd_packets/00002086 [16:08:51]OFD Sender: To server: pG, [16:08:51]CommunicateWithHost lk.salyk.kg:30040 [16:08:51]ConnectInit lk.salyk.kg [16:08:51]written 0, free lines is 4095 [16:08:51]Connected sock=10 [16:08:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 A6 01 00 00 C4 11 9E 01 2E 48 5A 03 01 00 03 00 92 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 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 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 89 00 00 00 F4 03 04 00 18 6D A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 26 08 00 00 35 04 06 00 02 54 BC 38 A4 3D 3F B7 39 0B 36 82 A1 D2 [16:08:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 22 52 47 00 61 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 32 30 39 34 32 34 38 10 04 04 00 26 08 00 00 F4 03 04 00 87 18 A6 66 B6 04 01 00 00 D5 6A 15 61 C8 1E 4B 70 [16:08:52]CommunicateWithHost err = 0 [16:08:52]CheckOFDResponse [16:08:52]1017 (14) - 77093643461234 [16:08:52]1041 (16) - 0000000002094248 [16:08:52]1040 (4) - 2086 [16:08:52]1012 (4) - 28.07.2024 10:08 [16:08:52]1206 (1) - 0 [16:08:52]OFD Sender: Remove packet 2086 [16:08:52]ProducePacketName [16:08:52]name=ofd_packets/00002086 [16:08:52]NVStorageDeleteData [16:08:52]Write to MH i2c: 01 00 00 44 56 9A [16:08:52]Write i2c OK [16:08:52]MH_I2C_Read... [16:08:52]Read from MH i2c: 01 [16:08:52]MH_I2C_Read... [16:08:52]Read from MH i2c: 01 07 00 [16:08:52]MH_I2C_Read... [16:08:52]Read from MH i2c: 01 07 00 44 56 00 00 00 00 00 C3 0C 70 [16:08:52]RasterBufferAndPrint [16:08:52]line [16:08:52]line [16:08:52]line [16:08:52]line [16:08:52]line [16:08:52]written 0, free lines is 3273 [16:08:52]MH_Cut [16:08:52]Write to MH i2c: D1 01 00 4B 56 01 73 [16:08:52]Write i2c OK [16:08:52]MH_I2C_Read... [16:08:52]Read from MH i2c: D1 [16:08:52]MH_I2C_Read... [16:08:52]Read from MH i2c: D1 01 00 [16:08:52]MH_I2C_Read... [16:08:52]Read from MH i2c: D1 01 00 4B 56 00 72 [16:08:52]Write to MH i2c: 01 00 00 4C 56 A2 [16:08:52]Write i2c OK [16:08:52]MH_I2C_Read... [16:08:52]OFD Sender: No OFD packet to send [16:08:53]*** Cut start [16:08:53]*** Partial cut [16:08:53]*** CUTSNS_PIN = 1 [16:08:53]*** CUTSNS_PIN = 0 [16:08:53]*** Brake cut motor [16:08:53]Read from MH i2c: 01 [16:08:53]MH_I2C_Read... [16:08:53]*** Stop cut motor [16:08:53]*** Cut end [16:08:53]Read from MH i2c: 01 07 00 [16:08:53]MH_I2C_Read... [16:08:53]Read from MH i2c: 01 07 00 4C 56 00 00 00 00 00 FF 0F B7 [16:08:53]process_action close_receipt done [16:08:53]requested_data is exist [16:08:53]produce_requested_data [16:08:53]requested_item fm.sn is exist - process it [16:08:53]wFMCommunicate request_size=4 [16:08:53]MH_SAM_APDU [16:08:53]CAPDU: 80 11 00 00 [16:08:53]Write to MH i2c: E2 08 00 4D 56 80 11 00 00 00 00 00 00 1D [16:08:53]Write i2c OK [16:08:53]MH_I2C_Read... [16:08:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:53]Read from MH i2c: E2 [16:08:53]MH_I2C_Read... [16:08:53]Read from MH i2c: E2 17 00 [16:08:53]MH_I2C_Read... [16:08:53]Read from MH i2c: E2 17 00 4D 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 6D [16:08:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [16:08:53]wFMCommunicate OK [16:08:53]requested_item fd.num is exist - process it [16:08:53]SAM_PROTO_GetFieldsCounters [16:08:53]wFMCommunicate request_size=4 [16:08:53]MH_SAM_APDU [16:08:53]CAPDU: 80 13 00 00 [16:08:53]Write to MH i2c: E2 08 00 4E 56 80 13 00 00 00 00 00 00 20 [16:08:53]Write i2c OK [16:08:53]MH_I2C_Read... [16:08:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:08:53]Read from MH i2c: E2 [16:08:53]MH_I2C_Read... [16:08:53]Read from MH i2c: E2 62 00 [16:08:53]MH_I2C_Read... [16:08:53]Read from MH i2c: E2 62 00 4E 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 26 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 20 [16:08:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 26 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:08:53]wFMCommunicate OK [16:08:53]SAM_PROTO_GetFieldsCounters done [16:08:53]requested_item shift.num is exist - process it [16:08:53]requested_item shift.opened is exist - process it [16:08:53]req_shift_opened [16:08:53]FM_GetShiftState [16:08:53]SAM_PROTO_GetShiftState [16:08:53]wFMCommunicate request_size=4 [16:08:53]MH_SAM_APDU [16:08:53]CAPDU: 80 13 01 00 [16:08:53]Write to MH i2c: E2 08 00 4F 56 80 13 01 00 00 00 00 00 22 [16:08:53]Write i2c OK [16:08:53]MH_I2C_Read... [16:08:53]Read from MH i2c: E2 [16:08:53]MH_I2C_Read... [16:08:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:54]Read from MH i2c: E2 0E 00 [16:08:54]MH_I2C_Read... [16:08:54]Read from MH i2c: E2 0E 00 4F 56 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 16 [16:08:54]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [16:08:54]wFMCommunicate OK [16:08:54]SAM_PROTO_GetShiftState done [16:08:54]FM_GetShiftState done [16:08:54]req_shift_opened done [16:08:54]requested_item shift.open_date is exist - process it [16:08:54]req_shift_open_date [16:08:54]req_shift_open_date done [16:08:54]produce_requested_data done [16:08:54]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2086,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [16:08:54]process_action_free close_receipt [16:08:54]json_value_free [16:08:54]json_value_free done [16:08:54]process_json_proto returns [16:08:54]Send response to host [16:08:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2086,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [16:08:54]free response buf [16:08:54]execute_script done [16:08:54]execute_script returns [16:08:54]free content buf [16:08:54]Sock 8.Close socket [16:08:54]Sock 8.Thread stoped [16:08:57]OFD Sender: No OFD packet to send [16:09:02]OFD Sender: No OFD packet to send [16:09:07]OFD Sender: No OFD packet to send [16:09:12]OFD Sender: No OFD packet to send [16:09:17]OFD Sender: No OFD packet to send [16:09:22]OFD Sender: No OFD packet to send [16:09:27]OFD Sender: No OFD packet to send [16:09:32]OFD Sender: No OFD packet to send [16:09:37]OFD Sender: No OFD packet to send [16:09:42]OFD Sender: No OFD packet to send [16:09:47]OFD Sender: No OFD packet to send [16:09:52]OFD Sender: No OFD packet to send [16:09:57]OFD Sender: No OFD packet to send [16:10:02]OFD Sender: No OFD packet to send [16:10:07]OFD Sender: No OFD packet to send [16:10:12]OFD Sender: No OFD packet to send [16:10:17]OFD Sender: No OFD packet to send [16:10:22]OFD Sender: No OFD packet to send [16:10:27]OFD Sender: No OFD packet to send [16:10:32]OFD Sender: No OFD packet to send [16:10:37]OFD Sender: No OFD packet to send [16:10:42]OFD Sender: No OFD packet to send [16:10:47]OFD Sender: No OFD packet to send [16:10:52]OFD Sender: No OFD packet to send [16:10:57]OFD Sender: No OFD packet to send [16:11:02]OFD Sender: No OFD packet to send [16:11:07]OFD Sender: No OFD packet to send [16:11:12]OFD Sender: No OFD packet to send [16:11:17]OFD Sender: No OFD packet to send [16:11:22]OFD Sender: No OFD packet to send [16:11:27]OFD Sender: No OFD packet to send [16:11:32]OFD Sender: No OFD packet to send [16:11:37]OFD Sender: No OFD packet to send [16:11:42]OFD Sender: No OFD packet to send [16:11:47]OFD Sender: No OFD packet to send [16:11:52]OFD Sender: No OFD packet to send [16:11:57]OFD Sender: No OFD packet to send [16:12:02]OFD Sender: No OFD packet to send [16:12:07]OFD Sender: No OFD packet to send [16:12:12]OFD Sender: No OFD packet to send [16:12:17]OFD Sender: No OFD packet to send [16:12:22]OFD Sender: No OFD packet to send [16:12:27]OFD Sender: No OFD packet to send [16:12:32]OFD Sender: No OFD packet to send [16:12:37]OFD Sender: No OFD packet to send [16:12:42]OFD Sender: No OFD packet to send [16:12:47]OFD Sender: No OFD packet to send [16:12:52]OFD Sender: No OFD packet to send [16:12:57]OFD Sender: No OFD packet to send [16:13:01]accept exits with 9 [16:13:01]New connection [16:13:01]New thread 3067460964 created [16:13:01]Thread 3067317604 joined [16:13:01]Waiting for new connection... [16:13:01] Sock 9.Parse request [16:13:01]Sock 9.Check first char [16:13:01]Sock 9.First char is OK [16:13:01]request: POST /json_proto HTTP/1.0 [16:13:01]Method: POST [16:13:01]URL: /json_proto [16:13:01]Method is POST - this is cgi request [16:13:01]url: /json_proto [16:13:01]query_string will be loaded in cgi processing [16:13:01]execute_cgi json_proto POST (null) [16:13:01]execute_cgi path=json_proto method=POST [16:13:01]POST find Content-Length [16:13:01]Host: 172.17.45.132:8080 [16:13:01]Content-Length: 630 [16:13:01]Content-Type: application/json [16:13:01] [16:13:01]POST finish read [16:13:01]Found Content-Length = 630 [16:13:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126387", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:13:01]execute_script... [16:13: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)126387", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:13:01]POST & json_proto [16:13:01]process_json_proto [16:13:01]json parsed OK: [16:13:01]protocol is kg_v1.0 [16:13:01]action value=close_receipt [16:13:01]process_action close_receipt [16:13:01]cmd_close_receipt [16:13:01]MH_GetDate [16:13:01]Write to MH i2c: F0 00 00 50 56 95 [16:13:01]Write i2c OK [16:13:01]MH_I2C_Read... [16:13:01]Read from MH i2c: F0 [16:13:01]MH_I2C_Read... [16:13:01]Read from MH i2c: F0 09 00 [16:13:01]MH_I2C_Read... [16:13:01]Read from MH i2c: F0 09 00 50 56 00 13 6E A6 66 E3 0B 90 66 0F [16:13:01]GetLastDocTimeStamp 1722182936 [16:13:01]current date 1722183187 [16:13:01]FM_GetShiftState [16:13:01]SAM_PROTO_GetShiftState [16:13:01]wFMCommunicate request_size=4 [16:13:01]MH_SAM_APDU [16:13:01]CAPDU: 80 13 01 00 [16:13:01]Write to MH i2c: E2 08 00 51 56 80 13 01 00 00 00 00 00 24 [16:13:01]Write i2c OK [16:13:01]MH_I2C_Read... [16:13:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:01]Read from MH i2c: E2 [16:13:01]MH_I2C_Read... [16:13:01]Read from MH i2c: E2 0E 00 [16:13:01]MH_I2C_Read... [16:13:01]Read from MH i2c: E2 0E 00 51 56 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 18 [16:13:01]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [16:13:01]wFMCommunicate OK [16:13:01]SAM_PROTO_GetShiftState done [16:13:01]FM_GetShiftState done [16:13:01]opened in 1722125648 [16:13:01]opened+sec_in_day 1722212048 [16:13:01]quantity*price = 5000 [16:13:01]sum+1 = 5001 [16:13:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 138 28.07.2024 16:13 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2087 ФПД: 216679434776079 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T161308&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2087&fm=216679434776079&tin=02508201610067®Number=0000000000189667&sum=5000 0 [16:13:02]StoreToDocumentArchive [16:13:02]shift 13 fd 2087 [16:13:02]save to /storage/0013/doc_00002087 [16:13:02]save last doc name /storage/0013/doc_00002087 to /storage/kkm_last_doc_name [16:13:02]save OK [16:13:02]Clear old archive folders... [16:13:02]ProcessDocumentItem done err = 0, tmpTLVsize=269 [16:13:02]tlvbuf is 020A0F60 [16:13:02]SAM_PROTO_ClearQueue [16:13:02]wFMCommunicate request_size=4 [16:13:02]MH_SAM_APDU [16:13:02]CAPDU: 80 09 00 00 [16:13:02]Write to MH i2c: E2 08 00 5E 56 80 09 00 00 00 00 00 00 26 [16:13:02]Write i2c OK [16:13:02]MH_I2C_Read... [16:13:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:13:02]Read from MH i2c: E2 [16:13:02]MH_I2C_Read... [16:13:02]Read from MH i2c: E2 03 00 [16:13:02]MH_I2C_Read... [16:13:02]Read from MH i2c: E2 03 00 5E 56 00 90 00 28 [16:13:02]RAPDU: 90 00 [16:13:02]wFMCommunicate OK [16:13:02]SAM_PROTO_ClearQueue done [16:13:02]KKMCreateOFDPacket [16:13:02]OFDProtocolAddRootSTLVToBuf [16:13:02]FM_MakeSignedData [16:13:02]FM_MakeSignedData [16:13:02]SAM_PROTO_SignData [16:13:02]wFMCommunicate request_size=4 [16:13:02]MH_SAM_APDU [16:13:02]CAPDU: 80 0D 01 02 [16:13:02]Write to MH i2c: E2 08 00 5F 56 80 0D 01 02 00 00 00 00 2E [16:13:02]Write i2c OK [16:13:02]MH_I2C_Read... [16:13:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:13:02]Read from MH i2c: E2 [16:13:02]MH_I2C_Read... [16:13:02]Read from MH i2c: E2 03 00 [16:13:02]MH_I2C_Read... [16:13:02]Read from MH i2c: E2 03 00 5F 56 00 90 00 29 [16:13:02]RAPDU: 90 00 [16:13:02]wFMCommunicate OK [16:13:02]wFMCommunicate request_size=255 [16:13:02]MH_SAM_APDU [16:13:02]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 14 6E A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 [16:13:02]Write to MH i2c: E2 02 01 60 56 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 14 6E A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 00 00 70 [16:13:02]Write i2c OK [16:13:02]MH_I2C_Read... [16:13:02]OFD Sender: No OFD packet to send [16:13:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:03]Read from MH i2c: E2 [16:13:03]MH_I2C_Read... [16:13:03]Read from MH i2c: E2 03 00 [16:13:03]MH_I2C_Read... [16:13:03]Read from MH i2c: E2 03 00 60 56 00 90 00 2A [16:13:03]RAPDU: 90 00 [16:13:03]wFMCommunicate OK [16:13:03]wFMCommunicate request_size=28 [16:13:03]MH_SAM_APDU [16:13:03]CAPDU: 80 0D 02 02 17 39 34 32 34 38 10 04 04 00 27 08 00 00 35 04 06 00 C5 11 9C BD 6E 0F [16:13:03]Write to MH i2c: E2 1F 00 61 56 80 0D 02 02 17 00 39 34 32 34 38 10 04 04 00 27 08 00 00 35 04 06 00 C5 11 9C BD 6E 0F 00 00 9C [16:13:03]Write i2c OK [16:13:03]MH_I2C_Read... [16:13:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:03]Read from MH i2c: E2 [16:13:03]MH_I2C_Read... [16:13:03]Read from MH i2c: E2 03 00 [16:13:03]MH_I2C_Read... [16:13:03]Read from MH i2c: E2 03 00 61 56 00 90 00 2B [16:13:03]RAPDU: 90 00 [16:13:03]wFMCommunicate OK [16:13:03]wFMCommunicate request_size=4 [16:13:03]MH_SAM_APDU [16:13:03]CAPDU: 80 0D 03 02 [16:13:03]Write to MH i2c: E2 08 00 62 56 80 0D 03 02 00 00 00 00 33 [16:13:03]Write i2c OK [16:13:03]MH_I2C_Read... [16:13:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:13:03]Read from MH i2c: E2 [16:13:03]MH_I2C_Read... [16:13:03]Read from MH i2c: E2 0B 00 [16:13:03]MH_I2C_Read... [16:13:03]Read from MH i2c: E2 0B 00 62 56 00 5E 20 95 B2 E0 7C DF 1E 90 00 52 [16:13:03]RAPDU: 5E 20 95 B2 E0 7C DF 1E 90 00 [16:13:03]wFMCommunicate OK [16:13:03]SAM_PROTO_SignData done [16:13:03]FM_MakeSignedData done [16:13:03]CreateOFDProtocolMessage [16:13:03]wFMCommunicate request_size=4 [16:13:03]MH_SAM_APDU [16:13:03]CAPDU: 80 11 00 00 [16:13:03]Write to MH i2c: E2 08 00 63 56 80 11 00 00 00 00 00 00 33 [16:13:03]Write i2c OK [16:13:03]MH_I2C_Read... [16:13:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:03]Read from MH i2c: E2 [16:13:03]MH_I2C_Read... [16:13:03]Read from MH i2c: E2 17 00 [16:13:03]MH_I2C_Read... [16:13:03]Read from MH i2c: E2 17 00 63 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 83 [16:13:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [16:13:03]wFMCommunicate OK [16:13:03]CreateOFDProtocolMessage done [16:13:03]OFDSenderStorePacket 2087 [16:13:03]StoreOFDPacket docnum=2087 [16:13:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 21 01 00 00 F8 F3 19 01 BB EB 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 14 6E A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 27 08 00 00 35 04 06 00 C5 11 9C BD 6E 0F 5E 20 95 B2 E0 7C DF 1E [16:13:03]CheckFolder [16:13:03]dirname=/storage/ofd_packets [16:13:03]CheckFolder done [16:13:03]ProducePacketName [16:13:03]name=ofd_packets/00002087 [16:13:03]NVStorageSaveData ofd_packets/00002087 [16:13:03]File name is /storage/ofd_packets/00002087 [16:13:03]Write 319 bytes [16:13:03]NVStorageSaveData done [16:13:03]OFDSenderStorePacket done [16:13:03]KKMCreateOFDPacket done [16:13:03]NVStorageSaveData kkm_last_timestamp [16:13:03]File name is /storage/kkm_last_timestamp [16:13:03]Write 4 bytes [16:13:03]NVStorageSaveData done [16:13:03]ExternCall_PrintAddStr [16:13:03]wPrintStart [16:13:03]Write to MH i2c: 01 00 00 64 56 BA [16:13:03]Write i2c OK [16:13:03]MH_I2C_Read... [16:13:03]Read from MH i2c: 01 [16:13:03]MH_I2C_Read... [16:13:03]Read from MH i2c: 01 07 00 [16:13:03]MH_I2C_Read... [16:13:03]Read from MH i2c: 01 07 00 64 56 00 00 00 00 00 FF 0F CF [16:13:03]RasterBufferAndPrint [16:13:03]line Счет N : (3)126387 [16:13:03]line ИНН: 02508201610067 [16:13:03]line Контрольно-Кассовый Чек [16:13:03]line ПРОДАЖА [16:13:03]line Товар: 4700000160358 [16:13:03]line Вода Легенда 1л [16:13:03]line 1.000 * 50.00 [16:13:03]line = 50.00 [16:13:03]line НДС 12% НСП 1% [16:13:03]line > о реализуемом товаре [16:13:03]line ИТОГО: 50.00 [16:13:03]line НСП 1% : 0.44 [16:13:03]line НДС 12% : 5.31 [16:13:03]line Наличными: 50.00 [16:13:03]line Безнал.: 0.00 [16:13:03]line Место: АЗС № 127 "Партнер Нефть" [16:13:03]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [16:13:03]line СНО: Общий режим [16:13:03]line Чек 138 28.07.2024 16:13 [16:13:03]line Смена: 13 ФФД: 1.0 [16:13:03]line ЗНМ: 0300000161 [16:13:03]line РНМ: 0000000000189667 [16:13:03]line Версия ККМ: v1.0 [16:13:03]line ФМ: 0000000002094248 [16:13:03]line ФД: 2087 [16:13:03]line ФПД: 216679434776079 [16:13:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T161308&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2087&fm=216679434776079&tin=02508201610067®Number=0000000000189667&sum=5000 [16:13:03]line 0 [16:13:03]OFD Sender: Processing packet 2087 [packets to send 1, broken 0] [16:13:03]ProducePacketName [16:13:03]name=ofd_packets/00002087 [16:13:03]OFD Sender: To server: pG, [16:13:03]CommunicateWithHost lk.salyk.kg:30040 [16:13:03]ConnectInit lk.salyk.kg [16:13:03]written 0, free lines is 4095 [16:13:03]Connected sock=10 [16:13:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 21 01 00 00 F8 F3 19 01 BB EB 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 14 6E A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 27 08 00 00 35 04 06 00 C5 11 9C BD 6E 0F 5E 20 95 B2 E0 7C DF 1E [16:13:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 FC 5B 47 00 BC 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 32 30 39 34 32 34 38 10 04 04 00 27 08 00 00 F4 03 04 00 83 19 A6 66 B6 04 01 00 00 3D 4A 34 F6 45 72 22 52 [16:13:03]CommunicateWithHost err = 0 [16:13:03]CheckOFDResponse [16:13:03]1017 (14) - 77093643461234 [16:13:03]1041 (16) - 0000000002094248 [16:13:03]1040 (4) - 2087 [16:13:03]1012 (4) - 28.07.2024 10:12 [16:13:03]1206 (1) - 0 [16:13:03]OFD Sender: Remove packet 2087 [16:13:03]ProducePacketName [16:13:03]name=ofd_packets/00002087 [16:13:03]NVStorageDeleteData [16:13:03]Write to MH i2c: 01 00 00 8C 56 E2 [16:13:03]Write i2c OK [16:13:03]MH_I2C_Read... [16:13:03]Read from MH i2c: 01 [16:13:03]MH_I2C_Read... [16:13:03]Read from MH i2c: 01 07 00 [16:13:03]MH_I2C_Read... [16:13:03]Read from MH i2c: 01 07 00 8C 56 00 00 00 00 00 1C 0D 12 [16:13:03]RasterBufferAndPrint [16:13:03]line [16:13:03]line [16:13:03]line [16:13:03]line [16:13:03]line [16:13:03]written 0, free lines is 3361 [16:13:04]MH_Cut [16:13:04]Write to MH i2c: D1 01 00 93 56 01 BB [16:13:04]Write i2c OK [16:13:04]MH_I2C_Read... [16:13:04]Read from MH i2c: D1 [16:13:04]MH_I2C_Read... [16:13:04]Read from MH i2c: D1 01 00 [16:13:04]MH_I2C_Read... [16:13:04]Read from MH i2c: D1 01 00 93 56 00 BA [16:13:04]Write to MH i2c: 01 00 00 94 56 EA [16:13:04]Write i2c OK [16:13:04]MH_I2C_Read... [16:13:04]OFD Sender: No OFD packet to send [16:13:04]*** Cut start [16:13:04]*** Partial cut [16:13:04]*** CUTSNS_PIN = 1 [16:13:04]*** CUTSNS_PIN = 0 [16:13:04]*** Brake cut motor [16:13:05]Read from MH i2c: 01 [16:13:05]MH_I2C_Read... [16:13:05]*** Stop cut motor [16:13:05]*** Cut end [16:13:05]Read from MH i2c: 01 07 00 [16:13:05]MH_I2C_Read... [16:13:05]Read from MH i2c: 01 07 00 94 56 00 00 00 00 00 FF 0F FF [16:13:05]process_action close_receipt done [16:13:05]requested_data is exist [16:13:05]produce_requested_data [16:13:05]requested_item fm.sn is exist - process it [16:13:05]wFMCommunicate request_size=4 [16:13:05]MH_SAM_APDU [16:13:05]CAPDU: 80 11 00 00 [16:13:05]Write to MH i2c: E2 08 00 95 56 80 11 00 00 00 00 00 00 65 [16:13:05]Write i2c OK [16:13:05]MH_I2C_Read... [16:13:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:05]Read from MH i2c: E2 [16:13:05]MH_I2C_Read... [16:13:05]Read from MH i2c: E2 17 00 [16:13:05]MH_I2C_Read... [16:13:05]Read from MH i2c: E2 17 00 95 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 B5 [16:13:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [16:13:05]wFMCommunicate OK [16:13:05]requested_item fd.num is exist - process it [16:13:05]SAM_PROTO_GetFieldsCounters [16:13:05]wFMCommunicate request_size=4 [16:13:05]MH_SAM_APDU [16:13:05]CAPDU: 80 13 00 00 [16:13:05]Write to MH i2c: E2 08 00 96 56 80 13 00 00 00 00 00 00 68 [16:13:05]Write i2c OK [16:13:05]MH_I2C_Read... [16:13:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:13:05]Read from MH i2c: E2 [16:13:05]MH_I2C_Read... [16:13:05]Read from MH i2c: E2 62 00 [16:13:05]MH_I2C_Read... [16:13:05]Read from MH i2c: E2 62 00 96 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 27 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 6C [16:13:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 27 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:13:05]wFMCommunicate OK [16:13:05]SAM_PROTO_GetFieldsCounters done [16:13:05]requested_item shift.num is exist - process it [16:13:05]requested_item shift.opened is exist - process it [16:13:05]req_shift_opened [16:13:05]FM_GetShiftState [16:13:05]SAM_PROTO_GetShiftState [16:13:05]wFMCommunicate request_size=4 [16:13:05]MH_SAM_APDU [16:13:05]CAPDU: 80 13 01 00 [16:13:05]Write to MH i2c: E2 08 00 97 56 80 13 01 00 00 00 00 00 6A [16:13:05]Write i2c OK [16:13:05]MH_I2C_Read... [16:13:05]Read from MH i2c: E2 [16:13:05]MH_I2C_Read... [16:13:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:05]Read from MH i2c: E2 0E 00 [16:13:05]MH_I2C_Read... [16:13:05]Read from MH i2c: E2 0E 00 97 56 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 5E [16:13:05]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [16:13:05]wFMCommunicate OK [16:13:05]SAM_PROTO_GetShiftState done [16:13:05]FM_GetShiftState done [16:13:05]req_shift_opened done [16:13:05]requested_item shift.open_date is exist - process it [16:13:05]req_shift_open_date [16:13:05]req_shift_open_date done [16:13:05]produce_requested_data done [16:13:05]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2087,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [16:13:05]process_action_free close_receipt [16:13:05]json_value_free [16:13:05]json_value_free done [16:13:05]process_json_proto returns [16:13:05]Send response to host [16:13:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2087,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [16:13:05]free response buf [16:13:05]execute_script done [16:13:05]execute_script returns [16:13:05]free content buf [16:13:05]Sock 9.Close socket [16:13:05]Sock 9.Thread stoped [16:13:09]OFD Sender: No OFD packet to send [16:13:14]OFD Sender: No OFD packet to send [16:13:19]OFD Sender: No OFD packet to send [16:13:24]OFD Sender: No OFD packet to send [16:13:29]OFD Sender: No OFD packet to send [16:13:34]OFD Sender: No OFD packet to send [16:13:39]OFD Sender: No OFD packet to send [16:13:44]OFD Sender: No OFD packet to send [16:13:49]OFD Sender: No OFD packet to send [16:13:54]OFD Sender: No OFD packet to send [16:13:59]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]accept exits with 8 [16:18:34]New connection [16:18:34]New thread 3067317604 created [16:18:34]Thread 3067460964 joined [16:18:34]Waiting for new connection... [16:18:34] Sock 8.Parse request [16:18:34]Sock 8.Check first char [16:18:34]Sock 8.First char is OK [16:18:34]request: POST /json_proto HTTP/1.0 [16:18:34]Method: POST [16:18:34]URL: /json_proto [16:18:34]Method is POST - this is cgi request [16:18:34]url: /json_proto [16:18:34]query_string will be loaded in cgi processing [16:18:34]execute_cgi json_proto POST (null) [16:18:34]execute_cgi path=json_proto method=POST [16:18:34]POST find Content-Length [16:18:34]Host: 172.17.45.132:8080 [16:18:34]Content-Length: 755 [16:18:34]Content-Type: application/json [16:18:34] [16:18:34]POST finish read [16:18:34]Found Content-Length = 755 [16:18:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126388", "tax_sys" : 0, "items" : [ { "code": "4630007400969", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 \u0436\u0430\u0440\u0435\u043D \u041A\u0430\u0440\u0430\u0432\u0430\u043D \u043E\u0440\u0435\u0445\u043E\u0432 \u0421\u0442\u0430\u043D\u0434\u0430\u0440\u0442 40 ", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:18:34]execute_script... [16:18: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)126388", "tax_sys" : 0, "items" : [ { "code": "4630007400969", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 \u0436\u0430\u0440\u0435\u043D \u041A\u0430\u0440\u0430\u0432\u0430\u043D \u043E\u0440\u0435\u0445\u043E\u0432 \u0421\u0442\u0430\u043D\u0434\u0430\u0440\u0442 40 ", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:18:34]POST & json_proto [16:18:34]process_json_proto [16:18:34]json parsed OK: [16:18:34]protocol is kg_v1.0 [16:18:34]action value=close_receipt [16:18:34]process_action close_receipt [16:18:34]cmd_close_receipt [16:18:34]MH_GetDate [16:18:34]Write to MH i2c: F0 00 00 98 56 DD [16:18:34]Write i2c OK [16:18:34]MH_I2C_Read... [16:18:34]Read from MH i2c: F0 [16:18:34]MH_I2C_Read... [16:18:34]Read from MH i2c: F0 09 00 [16:18:34]MH_I2C_Read... [16:18:34]Read from MH i2c: F0 09 00 98 56 00 60 6F A6 66 E3 0B 90 66 A5 [16:18:34]GetLastDocTimeStamp 1722183188 [16:18:34]current date 1722183520 [16:18:34]FM_GetShiftState [16:18:34]SAM_PROTO_GetShiftState [16:18:34]wFMCommunicate request_size=4 [16:18:34]MH_SAM_APDU [16:18:34]CAPDU: 80 13 01 00 [16:18:34]Write to MH i2c: E2 08 00 99 56 80 13 01 00 00 00 00 00 6C [16:18:34]Write i2c OK [16:18:34]MH_I2C_Read... [16:18:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:18:34]Read from MH i2c: E2 [16:18:34]MH_I2C_Read... [16:18:34]Read from MH i2c: E2 0E 00 [16:18:34]MH_I2C_Read... [16:18:34]Read from MH i2c: E2 0E 00 99 56 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 60 [16:18:34]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [16:18:34]wFMCommunicate OK [16:18:34]SAM_PROTO_GetShiftState done [16:18:34]FM_GetShiftState done [16:18:34]opened in 1722125648 [16:18:34]opened+sec_in_day 1722212048 [16:18:34]quantity*price = 4000 [16:18:34]sum+1 = 4001 [16:18:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 40.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 139 28.07.2024 16:18 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2088 ФПД: 59136805912784 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T161841&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2088&fm=59136805912784&tin=02508201610067®Number=0000000000189667&sum=4000 0 [16:18:35]StoreToDocumentArchive [16:18:35]shift 13 fd 2088 [16:18:35]save to /storage/0013/doc_00002088 [16:18:35]save last doc name /storage/0013/doc_00002088 to /storage/kkm_last_doc_name [16:18:35]save OK [16:18:35]Clear old archive folders... [16:18:35]ProcessDocumentItem done err = 0, tmpTLVsize=314 [16:18:35]tlvbuf is 020E4490 [16:18:35]SAM_PROTO_ClearQueue [16:18:35]wFMCommunicate request_size=4 [16:18:35]MH_SAM_APDU [16:18:35]CAPDU: 80 09 00 00 [16:18:35]Write to MH i2c: E2 08 00 A6 56 80 09 00 00 00 00 00 00 6E [16:18:35]Write i2c OK [16:18:35]MH_I2C_Read... [16:18:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:18:35]Read from MH i2c: E2 [16:18:35]MH_I2C_Read... [16:18:35]Read from MH i2c: E2 03 00 [16:18:35]MH_I2C_Read... [16:18:35]Read from MH i2c: E2 03 00 A6 56 00 90 00 70 [16:18:35]RAPDU: 90 00 [16:18:35]wFMCommunicate OK [16:18:35]SAM_PROTO_ClearQueue done [16:18:35]KKMCreateOFDPacket [16:18:35]OFDProtocolAddRootSTLVToBuf [16:18:35]FM_MakeSignedData [16:18:35]FM_MakeSignedData [16:18:35]SAM_PROTO_SignData [16:18:35]wFMCommunicate request_size=4 [16:18:35]MH_SAM_APDU [16:18:35]CAPDU: 80 0D 01 02 [16:18:35]Write to MH i2c: E2 08 00 A7 56 80 0D 01 02 00 00 00 00 76 [16:18:35]Write i2c OK [16:18:35]MH_I2C_Read... [16:18:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:18:35]Read from MH i2c: E2 [16:18:35]MH_I2C_Read... [16:18:35]Read from MH i2c: E2 03 00 [16:18:35]MH_I2C_Read... [16:18:35]Read from MH i2c: E2 03 00 A7 56 00 90 00 71 [16:18:35]RAPDU: 90 00 [16:18:35]wFMCommunicate OK [16:18:35]wFMCommunicate request_size=255 [16:18:35]MH_SAM_APDU [16:18:35]CAPDU: 80 0D 02 02 FA 03 00 3A 01 1E 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 36 39 06 04 48 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 34 30 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 8B 00 00 00 F4 03 04 00 61 6F A6 66 0E 04 04 [16:18:35]Write to MH i2c: E2 02 01 A8 56 80 0D 02 02 FA 00 03 00 3A 01 1E 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 36 39 06 04 48 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 34 30 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 8B 00 00 00 F4 03 04 00 61 6F A6 66 0E 04 04 00 00 31 [16:18:35]Write i2c OK [16:18:35]MH_I2C_Read... [16:18:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:18:36]Read from MH i2c: E2 [16:18:36]MH_I2C_Read... [16:18:36]Read from MH i2c: E2 03 00 [16:18:36]MH_I2C_Read... [16:18:36]Read from MH i2c: E2 03 00 A8 56 00 90 00 72 [16:18:36]RAPDU: 90 00 [16:18:36]wFMCommunicate OK [16:18:36]wFMCommunicate request_size=73 [16:18:36]MH_SAM_APDU [16:18:36]CAPDU: 80 0D 02 02 44 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 28 08 00 00 35 04 06 00 35 C8 DC 4F 40 D0 [16:18:36]Write to MH i2c: E2 4C 00 A9 56 80 0D 02 02 44 00 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 28 08 00 00 35 04 06 00 35 C8 DC 4F 40 D0 00 00 14 [16:18:36]Write i2c OK [16:18:36]MH_I2C_Read... [16:18:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:18:36]Read from MH i2c: E2 [16:18:36]MH_I2C_Read... [16:18:36]Read from MH i2c: E2 03 00 [16:18:36]MH_I2C_Read... [16:18:36]Read from MH i2c: E2 03 00 A9 56 00 90 00 73 [16:18:36]RAPDU: 90 00 [16:18:36]wFMCommunicate OK [16:18:36]wFMCommunicate request_size=4 [16:18:36]MH_SAM_APDU [16:18:36]CAPDU: 80 0D 03 02 [16:18:36]Write to MH i2c: E2 08 00 AA 56 80 0D 03 02 00 00 00 00 7B [16:18:36]Write i2c OK [16:18:36]MH_I2C_Read... [16:18:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:18:36]Read from MH i2c: E2 [16:18:36]MH_I2C_Read... [16:18:36]Read from MH i2c: E2 0B 00 [16:18:36]MH_I2C_Read... [16:18:36]Read from MH i2c: E2 0B 00 AA 56 00 FC DC 29 4A 05 C8 B6 18 90 00 62 [16:18:36]RAPDU: FC DC 29 4A 05 C8 B6 18 90 00 [16:18:36]wFMCommunicate OK [16:18:36]SAM_PROTO_SignData done [16:18:36]FM_MakeSignedData done [16:18:36]CreateOFDProtocolMessage [16:18:36]wFMCommunicate request_size=4 [16:18:36]MH_SAM_APDU [16:18:36]CAPDU: 80 11 00 00 [16:18:36]Write to MH i2c: E2 08 00 AB 56 80 11 00 00 00 00 00 00 7B [16:18:36]Write i2c OK [16:18:36]MH_I2C_Read... [16:18:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:18:36]Read from MH i2c: E2 [16:18:36]MH_I2C_Read... [16:18:36]Read from MH i2c: E2 17 00 [16:18:36]MH_I2C_Read... [16:18:36]Read from MH i2c: E2 17 00 AB 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 CB [16:18:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [16:18:36]wFMCommunicate OK [16:18:36]CreateOFDProtocolMessage done [16:18:36]OFDSenderStorePacket 2088 [16:18:36]StoreOFDPacket docnum=2088 [16:18:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4E 01 00 00 E1 FE 46 01 E8 B1 5A 03 01 00 03 00 3A 01 1E 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 36 39 06 04 48 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 34 30 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 8B 00 00 00 F4 03 04 00 61 6F A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 28 08 00 00 35 04 06 00 35 C8 DC 4F 40 D0 FC DC 29 4A 05 C8 B6 18 [16:18:36]CheckFolder [16:18:36]dirname=/storage/ofd_packets [16:18:36]CheckFolder done [16:18:36]ProducePacketName [16:18:36]name=ofd_packets/00002088 [16:18:36]NVStorageSaveData ofd_packets/00002088 [16:18:36]File name is /storage/ofd_packets/00002088 [16:18:36]Write 364 bytes [16:18:36]NVStorageSaveData done [16:18:36]OFDSenderStorePacket done [16:18:36]KKMCreateOFDPacket done [16:18:36]NVStorageSaveData kkm_last_timestamp [16:18:36]File name is /storage/kkm_last_timestamp [16:18:36]Write 4 bytes [16:18:36]NVStorageSaveData done [16:18:36]ExternCall_PrintAddStr [16:18:36]wPrintStart [16:18:36]Write to MH i2c: 01 00 00 AC 56 02 [16:18:36]Write i2c OK [16:18:36]MH_I2C_Read... [16:18:36]Read from MH i2c: 01 [16:18:36]MH_I2C_Read... [16:18:36]Read from MH i2c: 01 07 00 [16:18:36]MH_I2C_Read... [16:18:36]Read from MH i2c: 01 07 00 AC 56 00 00 00 00 00 FF 0F 17 [16:18:36]RasterBufferAndPrint [16:18:36]line Счет N : (3)126388 [16:18:36]line ИНН: 02508201610067 [16:18:36]line Контрольно-Кассовый Чек [16:18:36]line ПРОДАЖА [16:18:36]line Товар: 4630007400969 [16:18:36]line Арахис жарен Караван орехов Стандарт 40 [16:18:36]line 1.000 * 40.00 [16:18:36]line = 40.00 [16:18:36]line НДС 12% НСП 1% [16:18:36]line > о реализуемом товаре [16:18:36]line ИТОГО: 40.00 [16:18:36]line НСП 1% : 0.35 [16:18:36]line НДС 12% : 4.25 [16:18:36]line Наличными: 40.00 [16:18:36]line Безнал.: 0.00 [16:18:36]line Место: АЗС № 127 "Партнер Нефть" [16:18:36]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [16:18:36]line СНО: Общий режим [16:18:36]line Чек 139 28.07.2024 16:18 [16:18:36]line Смена: 13 ФФД: 1.0 [16:18:36]line ЗНМ: 0300000161 [16:18:36]line РНМ: 0000000000189667 [16:18:36]line Версия ККМ: v1.0 [16:18:36]line ФМ: 0000000002094248 [16:18:36]line ФД: 2088 [16:18:36]line ФПД: 59136805912784 [16:18:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T161841&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2088&fm=59136805912784&tin=02508201610067®Number=0000000000189667&sum=4000 [16:18:36]line 0 [16:18:36]OFD Sender: Processing packet 2088 [packets to send 1, broken 0] [16:18:36]ProducePacketName [16:18:36]name=ofd_packets/00002088 [16:18:36]OFD Sender: To server: pG, [16:18:36]CommunicateWithHost lk.salyk.kg:30040 [16:18:36]ConnectInit lk.salyk.kg [16:18:36]written 0, free lines is 4095 [16:18:36]Connected sock=10 [16:18:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4E 01 00 00 E1 FE 46 01 E8 B1 5A 03 01 00 03 00 3A 01 1E 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 36 39 06 04 48 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 34 30 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 8B 00 00 00 F4 03 04 00 61 6F A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 28 08 00 00 35 04 06 00 35 C8 DC 4F 40 D0 FC DC 29 4A 05 C8 B6 18 [16:18:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 3A 80 47 00 FD E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 28 08 00 00 F4 03 04 00 D0 1A A6 66 B6 04 01 00 00 57 E2 06 DE 1E A7 76 B4 [16:18:37]CommunicateWithHost err = 0 [16:18:37]CheckOFDResponse [16:18:37]1017 (14) - 77093643461234 [16:18:37]1041 (16) - 0000000002094248 [16:18:37]1040 (4) - 2088 [16:18:37]1012 (4) - 28.07.2024 10:17 [16:18:37]1206 (1) - 0 [16:18:37]OFD Sender: Remove packet 2088 [16:18:37]ProducePacketName [16:18:37]name=ofd_packets/00002088 [16:18:37]NVStorageDeleteData [16:18:37]Write to MH i2c: 01 00 00 D5 56 2B [16:18:37]Write i2c OK [16:18:37]MH_I2C_Read... [16:18:37]Read from MH i2c: 01 [16:18:37]MH_I2C_Read... [16:18:37]Read from MH i2c: 01 07 00 [16:18:37]MH_I2C_Read... [16:18:37]Read from MH i2c: 01 07 00 D5 56 00 00 00 00 00 1B 0D 5A [16:18:37]RasterBufferAndPrint [16:18:37]line [16:18:37]line [16:18:37]line [16:18:37]line [16:18:37]line [16:18:37]written 0, free lines is 3364 [16:18:37]MH_Cut [16:18:37]Write to MH i2c: D1 01 00 DC 56 01 04 [16:18:37]Write i2c OK [16:18:37]MH_I2C_Read... [16:18:37]Read from MH i2c: D1 [16:18:37]MH_I2C_Read... [16:18:37]Read from MH i2c: D1 01 00 [16:18:37]MH_I2C_Read... [16:18:37]Read from MH i2c: D1 01 00 DC 56 00 03 [16:18:37]Write to MH i2c: 01 00 00 DD 56 33 [16:18:37]Write i2c OK [16:18:37]MH_I2C_Read... [16:18:37]OFD Sender: No OFD packet to send [16:18:37]*** Cut start [16:18:37]*** Partial cut [16:18:37]*** CUTSNS_PIN = 1 [16:18:37]*** CUTSNS_PIN = 0 [16:18:38]*** Brake cut motor [16:18:38]Read from MH i2c: 01 [16:18:38]MH_I2C_Read... [16:18:38]*** Stop cut motor [16:18:38]*** Cut end [16:18:38]Read from MH i2c: 01 07 00 [16:18:38]MH_I2C_Read... [16:18:38]Read from MH i2c: 01 07 00 DD 56 00 00 00 00 00 FF 0F 48 [16:18:38]process_action close_receipt done [16:18:38]requested_data is exist [16:18:38]produce_requested_data [16:18:38]requested_item fm.sn is exist - process it [16:18:38]wFMCommunicate request_size=4 [16:18:38]MH_SAM_APDU [16:18:38]CAPDU: 80 11 00 00 [16:18:38]Write to MH i2c: E2 08 00 DE 56 80 11 00 00 00 00 00 00 AE [16:18:38]Write i2c OK [16:18:38]MH_I2C_Read... [16:18:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:18:38]Read from MH i2c: E2 [16:18:38]MH_I2C_Read... [16:18:38]Read from MH i2c: E2 17 00 [16:18:38]MH_I2C_Read... [16:18:38]Read from MH i2c: E2 17 00 DE 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 FE [16:18:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [16:18:38]wFMCommunicate OK [16:18:38]requested_item fd.num is exist - process it [16:18:38]SAM_PROTO_GetFieldsCounters [16:18:38]wFMCommunicate request_size=4 [16:18:38]MH_SAM_APDU [16:18:38]CAPDU: 80 13 00 00 [16:18:38]Write to MH i2c: E2 08 00 DF 56 80 13 00 00 00 00 00 00 B1 [16:18:38]Write i2c OK [16:18:38]MH_I2C_Read... [16:18:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:18:38]Read from MH i2c: E2 [16:18:38]MH_I2C_Read... [16:18:38]Read from MH i2c: E2 62 00 [16:18:38]MH_I2C_Read... [16:18:38]Read from MH i2c: E2 62 00 DF 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 28 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 B9 [16:18:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 28 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:18:38]wFMCommunicate OK [16:18:38]SAM_PROTO_GetFieldsCounters done [16:18:38]requested_item shift.num is exist - process it [16:18:38]requested_item shift.opened is exist - process it [16:18:38]req_shift_opened [16:18:38]FM_GetShiftState [16:18:38]SAM_PROTO_GetShiftState [16:18:38]wFMCommunicate request_size=4 [16:18:38]MH_SAM_APDU [16:18:38]CAPDU: 80 13 01 00 [16:18:38]Write to MH i2c: E2 08 00 E0 56 80 13 01 00 00 00 00 00 B3 [16:18:38]Write i2c OK [16:18:38]MH_I2C_Read... [16:18:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:18:38]Read from MH i2c: E2 [16:18:38]MH_I2C_Read... [16:18:38]Read from MH i2c: E2 0E 00 [16:18:38]MH_I2C_Read... [16:18:38]Read from MH i2c: E2 0E 00 E0 56 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 A7 [16:18:38]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [16:18:38]wFMCommunicate OK [16:18:38]SAM_PROTO_GetShiftState done [16:18:38]FM_GetShiftState done [16:18:38]req_shift_opened done [16:18:38]requested_item shift.open_date is exist - process it [16:18:38]req_shift_open_date [16:18:38]req_shift_open_date done [16:18:38]produce_requested_data done [16:18:38]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2088,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [16:18:38]process_action_free close_receipt [16:18:38]json_value_free [16:18:38]json_value_free done [16:18:38]process_json_proto returns [16:18:38]Send response to host [16:18:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2088,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [16:18:38]free response buf [16:18:38]execute_script done [16:18:38]execute_script returns [16:18:38]free content buf [16:18:38]Sock 8.Close socket [16:18:38]Sock 8.Thread stoped [16:18:42]OFD Sender: No OFD packet to send [16:18:47]OFD Sender: No OFD packet to send [16:18:52]OFD Sender: No OFD packet to send [16:18:55]accept exits with 9 [16:18:55]New connection [16:18:55]New thread 3067460964 created [16:18:55]Thread 3067317604 joined [16:18:55]Waiting for new connection... [16:18:55] Sock 9.Parse request [16:18:55]Sock 9.Check first char [16:18:55]Sock 9.First char is OK [16:18:55]request: POST /json_proto HTTP/1.0 [16:18:55]Method: POST [16:18:55]URL: /json_proto [16:18:55]Method is POST - this is cgi request [16:18:55]url: /json_proto [16:18:55]query_string will be loaded in cgi processing [16:18:55]execute_cgi json_proto POST (null) [16:18:55]execute_cgi path=json_proto method=POST [16:18:55]POST find Content-Length [16:18:55]Host: 172.17.45.132:8080 [16:18:55]Content-Length: 627 [16:18:55]Content-Type: application/json [16:18:55] [16:18:55]POST finish read [16:18:55]Found Content-Length = 627 [16:18:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126389", "tax_sys" : 0, "items" : [ { "code": "4700007690018", "name": "\u041D\u0435\u0433\u0430\u0437 \u0432\u043E\u0434\u0430 Pamir 0,5 \u043B", "price" : 30.00, "quantity" : 1.000, "sum" : 30.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 30.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:18:55]execute_script... [16:18:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126389", "tax_sys" : 0, "items" : [ { "code": "4700007690018", "name": "\u041D\u0435\u0433\u0430\u0437 \u0432\u043E\u0434\u0430 Pamir 0,5 \u043B", "price" : 30.00, "quantity" : 1.000, "sum" : 30.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 30.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:18:55]POST & json_proto [16:18:55]process_json_proto [16:18:55]json parsed OK: [16:18:55]protocol is kg_v1.0 [16:18:55]action value=close_receipt [16:18:55]process_action close_receipt [16:18:55]cmd_close_receipt [16:18:55]MH_GetDate [16:18:55]Write to MH i2c: F0 00 00 E1 56 26 [16:18:55]Write i2c OK [16:18:55]MH_I2C_Read... [16:18:55]Read from MH i2c: F0 [16:18:55]MH_I2C_Read... [16:18:55]Read from MH i2c: F0 09 00 [16:18:55]MH_I2C_Read... [16:18:55]Read from MH i2c: F0 09 00 E1 56 00 75 6F A6 66 E3 0B 90 66 03 [16:18:55]GetLastDocTimeStamp 1722183521 [16:18:55]current date 1722183541 [16:18:55]FM_GetShiftState [16:18:55]SAM_PROTO_GetShiftState [16:18:55]wFMCommunicate request_size=4 [16:18:55]MH_SAM_APDU [16:18:55]CAPDU: 80 13 01 00 [16:18:55]Write to MH i2c: E2 08 00 E2 56 80 13 01 00 00 00 00 00 B5 [16:18:55]Write i2c OK [16:18:55]MH_I2C_Read... [16:18:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:18:55]Read from MH i2c: E2 [16:18:55]MH_I2C_Read... [16:18:55]Read from MH i2c: E2 0E 00 [16:18:55]MH_I2C_Read... [16:18:55]Read from MH i2c: E2 0E 00 E2 56 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 A9 [16:18:55]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [16:18:55]wFMCommunicate OK [16:18:55]SAM_PROTO_GetShiftState done [16:18:55]FM_GetShiftState done [16:18:55]opened in 1722125648 [16:18:55]opened+sec_in_day 1722212048 [16:18:55]quantity*price = 3000 [16:18:55]sum+1 = 3001 [16:18:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 30.00 НСП 1% : 0.26 НДС 12% : 3.19 Наличными: 30.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 140 28.07.2024 16:19 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2089 ФПД: 109210900626677 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T161902&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2089&fm=109210900626677&tin=02508201610067®Number=0000000000189667&sum=3000 0 [16:18:56]StoreToDocumentArchive [16:18:56]shift 13 fd 2089 [16:18:56]save to /storage/0013/doc_00002089 [16:18:56]save last doc name /storage/0013/doc_00002089 to /storage/kkm_last_doc_name [16:18:56]save OK [16:18:56]Clear old archive folders... [16:18:56]ProcessDocumentItem done err = 0, tmpTLVsize=274 [16:18:56]tlvbuf is 02010960 [16:18:56]SAM_PROTO_ClearQueue [16:18:56]wFMCommunicate request_size=4 [16:18:56]MH_SAM_APDU [16:18:56]CAPDU: 80 09 00 00 [16:18:56]Write to MH i2c: E2 08 00 EF 56 80 09 00 00 00 00 00 00 B7 [16:18:56]Write i2c OK [16:18:56]MH_I2C_Read... [16:18:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:18:56]Read from MH i2c: E2 [16:18:56]MH_I2C_Read... [16:18:56]Read from MH i2c: E2 03 00 [16:18:56]MH_I2C_Read... [16:18:56]Read from MH i2c: E2 03 00 EF 56 00 90 00 B9 [16:18:56]RAPDU: 90 00 [16:18:56]wFMCommunicate OK [16:18:56]SAM_PROTO_ClearQueue done [16:18:56]KKMCreateOFDPacket [16:18:56]OFDProtocolAddRootSTLVToBuf [16:18:56]FM_MakeSignedData [16:18:56]FM_MakeSignedData [16:18:56]SAM_PROTO_SignData [16:18:56]wFMCommunicate request_size=4 [16:18:56]MH_SAM_APDU [16:18:56]CAPDU: 80 0D 01 02 [16:18:56]Write to MH i2c: E2 08 00 F0 56 80 0D 01 02 00 00 00 00 BF [16:18:56]Write i2c OK [16:18:56]MH_I2C_Read... [16:18:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:18:56]Read from MH i2c: E2 [16:18:56]MH_I2C_Read... [16:18:56]Read from MH i2c: E2 03 00 [16:18:56]MH_I2C_Read... [16:18:56]Read from MH i2c: E2 03 00 F0 56 00 90 00 BA [16:18:56]RAPDU: 90 00 [16:18:56]wFMCommunicate OK [16:18:56]wFMCommunicate request_size=255 [16:18:56]MH_SAM_APDU [16:18:56]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 37 36 39 30 30 31 38 06 04 20 00 D0 9D D0 B5 D0 B3 D0 B0 D0 B7 20 D0 B2 D0 BE D0 B4 D0 B0 20 50 61 6D 69 72 20 30 2C 35 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 0B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 01 00 00 00 00 07 04 06 00 B8 0B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 76 6F A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 [16:18:56]Write to MH i2c: E2 02 01 F1 56 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 37 36 39 30 30 31 38 06 04 20 00 D0 9D D0 B5 D0 B3 D0 B0 D0 B7 20 D0 B2 D0 BE D0 B4 D0 B0 20 50 61 6D 69 72 20 30 2C 35 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 0B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 01 00 00 00 00 07 04 06 00 B8 0B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 76 6F A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 00 00 F0 [16:18:56]Write i2c OK [16:18:56]MH_I2C_Read... [16:18:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:18:57]Read from MH i2c: E2 [16:18:57]MH_I2C_Read... [16:18:57]Read from MH i2c: E2 03 00 [16:18:57]MH_I2C_Read... [16:18:57]Read from MH i2c: E2 03 00 F1 56 00 90 00 BB [16:18:57]RAPDU: 90 00 [16:18:57]wFMCommunicate OK [16:18:57]wFMCommunicate request_size=33 [16:18:57]MH_SAM_APDU [16:18:57]CAPDU: 80 0D 02 02 1C 30 30 30 32 30 39 34 32 34 38 10 04 04 00 29 08 00 00 35 04 06 00 63 53 A4 EF FC F5 [16:18:57]Write to MH i2c: E2 24 00 F2 56 80 0D 02 02 1C 00 30 30 30 32 30 39 34 32 34 38 10 04 04 00 29 08 00 00 35 04 06 00 63 53 A4 EF FC F5 00 00 B9 [16:18:57]Write i2c OK [16:18:57]MH_I2C_Read... [16:18:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:18:57]Read from MH i2c: E2 [16:18:57]MH_I2C_Read... [16:18:57]Read from MH i2c: E2 03 00 [16:18:57]MH_I2C_Read... [16:18:57]Read from MH i2c: E2 03 00 F2 56 00 90 00 BC [16:18:57]RAPDU: 90 00 [16:18:57]wFMCommunicate OK [16:18:57]wFMCommunicate request_size=4 [16:18:57]MH_SAM_APDU [16:18:57]CAPDU: 80 0D 03 02 [16:18:57]Write to MH i2c: E2 08 00 F3 56 80 0D 03 02 00 00 00 00 C4 [16:18:57]Write i2c OK [16:18:57]MH_I2C_Read... [16:18:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:18:57]Read from MH i2c: E2 [16:18:57]MH_I2C_Read... [16:18:57]Read from MH i2c: E2 0B 00 [16:18:57]MH_I2C_Read... [16:18:57]Read from MH i2c: E2 0B 00 F3 56 00 7E 1C D0 0B E6 C5 84 0F 90 00 78 [16:18:57]RAPDU: 7E 1C D0 0B E6 C5 84 0F 90 00 [16:18:57]wFMCommunicate OK [16:18:57]SAM_PROTO_SignData done [16:18:57]FM_MakeSignedData done [16:18:57]CreateOFDProtocolMessage [16:18:57]wFMCommunicate request_size=4 [16:18:57]MH_SAM_APDU [16:18:57]CAPDU: 80 11 00 00 [16:18:57]Write to MH i2c: E2 08 00 F4 56 80 11 00 00 00 00 00 00 C4 [16:18:57]Write i2c OK [16:18:57]MH_I2C_Read... [16:18:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:18:57]Read from MH i2c: E2 [16:18:57]MH_I2C_Read... [16:18:57]Read from MH i2c: E2 17 00 [16:18:57]MH_I2C_Read... [16:18:57]Read from MH i2c: E2 17 00 F4 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 14 [16:18:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [16:18:57]wFMCommunicate OK [16:18:57]CreateOFDProtocolMessage done [16:18:57]OFDSenderStorePacket 2089 [16:18:57]StoreOFDPacket docnum=2089 [16:18:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 26 01 00 00 E7 88 1E 01 FF 4A 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 37 36 39 30 30 31 38 06 04 20 00 D0 9D D0 B5 D0 B3 D0 B0 D0 B7 20 D0 B2 D0 BE D0 B4 D0 B0 20 50 61 6D 69 72 20 30 2C 35 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 0B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 01 00 00 00 00 07 04 06 00 B8 0B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 76 6F A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 29 08 00 00 35 04 06 00 63 53 A4 EF FC F5 7E 1C D0 0B E6 C5 84 0F [16:18:57]CheckFolder [16:18:57]dirname=/storage/ofd_packets [16:18:57]CheckFolder done [16:18:57]ProducePacketName [16:18:57]name=ofd_packets/00002089 [16:18:57]NVStorageSaveData ofd_packets/00002089 [16:18:57]File name is /storage/ofd_packets/00002089 [16:18:57]Write 324 bytes [16:18:57]NVStorageSaveData done [16:18:57]OFDSenderStorePacket done [16:18:57]KKMCreateOFDPacket done [16:18:57]NVStorageSaveData kkm_last_timestamp [16:18:57]File name is /storage/kkm_last_timestamp [16:18:57]Write 4 bytes [16:18:57]NVStorageSaveData done [16:18:57]ExternCall_PrintAddStr [16:18:57]wPrintStart [16:18:57]Write to MH i2c: 01 00 00 F5 56 4B [16:18:57]Write i2c OK [16:18:57]MH_I2C_Read... [16:18:57]Read from MH i2c: 01 [16:18:57]MH_I2C_Read... [16:18:57]Read from MH i2c: 01 07 00 [16:18:57]MH_I2C_Read... [16:18:57]Read from MH i2c: 01 07 00 F5 56 00 00 00 00 00 FF 0F 60 [16:18:57]RasterBufferAndPrint [16:18:57]line Счет N : (3)126389 [16:18:57]line ИНН: 02508201610067 [16:18:57]line Контрольно-Кассовый Чек [16:18:57]line ПРОДАЖА [16:18:57]line Товар: 4700007690018 [16:18:57]line Негаз вода Pamir 0,5 л [16:18:57]line 1.000 * 30.00 [16:18:57]line = 30.00 [16:18:57]line НДС 12% НСП 1% [16:18:57]line > о реализуемом товаре [16:18:57]line ИТОГО: 30.00 [16:18:57]line НСП 1% : 0.26 [16:18:57]line НДС 12% : 3.19 [16:18:57]line Наличными: 30.00 [16:18:57]line Безнал.: 0.00 [16:18:57]line Место: АЗС № 127 "Партнер Нефть" [16:18:57]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [16:18:57]line СНО: Общий режим [16:18:57]line Чек 140 28.07.2024 16:19 [16:18:57]line Смена: 13 ФФД: 1.0 [16:18:57]line ЗНМ: 0300000161 [16:18:57]line РНМ: 0000000000189667 [16:18:57]line Версия ККМ: v1.0 [16:18:57]line ФМ: 0000000002094248 [16:18:57]line ФД: 2089 [16:18:57]line ФПД: 109210900626677 [16:18:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T161902&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2089&fm=109210900626677&tin=02508201610067®Number=0000000000189667&sum=3000 [16:18:57]line 0 [16:18:57]written 0, free lines is 4095 [16:18:57]OFD Sender: Processing packet 2089 [packets to send 1, broken 0] [16:18:57]ProducePacketName [16:18:57]name=ofd_packets/00002089 [16:18:57]OFD Sender: To server: pG, [16:18:57]CommunicateWithHost lk.salyk.kg:30040 [16:18:57]ConnectInit lk.salyk.kg [16:18:57]Connected sock=10 [16:18:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 26 01 00 00 E7 88 1E 01 FF 4A 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 37 36 39 30 30 31 38 06 04 20 00 D0 9D D0 B5 D0 B3 D0 B0 D0 B7 20 D0 B2 D0 BE D0 B4 D0 B0 20 50 61 6D 69 72 20 30 2C 35 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 0B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 01 00 00 00 00 07 04 06 00 B8 0B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 76 6F A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 29 08 00 00 35 04 06 00 63 53 A4 EF FC F5 7E 1C D0 0B E6 C5 84 0F [16:18:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 07 33 47 00 AF 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 29 08 00 00 F4 03 04 00 E5 1A A6 66 B6 04 01 00 00 FB D2 DF 92 74 66 19 3F [16:18:58]CommunicateWithHost err = 0 [16:18:58]CheckOFDResponse [16:18:58]1017 (14) - 77093643461234 [16:18:58]1041 (16) - 0000000002094248 [16:18:58]1040 (4) - 2089 [16:18:58]1012 (4) - 28.07.2024 10:18 [16:18:58]1206 (1) - 0 [16:18:58]OFD Sender: Remove packet 2089 [16:18:58]ProducePacketName [16:18:58]name=ofd_packets/00002089 [16:18:58]NVStorageDeleteData [16:18:58]Write to MH i2c: 01 00 00 1D 57 74 [16:18:58]Write i2c OK [16:18:58]MH_I2C_Read... [16:18:58]Read from MH i2c: 01 [16:18:58]MH_I2C_Read... [16:18:58]Read from MH i2c: 01 07 00 [16:18:58]MH_I2C_Read... [16:18:58]Read from MH i2c: 01 07 00 1D 57 00 00 00 00 00 25 0D AD [16:18:58]RasterBufferAndPrint [16:18:58]line [16:18:58]line [16:18:58]line [16:18:58]line [16:18:58]line [16:18:58]written 0, free lines is 3374 [16:18:58]MH_Cut [16:18:58]Write to MH i2c: D1 01 00 24 57 01 4D [16:18:58]Write i2c OK [16:18:58]MH_I2C_Read... [16:18:58]Read from MH i2c: D1 [16:18:58]MH_I2C_Read... [16:18:58]Read from MH i2c: D1 01 00 [16:18:58]MH_I2C_Read... [16:18:58]Read from MH i2c: D1 01 00 24 57 00 4C [16:18:58]Write to MH i2c: 01 00 00 25 57 7C [16:18:58]Write i2c OK [16:18:58]MH_I2C_Read... [16:18:58]OFD Sender: No OFD packet to send [16:18:58]*** Cut start [16:18:58]*** Partial cut [16:18:58]*** CUTSNS_PIN = 1 [16:18:58]*** CUTSNS_PIN = 0 [16:18:59]*** Brake cut motor [16:18:59]Read from MH i2c: 01 [16:18:59]MH_I2C_Read... [16:18:59]*** Stop cut motor [16:18:59]*** Cut end [16:18:59]Read from MH i2c: 01 07 00 [16:18:59]MH_I2C_Read... [16:18:59]Read from MH i2c: 01 07 00 25 57 00 00 00 00 00 FF 0F 91 [16:18:59]process_action close_receipt done [16:18:59]requested_data is exist [16:18:59]produce_requested_data [16:18:59]requested_item fm.sn is exist - process it [16:18:59]wFMCommunicate request_size=4 [16:18:59]MH_SAM_APDU [16:18:59]CAPDU: 80 11 00 00 [16:18:59]Write to MH i2c: E2 08 00 26 57 80 11 00 00 00 00 00 00 F7 [16:18:59]Write i2c OK [16:18:59]MH_I2C_Read... [16:18:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:18:59]Read from MH i2c: E2 [16:18:59]MH_I2C_Read... [16:18:59]Read from MH i2c: E2 17 00 [16:18:59]MH_I2C_Read... [16:18:59]Read from MH i2c: E2 17 00 26 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 47 [16:18:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [16:18:59]wFMCommunicate OK [16:18:59]requested_item fd.num is exist - process it [16:18:59]SAM_PROTO_GetFieldsCounters [16:18:59]wFMCommunicate request_size=4 [16:18:59]MH_SAM_APDU [16:18:59]CAPDU: 80 13 00 00 [16:18:59]Write to MH i2c: E2 08 00 27 57 80 13 00 00 00 00 00 00 FA [16:18:59]Write i2c OK [16:18:59]MH_I2C_Read... [16:18:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:18:59]Read from MH i2c: E2 [16:18:59]MH_I2C_Read... [16:18:59]Read from MH i2c: E2 62 00 [16:18:59]MH_I2C_Read... [16:18:59]Read from MH i2c: E2 62 00 27 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 29 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [16:18:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 29 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:18:59]wFMCommunicate OK [16:18:59]SAM_PROTO_GetFieldsCounters done [16:18:59]requested_item shift.num is exist - process it [16:18:59]requested_item shift.opened is exist - process it [16:18:59]req_shift_opened [16:18:59]FM_GetShiftState [16:18:59]SAM_PROTO_GetShiftState [16:18:59]wFMCommunicate request_size=4 [16:18:59]MH_SAM_APDU [16:18:59]CAPDU: 80 13 01 00 [16:18:59]Write to MH i2c: E2 08 00 28 57 80 13 01 00 00 00 00 00 FC [16:18:59]Write i2c OK [16:18:59]MH_I2C_Read... [16:18:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:18:59]Read from MH i2c: E2 [16:18:59]MH_I2C_Read... [16:18:59]Read from MH i2c: E2 0E 00 [16:18:59]MH_I2C_Read... [16:18:59]Read from MH i2c: E2 0E 00 28 57 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 F0 [16:18:59]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [16:18:59]wFMCommunicate OK [16:18:59]SAM_PROTO_GetShiftState done [16:18:59]FM_GetShiftState done [16:18:59]req_shift_opened done [16:18:59]requested_item shift.open_date is exist - process it [16:18:59]req_shift_open_date [16:18:59]req_shift_open_date done [16:18:59]produce_requested_data done [16:18:59]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2089,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [16:18:59]process_action_free close_receipt [16:18:59]json_value_free [16:18:59]json_value_free done [16:18:59]process_json_proto returns [16:18:59]Send response to host [16:18:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2089,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [16:18:59]free response buf [16:18:59]execute_script done [16:18:59]execute_script returns [16:18:59]free content buf [16:18:59]Sock 9.Close socket [16:18:59]Sock 9.Thread stoped [16:19:03]OFD Sender: No OFD packet to send [16:19:08]OFD Sender: No OFD packet to send [16:19:13]OFD Sender: No OFD packet to send [16:19:18]OFD Sender: No OFD packet to send [16:19:23]OFD Sender: No OFD packet to send [16:19:28]OFD Sender: No OFD packet to send [16:19:33]OFD Sender: No OFD packet to send [16:19:38]OFD Sender: No OFD packet to send [16:19:43]OFD Sender: No OFD packet to send [16:19:48]OFD Sender: No OFD packet to send [16:19:53]OFD Sender: No OFD packet to send [16:19:58]OFD Sender: No OFD packet to send [16:20:03]OFD Sender: No OFD packet to send [16:20:08]OFD Sender: No OFD packet to send [16:20:13]OFD Sender: No OFD packet to send [16:20:18]OFD Sender: No OFD packet to send [16:20:23]OFD Sender: No OFD packet to send [16:20:28]OFD Sender: No OFD packet to send [16:20:33]OFD Sender: No OFD packet to send [16:20:38]OFD Sender: No OFD packet to send [16:20:43]OFD Sender: No OFD packet to send [16:20:48]OFD Sender: No OFD packet to send [16:20:53]OFD Sender: No OFD packet to send [16:20:58]OFD Sender: No OFD packet to send [16:21:03]OFD Sender: No OFD packet to send [16:21:08]OFD Sender: No OFD packet to send [16:21:13]OFD Sender: No OFD packet to send [16:21:18]OFD Sender: No OFD packet to send [16:21:23]OFD Sender: No OFD packet to send [16:21:28]OFD Sender: No OFD packet to send [16:21:33]OFD Sender: No OFD packet to send [16:21:38]OFD Sender: No OFD packet to send [16:21:43]OFD Sender: No OFD packet to send [16:21:48]OFD Sender: No OFD packet to send [16:21:53]OFD Sender: No OFD packet to send [16:21:58]OFD Sender: No OFD packet to send [16:22:03]OFD Sender: No OFD packet to send [16:22:08]OFD Sender: No OFD packet to send [16:22:13]OFD Sender: No OFD packet to send [16:22:18]OFD Sender: No OFD packet to send [16:22:23]OFD Sender: No OFD packet to send [16:22:28]OFD Sender: No OFD packet to send [16:22:33]OFD Sender: No OFD packet to send [16:22:38]OFD Sender: No OFD packet to send [16:22:43]OFD Sender: No OFD packet to send [16:22:48]OFD Sender: No OFD packet to send [16:22:53]OFD Sender: No OFD packet to send [16:22:58]OFD Sender: No OFD packet to send [16:23:03]OFD Sender: No OFD packet to send [16:23:08]OFD Sender: No OFD packet to send [16:23:13]OFD Sender: No OFD packet to send [16:23:18]OFD Sender: No OFD packet to send [16:23:23]OFD Sender: No OFD packet to send [16:23:28]OFD Sender: No OFD packet to send [16:23:33]OFD Sender: No OFD packet to send [16:23:38]OFD Sender: No OFD packet to send [16:23:43]OFD Sender: No OFD packet to send [16:23:48]OFD Sender: No OFD packet to send [16:23:53]OFD Sender: No OFD packet to send [16:23:58]OFD Sender: No OFD packet to send [16:24:03]OFD Sender: No OFD packet to send [16:24:08]OFD Sender: No OFD packet to send [16:24:13]OFD Sender: No OFD packet to send [16:24:18]OFD Sender: No OFD packet to send [16:24:23]OFD Sender: No OFD packet to send [16:24:28]OFD Sender: No OFD packet to send [16:24:33]OFD Sender: No OFD packet to send [16:24:38]OFD Sender: No OFD packet to send [16:24:43]OFD Sender: No OFD packet to send [16:24:48]OFD Sender: No OFD packet to send [16:24:53]OFD Sender: No OFD packet to send [16:24:58]OFD Sender: No OFD packet to send [16:25:03]OFD Sender: No OFD packet to send [16:25:08]OFD Sender: No OFD packet to send [16:25:13]OFD Sender: No OFD packet to send [16:25:18]OFD Sender: No OFD packet to send [16:25:23]OFD Sender: No OFD packet to send [16:25:28]OFD Sender: No OFD packet to send [16:25:33]OFD Sender: No OFD packet to send [16:25:38]OFD Sender: No OFD packet to send [16:25:43]OFD Sender: No OFD packet to send [16:25:48]OFD Sender: No OFD packet to send [16:25:53]OFD Sender: No OFD packet to send [16:25:58]OFD Sender: No OFD packet to send [16:26:03]OFD Sender: No OFD packet to send [16:26:08]OFD Sender: No OFD packet to send [16:26:13]OFD Sender: No OFD packet to send [16:26:18]OFD Sender: No OFD packet to send [16:26:23]OFD Sender: No OFD packet to send [16:26:28]OFD Sender: No OFD packet to send [16:26:30]accept exits with 8 [16:26:30]New connection [16:26:30]New thread 3067317604 created [16:26:30]Thread 3067460964 joined [16:26:30]Waiting for new connection... [16:26:30] Sock 8.Parse request [16:26:30]Sock 8.Check first char [16:26:30]Sock 8.First char is OK [16:26:30]request: POST /json_proto HTTP/1.0 [16:26:30]Method: POST [16:26:30]URL: /json_proto [16:26:30]Method is POST - this is cgi request [16:26:30]url: /json_proto [16:26:30]query_string will be loaded in cgi processing [16:26:30]execute_cgi json_proto POST (null) [16:26:30]execute_cgi path=json_proto method=POST [16:26:30]POST find Content-Length [16:26:30]Host: 172.17.45.132:8080 [16:26:30]Content-Length: 747 [16:26:30]Content-Type: application/json [16:26:30] [16:26:30]POST finish read [16:26:30]Found Content-Length = 747 [16:26:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126390", "tax_sys" : 0, "items" : [ { "code": "2000028410025", "name": "\u041E\u0447\u043A\u0438 \u0441\u043E\u043B\u043D\u0446\u0435\u0437\u0430\u0449\u0438\u0442\u043D\u044B\u0435 \u0432 \u0430\u0441\u0441\u043E\u0440\u0442\u0438\u043C\u0435\u043D\u0442\u0435", "price" : 590.00, "quantity" : 1.000, "sum" : 590.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 590.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:26:30]execute_script... [16:26:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126390", "tax_sys" : 0, "items" : [ { "code": "2000028410025", "name": "\u041E\u0447\u043A\u0438 \u0441\u043E\u043B\u043D\u0446\u0435\u0437\u0430\u0449\u0438\u0442\u043D\u044B\u0435 \u0432 \u0430\u0441\u0441\u043E\u0440\u0442\u0438\u043C\u0435\u043D\u0442\u0435", "price" : 590.00, "quantity" : 1.000, "sum" : 590.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 590.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:26:30]POST & json_proto [16:26:30]process_json_proto [16:26:30]json parsed OK: [16:26:30]protocol is kg_v1.0 [16:26:30]action value=close_receipt [16:26:30]process_action close_receipt [16:26:30]cmd_close_receipt [16:26:30]MH_GetDate [16:26:30]Write to MH i2c: F0 00 00 29 57 6F [16:26:30]Write i2c OK [16:26:30]MH_I2C_Read... [16:26:30]Read from MH i2c: F0 [16:26:30]MH_I2C_Read... [16:26:30]Read from MH i2c: F0 09 00 [16:26:30]MH_I2C_Read... [16:26:30]Read from MH i2c: F0 09 00 29 57 00 3C 71 A6 66 E3 0B 90 66 15 [16:26:30]GetLastDocTimeStamp 1722183542 [16:26:30]current date 1722183996 [16:26:30]FM_GetShiftState [16:26:30]SAM_PROTO_GetShiftState [16:26:30]wFMCommunicate request_size=4 [16:26:30]MH_SAM_APDU [16:26:30]CAPDU: 80 13 01 00 [16:26:30]Write to MH i2c: E2 08 00 2A 57 80 13 01 00 00 00 00 00 FE [16:26:30]Write i2c OK [16:26:30]MH_I2C_Read... [16:26:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:26:30]Read from MH i2c: E2 [16:26:30]MH_I2C_Read... [16:26:30]Read from MH i2c: E2 0E 00 [16:26:30]MH_I2C_Read... [16:26:30]Read from MH i2c: E2 0E 00 2A 57 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 F2 [16:26:30]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [16:26:30]wFMCommunicate OK [16:26:30]SAM_PROTO_GetShiftState done [16:26:30]FM_GetShiftState done [16:26:30]opened in 1722125648 [16:26:30]opened+sec_in_day 1722212048 [16:26:30]quantity*price = 59000 [16:26:30]sum+1 = 59001 [16:26:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 590.00 НСП 1% : 5.22 НДС 12% : 62.65 Наличными: 590.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 141 28.07.2024 16:26 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2090 ФПД: 199515418957852 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T162636&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2090&fm=199515418957852&tin=02508201610067®Number=0000000000189667&sum=59000 0 [16:26:31]StoreToDocumentArchive [16:26:31]shift 13 fd 2090 [16:26:31]save to /storage/0013/doc_00002090 [16:26:31]save last doc name /storage/0013/doc_00002090 to /storage/kkm_last_doc_name [16:26:31]save OK [16:26:31]Clear old archive folders... [16:26:31]ProcessDocumentItem done err = 0, tmpTLVsize=307 [16:26:31]tlvbuf is 020F9150 [16:26:31]SAM_PROTO_ClearQueue [16:26:31]wFMCommunicate request_size=4 [16:26:31]MH_SAM_APDU [16:26:31]CAPDU: 80 09 00 00 [16:26:31]Write to MH i2c: E2 08 00 37 57 80 09 00 00 00 00 00 00 00 [16:26:31]Write i2c OK [16:26:31]MH_I2C_Read... [16:26:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:26:31]Read from MH i2c: E2 [16:26:31]MH_I2C_Read... [16:26:31]Read from MH i2c: E2 03 00 [16:26:31]MH_I2C_Read... [16:26:31]Read from MH i2c: E2 03 00 37 57 00 90 00 02 [16:26:31]RAPDU: 90 00 [16:26:31]wFMCommunicate OK [16:26:31]SAM_PROTO_ClearQueue done [16:26:31]KKMCreateOFDPacket [16:26:31]OFDProtocolAddRootSTLVToBuf [16:26:31]FM_MakeSignedData [16:26:31]FM_MakeSignedData [16:26:31]SAM_PROTO_SignData [16:26:31]wFMCommunicate request_size=4 [16:26:31]MH_SAM_APDU [16:26:31]CAPDU: 80 0D 01 02 [16:26:31]Write to MH i2c: E2 08 00 38 57 80 0D 01 02 00 00 00 00 08 [16:26:31]Write i2c OK [16:26:31]MH_I2C_Read... [16:26:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:26:31]Read from MH i2c: E2 [16:26:31]MH_I2C_Read... [16:26:31]Read from MH i2c: E2 03 00 [16:26:31]MH_I2C_Read... [16:26:31]Read from MH i2c: E2 03 00 38 57 00 90 00 03 [16:26:31]RAPDU: 90 00 [16:26:31]wFMCommunicate OK [16:26:31]wFMCommunicate request_size=255 [16:26:31]MH_SAM_APDU [16:26:31]CAPDU: 80 0D 02 02 FA 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 38 34 31 30 30 32 35 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 E6 00 00 00 00 13 04 06 00 78 E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 18 00 00 00 00 07 04 06 00 78 E6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 3C 71 A6 66 0E 04 04 00 0D 00 00 00 B9 04 [16:26:31]Write to MH i2c: E2 02 01 39 57 80 0D 02 02 FA 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 38 34 31 30 30 32 35 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 E6 00 00 00 00 13 04 06 00 78 E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 18 00 00 00 00 07 04 06 00 78 E6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 3C 71 A6 66 0E 04 04 00 0D 00 00 00 B9 04 00 00 DC [16:26:31]Write i2c OK [16:26:31]MH_I2C_Read... [16:26:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:26:31]Read from MH i2c: E2 [16:26:31]MH_I2C_Read... [16:26:31]Read from MH i2c: E2 03 00 [16:26:31]MH_I2C_Read... [16:26:31]Read from MH i2c: E2 03 00 39 57 00 90 00 04 [16:26:31]RAPDU: 90 00 [16:26:31]wFMCommunicate OK [16:26:31]wFMCommunicate request_size=66 [16:26:31]MH_SAM_APDU [16:26:31]CAPDU: 80 0D 02 02 3D 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 2A 08 00 00 35 04 06 00 B5 75 4D AC 98 1C [16:26:31]Write to MH i2c: E2 45 00 3A 57 80 0D 02 02 3D 00 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 2A 08 00 00 35 04 06 00 B5 75 4D AC 98 1C 00 00 6F [16:26:31]Write i2c OK [16:26:31]MH_I2C_Read... [16:26:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:26:32]Read from MH i2c: E2 [16:26:32]MH_I2C_Read... [16:26:32]Read from MH i2c: E2 03 00 [16:26:32]MH_I2C_Read... [16:26:32]Read from MH i2c: E2 03 00 3A 57 00 90 00 05 [16:26:32]RAPDU: 90 00 [16:26:32]wFMCommunicate OK [16:26:32]wFMCommunicate request_size=4 [16:26:32]MH_SAM_APDU [16:26:32]CAPDU: 80 0D 03 02 [16:26:32]Write to MH i2c: E2 08 00 3B 57 80 0D 03 02 00 00 00 00 0D [16:26:32]Write i2c OK [16:26:32]MH_I2C_Read... [16:26:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:26:32]Read from MH i2c: E2 [16:26:32]MH_I2C_Read... [16:26:32]Read from MH i2c: E2 0B 00 [16:26:32]MH_I2C_Read... [16:26:32]Read from MH i2c: E2 0B 00 3B 57 00 F2 4D 9A 4A 07 41 20 B5 90 00 4E [16:26:32]RAPDU: F2 4D 9A 4A 07 41 20 B5 90 00 [16:26:32]wFMCommunicate OK [16:26:32]SAM_PROTO_SignData done [16:26:32]FM_MakeSignedData done [16:26:32]CreateOFDProtocolMessage [16:26:32]wFMCommunicate request_size=4 [16:26:32]MH_SAM_APDU [16:26:32]CAPDU: 80 11 00 00 [16:26:32]Write to MH i2c: E2 08 00 3C 57 80 11 00 00 00 00 00 00 0D [16:26:32]Write i2c OK [16:26:32]MH_I2C_Read... [16:26:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:26:32]Read from MH i2c: E2 [16:26:32]MH_I2C_Read... [16:26:32]Read from MH i2c: E2 17 00 [16:26:32]MH_I2C_Read... [16:26:32]Read from MH i2c: E2 17 00 3C 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 5D [16:26:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [16:26:32]wFMCommunicate OK [16:26:32]CreateOFDProtocolMessage done [16:26:32]OFDSenderStorePacket 2090 [16:26:32]StoreOFDPacket docnum=2090 [16:26:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 47 01 00 00 BD BC 3F 01 DE C7 5A 03 01 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 38 34 31 30 30 32 35 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 E6 00 00 00 00 13 04 06 00 78 E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 18 00 00 00 00 07 04 06 00 78 E6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 3C 71 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 2A 08 00 00 35 04 06 00 B5 75 4D AC 98 1C F2 4D 9A 4A 07 41 20 B5 [16:26:32]CheckFolder [16:26:32]dirname=/storage/ofd_packets [16:26:32]CheckFolder done [16:26:32]ProducePacketName [16:26:32]name=ofd_packets/00002090 [16:26:32]NVStorageSaveData ofd_packets/00002090 [16:26:32]File name is /storage/ofd_packets/00002090 [16:26:32]Write 357 bytes [16:26:32]NVStorageSaveData done [16:26:32]OFDSenderStorePacket done [16:26:32]KKMCreateOFDPacket done [16:26:32]NVStorageSaveData kkm_last_timestamp [16:26:32]File name is /storage/kkm_last_timestamp [16:26:32]Write 4 bytes [16:26:32]NVStorageSaveData done [16:26:32]ExternCall_PrintAddStr [16:26:32]wPrintStart [16:26:32]Write to MH i2c: 01 00 00 3D 57 94 [16:26:32]Write i2c OK [16:26:32]MH_I2C_Read... [16:26:32]Read from MH i2c: 01 [16:26:32]MH_I2C_Read... [16:26:32]Read from MH i2c: 01 07 00 [16:26:32]MH_I2C_Read... [16:26:32]Read from MH i2c: 01 07 00 3D 57 00 00 00 00 00 FF 0F A9 [16:26:32]RasterBufferAndPrint [16:26:32]line Счет N : (3)126390 [16:26:32]line ИНН: 02508201610067 [16:26:32]line Контрольно-Кассовый Чек [16:26:32]line ПРОДАЖА [16:26:32]line Товар: 2000028410025 [16:26:32]line Очки солнцезащитные в ассортименте [16:26:32]line 1.000 * 590.00 [16:26:32]line = 590.00 [16:26:32]line НДС 12% НСП 1% [16:26:32]line > о реализуемом товаре [16:26:32]line ИТОГО: 590.00 [16:26:32]line НСП 1% : 5.22 [16:26:32]line НДС 12% : 62.65 [16:26:32]line Наличными: 590.00 [16:26:32]line Безнал.: 0.00 [16:26:32]line Место: АЗС № 127 "Партнер Нефть" [16:26:32]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [16:26:32]line СНО: Общий режим [16:26:32]line Чек 141 28.07.2024 16:26 [16:26:32]line Смена: 13 ФФД: 1.0 [16:26:32]line ЗНМ: 0300000161 [16:26:32]line РНМ: 0000000000189667 [16:26:32]line Версия ККМ: v1.0 [16:26:32]line ФМ: 0000000002094248 [16:26:32]line ФД: 2090 [16:26:32]line ФПД: 199515418957852 [16:26:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T162636&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2090&fm=199515418957852&tin=02508201610067®Number=0000000000189667&sum=59000 [16:26:32]line 0 [16:26:32]OFD Sender: Processing packet 2090 [packets to send 1, broken 0] [16:26:32]ProducePacketName [16:26:32]name=ofd_packets/00002090 [16:26:32]OFD Sender: To server: pG, [16:26:32]CommunicateWithHost lk.salyk.kg:30040 [16:26:32]ConnectInit lk.salyk.kg [16:26:32]written 0, free lines is 4095 [16:26:32]Connected sock=10 [16:26:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 47 01 00 00 BD BC 3F 01 DE C7 5A 03 01 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 38 34 31 30 30 32 35 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 E6 00 00 00 00 13 04 06 00 78 E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 18 00 00 00 00 07 04 06 00 78 E6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 3C 71 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 2A 08 00 00 35 04 06 00 B5 75 4D AC 98 1C F2 4D 9A 4A 07 41 20 B5 [16:26:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 8D BF 47 00 64 DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 2A 08 00 00 F4 03 04 00 AC 1C A6 66 B6 04 01 00 00 BB 8B AC 9D 79 AD 4F 54 [16:26:32]CommunicateWithHost err = 0 [16:26:32]CheckOFDResponse [16:26:32]1017 (14) - 77093643461234 [16:26:32]1041 (16) - 0000000002094248 [16:26:32]1040 (4) - 2090 [16:26:32]1012 (4) - 28.07.2024 10:25 [16:26:32]1206 (1) - 0 [16:26:32]OFD Sender: Remove packet 2090 [16:26:32]ProducePacketName [16:26:32]name=ofd_packets/00002090 [16:26:32]NVStorageDeleteData [16:26:32]Write to MH i2c: 01 00 00 66 57 BD [16:26:32]Write i2c OK [16:26:32]MH_I2C_Read... [16:26:32]Read from MH i2c: 01 [16:26:32]MH_I2C_Read... [16:26:32]Read from MH i2c: 01 07 00 [16:26:32]MH_I2C_Read... [16:26:32]Read from MH i2c: 01 07 00 66 57 00 00 00 00 00 0D 0D DE [16:26:32]RasterBufferAndPrint [16:26:32]line [16:26:32]line [16:26:32]line [16:26:32]line [16:26:32]line [16:26:32]written 0, free lines is 3350 [16:26:32]MH_Cut [16:26:32]Write to MH i2c: D1 01 00 6D 57 01 96 [16:26:32]Write i2c OK [16:26:32]MH_I2C_Read... [16:26:32]Read from MH i2c: D1 [16:26:32]MH_I2C_Read... [16:26:32]Read from MH i2c: D1 01 00 [16:26:32]MH_I2C_Read... [16:26:32]Read from MH i2c: D1 01 00 6D 57 00 95 [16:26:32]Write to MH i2c: 01 00 00 6E 57 C5 [16:26:32]Write i2c OK [16:26:32]MH_I2C_Read... [16:26:33]OFD Sender: No OFD packet to send [16:26:33]*** Cut start [16:26:33]*** Partial cut [16:26:33]*** CUTSNS_PIN = 1 [16:26:33]*** CUTSNS_PIN = 0 [16:26:33]*** Brake cut motor [16:26:34]Read from MH i2c: 01 [16:26:34]MH_I2C_Read... [16:26:34]*** Stop cut motor [16:26:34]*** Cut end [16:26:34]Read from MH i2c: 01 07 00 [16:26:34]MH_I2C_Read... [16:26:34]Read from MH i2c: 01 07 00 6E 57 00 00 00 00 00 FF 0F DA [16:26:34]process_action close_receipt done [16:26:34]requested_data is exist [16:26:34]produce_requested_data [16:26:34]requested_item fm.sn is exist - process it [16:26:34]wFMCommunicate request_size=4 [16:26:34]MH_SAM_APDU [16:26:34]CAPDU: 80 11 00 00 [16:26:34]Write to MH i2c: E2 08 00 6F 57 80 11 00 00 00 00 00 00 40 [16:26:34]Write i2c OK [16:26:34]MH_I2C_Read... [16:26:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:26:34]Read from MH i2c: E2 [16:26:34]MH_I2C_Read... [16:26:34]Read from MH i2c: E2 17 00 [16:26:34]MH_I2C_Read... [16:26:34]Read from MH i2c: E2 17 00 6F 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 90 [16:26:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [16:26:34]wFMCommunicate OK [16:26:34]requested_item fd.num is exist - process it [16:26:34]SAM_PROTO_GetFieldsCounters [16:26:34]wFMCommunicate request_size=4 [16:26:34]MH_SAM_APDU [16:26:34]CAPDU: 80 13 00 00 [16:26:34]Write to MH i2c: E2 08 00 70 57 80 13 00 00 00 00 00 00 43 [16:26:34]Write i2c OK [16:26:34]MH_I2C_Read... [16:26:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:26:34]Read from MH i2c: E2 [16:26:34]MH_I2C_Read... [16:26:34]Read from MH i2c: E2 62 00 [16:26:34]MH_I2C_Read... [16:26:34]Read from MH i2c: E2 62 00 70 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 2A 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [16:26:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 2A 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:26:34]wFMCommunicate OK [16:26:34]SAM_PROTO_GetFieldsCounters done [16:26:34]requested_item shift.num is exist - process it [16:26:34]requested_item shift.opened is exist - process it [16:26:34]req_shift_opened [16:26:34]FM_GetShiftState [16:26:34]SAM_PROTO_GetShiftState [16:26:34]wFMCommunicate request_size=4 [16:26:34]MH_SAM_APDU [16:26:34]CAPDU: 80 13 01 00 [16:26:34]Write to MH i2c: E2 08 00 71 57 80 13 01 00 00 00 00 00 45 [16:26:34]Write i2c OK [16:26:34]MH_I2C_Read... [16:26:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:26:34]Read from MH i2c: E2 [16:26:34]MH_I2C_Read... [16:26:34]Read from MH i2c: E2 0E 00 [16:26:34]MH_I2C_Read... [16:26:34]Read from MH i2c: E2 0E 00 71 57 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 39 [16:26:34]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [16:26:34]wFMCommunicate OK [16:26:34]SAM_PROTO_GetShiftState done [16:26:34]FM_GetShiftState done [16:26:34]req_shift_opened done [16:26:34]requested_item shift.open_date is exist - process it [16:26:34]req_shift_open_date [16:26:34]req_shift_open_date done [16:26:34]produce_requested_data done [16:26:34]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2090,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [16:26:34]process_action_free close_receipt [16:26:34]json_value_free [16:26:34]json_value_free done [16:26:34]process_json_proto returns [16:26:34]Send response to host [16:26:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2090,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [16:26:34]free response buf [16:26:34]execute_script done [16:26:34]execute_script returns [16:26:34]free content buf [16:26:34]Sock 8.Close socket [16:26:34]Sock 8.Thread stoped [16:26:38]OFD Sender: No OFD packet to send [16:26:43]OFD Sender: No OFD packet to send [16:26:48]OFD Sender: No OFD packet to send [16:26:53]OFD Sender: No OFD packet to send [16:26:58]OFD Sender: No OFD packet to send [16:27:03]OFD Sender: No OFD packet to send [16:27:08]OFD Sender: No OFD packet to send [16:27:13]OFD Sender: No OFD packet to send [16:27:18]OFD Sender: No OFD packet to send [16:27:23]OFD Sender: No OFD packet to send [16:27:28]OFD Sender: No OFD packet to send [16:27:33]OFD Sender: No OFD packet to send [16:27:38]OFD Sender: No OFD packet to send [16:27:43]OFD Sender: No OFD packet to send [16:27:48]OFD Sender: No OFD packet to send [16:27:53]OFD Sender: No OFD packet to send [16:27:58]OFD Sender: No OFD packet to send [16:28:03]OFD Sender: No OFD packet to send [16:28:08]OFD Sender: No OFD packet to send [16:28:13]OFD Sender: No OFD packet to send [16:28:18]OFD Sender: No OFD packet to send [16:28:23]OFD Sender: No OFD packet to send [16:28:28]OFD Sender: No OFD packet to send [16:28:33]OFD Sender: No OFD packet to send [16:28:38]OFD Sender: No OFD packet to send [16:28:43]OFD Sender: No OFD packet to send [16:28:45]accept exits with 9 [16:28:45]New connection [16:28:45]New thread 3067460964 created [16:28:45]Thread 3067317604 joined [16:28:45]Waiting for new connection... [16:28:45] Sock 9.Parse request [16:28:45]Sock 9.Check first char [16:28:45]Sock 9.First char is OK [16:28:45]request: POST /json_proto HTTP/1.0 [16:28:45]Method: POST [16:28:45]URL: /json_proto [16:28:45]Method is POST - this is cgi request [16:28:45]url: /json_proto [16:28:45]query_string will be loaded in cgi processing [16:28:45]execute_cgi json_proto POST (null) [16:28:45]execute_cgi path=json_proto method=POST [16:28:45]POST find Content-Length [16:28:45]Host: 172.17.45.132:8080 [16:28:45]Content-Length: 664 [16:28:45]Content-Type: application/json [16:28:45] [16:28:45]POST finish read [16:28:45]Found Content-Length = 664 [16:28:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126391", "tax_sys" : 0, "items" : [ { "code": "4700003010803", "name": "\u0427\u0430\u0439 \u041B\u0435\u0442\u0441 \u0413\u043E\u0443 \u041C\u0430\u043B\u0438\u043D\u0430 0,9\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:28:45]execute_script... [16:28:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126391", "tax_sys" : 0, "items" : [ { "code": "4700003010803", "name": "\u0427\u0430\u0439 \u041B\u0435\u0442\u0441 \u0413\u043E\u0443 \u041C\u0430\u043B\u0438\u043D\u0430 0,9\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:28:45]POST & json_proto [16:28:45]process_json_proto [16:28:45]json parsed OK: [16:28:45]protocol is kg_v1.0 [16:28:45]action value=close_receipt [16:28:45]process_action close_receipt [16:28:45]cmd_close_receipt [16:28:45]MH_GetDate [16:28:45]Write to MH i2c: F0 00 00 72 57 B8 [16:28:45]Write i2c OK [16:28:45]MH_I2C_Read... [16:28:45]Read from MH i2c: F0 [16:28:45]MH_I2C_Read... [16:28:45]Read from MH i2c: F0 09 00 [16:28:45]MH_I2C_Read... [16:28:45]Read from MH i2c: F0 09 00 72 57 00 C3 71 A6 66 E3 0B 90 66 E5 [16:28:45]GetLastDocTimeStamp 1722183996 [16:28:45]current date 1722184131 [16:28:45]FM_GetShiftState [16:28:45]SAM_PROTO_GetShiftState [16:28:45]wFMCommunicate request_size=4 [16:28:45]MH_SAM_APDU [16:28:45]CAPDU: 80 13 01 00 [16:28:45]Write to MH i2c: E2 08 00 73 57 80 13 01 00 00 00 00 00 47 [16:28:45]Write i2c OK [16:28:45]MH_I2C_Read... [16:28:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:28:45]Read from MH i2c: E2 [16:28:45]MH_I2C_Read... [16:28:45]Read from MH i2c: E2 0E 00 [16:28:45]MH_I2C_Read... [16:28:45]Read from MH i2c: E2 0E 00 73 57 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 3B [16:28:45]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [16:28:45]wFMCommunicate OK [16:28:45]SAM_PROTO_GetShiftState done [16:28:45]FM_GetShiftState done [16:28:45]opened in 1722125648 [16:28:45]opened+sec_in_day 1722212048 [16:28:45]quantity*price = 8500 [16:28:45]sum+1 = 8501 [16:28:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 142 28.07.2024 16:28 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2091 ФПД: 256188313637041 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T162851&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2091&fm=256188313637041&tin=02508201610067®Number=0000000000189667&sum=8500 0 [16:28:46]StoreToDocumentArchive [16:28:46]shift 13 fd 2091 [16:28:46]save to /storage/0013/doc_00002091 [16:28:46]save last doc name /storage/0013/doc_00002091 to /storage/kkm_last_doc_name [16:28:46]save OK [16:28:46]Clear old archive folders... [16:28:46]ProcessDocumentItem done err = 0, tmpTLVsize=283 [16:28:46]tlvbuf is 020AE650 [16:28:46]SAM_PROTO_ClearQueue [16:28:46]wFMCommunicate request_size=4 [16:28:46]MH_SAM_APDU [16:28:46]CAPDU: 80 09 00 00 [16:28:46]Write to MH i2c: E2 08 00 80 57 80 09 00 00 00 00 00 00 49 [16:28:46]Write i2c OK [16:28:46]MH_I2C_Read... [16:28:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:28:46]Read from MH i2c: E2 [16:28:46]MH_I2C_Read... [16:28:46]Read from MH i2c: E2 03 00 [16:28:46]MH_I2C_Read... [16:28:46]Read from MH i2c: E2 03 00 80 57 00 90 00 4B [16:28:46]RAPDU: 90 00 [16:28:46]wFMCommunicate OK [16:28:46]SAM_PROTO_ClearQueue done [16:28:46]KKMCreateOFDPacket [16:28:46]OFDProtocolAddRootSTLVToBuf [16:28:46]FM_MakeSignedData [16:28:46]FM_MakeSignedData [16:28:46]SAM_PROTO_SignData [16:28:46]wFMCommunicate request_size=4 [16:28:46]MH_SAM_APDU [16:28:46]CAPDU: 80 0D 01 02 [16:28:46]Write to MH i2c: E2 08 00 81 57 80 0D 01 02 00 00 00 00 51 [16:28:46]Write i2c OK [16:28:46]MH_I2C_Read... [16:28:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:28:46]Read from MH i2c: E2 [16:28:46]MH_I2C_Read... [16:28:46]Read from MH i2c: E2 03 00 [16:28:46]MH_I2C_Read... [16:28:46]Read from MH i2c: E2 03 00 81 57 00 90 00 4C [16:28:46]RAPDU: 90 00 [16:28:46]wFMCommunicate OK [16:28:46]wFMCommunicate request_size=255 [16:28:46]MH_SAM_APDU [16:28:46]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 33 30 31 30 38 30 33 06 04 29 00 D0 A7 D0 B0 D0 B9 20 D0 9B D0 B5 D1 82 D1 81 20 D0 93 D0 BE D1 83 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 30 2C 39 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 8E 00 00 00 F4 03 04 00 C3 71 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 [16:28:46]Write to MH i2c: E2 02 01 82 57 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 33 30 31 30 38 30 33 06 04 29 00 D0 A7 D0 B0 D0 B9 20 D0 9B D0 B5 D1 82 D1 81 20 D0 93 D0 BE D1 83 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 30 2C 39 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 8E 00 00 00 F4 03 04 00 C3 71 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 00 00 4E [16:28:46]Write i2c OK [16:28:46]MH_I2C_Read... [16:28:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:28:46]Read from MH i2c: E2 [16:28:46]MH_I2C_Read... [16:28:46]Read from MH i2c: E2 03 00 [16:28:46]MH_I2C_Read... [16:28:46]Read from MH i2c: E2 03 00 82 57 00 90 00 4D [16:28:46]RAPDU: 90 00 [16:28:46]wFMCommunicate OK [16:28:46]wFMCommunicate request_size=42 [16:28:46]MH_SAM_APDU [16:28:46]CAPDU: 80 0D 02 02 25 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 2B 08 00 00 35 04 06 00 E9 00 7D 6E 10 B1 [16:28:46]Write to MH i2c: E2 2D 00 83 57 80 0D 02 02 25 00 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 2B 08 00 00 35 04 06 00 E9 00 7D 6E 10 B1 00 00 EE [16:28:46]Write i2c OK [16:28:46]MH_I2C_Read... [16:28:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:28:47]Read from MH i2c: E2 [16:28:47]MH_I2C_Read... [16:28:47]Read from MH i2c: E2 03 00 [16:28:47]MH_I2C_Read... [16:28:47]Read from MH i2c: E2 03 00 83 57 00 90 00 4E [16:28:47]RAPDU: 90 00 [16:28:47]wFMCommunicate OK [16:28:47]wFMCommunicate request_size=4 [16:28:47]MH_SAM_APDU [16:28:47]CAPDU: 80 0D 03 02 [16:28:47]Write to MH i2c: E2 08 00 84 57 80 0D 03 02 00 00 00 00 56 [16:28:47]Write i2c OK [16:28:47]MH_I2C_Read... [16:28:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:28:47]Read from MH i2c: E2 [16:28:47]MH_I2C_Read... [16:28:47]Read from MH i2c: E2 0B 00 [16:28:47]MH_I2C_Read... [16:28:47]Read from MH i2c: E2 0B 00 84 57 00 AA 1F 9A 69 AB 57 13 8A 90 00 C2 [16:28:47]RAPDU: AA 1F 9A 69 AB 57 13 8A 90 00 [16:28:47]wFMCommunicate OK [16:28:47]SAM_PROTO_SignData done [16:28:47]FM_MakeSignedData done [16:28:47]CreateOFDProtocolMessage [16:28:47]wFMCommunicate request_size=4 [16:28:47]MH_SAM_APDU [16:28:47]CAPDU: 80 11 00 00 [16:28:47]Write to MH i2c: E2 08 00 85 57 80 11 00 00 00 00 00 00 56 [16:28:47]Write i2c OK [16:28:47]MH_I2C_Read... [16:28:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:28:47]Read from MH i2c: E2 [16:28:47]MH_I2C_Read... [16:28:47]Read from MH i2c: E2 17 00 [16:28:47]MH_I2C_Read... [16:28:47]Read from MH i2c: E2 17 00 85 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 A6 [16:28:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [16:28:47]wFMCommunicate OK [16:28:47]CreateOFDProtocolMessage done [16:28:47]OFDSenderStorePacket 2091 [16:28:47]StoreOFDPacket docnum=2091 [16:28:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2F 01 00 00 EA C7 27 01 88 11 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 33 30 31 30 38 30 33 06 04 29 00 D0 A7 D0 B0 D0 B9 20 D0 9B D0 B5 D1 82 D1 81 20 D0 93 D0 BE D1 83 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 30 2C 39 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 8E 00 00 00 F4 03 04 00 C3 71 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 2B 08 00 00 35 04 06 00 E9 00 7D 6E 10 B1 AA 1F 9A 69 AB 57 13 8A [16:28:47]CheckFolder [16:28:47]dirname=/storage/ofd_packets [16:28:47]CheckFolder done [16:28:47]ProducePacketName [16:28:47]name=ofd_packets/00002091 [16:28:47]NVStorageSaveData ofd_packets/00002091 [16:28:47]File name is /storage/ofd_packets/00002091 [16:28:47]Write 333 bytes [16:28:47]NVStorageSaveData done [16:28:47]OFDSenderStorePacket done [16:28:47]KKMCreateOFDPacket done [16:28:47]NVStorageSaveData kkm_last_timestamp [16:28:47]File name is /storage/kkm_last_timestamp [16:28:47]Write 4 bytes [16:28:47]NVStorageSaveData done [16:28:47]ExternCall_PrintAddStr [16:28:47]wPrintStart [16:28:47]Write to MH i2c: 01 00 00 86 57 DD [16:28:47]Write i2c OK [16:28:47]MH_I2C_Read... [16:28:47]Read from MH i2c: 01 [16:28:47]MH_I2C_Read... [16:28:47]Read from MH i2c: 01 07 00 [16:28:47]MH_I2C_Read... [16:28:47]Read from MH i2c: 01 07 00 86 57 00 00 00 00 00 FF 0F F2 [16:28:47]RasterBufferAndPrint [16:28:47]line Счет N : (3)126391 [16:28:47]line ИНН: 02508201610067 [16:28:47]line Контрольно-Кассовый Чек [16:28:47]line ПРОДАЖА [16:28:47]line Товар: 4700003010803 [16:28:47]line Чай Летс Гоу Малина 0,9л [16:28:47]line 1.000 * 85.00 [16:28:47]line = 85.00 [16:28:47]line НДС 12% НСП 1% [16:28:47]line > о реализуемом товаре [16:28:47]line ИТОГО: 85.00 [16:28:47]line НСП 1% : 0.75 [16:28:47]line НДС 12% : 9.03 [16:28:47]line Наличными: 85.00 [16:28:47]line Безнал.: 0.00 [16:28:47]line Место: АЗС № 127 "Партнер Нефть" [16:28:47]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [16:28:47]line СНО: Общий режим [16:28:47]line Чек 142 28.07.2024 16:28 [16:28:47]line Смена: 13 ФФД: 1.0 [16:28:47]line ЗНМ: 0300000161 [16:28:47]line РНМ: 0000000000189667 [16:28:47]line Версия ККМ: v1.0 [16:28:47]line ФМ: 0000000002094248 [16:28:47]line ФД: 2091 [16:28:47]line ФПД: 256188313637041 [16:28:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T162851&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2091&fm=256188313637041&tin=02508201610067®Number=0000000000189667&sum=8500 [16:28:47]line 0 [16:28:47]OFD Sender: Processing packet 2091 [packets to send 1, broken 0] [16:28:47]ProducePacketName [16:28:47]name=ofd_packets/00002091 [16:28:47]OFD Sender: To server: pG, [16:28:47]CommunicateWithHost lk.salyk.kg:30040 [16:28:47]ConnectInit lk.salyk.kg [16:28:47]written 0, free lines is 4095 [16:28:47]Connected sock=10 [16:28:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2F 01 00 00 EA C7 27 01 88 11 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 33 30 31 30 38 30 33 06 04 29 00 D0 A7 D0 B0 D0 B9 20 D0 9B D0 B5 D1 82 D1 81 20 D0 93 D0 BE D1 83 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 30 2C 39 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 8E 00 00 00 F4 03 04 00 C3 71 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 2B 08 00 00 35 04 06 00 E9 00 7D 6E 10 B1 AA 1F 9A 69 AB 57 13 8A [16:28:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 49 E8 47 00 9F 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 32 30 39 34 32 34 38 10 04 04 00 2B 08 00 00 F4 03 04 00 33 1D A6 66 B6 04 01 00 00 21 95 30 CD 8C 2F 81 6D [16:28:47]CommunicateWithHost err = 0 [16:28:47]CheckOFDResponse [16:28:47]1017 (14) - 77093643461234 [16:28:47]1041 (16) - 0000000002094248 [16:28:47]1040 (4) - 2091 [16:28:47]1012 (4) - 28.07.2024 10:28 [16:28:47]1206 (1) - 0 [16:28:47]OFD Sender: Remove packet 2091 [16:28:47]ProducePacketName [16:28:47]name=ofd_packets/00002091 [16:28:47]NVStorageDeleteData [16:28:47]Write to MH i2c: 01 00 00 AE 57 05 [16:28:47]Write i2c OK [16:28:47]MH_I2C_Read... [16:28:47]Read from MH i2c: 01 [16:28:47]MH_I2C_Read... [16:28:47]Read from MH i2c: 01 07 00 [16:28:47]MH_I2C_Read... [16:28:47]Read from MH i2c: 01 07 00 AE 57 00 00 00 00 00 22 0D 3B [16:28:47]RasterBufferAndPrint [16:28:47]line [16:28:47]line [16:28:47]line [16:28:47]line [16:28:47]line [16:28:47]written 0, free lines is 3369 [16:28:47]MH_Cut [16:28:47]Write to MH i2c: D1 01 00 B5 57 01 DE [16:28:47]Write i2c OK [16:28:47]MH_I2C_Read... [16:28:47]Read from MH i2c: D1 [16:28:47]MH_I2C_Read... [16:28:47]Read from MH i2c: D1 01 00 [16:28:47]MH_I2C_Read... [16:28:47]Read from MH i2c: D1 01 00 B5 57 00 DD [16:28:47]Write to MH i2c: 01 00 00 B6 57 0D [16:28:47]Write i2c OK [16:28:47]MH_I2C_Read... [16:28:48]OFD Sender: No OFD packet to send [16:28:48]*** Cut start [16:28:48]*** Partial cut [16:28:48]*** CUTSNS_PIN = 1 [16:28:48]*** CUTSNS_PIN = 0 [16:28:48]*** Brake cut motor [16:28:49]Read from MH i2c: 01 [16:28:49]MH_I2C_Read... [16:28:49]*** Stop cut motor [16:28:49]*** Cut end [16:28:49]Read from MH i2c: 01 07 00 [16:28:49]MH_I2C_Read... [16:28:49]Read from MH i2c: 01 07 00 B6 57 00 00 00 00 00 FF 0F 22 [16:28:49]process_action close_receipt done [16:28:49]requested_data is exist [16:28:49]produce_requested_data [16:28:49]requested_item fm.sn is exist - process it [16:28:49]wFMCommunicate request_size=4 [16:28:49]MH_SAM_APDU [16:28:49]CAPDU: 80 11 00 00 [16:28:49]Write to MH i2c: E2 08 00 B7 57 80 11 00 00 00 00 00 00 88 [16:28:49]Write i2c OK [16:28:49]MH_I2C_Read... [16:28:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:28:49]Read from MH i2c: E2 [16:28:49]MH_I2C_Read... [16:28:49]Read from MH i2c: E2 17 00 [16:28:49]MH_I2C_Read... [16:28:49]Read from MH i2c: E2 17 00 B7 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 D8 [16:28:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [16:28:49]wFMCommunicate OK [16:28:49]requested_item fd.num is exist - process it [16:28:49]SAM_PROTO_GetFieldsCounters [16:28:49]wFMCommunicate request_size=4 [16:28:49]MH_SAM_APDU [16:28:49]CAPDU: 80 13 00 00 [16:28:49]Write to MH i2c: E2 08 00 B8 57 80 13 00 00 00 00 00 00 8B [16:28:49]Write i2c OK [16:28:49]MH_I2C_Read... [16:28:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:28:49]Read from MH i2c: E2 [16:28:49]MH_I2C_Read... [16:28:49]Read from MH i2c: E2 62 00 [16:28:49]MH_I2C_Read... [16:28:49]Read from MH i2c: E2 62 00 B8 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 2B 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 9F [16:28:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 2B 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:28:49]wFMCommunicate OK [16:28:49]SAM_PROTO_GetFieldsCounters done [16:28:49]requested_item shift.num is exist - process it [16:28:49]requested_item shift.opened is exist - process it [16:28:49]req_shift_opened [16:28:49]FM_GetShiftState [16:28:49]SAM_PROTO_GetShiftState [16:28:49]wFMCommunicate request_size=4 [16:28:49]MH_SAM_APDU [16:28:49]CAPDU: 80 13 01 00 [16:28:49]Write to MH i2c: E2 08 00 B9 57 80 13 01 00 00 00 00 00 8D [16:28:49]Write i2c OK [16:28:49]MH_I2C_Read... [16:28:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:28:49]Read from MH i2c: E2 [16:28:49]MH_I2C_Read... [16:28:49]Read from MH i2c: E2 0E 00 [16:28:49]MH_I2C_Read... [16:28:49]Read from MH i2c: E2 0E 00 B9 57 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 81 [16:28:49]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [16:28:49]wFMCommunicate OK [16:28:49]SAM_PROTO_GetShiftState done [16:28:49]FM_GetShiftState done [16:28:49]req_shift_opened done [16:28:49]requested_item shift.open_date is exist - process it [16:28:49]req_shift_open_date [16:28:49]req_shift_open_date done [16:28:49]produce_requested_data done [16:28:49]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2091,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [16:28:49]process_action_free close_receipt [16:28:49]json_value_free [16:28:49]json_value_free done [16:28:49]process_json_proto returns [16:28:49]Send response to host [16:28:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2091,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [16:28:49]free response buf [16:28:49]execute_script done [16:28:49]execute_script returns [16:28:49]free content buf [16:28:49]Sock 9.Close socket [16:28:49]Sock 9.Thread stoped [16:28:53]OFD Sender: No OFD packet to send [16:28:58]OFD Sender: No OFD packet to send [16:29:03]OFD Sender: No OFD packet to send [16:29:08]OFD Sender: No OFD packet to send [16:29:13]OFD Sender: No OFD packet to send [16:29:18]OFD Sender: No OFD packet to send [16:29:23]OFD Sender: No OFD packet to send [16:29:28]OFD Sender: No OFD packet to send [16:29:29]accept exits with 8 [16:29:29]New connection [16:29:29]New thread 3067317604 created [16:29:29]Thread 3067460964 joined [16:29:29]Waiting for new connection... [16:29:29] Sock 8.Parse request [16:29:29]Sock 8.Check first char [16:29:29]Sock 8.First char is OK [16:29:29]request: POST /json_proto HTTP/1.0 [16:29:29]Method: POST [16:29:29]URL: /json_proto [16:29:29]Method is POST - this is cgi request [16:29:29]url: /json_proto [16:29:29]query_string will be loaded in cgi processing [16:29:29]execute_cgi json_proto POST (null) [16:29:29]execute_cgi path=json_proto method=POST [16:29:29]POST find Content-Length [16:29:29]Host: 172.17.45.132:8080 [16:29:29]Content-Length: 787 [16:29:29]Content-Type: application/json [16:29:29] [16:29:29]POST finish read [16:29:29]Found Content-Length = 787 [16:29:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126392", "tax_sys" : 0, "items" : [ { "code": "4640030092499", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE SENSE Himalaya", "price" : 150.00, "quantity" : 1.000, "sum" : 150.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" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:29:29]execute_script... [16:29: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)126392", "tax_sys" : 0, "items" : [ { "code": "4640030092499", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE SENSE Himalaya", "price" : 150.00, "quantity" : 1.000, "sum" : 150.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" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:29:29]POST & json_proto [16:29:29]process_json_proto [16:29:29]json parsed OK: [16:29:29]protocol is kg_v1.0 [16:29:29]action value=close_receipt [16:29:29]process_action close_receipt [16:29:29]cmd_close_receipt [16:29:29]MH_GetDate [16:29:29]Write to MH i2c: F0 00 00 BA 57 00 [16:29:29]Write i2c OK [16:29:29]MH_I2C_Read... [16:29:29]Read from MH i2c: F0 [16:29:29]MH_I2C_Read... [16:29:29]Read from MH i2c: F0 09 00 [16:29:29]MH_I2C_Read... [16:29:29]Read from MH i2c: F0 09 00 BA 57 00 EF 71 A6 66 E3 0B 90 66 59 [16:29:29]GetLastDocTimeStamp 1722184131 [16:29:29]current date 1722184175 [16:29:29]FM_GetShiftState [16:29:29]SAM_PROTO_GetShiftState [16:29:29]wFMCommunicate request_size=4 [16:29:29]MH_SAM_APDU [16:29:29]CAPDU: 80 13 01 00 [16:29:29]Write to MH i2c: E2 08 00 BB 57 80 13 01 00 00 00 00 00 8F [16:29:29]Write i2c OK [16:29:29]MH_I2C_Read... [16:29:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:29]Read from MH i2c: E2 [16:29:29]MH_I2C_Read... [16:29:29]Read from MH i2c: E2 0E 00 [16:29:29]MH_I2C_Read... [16:29:29]Read from MH i2c: E2 0E 00 BB 57 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 83 [16:29:29]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [16:29:29]wFMCommunicate OK [16:29:29]SAM_PROTO_GetShiftState done [16:29:29]FM_GetShiftState done [16:29:29]opened in 1722125648 [16:29:29]opened+sec_in_day 1722212048 [16:29:29]quantity*price = 15000 [16:29:29]sum+1 = 15001 [16:29:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 0.00 Безнал.: 150.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 143 28.07.2024 16:29 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2092 ФПД: 15721210345215 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T162936&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2092&fm=15721210345215&tin=02508201610067®Number=0000000000189667&sum=15000 0 [16:29:30]StoreToDocumentArchive [16:29:30]shift 13 fd 2092 [16:29:30]save to /storage/0013/doc_00002092 [16:29:30]save last doc name /storage/0013/doc_00002092 to /storage/kkm_last_doc_name [16:29:30]save OK [16:29:30]Clear old archive folders... [16:29:30]ProcessDocumentItem done err = 0, tmpTLVsize=278 [16:29:30]tlvbuf is 01F63C90 [16:29:30]SAM_PROTO_ClearQueue [16:29:30]wFMCommunicate request_size=4 [16:29:30]MH_SAM_APDU [16:29:30]CAPDU: 80 09 00 00 [16:29:30]Write to MH i2c: E2 08 00 C8 57 80 09 00 00 00 00 00 00 91 [16:29:30]Write i2c OK [16:29:30]MH_I2C_Read... [16:29:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:29:30]Read from MH i2c: E2 [16:29:30]MH_I2C_Read... [16:29:30]Read from MH i2c: E2 03 00 [16:29:30]MH_I2C_Read... [16:29:30]Read from MH i2c: E2 03 00 C8 57 00 90 00 93 [16:29:30]RAPDU: 90 00 [16:29:30]wFMCommunicate OK [16:29:30]SAM_PROTO_ClearQueue done [16:29:30]KKMCreateOFDPacket [16:29:30]OFDProtocolAddRootSTLVToBuf [16:29:30]FM_MakeSignedData [16:29:30]FM_MakeSignedData [16:29:30]SAM_PROTO_SignData [16:29:30]wFMCommunicate request_size=4 [16:29:30]MH_SAM_APDU [16:29:30]CAPDU: 80 0D 01 02 [16:29:30]Write to MH i2c: E2 08 00 C9 57 80 0D 01 02 00 00 00 00 99 [16:29:30]Write i2c OK [16:29:30]MH_I2C_Read... [16:29:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:29:30]Read from MH i2c: E2 [16:29:30]MH_I2C_Read... [16:29:30]Read from MH i2c: E2 03 00 [16:29:30]MH_I2C_Read... [16:29:30]Read from MH i2c: E2 03 00 C9 57 00 90 00 94 [16:29:30]RAPDU: 90 00 [16:29:30]wFMCommunicate OK [16:29:30]wFMCommunicate request_size=255 [16:29:30]MH_SAM_APDU [16:29:30]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 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 F0 71 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 [16:29:30]Write to MH i2c: E2 02 01 CA 57 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 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 F0 71 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 00 00 D3 [16:29:30]Write i2c OK [16:29:30]MH_I2C_Read... [16:29:31]Read from MH i2c: E2 [16:29:31]MH_I2C_Read... [16:29:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:31]Read from MH i2c: E2 03 00 [16:29:31]MH_I2C_Read... [16:29:31]Read from MH i2c: E2 03 00 CA 57 00 90 00 95 [16:29:31]RAPDU: 90 00 [16:29:31]wFMCommunicate OK [16:29:31]wFMCommunicate request_size=37 [16:29:31]MH_SAM_APDU [16:29:31]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 2C 08 00 00 35 04 06 00 0E 4C 61 28 76 FF [16:29:31]Write to MH i2c: E2 28 00 CB 57 80 0D 02 02 20 00 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 2C 08 00 00 35 04 06 00 0E 4C 61 28 76 FF 00 00 7C [16:29:31]Write i2c OK [16:29:31]MH_I2C_Read... [16:29:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:31]Read from MH i2c: E2 [16:29:31]MH_I2C_Read... [16:29:31]Read from MH i2c: E2 03 00 [16:29:31]MH_I2C_Read... [16:29:31]Read from MH i2c: E2 03 00 CB 57 00 90 00 96 [16:29:31]RAPDU: 90 00 [16:29:31]wFMCommunicate OK [16:29:31]wFMCommunicate request_size=4 [16:29:31]MH_SAM_APDU [16:29:31]CAPDU: 80 0D 03 02 [16:29:31]Write to MH i2c: E2 08 00 CC 57 80 0D 03 02 00 00 00 00 9E [16:29:31]Write i2c OK [16:29:31]MH_I2C_Read... [16:29:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:29:31]Read from MH i2c: E2 [16:29:31]MH_I2C_Read... [16:29:31]Read from MH i2c: E2 0B 00 [16:29:31]MH_I2C_Read... [16:29:31]Read from MH i2c: E2 0B 00 CC 57 00 77 DD 20 9A E4 77 50 70 90 00 C8 [16:29:31]RAPDU: 77 DD 20 9A E4 77 50 70 90 00 [16:29:31]wFMCommunicate OK [16:29:31]SAM_PROTO_SignData done [16:29:31]FM_MakeSignedData done [16:29:31]CreateOFDProtocolMessage [16:29:31]wFMCommunicate request_size=4 [16:29:31]MH_SAM_APDU [16:29:31]CAPDU: 80 11 00 00 [16:29:31]Write to MH i2c: E2 08 00 CD 57 80 11 00 00 00 00 00 00 9E [16:29:31]Write i2c OK [16:29:31]MH_I2C_Read... [16:29:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:31]Read from MH i2c: E2 [16:29:31]MH_I2C_Read... [16:29:31]Read from MH i2c: E2 17 00 [16:29:31]MH_I2C_Read... [16:29:31]Read from MH i2c: E2 17 00 CD 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 EE [16:29:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [16:29:31]wFMCommunicate OK [16:29:31]CreateOFDProtocolMessage done [16:29:31]OFDSenderStorePacket 2092 [16:29:31]StoreOFDPacket docnum=2092 [16:29:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2A 01 00 00 3B 2F 22 01 55 CC 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 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 F0 71 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 2C 08 00 00 35 04 06 00 0E 4C 61 28 76 FF 77 DD 20 9A E4 77 50 70 [16:29:31]CheckFolder [16:29:31]dirname=/storage/ofd_packets [16:29:31]CheckFolder done [16:29:31]ProducePacketName [16:29:31]name=ofd_packets/00002092 [16:29:31]NVStorageSaveData ofd_packets/00002092 [16:29:31]File name is /storage/ofd_packets/00002092 [16:29:31]Write 328 bytes [16:29:31]NVStorageSaveData done [16:29:31]OFDSenderStorePacket done [16:29:31]KKMCreateOFDPacket done [16:29:31]NVStorageSaveData kkm_last_timestamp [16:29:31]File name is /storage/kkm_last_timestamp [16:29:31]Write 4 bytes [16:29:31]NVStorageSaveData done [16:29:31]ExternCall_PrintAddStr [16:29:31]wPrintStart [16:29:31]Write to MH i2c: 01 00 00 CE 57 25 [16:29:31]Write i2c OK [16:29:31]MH_I2C_Read... [16:29:31]Read from MH i2c: 01 [16:29:31]MH_I2C_Read... [16:29:31]Read from MH i2c: 01 07 00 [16:29:31]MH_I2C_Read... [16:29:31]Read from MH i2c: 01 07 00 CE 57 00 00 00 00 00 FF 0F 3A [16:29:31]RasterBufferAndPrint [16:29:31]line Счет N : (3)126392 [16:29:31]line ИНН: 02508201610067 [16:29:31]line Контрольно-Кассовый Чек [16:29:31]line ПРОДАЖА [16:29:31]line Товар: 4640030092499 [16:29:31]line Сигареты ESSE SENSE Himalaya [16:29:31]line 1.000 * 150.00 [16:29:31]line = 150.00 [16:29:31]line НДС 12% НСП 1% [16:29:31]line > о реализуемом товаре [16:29:31]line ИТОГО: 150.00 [16:29:31]line НСП 1% : 1.33 [16:29:31]line НДС 12% : 15.93 [16:29:31]line Наличными: 0.00 [16:29:31]line Безнал.: 150.00 [16:29:31]line Место: АЗС № 127 "Партнер Нефть" [16:29:31]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [16:29:31]line СНО: Общий режим [16:29:31]line Чек 143 28.07.2024 16:29 [16:29:31]line Смена: 13 ФФД: 1.0 [16:29:31]line ЗНМ: 0300000161 [16:29:31]line РНМ: 0000000000189667 [16:29:31]line Версия ККМ: v1.0 [16:29:31]line Платежная система: O! деньги [16:29:31]line ФМ: 0000000002094248 [16:29:31]line ФД: 2092 [16:29:31]line ФПД: 15721210345215 [16:29:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T162936&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2092&fm=15721210345215&tin=02508201610067®Number=0000000000189667&sum=15000 [16:29:31]line 0 [16:29:31]OFD Sender: Processing packet 2092 [packets to send 1, broken 0] [16:29:31]ProducePacketName [16:29:31]name=ofd_packets/00002092 [16:29:31]OFD Sender: To server: pG, [16:29:31]CommunicateWithHost lk.salyk.kg:30040 [16:29:31]ConnectInit lk.salyk.kg [16:29:31]written 0, free lines is 4095 [16:29:31]Connected sock=10 [16:29:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2A 01 00 00 3B 2F 22 01 55 CC 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 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 F0 71 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 2C 08 00 00 35 04 06 00 0E 4C 61 28 76 FF 77 DD 20 9A E4 77 50 70 [16:29:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 DF 82 47 00 47 F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 2C 08 00 00 F4 03 04 00 5F 1D A6 66 B6 04 01 00 00 41 D0 1F DB 7E 9B 66 7F [16:29:31]CommunicateWithHost err = 0 [16:29:31]CheckOFDResponse [16:29:31]1017 (14) - 77093643461234 [16:29:31]1041 (16) - 0000000002094248 [16:29:31]1040 (4) - 2092 [16:29:31]1012 (4) - 28.07.2024 10:28 [16:29:31]1206 (1) - 0 [16:29:31]OFD Sender: Remove packet 2092 [16:29:31]ProducePacketName [16:29:31]name=ofd_packets/00002092 [16:29:31]NVStorageDeleteData [16:29:32]Write to MH i2c: 01 00 00 F9 57 50 [16:29:32]Write i2c OK [16:29:32]MH_I2C_Read... [16:29:32]Read from MH i2c: 01 [16:29:32]MH_I2C_Read... [16:29:32]Read from MH i2c: 01 07 00 [16:29:32]MH_I2C_Read... [16:29:32]Read from MH i2c: 01 07 00 F9 57 00 00 00 00 00 E9 0C 4C [16:29:32]RasterBufferAndPrint [16:29:32]line [16:29:32]line [16:29:32]line [16:29:32]line [16:29:32]line [16:29:32]written 0, free lines is 3314 [16:29:32]MH_Cut [16:29:32]Write to MH i2c: D1 01 00 00 58 01 2A [16:29:32]Write i2c OK [16:29:32]MH_I2C_Read... [16:29:32]Read from MH i2c: D1 [16:29:32]MH_I2C_Read... [16:29:32]Read from MH i2c: D1 01 00 [16:29:32]MH_I2C_Read... [16:29:32]Read from MH i2c: D1 01 00 00 58 00 29 [16:29:32]Write to MH i2c: 01 00 00 01 58 59 [16:29:32]Write i2c OK [16:29:32]MH_I2C_Read... [16:29:32]OFD Sender: No OFD packet to send [16:29:32]*** Cut start [16:29:32]*** Partial cut [16:29:32]*** CUTSNS_PIN = 1 [16:29:32]*** CUTSNS_PIN = 0 [16:29:33]*** Brake cut motor [16:29:33]Read from MH i2c: 01 [16:29:33]MH_I2C_Read... [16:29:33]*** Stop cut motor [16:29:33]*** Cut end [16:29:33]Read from MH i2c: 01 07 00 [16:29:33]MH_I2C_Read... [16:29:33]Read from MH i2c: 01 07 00 01 58 00 00 00 00 00 FF 0F 6E [16:29:33]process_action close_receipt done [16:29:33]requested_data is exist [16:29:33]produce_requested_data [16:29:33]requested_item fm.sn is exist - process it [16:29:33]wFMCommunicate request_size=4 [16:29:33]MH_SAM_APDU [16:29:33]CAPDU: 80 11 00 00 [16:29:33]Write to MH i2c: E2 08 00 02 58 80 11 00 00 00 00 00 00 D4 [16:29:33]Write i2c OK [16:29:33]MH_I2C_Read... [16:29:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:33]Read from MH i2c: E2 [16:29:33]MH_I2C_Read... [16:29:33]Read from MH i2c: E2 17 00 [16:29:33]MH_I2C_Read... [16:29:33]Read from MH i2c: E2 17 00 02 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 24 [16:29:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [16:29:33]wFMCommunicate OK [16:29:33]requested_item fd.num is exist - process it [16:29:33]SAM_PROTO_GetFieldsCounters [16:29:33]wFMCommunicate request_size=4 [16:29:33]MH_SAM_APDU [16:29:33]CAPDU: 80 13 00 00 [16:29:33]Write to MH i2c: E2 08 00 03 58 80 13 00 00 00 00 00 00 D7 [16:29:33]Write i2c OK [16:29:33]MH_I2C_Read... [16:29:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:29:33]Read from MH i2c: E2 [16:29:33]MH_I2C_Read... [16:29:33]Read from MH i2c: E2 62 00 [16:29:33]MH_I2C_Read... [16:29:33]Read from MH i2c: E2 62 00 03 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 2C 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [16:29:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 2C 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:29:33]wFMCommunicate OK [16:29:33]SAM_PROTO_GetFieldsCounters done [16:29:33]requested_item shift.num is exist - process it [16:29:33]requested_item shift.opened is exist - process it [16:29:33]req_shift_opened [16:29:33]FM_GetShiftState [16:29:33]SAM_PROTO_GetShiftState [16:29:33]wFMCommunicate request_size=4 [16:29:33]MH_SAM_APDU [16:29:33]CAPDU: 80 13 01 00 [16:29:33]Write to MH i2c: E2 08 00 04 58 80 13 01 00 00 00 00 00 D9 [16:29:33]Write i2c OK [16:29:33]MH_I2C_Read... [16:29:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:33]Read from MH i2c: E2 [16:29:33]MH_I2C_Read... [16:29:33]Read from MH i2c: E2 0E 00 [16:29:33]MH_I2C_Read... [16:29:33]Read from MH i2c: E2 0E 00 04 58 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 CD [16:29:33]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [16:29:33]wFMCommunicate OK [16:29:33]SAM_PROTO_GetShiftState done [16:29:33]FM_GetShiftState done [16:29:33]req_shift_opened done [16:29:33]requested_item shift.open_date is exist - process it [16:29:33]req_shift_open_date [16:29:33]req_shift_open_date done [16:29:33]produce_requested_data done [16:29:33]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2092,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [16:29:33]process_action_free close_receipt [16:29:33]json_value_free [16:29:33]json_value_free done [16:29:33]process_json_proto returns [16:29:33]Send response to host [16:29:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2092,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [16:29:33]free response buf [16:29:33]execute_script done [16:29:33]execute_script returns [16:29:33]free content buf [16:29:33]Sock 8.Close socket [16:29:33]Sock 8.Thread stoped [16:29:37]OFD Sender: No OFD packet to send [16:29:42]OFD Sender: No OFD packet to send [16:29:47]OFD Sender: No OFD packet to send [16:29:52]OFD Sender: No OFD packet to send [16:29:57]OFD Sender: No OFD packet to send [16:30:02]OFD Sender: No OFD packet to send [16:30:07]OFD Sender: No OFD packet to send [16:30:12]OFD Sender: No OFD packet to send [16:30:17]OFD Sender: No OFD packet to send [16:30:22]OFD Sender: No OFD packet to send [16:30:27]OFD Sender: No OFD packet to send [16:30:32]OFD Sender: No OFD packet to send [16:30:37]OFD Sender: No OFD packet to send [16:30:42]OFD Sender: No OFD packet to send [16:30:47]OFD Sender: No OFD packet to send [16:30:52]OFD Sender: No OFD packet to send [16:30:57]OFD Sender: No OFD packet to send [16:31:02]OFD Sender: No OFD packet to send [16:31:07]OFD Sender: No OFD packet to send [16:31:12]OFD Sender: No OFD packet to send [16:31:17]OFD Sender: No OFD packet to send [16:31:22]OFD Sender: No OFD packet to send [16:31:27]OFD Sender: No OFD packet to send [16:31:32]OFD Sender: No OFD packet to send [16:31:37]OFD Sender: No OFD packet to send [16:31:42]OFD Sender: No OFD packet to send [16:31:47]OFD Sender: No OFD packet to send [16:31:52]OFD Sender: No OFD packet to send [16:31:57]OFD Sender: No OFD packet to send [16:32:02]OFD Sender: No OFD packet to send [16:32:07]OFD Sender: No OFD packet to send [16:32:12]OFD Sender: No OFD packet to send [16:32:17]OFD Sender: No OFD packet to send [16:32:22]OFD Sender: No OFD packet to send [16:32:27]OFD Sender: No OFD packet to send [16:32:32]OFD Sender: No OFD packet to send [16:32:37]OFD Sender: No OFD packet to send [16:32:42]OFD Sender: No OFD packet to send [16:32:47]OFD Sender: No OFD packet to send [16:32:52]OFD Sender: No OFD packet to send [16:32:57]OFD Sender: No OFD packet to send [16:33:02]OFD Sender: No OFD packet to send [16:33:07]OFD Sender: No OFD packet to send [16:33:12]OFD Sender: No OFD packet to send [16:33:17]OFD Sender: No OFD packet to send [16:33:22]OFD Sender: No OFD packet to send [16:33:27]OFD Sender: No OFD packet to send [16:33:32]OFD Sender: No OFD packet to send [16:33:37]OFD Sender: No OFD packet to send [16:33:42]OFD Sender: No OFD packet to send [16:33:47]OFD Sender: No OFD packet to send [16:33:52]OFD Sender: No OFD packet to send [16:33:57]OFD Sender: No OFD packet to send [16:34:02]OFD Sender: No OFD packet to send [16:34:07]OFD Sender: No OFD packet to send [16:34:12]OFD Sender: No OFD packet to send [16:34:17]OFD Sender: No OFD packet to send [16:34:22]OFD Sender: No OFD packet to send [16:34:27]OFD Sender: No OFD packet to send [16:34:32]OFD Sender: No OFD packet to send [16:34:37]OFD Sender: No OFD packet to send [16:34:42]OFD Sender: No OFD packet to send [16:34:47]OFD Sender: No OFD packet to send [16:34:52]OFD Sender: No OFD packet to send [16:34:57]accept exits with 9 [16:34:57]New connection [16:34:57]New thread 3067460964 created [16:34:57]Thread 3067317604 joined [16:34:57]Waiting for new connection... [16:34:57] Sock 9.Parse request [16:34:57]Sock 9.Check first char [16:34:57]Sock 9.First char is OK [16:34:57]request: POST /json_proto HTTP/1.0 [16:34:57]Method: POST [16:34:57]URL: /json_proto [16:34:57]Method is POST - this is cgi request [16:34:57]url: /json_proto [16:34:57]query_string will be loaded in cgi processing [16:34:57]execute_cgi json_proto POST (null) [16:34:57]execute_cgi path=json_proto method=POST [16:34:57]POST find Content-Length [16:34:57]Host: 172.17.45.132:8080 [16:34:57]Content-Length: 800 [16:34:57]Content-Type: application/json [16:34:57] [16:34:57]POST finish read [16:34:57]Found Content-Length = 800 [16:34:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)609359", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 500.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:34:57]execute_script... [16:34:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)609359", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 500.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:34:57]POST & json_proto [16:34:57]process_json_proto [16:34:57]json parsed OK: [16:34:57]protocol is kg_v1.0 [16:34:57]action value=close_receipt [16:34:57]process_action close_receipt [16:34:57]cmd_close_receipt [16:34:57]MH_GetDate [16:34:57]Write to MH i2c: F0 00 00 05 58 4C [16:34:57]Write i2c OK [16:34:57]MH_I2C_Read... [16:34:57]Read from MH i2c: F0 [16:34:57]MH_I2C_Read... [16:34:57]Read from MH i2c: F0 09 00 [16:34:57]MH_I2C_Read... [16:34:57]Read from MH i2c: F0 09 00 05 58 00 37 73 A6 66 E3 0B 90 66 EF [16:34:57]GetLastDocTimeStamp 1722184176 [16:34:57]current date 1722184503 [16:34:57]FM_GetShiftState [16:34:57]SAM_PROTO_GetShiftState [16:34:57]wFMCommunicate request_size=4 [16:34:57]MH_SAM_APDU [16:34:57]CAPDU: 80 13 01 00 [16:34:57]Write to MH i2c: E2 08 00 06 58 80 13 01 00 00 00 00 00 DB [16:34:57]Write i2c OK [16:34:57]MH_I2C_Read... [16:34:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:34:57]Read from MH i2c: E2 [16:34:57]MH_I2C_Read... [16:34:57]Read from MH i2c: E2 0E 00 [16:34:57]MH_I2C_Read... [16:34:57]Read from MH i2c: E2 0E 00 06 58 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 CF [16:34:57]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [16:34:57]wFMCommunicate OK [16:34:57]SAM_PROTO_GetShiftState done [16:34:57]FM_GetShiftState done [16:34:57]opened in 1722125648 [16:34:57]opened+sec_in_day 1722212048 [16:34:57]quantity*price = 50036 [16:34:57]sum+1 = 50037 [16:34:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.36 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.36 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 144 28.07.2024 16:35 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2093 ФПД: 35785596257828 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T163503&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2093&fm=35785596257828&tin=02508201610067®Number=0000000000189667&sum=50036 [16:34:58]StoreToDocumentArchive [16:34:58]shift 13 fd 2093 [16:34:58]save to /storage/0013/doc_00002093 [16:34:58]save last doc name /storage/0013/doc_00002093 to /storage/kkm_last_doc_name [16:34:58]save OK [16:34:58]Clear old archive folders... [16:34:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:34:58]tlvbuf is 0200EC80 [16:34:58]SAM_PROTO_ClearQueue [16:34:58]wFMCommunicate request_size=4 [16:34:58]MH_SAM_APDU [16:34:58]CAPDU: 80 09 00 00 [16:34:58]Write to MH i2c: E2 08 00 13 58 80 09 00 00 00 00 00 00 DD [16:34:58]Write i2c OK [16:34:58]MH_I2C_Read... [16:34:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:34:58]Read from MH i2c: E2 [16:34:58]MH_I2C_Read... [16:34:58]Read from MH i2c: E2 03 00 [16:34:58]MH_I2C_Read... [16:34:58]Read from MH i2c: E2 03 00 13 58 00 90 00 DF [16:34:58]RAPDU: 90 00 [16:34:58]wFMCommunicate OK [16:34:58]SAM_PROTO_ClearQueue done [16:34:58]KKMCreateOFDPacket [16:34:58]OFDProtocolAddRootSTLVToBuf [16:34:58]FM_MakeSignedData [16:34:58]FM_MakeSignedData [16:34:58]SAM_PROTO_SignData [16:34:58]wFMCommunicate request_size=4 [16:34:58]MH_SAM_APDU [16:34:58]CAPDU: 80 0D 01 02 [16:34:58]Write to MH i2c: E2 08 00 14 58 80 0D 01 02 00 00 00 00 E5 [16:34:58]Write i2c OK [16:34:58]MH_I2C_Read... [16:34:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:34:58]Read from MH i2c: E2 [16:34:58]MH_I2C_Read... [16:34:58]Read from MH i2c: E2 03 00 [16:34:58]MH_I2C_Read... [16:34:58]Read from MH i2c: E2 03 00 14 58 00 90 00 E0 [16:34:58]RAPDU: 90 00 [16:34:58]wFMCommunicate OK [16:34:58]wFMCommunicate request_size=255 [16:34:58]MH_SAM_APDU [16:34:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 37 73 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 2D 08 00 00 35 04 06 00 20 [16:34:58]Write to MH i2c: E2 02 01 15 58 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 37 73 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 2D 08 00 00 35 04 06 00 20 00 00 5A [16:34:58]Write i2c OK [16:34:58]MH_I2C_Read... [16:34:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:34:58]Read from MH i2c: E2 [16:34:58]MH_I2C_Read... [16:34:58]Read from MH i2c: E2 03 00 [16:34:58]MH_I2C_Read... [16:34:58]Read from MH i2c: E2 03 00 15 58 00 90 00 E1 [16:34:58]RAPDU: 90 00 [16:34:58]wFMCommunicate OK [16:34:58]wFMCommunicate request_size=10 [16:34:58]MH_SAM_APDU [16:34:58]CAPDU: 80 0D 02 02 05 8B FB C0 C6 24 [16:34:58]Write to MH i2c: E2 0D 00 16 58 80 0D 02 02 05 00 8B FB C0 C6 24 00 00 22 [16:34:58]Write i2c OK [16:34:58]MH_I2C_Read... [16:34:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:34:58]Read from MH i2c: E2 [16:34:58]MH_I2C_Read... [16:34:58]Read from MH i2c: E2 03 00 [16:34:58]MH_I2C_Read... [16:34:58]Read from MH i2c: E2 03 00 16 58 00 90 00 E2 [16:34:58]RAPDU: 90 00 [16:34:58]wFMCommunicate OK [16:34:58]wFMCommunicate request_size=4 [16:34:58]MH_SAM_APDU [16:34:58]CAPDU: 80 0D 03 02 [16:34:58]Write to MH i2c: E2 08 00 17 58 80 0D 03 02 00 00 00 00 EA [16:34:58]Write i2c OK [16:34:58]MH_I2C_Read... [16:34:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:34:58]Read from MH i2c: E2 [16:34:58]MH_I2C_Read... [16:34:58]Read from MH i2c: E2 0B 00 [16:34:58]MH_I2C_Read... [16:34:58]Read from MH i2c: E2 0B 00 17 58 00 44 F3 2A BB 1A 3E F3 69 90 00 BB [16:34:58]RAPDU: 44 F3 2A BB 1A 3E F3 69 90 00 [16:34:58]wFMCommunicate OK [16:34:58]SAM_PROTO_SignData done [16:34:58]FM_MakeSignedData done [16:34:58]CreateOFDProtocolMessage [16:34:58]wFMCommunicate request_size=4 [16:34:58]MH_SAM_APDU [16:34:58]CAPDU: 80 11 00 00 [16:34:58]Write to MH i2c: E2 08 00 18 58 80 11 00 00 00 00 00 00 EA [16:34:58]Write i2c OK [16:34:58]MH_I2C_Read... [16:34:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:34:58]Read from MH i2c: E2 [16:34:58]MH_I2C_Read... [16:34:58]Read from MH i2c: E2 17 00 [16:34:58]MH_I2C_Read... [16:34:58]Read from MH i2c: E2 17 00 18 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 3A [16:34:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [16:34:58]wFMCommunicate OK [16:34:58]CreateOFDProtocolMessage done [16:34:58]OFDSenderStorePacket 2093 [16:34:58]StoreOFDPacket docnum=2093 [16:34:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 CA 5D 07 01 D4 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 37 73 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 2D 08 00 00 35 04 06 00 20 8B FB C0 C6 24 44 F3 2A BB 1A 3E F3 69 [16:34:58]CheckFolder [16:34:58]dirname=/storage/ofd_packets [16:34:58]CheckFolder done [16:34:58]ProducePacketName [16:34:58]name=ofd_packets/00002093 [16:34:58]NVStorageSaveData ofd_packets/00002093 [16:34:58]File name is /storage/ofd_packets/00002093 [16:34:58]Write 301 bytes [16:34:58]NVStorageSaveData done [16:34:58]OFDSenderStorePacket done [16:34:58]KKMCreateOFDPacket done [16:34:58]NVStorageSaveData kkm_last_timestamp [16:34:58]File name is /storage/kkm_last_timestamp [16:34:58]Write 4 bytes [16:34:58]NVStorageSaveData done [16:34:58]ExternCall_PrintAddStr [16:34:58]wPrintStart [16:34:58]Write to MH i2c: 01 00 00 19 58 71 [16:34:58]Write i2c OK [16:34:58]MH_I2C_Read... [16:34:58]Read from MH i2c: 01 [16:34:58]MH_I2C_Read... [16:34:58]Read from MH i2c: 01 07 00 [16:34:58]MH_I2C_Read... [16:34:58]Read from MH i2c: 01 07 00 19 58 00 00 00 00 00 FF 0F 86 [16:34:58]RasterBufferAndPrint [16:34:58]line Счет N : (1)609359 [16:34:58]line ИНН: 02508201610067 [16:34:58]line Контрольно-Кассовый Чек [16:34:58]line ПРОДАЖА [16:34:58]line ТРК (МРК, ГНК) : 52 [16:34:58]line Товар: 2710124130 [16:34:58]line Аи-92-К-2 [16:34:58]line 7.380 * 67.80 [16:34:58]line = 500.36 [16:34:58]line НДС 12% НСП 1% [16:34:58]line > о реализуемом товаре [16:34:58]line ИТОГО: 500.36 [16:34:58]line НСП 1% : 4.43 [16:34:58]line НДС 12% : 53.14 [16:34:58]line Наличными: 0.00 [16:34:58]line Безнал.: 500.36 [16:34:58]line Место: АЗС № 127 "Партнер Нефть" [16:34:58]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [16:34:58]line СНО: Общий режим [16:34:58]line Чек 144 28.07.2024 16:35 [16:34:58]line Смена: 13 ФФД: 1.0 [16:34:58]line ЗНМ: 0300000161 [16:34:58]line РНМ: 0000000000189667 [16:34:58]line Версия ККМ: v1.0 [16:34:58]line Платежная система: O! деньги [16:34:58]line ФМ: 0000000002094248 [16:34:58]line ФД: 2093 [16:34:58]line ФПД: 35785596257828 [16:34:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T163503&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2093&fm=35785596257828&tin=02508201610067®Number=0000000000189667&sum=50036 [16:34:59]OFD Sender: Processing packet 2093 [packets to send 1, broken 0] [16:34:59]ProducePacketName [16:34:59]name=ofd_packets/00002093 [16:34:59]OFD Sender: To server: pG, [16:34:59]CommunicateWithHost lk.salyk.kg:30040 [16:34:59]ConnectInit lk.salyk.kg [16:34:59]written 0, free lines is 4095 [16:34:59]Connected sock=10 [16:34:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 CA 5D 07 01 D4 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 37 73 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 2D 08 00 00 35 04 06 00 20 8B FB C0 C6 24 44 F3 2A BB 1A 3E F3 69 [16:34:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 72 EF 47 00 86 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 32 30 39 34 32 34 38 10 04 04 00 2D 08 00 00 F4 03 04 00 A6 1E A6 66 B6 04 01 00 00 6E C8 EE EA 85 B9 11 5D [16:34:59]CommunicateWithHost err = 0 [16:34:59]CheckOFDResponse [16:34:59]1017 (14) - 77093643461234 [16:34:59]1041 (16) - 0000000002094248 [16:34:59]1040 (4) - 2093 [16:34:59]1012 (4) - 28.07.2024 10:34 [16:34:59]1206 (1) - 0 [16:34:59]OFD Sender: Remove packet 2093 [16:34:59]ProducePacketName [16:34:59]name=ofd_packets/00002093 [16:34:59]NVStorageDeleteData [16:34:59]Write to MH i2c: 01 00 00 43 58 9B [16:34:59]Write i2c OK [16:34:59]MH_I2C_Read... [16:34:59]Read from MH i2c: 01 [16:34:59]MH_I2C_Read... [16:34:59]Read from MH i2c: 01 07 00 [16:34:59]MH_I2C_Read... [16:34:59]Read from MH i2c: 01 07 00 43 58 00 00 00 00 00 0C 0D BB [16:34:59]RasterBufferAndPrint [16:34:59]line [16:34:59]line [16:34:59]line [16:34:59]line [16:34:59]line [16:34:59]written 0, free lines is 3347 [16:34:59]MH_Cut [16:34:59]Write to MH i2c: D1 01 00 4A 58 01 74 [16:34:59]Write i2c OK [16:34:59]MH_I2C_Read... [16:34:59]Read from MH i2c: D1 [16:34:59]MH_I2C_Read... [16:34:59]Read from MH i2c: D1 01 00 [16:34:59]MH_I2C_Read... [16:34:59]Read from MH i2c: D1 01 00 4A 58 00 73 [16:34:59]Write to MH i2c: 01 00 00 4B 58 A3 [16:34:59]Write i2c OK [16:34:59]MH_I2C_Read... [16:35:00]OFD Sender: No OFD packet to send [16:35:00]*** Cut start [16:35:00]*** Partial cut [16:35:00]*** CUTSNS_PIN = 1 [16:35:00]*** CUTSNS_PIN = 0 [16:35:00]*** Brake cut motor [16:35:00]Read from MH i2c: 01 [16:35:00]MH_I2C_Read... [16:35:00]*** Stop cut motor [16:35:01]*** Cut end [16:35:01]Read from MH i2c: 01 07 00 [16:35:01]MH_I2C_Read... [16:35:01]Read from MH i2c: 01 07 00 4B 58 00 00 00 00 00 FF 0F B8 [16:35:01]process_action close_receipt done [16:35:01]requested_data is exist [16:35:01]produce_requested_data [16:35:01]requested_item fm.sn is exist - process it [16:35:01]wFMCommunicate request_size=4 [16:35:01]MH_SAM_APDU [16:35:01]CAPDU: 80 11 00 00 [16:35:01]Write to MH i2c: E2 08 00 4C 58 80 11 00 00 00 00 00 00 1E [16:35:01]Write i2c OK [16:35:01]MH_I2C_Read... [16:35:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:35:01]Read from MH i2c: E2 [16:35:01]MH_I2C_Read... [16:35:01]Read from MH i2c: E2 17 00 [16:35:01]MH_I2C_Read... [16:35:01]Read from MH i2c: E2 17 00 4C 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 6E [16:35:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [16:35:01]wFMCommunicate OK [16:35:01]requested_item fd.num is exist - process it [16:35:01]SAM_PROTO_GetFieldsCounters [16:35:01]wFMCommunicate request_size=4 [16:35:01]MH_SAM_APDU [16:35:01]CAPDU: 80 13 00 00 [16:35:01]Write to MH i2c: E2 08 00 4D 58 80 13 00 00 00 00 00 00 21 [16:35:01]Write i2c OK [16:35:01]MH_I2C_Read... [16:35:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:35:01]Read from MH i2c: E2 [16:35:01]MH_I2C_Read... [16:35:01]Read from MH i2c: E2 62 00 [16:35:01]MH_I2C_Read... [16:35:01]Read from MH i2c: E2 62 00 4D 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 2D 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 3D [16:35:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 2D 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:35:01]wFMCommunicate OK [16:35:01]SAM_PROTO_GetFieldsCounters done [16:35:01]requested_item shift.num is exist - process it [16:35:01]requested_item shift.opened is exist - process it [16:35:01]req_shift_opened [16:35:01]FM_GetShiftState [16:35:01]SAM_PROTO_GetShiftState [16:35:01]wFMCommunicate request_size=4 [16:35:01]MH_SAM_APDU [16:35:01]CAPDU: 80 13 01 00 [16:35:01]Write to MH i2c: E2 08 00 4E 58 80 13 01 00 00 00 00 00 23 [16:35:01]Write i2c OK [16:35:01]MH_I2C_Read... [16:35:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:35:01]Read from MH i2c: E2 [16:35:01]MH_I2C_Read... [16:35:01]Read from MH i2c: E2 0E 00 [16:35:01]MH_I2C_Read... [16:35:01]Read from MH i2c: E2 0E 00 4E 58 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 17 [16:35:01]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [16:35:01]wFMCommunicate OK [16:35:01]SAM_PROTO_GetShiftState done [16:35:01]FM_GetShiftState done [16:35:01]req_shift_opened done [16:35:01]requested_item shift.open_date is exist - process it [16:35:01]req_shift_open_date [16:35:01]req_shift_open_date done [16:35:01]produce_requested_data done [16:35:01]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2093,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [16:35:01]process_action_free close_receipt [16:35:01]json_value_free [16:35:01]json_value_free done [16:35:01]process_json_proto returns [16:35:01]Send response to host [16:35:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2093,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [16:35:01]free response buf [16:35:01]execute_script done [16:35:01]execute_script returns [16:35:01]free content buf [16:35:01]Sock 9.Close socket [16:35:01]Sock 9.Thread stoped [16:35:05]OFD Sender: No OFD packet to send [16:35:10]OFD Sender: No OFD packet to send [16:35:15]OFD Sender: No OFD packet to send [16:35:20]OFD Sender: No OFD packet to send [16:35:25]OFD Sender: No OFD packet to send [16:35:30]OFD Sender: No OFD packet to send [16:35:35]OFD Sender: No OFD packet to send [16:35:40]OFD Sender: No OFD packet to send [16:35:45]OFD Sender: No OFD packet to send [16:35:50]OFD Sender: No OFD packet to send [16:35:55]OFD Sender: No OFD packet to send [16:36:00]OFD Sender: No OFD packet to send [16:36:05]OFD Sender: No OFD packet to send [16:36:10]OFD Sender: No OFD packet to send [16:36:15]OFD Sender: No OFD packet to send [16:36:20]OFD Sender: No OFD packet to send [16:36:25]OFD Sender: No OFD packet to send [16:36:30]OFD Sender: No OFD packet to send [16:36:35]OFD Sender: No OFD packet to send [16:36:40]OFD Sender: No OFD packet to send [16:36:45]OFD Sender: No OFD packet to send [16:36:50]OFD Sender: No OFD packet to send [16:36:55]OFD Sender: No OFD packet to send [16:37:00]OFD Sender: No OFD packet to send [16:37:05]OFD Sender: No OFD packet to send [16:37:10]OFD Sender: No OFD packet to send [16:37:15]OFD Sender: No OFD packet to send [16:37:20]OFD Sender: No OFD packet to send [16:37:25]OFD Sender: No OFD packet to send [16:37:30]OFD Sender: No OFD packet to send [16:37:35]OFD Sender: No OFD packet to send [16:37:40]OFD Sender: No OFD packet to send [16:37:45]OFD Sender: No OFD packet to send [16:37:50]OFD Sender: No OFD packet to send [16:37:55]OFD Sender: No OFD packet to send [16:38:00]OFD Sender: No OFD packet to send [16:38:05]OFD Sender: No OFD packet to send [16:38:10]OFD Sender: No OFD packet to send [16:38:15]OFD Sender: No OFD packet to send [16:38:20]OFD Sender: No OFD packet to send [16:38:25]OFD Sender: No OFD packet to send [16:38:30]OFD Sender: No OFD packet to send [16:38:35]OFD Sender: No OFD packet to send [16:38:40]OFD Sender: No OFD packet to send [16:38:45]OFD Sender: No OFD packet to send [16:38:50]OFD Sender: No OFD packet to send [16:38:55]OFD Sender: No OFD packet to send [16:39:00]OFD Sender: No OFD packet to send [16:39:05]OFD Sender: No OFD packet to send [16:39:10]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:26]accept exits with 8 [16:42:26]New connection [16:42:26]New thread 3067317604 created [16:42:26]Thread 3067460964 joined [16:42:26]Waiting for new connection... [16:42:26] Sock 8.Parse request [16:42:26]Sock 8.Check first char [16:42:26]Sock 8.First char is OK [16:42:26]request: POST /json_proto HTTP/1.0 [16:42:26]Method: POST [16:42:26]URL: /json_proto [16:42:26]Method is POST - this is cgi request [16:42:26]url: /json_proto [16:42:26]query_string will be loaded in cgi processing [16:42:26]execute_cgi json_proto POST (null) [16:42:26]execute_cgi path=json_proto method=POST [16:42:26]POST find Content-Length [16:42:26]Host: 172.17.45.132:8080 [16:42:26]Content-Length: 644 [16:42:26]Content-Type: application/json [16:42:26] [16:42:26]POST finish read [16:42:26]Found Content-Length = 644 [16:42:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126393", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 35.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:42:26]execute_script... [16:42:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126393", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 35.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:42:26]POST & json_proto [16:42:26]process_json_proto [16:42:26]json parsed OK: [16:42:26]protocol is kg_v1.0 [16:42:26]action value=close_receipt [16:42:26]process_action close_receipt [16:42:26]cmd_close_receipt [16:42:26]MH_GetDate [16:42:26]Write to MH i2c: F0 00 00 4F 58 96 [16:42:26]Write i2c OK [16:42:26]MH_I2C_Read... [16:42:26]Read from MH i2c: F0 [16:42:26]MH_I2C_Read... [16:42:26]Read from MH i2c: F0 09 00 [16:42:26]MH_I2C_Read... [16:42:26]Read from MH i2c: F0 09 00 4F 58 00 F9 74 A6 66 E3 0B 90 66 FC [16:42:26]GetLastDocTimeStamp 1722184503 [16:42:26]current date 1722184953 [16:42:26]FM_GetShiftState [16:42:26]SAM_PROTO_GetShiftState [16:42:26]wFMCommunicate request_size=4 [16:42:26]MH_SAM_APDU [16:42:26]CAPDU: 80 13 01 00 [16:42:26]Write to MH i2c: E2 08 00 50 58 80 13 01 00 00 00 00 00 25 [16:42:26]Write i2c OK [16:42:26]MH_I2C_Read... [16:42:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:42:26]Read from MH i2c: E2 [16:42:26]MH_I2C_Read... [16:42:26]Read from MH i2c: E2 0E 00 [16:42:26]MH_I2C_Read... [16:42:26]Read from MH i2c: E2 0E 00 50 58 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 19 [16:42:26]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [16:42:26]wFMCommunicate OK [16:42:26]SAM_PROTO_GetShiftState done [16:42:26]FM_GetShiftState done [16:42:26]opened in 1722125648 [16:42:26]opened+sec_in_day 1722212048 [16:42:26]quantity*price = 3500 [16:42:26]sum+1 = 3501 [16:42:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 35.00 НСП 1% : 0.31 НДС 12% : 3.72 Наличными: 35.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 145 28.07.2024 16:42 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2094 ФПД: 186693313765815 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T164233&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2094&fm=186693313765815&tin=02508201610067®Number=0000000000189667&sum=3500 0 [16:42:27]StoreToDocumentArchive [16:42:27]shift 13 fd 2094 [16:42:27]save to /storage/0013/doc_00002094 [16:42:27]save last doc name /storage/0013/doc_00002094 to /storage/kkm_last_doc_name [16:42:27]save OK [16:42:27]Clear old archive folders... [16:42:27]ProcessDocumentItem done err = 0, tmpTLVsize=275 [16:42:27]tlvbuf is 02036000 [16:42:27]SAM_PROTO_ClearQueue [16:42:27]wFMCommunicate request_size=4 [16:42:27]MH_SAM_APDU [16:42:27]CAPDU: 80 09 00 00 [16:42:27]Write to MH i2c: E2 08 00 5D 58 80 09 00 00 00 00 00 00 27 [16:42:27]Write i2c OK [16:42:27]MH_I2C_Read... [16:42:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:42:27]Read from MH i2c: E2 [16:42:27]MH_I2C_Read... [16:42:27]Read from MH i2c: E2 03 00 [16:42:27]MH_I2C_Read... [16:42:27]Read from MH i2c: E2 03 00 5D 58 00 90 00 29 [16:42:27]RAPDU: 90 00 [16:42:27]wFMCommunicate OK [16:42:27]SAM_PROTO_ClearQueue done [16:42:27]KKMCreateOFDPacket [16:42:27]OFDProtocolAddRootSTLVToBuf [16:42:27]FM_MakeSignedData [16:42:27]FM_MakeSignedData [16:42:27]SAM_PROTO_SignData [16:42:27]wFMCommunicate request_size=4 [16:42:27]MH_SAM_APDU [16:42:27]CAPDU: 80 0D 01 02 [16:42:27]Write to MH i2c: E2 08 00 5E 58 80 0D 01 02 00 00 00 00 2F [16:42:27]Write i2c OK [16:42:27]MH_I2C_Read... [16:42:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:42:27]Read from MH i2c: E2 [16:42:27]MH_I2C_Read... [16:42:27]Read from MH i2c: E2 03 00 [16:42:27]MH_I2C_Read... [16:42:27]Read from MH i2c: E2 03 00 5E 58 00 90 00 2A [16:42:27]RAPDU: 90 00 [16:42:27]wFMCommunicate OK [16:42:27]wFMCommunicate request_size=255 [16:42:27]MH_SAM_APDU [16:42:27]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 F9 74 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 [16:42:27]Write to MH i2c: E2 02 01 5F 58 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 F9 74 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 00 00 3A [16:42:27]Write i2c OK [16:42:27]MH_I2C_Read... [16:42:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:42:28]Read from MH i2c: E2 [16:42:28]MH_I2C_Read... [16:42:28]Read from MH i2c: E2 03 00 [16:42:28]MH_I2C_Read... [16:42:28]Read from MH i2c: E2 03 00 5F 58 00 90 00 2B [16:42:28]RAPDU: 90 00 [16:42:28]wFMCommunicate OK [16:42:28]wFMCommunicate request_size=34 [16:42:28]MH_SAM_APDU [16:42:28]CAPDU: 80 0D 02 02 1D 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 2E 08 00 00 35 04 06 00 A9 CB EC A6 21 B7 [16:42:28]Write to MH i2c: E2 25 00 60 58 80 0D 02 02 1D 00 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 2E 08 00 00 35 04 06 00 A9 CB EC A6 21 B7 00 00 04 [16:42:28]Write i2c OK [16:42:28]MH_I2C_Read... [16:42:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:42:28]Read from MH i2c: E2 [16:42:28]MH_I2C_Read... [16:42:28]Read from MH i2c: E2 03 00 [16:42:28]MH_I2C_Read... [16:42:28]Read from MH i2c: E2 03 00 60 58 00 90 00 2C [16:42:28]RAPDU: 90 00 [16:42:28]wFMCommunicate OK [16:42:28]wFMCommunicate request_size=4 [16:42:28]MH_SAM_APDU [16:42:28]CAPDU: 80 0D 03 02 [16:42:28]Write to MH i2c: E2 08 00 61 58 80 0D 03 02 00 00 00 00 34 [16:42:28]Write i2c OK [16:42:28]MH_I2C_Read... [16:42:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:42:28]Read from MH i2c: E2 [16:42:28]MH_I2C_Read... [16:42:28]Read from MH i2c: E2 0B 00 [16:42:28]MH_I2C_Read... [16:42:28]Read from MH i2c: E2 0B 00 61 58 00 4C F5 AA 81 60 C2 41 F8 90 00 FC [16:42:28]RAPDU: 4C F5 AA 81 60 C2 41 F8 90 00 [16:42:28]wFMCommunicate OK [16:42:28]SAM_PROTO_SignData done [16:42:28]FM_MakeSignedData done [16:42:28]CreateOFDProtocolMessage [16:42:28]wFMCommunicate request_size=4 [16:42:28]MH_SAM_APDU [16:42:28]CAPDU: 80 11 00 00 [16:42:28]Write to MH i2c: E2 08 00 62 58 80 11 00 00 00 00 00 00 34 [16:42:28]Write i2c OK [16:42:28]MH_I2C_Read... [16:42:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:42:28]Read from MH i2c: E2 [16:42:28]MH_I2C_Read... [16:42:28]Read from MH i2c: E2 17 00 [16:42:28]MH_I2C_Read... [16:42:28]Read from MH i2c: E2 17 00 62 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 84 [16:42:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [16:42:28]wFMCommunicate OK [16:42:28]CreateOFDProtocolMessage done [16:42:28]OFDSenderStorePacket 2094 [16:42:28]StoreOFDPacket docnum=2094 [16:42:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 27 01 00 00 89 2D 1F 01 9C DF 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 F9 74 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 2E 08 00 00 35 04 06 00 A9 CB EC A6 21 B7 4C F5 AA 81 60 C2 41 F8 [16:42:28]CheckFolder [16:42:28]dirname=/storage/ofd_packets [16:42:28]CheckFolder done [16:42:28]ProducePacketName [16:42:28]name=ofd_packets/00002094 [16:42:28]NVStorageSaveData ofd_packets/00002094 [16:42:28]File name is /storage/ofd_packets/00002094 [16:42:28]Write 325 bytes [16:42:28]NVStorageSaveData done [16:42:28]OFDSenderStorePacket done [16:42:28]KKMCreateOFDPacket done [16:42:28]NVStorageSaveData kkm_last_timestamp [16:42:28]File name is /storage/kkm_last_timestamp [16:42:28]Write 4 bytes [16:42:28]NVStorageSaveData done [16:42:28]ExternCall_PrintAddStr [16:42:28]wPrintStart [16:42:28]Write to MH i2c: 01 00 00 63 58 BB [16:42:28]Write i2c OK [16:42:28]MH_I2C_Read... [16:42:28]Read from MH i2c: 01 [16:42:28]MH_I2C_Read... [16:42:28]Read from MH i2c: 01 07 00 [16:42:28]MH_I2C_Read... [16:42:28]Read from MH i2c: 01 07 00 63 58 00 00 00 00 00 FF 0F D0 [16:42:28]RasterBufferAndPrint [16:42:28]line Счет N : (3)126393 [16:42:28]line ИНН: 02508201610067 [16:42:28]line Контрольно-Кассовый Чек [16:42:28]line ПРОДАЖА [16:42:28]line Товар: 4700000310326 [16:42:28]line Вода Адыгене 1л б/г [16:42:28]line 1.000 * 35.00 [16:42:28]line = 35.00 [16:42:28]line НДС 12% НСП 1% [16:42:28]line > о реализуемом товаре [16:42:28]line ИТОГО: 35.00 [16:42:28]line НСП 1% : 0.31 [16:42:28]line НДС 12% : 3.72 [16:42:28]line Наличными: 35.00 [16:42:28]line Безнал.: 0.00 [16:42:28]line Место: АЗС № 127 "Партнер Нефть" [16:42:28]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [16:42:28]line СНО: Общий режим [16:42:28]line Чек 145 28.07.2024 16:42 [16:42:28]line Смена: 13 ФФД: 1.0 [16:42:28]line ЗНМ: 0300000161 [16:42:28]line РНМ: 0000000000189667 [16:42:28]line Версия ККМ: v1.0 [16:42:28]line ФМ: 0000000002094248 [16:42:28]line ФД: 2094 [16:42:28]line ФПД: 186693313765815 [16:42:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T164233&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2094&fm=186693313765815&tin=02508201610067®Number=0000000000189667&sum=3500 [16:42:28]line 0 [16:42:28]OFD Sender: Processing packet 2094 [packets to send 1, broken 0] [16:42:28]ProducePacketName [16:42:28]name=ofd_packets/00002094 [16:42:28]OFD Sender: To server: pG, [16:42:28]CommunicateWithHost lk.salyk.kg:30040 [16:42:28]ConnectInit lk.salyk.kg [16:42:28]written 0, free lines is 4095 [16:42:28]Connected sock=11 [16:42:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 27 01 00 00 89 2D 1F 01 9C DF 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 F9 74 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 2E 08 00 00 35 04 06 00 A9 CB EC A6 21 B7 4C F5 AA 81 60 C2 41 F8 [16:42:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 8C D1 47 00 40 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 32 30 39 34 32 34 38 10 04 04 00 2E 08 00 00 F4 03 04 00 68 20 A6 66 B6 04 01 00 00 9D AB 5E B3 43 DB D9 1A [16:42:28]CommunicateWithHost err = 0 [16:42:28]CheckOFDResponse [16:42:28]1017 (14) - 77093643461234 [16:42:28]1041 (16) - 0000000002094248 [16:42:28]1040 (4) - 2094 [16:42:28]1012 (4) - 28.07.2024 10:41 [16:42:28]1206 (1) - 0 [16:42:28]OFD Sender: Remove packet 2094 [16:42:28]ProducePacketName [16:42:28]name=ofd_packets/00002094 [16:42:28]NVStorageDeleteData [16:42:29]Write to MH i2c: 01 00 00 8B 58 E3 [16:42:29]Write i2c OK [16:42:29]MH_I2C_Read... [16:42:29]Read from MH i2c: 01 [16:42:29]MH_I2C_Read... [16:42:29]Read from MH i2c: 01 07 00 [16:42:29]MH_I2C_Read... [16:42:29]Read from MH i2c: 01 07 00 8B 58 00 00 00 00 00 1E 0D 15 [16:42:29]RasterBufferAndPrint [16:42:29]line [16:42:29]line [16:42:29]line [16:42:29]line [16:42:29]line [16:42:29]written 0, free lines is 3364 [16:42:29]MH_Cut [16:42:29]Write to MH i2c: D1 01 00 92 58 01 BC [16:42:29]Write i2c OK [16:42:29]MH_I2C_Read... [16:42:29]Read from MH i2c: D1 [16:42:29]MH_I2C_Read... [16:42:29]Read from MH i2c: D1 01 00 [16:42:29]MH_I2C_Read... [16:42:29]Read from MH i2c: D1 01 00 92 58 00 BB [16:42:29]Write to MH i2c: 01 00 00 93 58 EB [16:42:29]Write i2c OK [16:42:29]MH_I2C_Read... [16:42:29]OFD Sender: No OFD packet to send [16:42:29]*** Cut start [16:42:29]*** Partial cut [16:42:29]*** CUTSNS_PIN = 1 [16:42:29]*** CUTSNS_PIN = 0 [16:42:29]*** Brake cut motor [16:42:30]Read from MH i2c: 01 [16:42:30]MH_I2C_Read... [16:42:30]*** Stop cut motor [16:42:30]*** Cut end [16:42:30]Read from MH i2c: 01 07 00 [16:42:30]MH_I2C_Read... [16:42:30]Read from MH i2c: 01 07 00 93 58 00 00 00 00 00 FF 0F 00 [16:42:30]process_action close_receipt done [16:42:30]requested_data is exist [16:42:30]produce_requested_data [16:42:30]requested_item fm.sn is exist - process it [16:42:30]wFMCommunicate request_size=4 [16:42:30]MH_SAM_APDU [16:42:30]CAPDU: 80 11 00 00 [16:42:30]Write to MH i2c: E2 08 00 94 58 80 11 00 00 00 00 00 00 66 [16:42:30]Write i2c OK [16:42:30]MH_I2C_Read... [16:42:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:42:30]Read from MH i2c: E2 [16:42:30]MH_I2C_Read... [16:42:30]Read from MH i2c: E2 17 00 [16:42:30]MH_I2C_Read... [16:42:30]Read from MH i2c: E2 17 00 94 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 B6 [16:42:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [16:42:30]wFMCommunicate OK [16:42:30]requested_item fd.num is exist - process it [16:42:30]SAM_PROTO_GetFieldsCounters [16:42:30]wFMCommunicate request_size=4 [16:42:30]MH_SAM_APDU [16:42:30]CAPDU: 80 13 00 00 [16:42:30]Write to MH i2c: E2 08 00 95 58 80 13 00 00 00 00 00 00 69 [16:42:30]Write i2c OK [16:42:30]MH_I2C_Read... [16:42:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:42:30]Read from MH i2c: E2 [16:42:30]MH_I2C_Read... [16:42:30]Read from MH i2c: E2 62 00 [16:42:30]MH_I2C_Read... [16:42:30]Read from MH i2c: E2 62 00 95 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 2E 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 89 [16:42:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 2E 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:42:30]wFMCommunicate OK [16:42:30]SAM_PROTO_GetFieldsCounters done [16:42:30]requested_item shift.num is exist - process it [16:42:30]requested_item shift.opened is exist - process it [16:42:30]req_shift_opened [16:42:30]FM_GetShiftState [16:42:30]SAM_PROTO_GetShiftState [16:42:30]wFMCommunicate request_size=4 [16:42:30]MH_SAM_APDU [16:42:30]CAPDU: 80 13 01 00 [16:42:30]Write to MH i2c: E2 08 00 96 58 80 13 01 00 00 00 00 00 6B [16:42:30]Write i2c OK [16:42:30]MH_I2C_Read... [16:42:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:42:30]Read from MH i2c: E2 [16:42:30]MH_I2C_Read... [16:42:30]Read from MH i2c: E2 0E 00 [16:42:30]MH_I2C_Read... [16:42:30]Read from MH i2c: E2 0E 00 96 58 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 5F [16:42:30]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [16:42:30]wFMCommunicate OK [16:42:30]SAM_PROTO_GetShiftState done [16:42:30]FM_GetShiftState done [16:42:30]req_shift_opened done [16:42:30]requested_item shift.open_date is exist - process it [16:42:30]req_shift_open_date [16:42:30]req_shift_open_date done [16:42:30]produce_requested_data done [16:42:30]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2094,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [16:42:30]process_action_free close_receipt [16:42:30]json_value_free [16:42:30]json_value_free done [16:42:30]process_json_proto returns [16:42:30]Send response to host [16:42:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2094,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [16:42:30]free response buf [16:42:30]execute_script done [16:42:30]execute_script returns [16:42:30]free content buf [16:42:30]Sock 8.Close socket [16:42:30]Sock 8.Thread stoped [16:42:34]OFD Sender: No OFD packet to send [16:42:39]OFD Sender: No OFD packet to send [16:42:44]OFD Sender: No OFD packet to send [16:42:49]OFD Sender: No OFD packet to send [16:42:54]OFD Sender: No OFD packet to send [16:42:59]OFD Sender: No OFD packet to send [16:43:04]OFD Sender: No OFD packet to send [16:43:09]OFD Sender: No OFD packet to send [16:43:14]OFD Sender: No OFD packet to send [16:43:19]OFD Sender: No OFD packet to send [16:43:24]OFD Sender: No OFD packet to send [16:43:29]OFD Sender: No OFD packet to send [16:43:34]OFD Sender: No OFD packet to send [16:43:39]OFD Sender: No OFD packet to send [16:43:44]OFD Sender: No OFD packet to send [16:43:49]OFD Sender: No OFD packet to send [16:43:54]OFD Sender: No OFD packet to send [16:43:59]OFD Sender: No OFD packet to send [16:44:04]OFD Sender: No OFD packet to send [16:44:09]OFD Sender: No OFD packet to send [16:44:14]OFD Sender: No OFD packet to send [16:44:19]OFD Sender: No OFD packet to send [16:44:24]OFD Sender: No OFD packet to send [16:44:29]OFD Sender: No OFD packet to send [16:44:34]OFD Sender: No OFD packet to send [16:44:39]OFD Sender: No OFD packet to send [16:44:44]OFD Sender: No OFD packet to send [16:44:49]OFD Sender: No OFD packet to send [16:44:54]OFD Sender: No OFD packet to send [16:44:59]OFD Sender: No OFD packet to send [16:45:04]OFD Sender: No OFD packet to send [16:45:09]OFD Sender: No OFD packet to send [16:45:14]OFD Sender: No OFD packet to send [16:45:19]OFD Sender: No OFD packet to send [16:45:24]OFD Sender: No OFD packet to send [16:45:29]OFD Sender: No OFD packet to send [16:45:34]OFD Sender: No OFD packet to send [16:45:39]OFD Sender: No OFD packet to send [16:45:44]OFD Sender: No OFD packet to send [16:45:49]OFD Sender: No OFD packet to send [16:45:54]OFD Sender: No OFD packet to send [16:45:59]OFD Sender: No OFD packet to send [16:46:04]OFD Sender: No OFD packet to send [16:46:09]OFD Sender: No OFD packet to send [16:46:14]OFD Sender: No OFD packet to send [16:46:19]OFD Sender: No OFD packet to send [16:46:24]OFD Sender: No OFD packet to send [16:46:29]OFD Sender: No OFD packet to send [16:46:34]OFD Sender: No OFD packet to send [16:46:39]OFD Sender: No OFD packet to send [16:46:44]OFD Sender: No OFD packet to send [16:46:49]OFD Sender: No OFD packet to send [16:46:54]OFD Sender: No OFD packet to send [16:46:59]OFD Sender: No OFD packet to send [16:47:04]OFD Sender: No OFD packet to send [16:47:09]OFD Sender: No OFD packet to send [16:47:14]OFD Sender: No OFD packet to send [16:47:19]OFD Sender: No OFD packet to send [16:47:24]OFD Sender: No OFD packet to send [16:47:29]OFD Sender: No OFD packet to send [16:47:34]OFD Sender: No OFD packet to send [16:47:39]OFD Sender: No OFD packet to send [16:47:44]OFD Sender: No OFD packet to send [16:47:49]OFD Sender: No OFD packet to send [16:47:54]OFD Sender: No OFD packet to send [16:47:59]OFD Sender: No OFD packet to send [16:48:04]OFD Sender: No OFD packet to send [16:48:09]OFD Sender: No OFD packet to send [16:48:14]OFD Sender: No OFD packet to send [16:48:19]OFD Sender: No OFD packet to send [16:48:24]OFD Sender: No OFD packet to send [16:48:29]OFD Sender: No OFD packet to send [16:48:34]OFD Sender: No OFD packet to send [16:48:39]OFD Sender: No OFD packet to send [16:48:44]OFD Sender: No OFD packet to send [16:48:49]OFD Sender: No OFD packet to send [16:48:54]OFD Sender: No OFD packet to send [16:48:59]OFD Sender: No OFD packet to send [16:49:04]OFD Sender: No OFD packet to send [16:49:09]OFD Sender: No OFD packet to send [16:49:14]OFD Sender: No OFD packet to send [16:49:19]OFD Sender: No OFD packet to send [16:49:24]OFD Sender: No OFD packet to send [16:49:29]OFD Sender: No OFD packet to send [16:49:34]OFD Sender: No OFD packet to send [16:49:39]OFD Sender: No OFD packet to send [16:49:44]accept exits with 9 [16:49:44]New connection [16:49:44]New thread 3067460964 created [16:49:44]Thread 3067317604 joined [16:49:44]Waiting for new connection... [16:49:44] Sock 9.Parse request [16:49:44]Sock 9.Check first char [16:49:44]Sock 9.First char is OK [16:49:44]request: POST /json_proto HTTP/1.0 [16:49:44]Method: POST [16:49:44]URL: /json_proto [16:49:44]Method is POST - this is cgi request [16:49:44]url: /json_proto [16:49:44]query_string will be loaded in cgi processing [16:49:44]execute_cgi json_proto POST (null) [16:49:44]execute_cgi path=json_proto method=POST [16:49:44]POST find Content-Length [16:49:44]Host: 172.17.45.132:8080 [16:49:44]Content-Length: 825 [16:49:44]Content-Type: application/json [16:49:44] [16:49:44]POST finish read [16:49:44]Found Content-Length = 825 [16:49:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126394", "tax_sys" : 0, "items" : [ { "code": "4602441000609", "name": "\u041D\u0430\u043F\u0438\u0442 \u0414\u044E\u0448\u0435\u0441 1\u043B \u0441\u0442\u0435\u043A\u043B\u043E", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 205.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:49:44]execute_script... [16: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)126394", "tax_sys" : 0, "items" : [ { "code": "4602441000609", "name": "\u041D\u0430\u043F\u0438\u0442 \u0414\u044E\u0448\u0435\u0441 1\u043B \u0441\u0442\u0435\u043A\u043B\u043E", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 205.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:49:44]POST & json_proto [16:49:44]process_json_proto [16:49:44]json parsed OK: [16:49:44]protocol is kg_v1.0 [16:49:44]action value=close_receipt [16:49:44]process_action close_receipt [16:49:44]cmd_close_receipt [16:49:44]MH_GetDate [16:49:44]Write to MH i2c: F0 00 00 97 58 DE [16:49:44]Write i2c OK [16:49:44]MH_I2C_Read... [16:49:44]Read from MH i2c: F0 [16:49:44]MH_I2C_Read... [16:49:44]Read from MH i2c: F0 09 00 [16:49:44]MH_I2C_Read... [16:49:44]Read from MH i2c: F0 09 00 97 58 00 AE 76 A6 66 E3 0B 90 66 FB [16:49:44]GetLastDocTimeStamp 1722184953 [16:49:44]current date 1722185390 [16:49:44]FM_GetShiftState [16:49:44]SAM_PROTO_GetShiftState [16:49:44]wFMCommunicate request_size=4 [16:49:44]MH_SAM_APDU [16:49:44]CAPDU: 80 13 01 00 [16:49:44]Write to MH i2c: E2 08 00 98 58 80 13 01 00 00 00 00 00 6D [16:49:44]Write i2c OK [16:49:44]MH_I2C_Read... [16:49:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:49:44]Read from MH i2c: E2 [16:49:44]MH_I2C_Read... [16:49:44]Read from MH i2c: E2 0E 00 [16:49:44]MH_I2C_Read... [16:49:44]Read from MH i2c: E2 0E 00 98 58 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 61 [16:49:44]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [16:49:44]wFMCommunicate OK [16:49:44]SAM_PROTO_GetShiftState done [16:49:44]FM_GetShiftState done [16:49:44]opened in 1722125648 [16:49:44]opened+sec_in_day 1722212048 [16:49:44]quantity*price = 20500 [16:49:44]sum+1 = 20501 [16:49:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 205.00 НСП 1% : 1.81 НДС 12% : 21.77 Наличными: 0.00 Безнал.: 205.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 146 28.07.2024 16:49 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2095 ФПД: 196517960162712 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T164950&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2095&fm=196517960162712&tin=02508201610067®Number=0000000000189667&sum=20500 0 [16:49:45]StoreToDocumentArchive [16:49:45]shift 13 fd 2095 [16:49:45]save to /storage/0013/doc_00002095 [16:49:45]save last doc name /storage/0013/doc_00002095 to /storage/kkm_last_doc_name [16:49:45]save OK [16:49:45]Clear old archive folders... [16:49:45]ProcessDocumentItem done err = 0, tmpTLVsize=280 [16:49:45]tlvbuf is 02045E20 [16:49:45]SAM_PROTO_ClearQueue [16:49:45]wFMCommunicate request_size=4 [16:49:45]MH_SAM_APDU [16:49:45]CAPDU: 80 09 00 00 [16:49:45]Write to MH i2c: E2 08 00 A5 58 80 09 00 00 00 00 00 00 6F [16:49:45]Write i2c OK [16:49:45]MH_I2C_Read... [16:49:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:49:45]Read from MH i2c: E2 [16:49:45]MH_I2C_Read... [16:49:45]Read from MH i2c: E2 03 00 [16:49:45]MH_I2C_Read... [16:49:45]Read from MH i2c: E2 03 00 A5 58 00 90 00 71 [16:49:45]RAPDU: 90 00 [16:49:45]wFMCommunicate OK [16:49:45]SAM_PROTO_ClearQueue done [16:49:45]KKMCreateOFDPacket [16:49:45]OFDProtocolAddRootSTLVToBuf [16:49:45]FM_MakeSignedData [16:49:45]FM_MakeSignedData [16:49:45]SAM_PROTO_SignData [16:49:45]wFMCommunicate request_size=4 [16:49:45]MH_SAM_APDU [16:49:45]CAPDU: 80 0D 01 02 [16:49:45]Write to MH i2c: E2 08 00 A6 58 80 0D 01 02 00 00 00 00 77 [16:49:45]Write i2c OK [16:49:45]MH_I2C_Read... [16:49:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:49:45]Read from MH i2c: E2 [16:49:45]MH_I2C_Read... [16:49:45]Read from MH i2c: E2 03 00 [16:49:45]MH_I2C_Read... [16:49:45]Read from MH i2c: E2 03 00 A6 58 00 90 00 72 [16:49:45]RAPDU: 90 00 [16:49:45]wFMCommunicate OK [16:49:45]wFMCommunicate request_size=255 [16:49:45]MH_SAM_APDU [16:49:45]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 30 32 34 34 31 30 30 30 36 30 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 20 D0 94 D1 8E D1 88 D0 B5 D1 81 20 31 D0 BB 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 00 00 00 00 00 00 39 04 06 00 14 50 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 AE 76 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 [16:49:45]Write to MH i2c: E2 02 01 A7 58 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 30 32 34 34 31 30 30 30 36 30 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 20 D0 94 D1 8E D1 88 D0 B5 D1 81 20 31 D0 BB 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 00 00 00 00 00 00 39 04 06 00 14 50 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 AE 76 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 00 00 4F [16:49:45]Write i2c OK [16:49:45]MH_I2C_Read... [16:49:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:49:45]Read from MH i2c: E2 [16:49:45]MH_I2C_Read... [16:49:45]Read from MH i2c: E2 03 00 [16:49:45]MH_I2C_Read... [16:49:45]Read from MH i2c: E2 03 00 A7 58 00 90 00 73 [16:49:45]RAPDU: 90 00 [16:49:45]wFMCommunicate OK [16:49:45]wFMCommunicate request_size=39 [16:49:45]MH_SAM_APDU [16:49:45]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 2F 08 00 00 35 04 06 00 B2 BB 67 35 1D 98 [16:49:45]Write to MH i2c: E2 2A 00 A8 58 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 2F 08 00 00 35 04 06 00 B2 BB 67 35 1D 98 00 00 27 [16:49:45]Write i2c OK [16:49:45]MH_I2C_Read... [16:49:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:49:45]Read from MH i2c: E2 [16:49:45]MH_I2C_Read... [16:49:45]Read from MH i2c: E2 03 00 [16:49:45]MH_I2C_Read... [16:49:45]Read from MH i2c: E2 03 00 A8 58 00 90 00 74 [16:49:45]RAPDU: 90 00 [16:49:45]wFMCommunicate OK [16:49:45]wFMCommunicate request_size=4 [16:49:45]MH_SAM_APDU [16:49:45]CAPDU: 80 0D 03 02 [16:49:45]Write to MH i2c: E2 08 00 A9 58 80 0D 03 02 00 00 00 00 7C [16:49:45]Write i2c OK [16:49:45]MH_I2C_Read... [16:49:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:49:46]Read from MH i2c: E2 [16:49:46]MH_I2C_Read... [16:49:46]Read from MH i2c: E2 0B 00 [16:49:46]MH_I2C_Read... [16:49:46]Read from MH i2c: E2 0B 00 A9 58 00 12 60 DC DE CB 9A 6B 52 90 00 CB [16:49:46]RAPDU: 12 60 DC DE CB 9A 6B 52 90 00 [16:49:46]wFMCommunicate OK [16:49:46]SAM_PROTO_SignData done [16:49:46]FM_MakeSignedData done [16:49:46]CreateOFDProtocolMessage [16:49:46]wFMCommunicate request_size=4 [16:49:46]MH_SAM_APDU [16:49:46]CAPDU: 80 11 00 00 [16:49:46]Write to MH i2c: E2 08 00 AA 58 80 11 00 00 00 00 00 00 7C [16:49:46]Write i2c OK [16:49:46]MH_I2C_Read... [16:49:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:49:46]Read from MH i2c: E2 [16:49:46]MH_I2C_Read... [16:49:46]Read from MH i2c: E2 17 00 [16:49:46]MH_I2C_Read... [16:49:46]Read from MH i2c: E2 17 00 AA 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 CC [16:49:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [16:49:46]wFMCommunicate OK [16:49:46]CreateOFDProtocolMessage done [16:49:46]OFDSenderStorePacket 2095 [16:49:46]StoreOFDPacket docnum=2095 [16:49:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2C 01 00 00 A5 82 24 01 43 60 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 30 32 34 34 31 30 30 30 36 30 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 20 D0 94 D1 8E D1 88 D0 B5 D1 81 20 31 D0 BB 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 00 00 00 00 00 00 39 04 06 00 14 50 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 AE 76 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 2F 08 00 00 35 04 06 00 B2 BB 67 35 1D 98 12 60 DC DE CB 9A 6B 52 [16:49:46]CheckFolder [16:49:46]dirname=/storage/ofd_packets [16:49:46]CheckFolder done [16:49:46]ProducePacketName [16:49:46]name=ofd_packets/00002095 [16:49:46]NVStorageSaveData ofd_packets/00002095 [16:49:46]File name is /storage/ofd_packets/00002095 [16:49:46]Write 330 bytes [16:49:46]NVStorageSaveData done [16:49:46]OFDSenderStorePacket done [16:49:46]KKMCreateOFDPacket done [16:49:46]NVStorageSaveData kkm_last_timestamp [16:49:46]File name is /storage/kkm_last_timestamp [16:49:46]Write 4 bytes [16:49:46]NVStorageSaveData done [16:49:46]ExternCall_PrintAddStr [16:49:46]wPrintStart [16:49:46]Write to MH i2c: 01 00 00 AB 58 03 [16:49:46]Write i2c OK [16:49:46]MH_I2C_Read... [16:49:46]Read from MH i2c: 01 [16:49:46]MH_I2C_Read... [16:49:46]Read from MH i2c: 01 07 00 [16:49:46]MH_I2C_Read... [16:49:46]Read from MH i2c: 01 07 00 AB 58 00 00 00 00 00 FF 0F 18 [16:49:46]RasterBufferAndPrint [16:49:46]line Счет N : (3)126394 [16:49:46]line ИНН: 02508201610067 [16:49:46]line Контрольно-Кассовый Чек [16:49:46]line ПРОДАЖА [16:49:46]line Товар: 4602441000609 [16:49:46]line Напит Дюшес 1л стекло [16:49:46]line 1.000 * 205.00 [16:49:46]line = 205.00 [16:49:46]line НДС 12% НСП 1% [16:49:46]line > о реализуемом товаре [16:49:46]line ИТОГО: 205.00 [16:49:46]line НСП 1% : 1.81 [16:49:46]line НДС 12% : 21.77 [16:49:46]line Наличными: 0.00 [16:49:46]line Безнал.: 205.00 [16:49:46]line Место: АЗС № 127 "Партнер Нефть" [16:49:46]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [16:49:46]line СНО: Общий режим [16:49:46]line Чек 146 28.07.2024 16:49 [16:49:46]line Смена: 13 ФФД: 1.0 [16:49:46]line ЗНМ: 0300000161 [16:49:46]line РНМ: 0000000000189667 [16:49:46]line Версия ККМ: v1.0 [16:49:46]line Платежная система: O! деньги [16:49:46]line ФМ: 0000000002094248 [16:49:46]line ФД: 2095 [16:49:46]line ФПД: 196517960162712 [16:49:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T164950&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2095&fm=196517960162712&tin=02508201610067®Number=0000000000189667&sum=20500 [16:49:46]line 0 [16:49:46]OFD Sender: Processing packet 2095 [packets to send 1, broken 0] [16:49:46]ProducePacketName [16:49:46]name=ofd_packets/00002095 [16:49:46]OFD Sender: To server: pG, [16:49:46]CommunicateWithHost lk.salyk.kg:30040 [16:49:46]ConnectInit lk.salyk.kg [16:49:46]written 0, free lines is 4095 [16:49:46]Connected sock=10 [16:49:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2C 01 00 00 A5 82 24 01 43 60 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 30 32 34 34 31 30 30 30 36 30 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 20 D0 94 D1 8E D1 88 D0 B5 D1 81 20 31 D0 BB 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 00 00 00 00 00 00 39 04 06 00 14 50 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 AE 76 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 2F 08 00 00 35 04 06 00 B2 BB 67 35 1D 98 12 60 DC DE CB 9A 6B 52 [16:49:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 B5 6A 47 00 C9 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 2F 08 00 00 F4 03 04 00 1E 22 A6 66 B6 04 01 00 00 8D 97 9E C8 3C 8D A9 B8 [16:49:46]CommunicateWithHost err = 0 [16:49:46]CheckOFDResponse [16:49:46]1017 (14) - 77093643461234 [16:49:46]1041 (16) - 0000000002094248 [16:49:46]1040 (4) - 2095 [16:49:46]1012 (4) - 28.07.2024 10:49 [16:49:46]1206 (1) - 0 [16:49:46]OFD Sender: Remove packet 2095 [16:49:46]ProducePacketName [16:49:46]name=ofd_packets/00002095 [16:49:46]NVStorageDeleteData [16:49:46]Write to MH i2c: 01 00 00 D5 58 2D [16:49:46]Write i2c OK [16:49:46]MH_I2C_Read... [16:49:46]Read from MH i2c: 01 [16:49:46]MH_I2C_Read... [16:49:46]Read from MH i2c: 01 07 00 [16:49:46]MH_I2C_Read... [16:49:46]Read from MH i2c: 01 07 00 D5 58 00 00 00 00 00 08 0D 49 [16:49:46]RasterBufferAndPrint [16:49:46]line [16:49:46]line [16:49:46]line [16:49:46]line [16:49:46]line [16:49:46]written 0, free lines is 3342 [16:49:46]MH_Cut [16:49:46]Write to MH i2c: D1 01 00 DC 58 01 06 [16:49:46]Write i2c OK [16:49:46]MH_I2C_Read... [16:49:46]Read from MH i2c: D1 [16:49:46]MH_I2C_Read... [16:49:46]Read from MH i2c: D1 01 00 [16:49:46]MH_I2C_Read... [16:49:46]Read from MH i2c: D1 01 00 DC 58 00 05 [16:49:46]Write to MH i2c: 01 00 00 DD 58 35 [16:49:46]Write i2c OK [16:49:46]MH_I2C_Read... [16:49:47]OFD Sender: No OFD packet to send [16:49:47]*** Cut start [16:49:47]*** Partial cut [16:49:47]*** CUTSNS_PIN = 1 [16:49:47]*** CUTSNS_PIN = 0 [16:49:47]*** Brake cut motor [16:49:48]Read from MH i2c: 01 [16:49:48]MH_I2C_Read... [16:49:48]*** Stop cut motor [16:49:48]*** Cut end [16:49:48]Read from MH i2c: 01 07 00 [16:49:48]MH_I2C_Read... [16:49:48]Read from MH i2c: 01 07 00 DD 58 00 00 00 00 00 FF 0F 4A [16:49:48]process_action close_receipt done [16:49:48]requested_data is exist [16:49:48]produce_requested_data [16:49:48]requested_item fm.sn is exist - process it [16:49:48]wFMCommunicate request_size=4 [16:49:48]MH_SAM_APDU [16:49:48]CAPDU: 80 11 00 00 [16:49:48]Write to MH i2c: E2 08 00 DE 58 80 11 00 00 00 00 00 00 B0 [16:49:48]Write i2c OK [16:49:48]MH_I2C_Read... [16:49:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:49:48]Read from MH i2c: E2 [16:49:48]MH_I2C_Read... [16:49:48]Read from MH i2c: E2 17 00 [16:49:48]MH_I2C_Read... [16:49:48]Read from MH i2c: E2 17 00 DE 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 00 [16:49:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [16:49:48]wFMCommunicate OK [16:49:48]requested_item fd.num is exist - process it [16:49:48]SAM_PROTO_GetFieldsCounters [16:49:48]wFMCommunicate request_size=4 [16:49:48]MH_SAM_APDU [16:49:48]CAPDU: 80 13 00 00 [16:49:48]Write to MH i2c: E2 08 00 DF 58 80 13 00 00 00 00 00 00 B3 [16:49:48]Write i2c OK [16:49:48]MH_I2C_Read... [16:49:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:49:48]Read from MH i2c: E2 [16:49:48]MH_I2C_Read... [16:49:48]Read from MH i2c: E2 62 00 [16:49:48]MH_I2C_Read... [16:49:48]Read from MH i2c: E2 62 00 DF 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 2F 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 D7 [16:49:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 2F 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:49:48]wFMCommunicate OK [16:49:48]SAM_PROTO_GetFieldsCounters done [16:49:48]requested_item shift.num is exist - process it [16:49:48]requested_item shift.opened is exist - process it [16:49:48]req_shift_opened [16:49:48]FM_GetShiftState [16:49:48]SAM_PROTO_GetShiftState [16:49:48]wFMCommunicate request_size=4 [16:49:48]MH_SAM_APDU [16:49:48]CAPDU: 80 13 01 00 [16:49:48]Write to MH i2c: E2 08 00 E0 58 80 13 01 00 00 00 00 00 B5 [16:49:48]Write i2c OK [16:49:48]MH_I2C_Read... [16:49:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:49:48]Read from MH i2c: E2 [16:49:48]MH_I2C_Read... [16:49:48]Read from MH i2c: E2 0E 00 [16:49:48]MH_I2C_Read... [16:49:48]Read from MH i2c: E2 0E 00 E0 58 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 A9 [16:49:48]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [16:49:48]wFMCommunicate OK [16:49:48]SAM_PROTO_GetShiftState done [16:49:48]FM_GetShiftState done [16:49:48]req_shift_opened done [16:49:48]requested_item shift.open_date is exist - process it [16:49:48]req_shift_open_date [16:49:48]req_shift_open_date done [16:49:48]produce_requested_data done [16:49:48]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2095,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [16:49:48]process_action_free close_receipt [16:49:48]json_value_free [16:49:48]json_value_free done [16:49:48]process_json_proto returns [16:49:48]Send response to host [16:49:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2095,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [16:49:48]free response buf [16:49:48]execute_script done [16:49:48]execute_script returns [16:49:48]free content buf [16:49:48]Sock 9.Close socket [16:49:48]Sock 9.Thread stoped [16:49:52]OFD Sender: No OFD packet to send [16:49:57]OFD Sender: No OFD packet to send [16:50:02]OFD Sender: No OFD packet to send [16:50:07]OFD Sender: No OFD packet to send [16:50:12]OFD Sender: No OFD packet to send [16:50:17]OFD Sender: No OFD packet to send [16:50:22]OFD Sender: No OFD packet to send [16:50:27]OFD Sender: No OFD packet to send [16:50:32]OFD Sender: No OFD packet to send [16:50:37]OFD Sender: No OFD packet to send [16:50:40]accept exits with 8 [16:50:40]New connection [16:50:40]New thread 3067317604 created [16:50:40]Thread 3067460964 joined [16:50:40]Waiting for new connection... [16:50:40] Sock 8.Parse request [16:50:40]Sock 8.Check first char [16:50:40]Sock 8.First char is OK [16:50:40]request: POST /json_proto HTTP/1.0 [16:50:40]Method: POST [16:50:40]URL: /json_proto [16:50:40]Method is POST - this is cgi request [16:50:40]url: /json_proto [16:50:40]query_string will be loaded in cgi processing [16:50:40]execute_cgi json_proto POST (null) [16:50:40]execute_cgi path=json_proto method=POST [16:50:40]POST find Content-Length [16:50:40]Host: 172.17.45.132:8080 [16:50:40]Content-Length: 955 [16:50:40]Content-Type: application/json [16:50:40] [16:50:40]POST finish read [16:50:40]Found Content-Length = 955 [16:50:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126395", "tax_sys" : 0, "items" : [ { "code": "4870235681369", "name": "\u0427\u0418\u041F\u0421\u042B SLANG \u0421\u041E \u0412\u041A\u0423\u0421\u041E\u041C \u0421\u042B\u0420 60\u0413", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607010740191", "name": "\u0421\u0443\u0445 \u041A\u0438\u0440\u0438\u0435\u0448\u043A\u0438 \u0441\u0430\u043B\u044F\u043C\u0438 40\u0433", "price" : 21.00, "quantity" : 1.000, "sum" : 21.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 116.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:40]execute_script... [16:50: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)126395", "tax_sys" : 0, "items" : [ { "code": "4870235681369", "name": "\u0427\u0418\u041F\u0421\u042B SLANG \u0421\u041E \u0412\u041A\u0423\u0421\u041E\u041C \u0421\u042B\u0420 60\u0413", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607010740191", "name": "\u0421\u0443\u0445 \u041A\u0438\u0440\u0438\u0435\u0448\u043A\u0438 \u0441\u0430\u043B\u044F\u043C\u0438 40\u0433", "price" : 21.00, "quantity" : 1.000, "sum" : 21.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 116.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:40]POST & json_proto [16:50:40]process_json_proto [16:50:40]json parsed OK: [16:50:40]protocol is kg_v1.0 [16:50:40]action value=close_receipt [16:50:40]process_action close_receipt [16:50:40]cmd_close_receipt [16:50:40]MH_GetDate [16:50:40]Write to MH i2c: F0 00 00 E1 58 28 [16:50:40]Write i2c OK [16:50:40]MH_I2C_Read... [16:50:40]Read from MH i2c: F0 [16:50:40]MH_I2C_Read... [16:50:40]Read from MH i2c: F0 09 00 [16:50:40]MH_I2C_Read... [16:50:40]Read from MH i2c: F0 09 00 E1 58 00 E7 76 A6 66 E3 0B 90 66 7E [16:50:40]GetLastDocTimeStamp 1722185390 [16:50:40]current date 1722185447 [16:50:40]FM_GetShiftState [16:50:40]SAM_PROTO_GetShiftState [16:50:40]wFMCommunicate request_size=4 [16:50:40]MH_SAM_APDU [16:50:40]CAPDU: 80 13 01 00 [16:50:40]Write to MH i2c: E2 08 00 E2 58 80 13 01 00 00 00 00 00 B7 [16:50:40]Write i2c OK [16:50:40]MH_I2C_Read... [16:50:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:40]Read from MH i2c: E2 [16:50:40]MH_I2C_Read... [16:50:40]Read from MH i2c: E2 0E 00 [16:50:40]MH_I2C_Read... [16:50:40]Read from MH i2c: E2 0E 00 E2 58 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 AB [16:50:40]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [16:50:40]wFMCommunicate OK [16:50:40]SAM_PROTO_GetShiftState done [16:50:40]FM_GetShiftState done [16:50:40]opened in 1722125648 [16:50:40]opened+sec_in_day 1722212048 [16:50:40]quantity*price = 9500 [16:50:40]sum+1 = 9501 [16:50:40]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4607010740191 Сух Кириешки салями 40г 1.000 * 21.00 = 21.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 116.00 НСП 1% : 1.03 НДС 12% : 12.32 Наличными: 116.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 147 28.07.2024 16:50 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2096 ФПД: 22451219659830 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T165047&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2096&fm=22451219659830&tin=02508201610067®Number=0000000000189667&sum=11600 0 [16:50:41]StoreToDocumentArchive [16:50:41]shift 13 fd 2096 [16:50:41]save to /storage/0013/doc_00002096 [16:50:41]save last doc name /storage/0013/doc_00002096 to /storage/kkm_last_doc_name [16:50:41]save OK [16:50:41]Clear old archive folders... [16:50:41]ProcessDocumentItem done err = 0, tmpTLVsize=401 [16:50:41]tlvbuf is 01F63CF0 [16:50:41]SAM_PROTO_ClearQueue [16:50:41]wFMCommunicate request_size=4 [16:50:41]MH_SAM_APDU [16:50:41]CAPDU: 80 09 00 00 [16:50:41]Write to MH i2c: E2 08 00 EF 58 80 09 00 00 00 00 00 00 B9 [16:50:41]Write i2c OK [16:50:41]MH_I2C_Read... [16:50:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:50:41]Read from MH i2c: E2 [16:50:41]MH_I2C_Read... [16:50:41]Read from MH i2c: E2 03 00 [16:50:41]MH_I2C_Read... [16:50:41]Read from MH i2c: E2 03 00 EF 58 00 90 00 BB [16:50:41]RAPDU: 90 00 [16:50:41]wFMCommunicate OK [16:50:41]SAM_PROTO_ClearQueue done [16:50:41]KKMCreateOFDPacket [16:50:41]OFDProtocolAddRootSTLVToBuf [16:50:41]FM_MakeSignedData [16:50:41]FM_MakeSignedData [16:50:41]SAM_PROTO_SignData [16:50:41]wFMCommunicate request_size=4 [16:50:41]MH_SAM_APDU [16:50:41]CAPDU: 80 0D 01 02 [16:50:41]Write to MH i2c: E2 08 00 F0 58 80 0D 01 02 00 00 00 00 C1 [16:50:41]Write i2c OK [16:50:41]MH_I2C_Read... [16:50:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:50:41]Read from MH i2c: E2 [16:50:41]MH_I2C_Read... [16:50:41]Read from MH i2c: E2 03 00 [16:50:41]MH_I2C_Read... [16:50:41]Read from MH i2c: E2 03 00 F0 58 00 90 00 BC [16:50:41]RAPDU: 90 00 [16:50:41]wFMCommunicate OK [16:50:41]wFMCommunicate request_size=255 [16:50:41]MH_SAM_APDU [16:50:41]CAPDU: 80 0D 02 02 FA 03 00 91 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 36 39 06 04 2E 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 A1 D0 AB D0 A0 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 31 39 31 06 04 29 00 D0 A1 D1 83 D1 85 20 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 D1 81 D0 B0 D0 BB D1 8F D0 BC D0 B8 20 34 30 D0 B3 FF 03 08 00 03 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 50 2D 00 00 00 00 [16:50:41]Write to MH i2c: E2 02 01 F1 58 80 0D 02 02 FA 00 03 00 91 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 36 39 06 04 2E 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 A1 D0 AB D0 A0 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 31 39 31 06 04 29 00 D0 A1 D1 83 D1 85 20 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 D1 81 D0 B0 D0 BB D1 8F D0 BC D0 B8 20 34 30 D0 B3 FF 03 08 00 03 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 50 2D 00 00 00 00 00 00 E0 [16:50:41]Write i2c OK [16:50:41]MH_I2C_Read... [16:50:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:42]Read from MH i2c: E2 [16:50:42]MH_I2C_Read... [16:50:42]Read from MH i2c: E2 03 00 [16:50:42]MH_I2C_Read... [16:50:42]Read from MH i2c: E2 03 00 F1 58 00 90 00 BD [16:50:42]RAPDU: 90 00 [16:50:42]wFMCommunicate OK [16:50:42]wFMCommunicate request_size=160 [16:50:42]MH_SAM_APDU [16:50:42]CAPDU: 80 0D 02 02 9B EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 04 00 00 00 00 07 04 06 00 50 2D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 E7 76 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 30 08 00 00 35 04 06 00 14 6B 54 F8 FC 36 [16:50:42]Write to MH i2c: E2 A3 00 F2 58 80 0D 02 02 9B 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 04 00 00 00 00 07 04 06 00 50 2D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 E7 76 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 30 08 00 00 35 04 06 00 14 6B 54 F8 FC 36 00 00 36 [16:50:42]Write i2c OK [16:50:42]MH_I2C_Read... [16:50:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:42]Read from MH i2c: E2 [16:50:42]MH_I2C_Read... [16:50:42]Read from MH i2c: E2 03 00 [16:50:42]MH_I2C_Read... [16:50:42]Read from MH i2c: E2 03 00 F2 58 00 90 00 BE [16:50:42]RAPDU: 90 00 [16:50:42]wFMCommunicate OK [16:50:42]wFMCommunicate request_size=4 [16:50:42]MH_SAM_APDU [16:50:42]CAPDU: 80 0D 03 02 [16:50:42]Write to MH i2c: E2 08 00 F3 58 80 0D 03 02 00 00 00 00 C6 [16:50:42]OFD Sender: No OFD packet to send [16:50:42]Write i2c OK [16:50:42]MH_I2C_Read... [16:50:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:50:42]Read from MH i2c: E2 [16:50:42]MH_I2C_Read... [16:50:42]Read from MH i2c: E2 0B 00 [16:50:42]MH_I2C_Read... [16:50:42]Read from MH i2c: E2 0B 00 F3 58 00 AA AF AE 9E 2C 8C 79 F4 90 00 91 [16:50:42]RAPDU: AA AF AE 9E 2C 8C 79 F4 90 00 [16:50:42]wFMCommunicate OK [16:50:42]SAM_PROTO_SignData done [16:50:42]FM_MakeSignedData done [16:50:42]CreateOFDProtocolMessage [16:50:42]wFMCommunicate request_size=4 [16:50:42]MH_SAM_APDU [16:50:42]CAPDU: 80 11 00 00 [16:50:42]Write to MH i2c: E2 08 00 F4 58 80 11 00 00 00 00 00 00 C6 [16:50:42]Write i2c OK [16:50:42]MH_I2C_Read... [16:50:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:42]Read from MH i2c: E2 [16:50:42]MH_I2C_Read... [16:50:42]Read from MH i2c: E2 17 00 [16:50:42]MH_I2C_Read... [16:50:42]Read from MH i2c: E2 17 00 F4 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 16 [16:50:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [16:50:42]wFMCommunicate OK [16:50:42]CreateOFDProtocolMessage done [16:50:42]OFDSenderStorePacket 2096 [16:50:42]StoreOFDPacket docnum=2096 [16:50:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 A5 01 00 00 28 F2 9D 01 3E F6 5A 03 01 00 03 00 91 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 36 39 06 04 2E 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 A1 D0 AB D0 A0 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 31 39 31 06 04 29 00 D0 A1 D1 83 D1 85 20 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 D1 81 D0 B0 D0 BB D1 8F D0 BC D0 B8 20 34 30 D0 B3 FF 03 08 00 03 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 50 2D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 04 00 00 00 00 07 04 06 00 50 2D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 E7 76 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 30 08 00 00 35 04 06 00 14 6B 54 F8 FC 36 AA AF AE 9E 2C 8C 79 F4 [16:50:42]CheckFolder [16:50:42]dirname=/storage/ofd_packets [16:50:42]CheckFolder done [16:50:42]ProducePacketName [16:50:42]name=ofd_packets/00002096 [16:50:42]NVStorageSaveData ofd_packets/00002096 [16:50:42]File name is /storage/ofd_packets/00002096 [16:50:42]Write 451 bytes [16:50:42]NVStorageSaveData done [16:50:42]OFDSenderStorePacket done [16:50:42]KKMCreateOFDPacket done [16:50:42]NVStorageSaveData kkm_last_timestamp [16:50:42]File name is /storage/kkm_last_timestamp [16:50:42]Write 4 bytes [16:50:42]NVStorageSaveData done [16:50:42]ExternCall_PrintAddStr [16:50:42]wPrintStart [16:50:42]Write to MH i2c: 01 00 00 F5 58 4D [16:50:42]OFD Sender: Processing packet 2096 [packets to send 1, broken 0] [16:50:42]ProducePacketName [16:50:42]name=ofd_packets/00002096 [16:50:42]OFD Sender: To server: pG, [16:50:42]CommunicateWithHost lk.salyk.kg:30040 [16:50:42]ConnectInit lk.salyk.kg [16:50:42]Write i2c OK [16:50:42]MH_I2C_Read... [16:50:42]Read from MH i2c: 01 [16:50:42]MH_I2C_Read... [16:50:42]Read from MH i2c: 01 07 00 [16:50:42]MH_I2C_Read... [16:50:42]Read from MH i2c: 01 07 00 F5 58 00 00 00 00 00 FF 0F 62 [16:50:42]RasterBufferAndPrint [16:50:42]line Счет N : (3)126395 [16:50:42]line ИНН: 02508201610067 [16:50:42]line Контрольно-Кассовый Чек [16:50:42]line ПРОДАЖА [16:50:42]line Товар: 4870235681369 [16:50:42]line ЧИПСЫ SLANG СО ВКУСОМ СЫР 60Г [16:50:42]line 1.000 * 95.00 [16:50:42]line = 95.00 [16:50:42]line НДС 12% НСП 1% [16:50:42]line > о реализуемом товаре [16:50:42]line Товар: 4607010740191 [16:50:42]line Сух Кириешки салями 40г [16:50:42]line 1.000 * 21.00 [16:50:42]line = 21.00 [16:50:42]line НДС 12% НСП 1% [16:50:42]line > о реализуемом товаре [16:50:42]line ИТОГО: 116.00 [16:50:42]line НСП 1% : 1.03 [16:50:42]line НДС 12% : 12.32 [16:50:42]line Наличными: 116.00 [16:50:42]line Безнал.: 0.00 [16:50:42]line Место: АЗС № 127 "Партнер Нефть" [16:50:42]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [16:50:42]line СНО: Общий режим [16:50:42]line Чек 147 28.07.2024 16:50 [16:50:42]line Смена: 13 ФФД: 1.0 [16:50:42]line ЗНМ: 0300000161 [16:50:42]line РНМ: 0000000000189667 [16:50:42]line Версия ККМ: v1.0 [16:50:42]line ФМ: 0000000002094248 [16:50:42]line ФД: 2096 [16:50:42]line ФПД: 22451219659830 [16:50:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T165047&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2096&fm=22451219659830&tin=02508201610067®Number=0000000000189667&sum=11600 [16:50:42]Connected sock=10 [16:50:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 A5 01 00 00 28 F2 9D 01 3E F6 5A 03 01 00 03 00 91 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 36 39 06 04 2E 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 A1 D0 AB D0 A0 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 31 39 31 06 04 29 00 D0 A1 D1 83 D1 85 20 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 D1 81 D0 B0 D0 BB D1 8F D0 BC D0 B8 20 34 30 D0 B3 FF 03 08 00 03 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 50 2D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 04 00 00 00 00 07 04 06 00 50 2D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 E7 76 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 30 08 00 00 35 04 06 00 14 6B 54 F8 FC 36 AA AF AE 9E 2C 8C 79 F4 [16:50:42]line 0 [16:50:42]written 0, free lines is 4095 [16:50:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 6C AD 47 00 75 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 30 08 00 00 F4 03 04 00 56 22 A6 66 B6 04 01 00 00 CB 6C AC 18 4F 98 B3 77 [16:50:43]CommunicateWithHost err = 0 [16:50:43]CheckOFDResponse [16:50:43]1017 (14) - 77093643461234 [16:50:43]1041 (16) - 0000000002094248 [16:50:43]1040 (4) - 2096 [16:50:43]1012 (4) - 28.07.2024 10:49 [16:50:43]1206 (1) - 0 [16:50:43]OFD Sender: Remove packet 2096 [16:50:43]ProducePacketName [16:50:43]name=ofd_packets/00002096 [16:50:43]NVStorageDeleteData [16:50:43]Write to MH i2c: 01 00 00 24 59 7D [16:50:43]Write i2c OK [16:50:43]MH_I2C_Read... [16:50:43]Read from MH i2c: 01 [16:50:43]MH_I2C_Read... [16:50:43]Read from MH i2c: 01 07 00 [16:50:43]MH_I2C_Read... [16:50:43]Read from MH i2c: 01 07 00 24 59 00 00 00 00 00 B6 0C 46 [16:50:43]RasterBufferAndPrint [16:50:43]line [16:50:43]line [16:50:43]line [16:50:43]line [16:50:43]line [16:50:43]written 0, free lines is 3265 [16:50:43]MH_Cut [16:50:43]Write to MH i2c: D1 01 00 2B 59 01 56 [16:50:43]Write i2c OK [16:50:43]MH_I2C_Read... [16:50:43]Read from MH i2c: D1 [16:50:43]MH_I2C_Read... [16:50:43]Read from MH i2c: D1 01 00 [16:50:43]MH_I2C_Read... [16:50:43]Read from MH i2c: D1 01 00 2B 59 00 55 [16:50:43]Write to MH i2c: 01 00 00 2C 59 85 [16:50:43]Write i2c OK [16:50:43]MH_I2C_Read... [16:50:43]OFD Sender: No OFD packet to send [16:50:44]*** Cut start [16:50:44]*** Partial cut [16:50:44]*** CUTSNS_PIN = 1 [16:50:44]*** CUTSNS_PIN = 0 [16:50:44]*** Brake cut motor [16:50:44]Read from MH i2c: 01 [16:50:44]MH_I2C_Read... [16:50:44]*** Stop cut motor [16:50:44]*** Cut end [16:50:44]Read from MH i2c: 01 07 00 [16:50:44]MH_I2C_Read... [16:50:44]Read from MH i2c: 01 07 00 2C 59 00 00 00 00 00 FF 0F 9A [16:50:44]process_action close_receipt done [16:50:44]requested_data is exist [16:50:44]produce_requested_data [16:50:44]requested_item fm.sn is exist - process it [16:50:44]wFMCommunicate request_size=4 [16:50:44]MH_SAM_APDU [16:50:44]CAPDU: 80 11 00 00 [16:50:44]Write to MH i2c: E2 08 00 2D 59 80 11 00 00 00 00 00 00 00 [16:50:44]Write i2c OK [16:50:44]MH_I2C_Read... [16:50:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:44]Read from MH i2c: E2 [16:50:44]MH_I2C_Read... [16:50:44]Read from MH i2c: E2 17 00 [16:50:44]MH_I2C_Read... [16:50:44]Read from MH i2c: E2 17 00 2D 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 50 [16:50:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [16:50:44]wFMCommunicate OK [16:50:44]requested_item fd.num is exist - process it [16:50:44]SAM_PROTO_GetFieldsCounters [16:50:44]wFMCommunicate request_size=4 [16:50:44]MH_SAM_APDU [16:50:44]CAPDU: 80 13 00 00 [16:50:44]Write to MH i2c: E2 08 00 2E 59 80 13 00 00 00 00 00 00 03 [16:50:44]Write i2c OK [16:50:44]MH_I2C_Read... [16:50:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:50:44]Read from MH i2c: E2 [16:50:44]MH_I2C_Read... [16:50:44]Read from MH i2c: E2 62 00 [16:50:44]MH_I2C_Read... [16:50:44]Read from MH i2c: E2 62 00 2E 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 30 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 2B [16:50:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 30 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:50:44]wFMCommunicate OK [16:50:44]SAM_PROTO_GetFieldsCounters done [16:50:44]requested_item shift.num is exist - process it [16:50:44]requested_item shift.opened is exist - process it [16:50:44]req_shift_opened [16:50:44]FM_GetShiftState [16:50:44]SAM_PROTO_GetShiftState [16:50:44]wFMCommunicate request_size=4 [16:50:44]MH_SAM_APDU [16:50:44]CAPDU: 80 13 01 00 [16:50:44]Write to MH i2c: E2 08 00 2F 59 80 13 01 00 00 00 00 00 05 [16:50:44]Write i2c OK [16:50:44]MH_I2C_Read... [16:50:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:44]Read from MH i2c: E2 [16:50:44]MH_I2C_Read... [16:50:44]Read from MH i2c: E2 0E 00 [16:50:44]MH_I2C_Read... [16:50:44]Read from MH i2c: E2 0E 00 2F 59 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 F9 [16:50:44]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [16:50:44]wFMCommunicate OK [16:50:44]SAM_PROTO_GetShiftState done [16:50:44]FM_GetShiftState done [16:50:44]req_shift_opened done [16:50:44]requested_item shift.open_date is exist - process it [16:50:44]req_shift_open_date [16:50:44]req_shift_open_date done [16:50:44]produce_requested_data done [16:50:44]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2096,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [16:50:44]process_action_free close_receipt [16:50:44]json_value_free [16:50:44]json_value_free done [16:50:44]process_json_proto returns [16:50:44]Send response to host [16:50:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2096,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [16:50:44]free response buf [16:50:44]execute_script done [16:50:44]execute_script returns [16:50:44]free content buf [16:50:44]Sock 8.Close socket [16:50:44]Sock 8.Thread stoped [16:50:48]OFD Sender: No OFD packet to send [16:50:53]OFD Sender: No OFD packet to send [16:50:58]OFD Sender: No OFD packet to send [16:51:03]OFD Sender: No OFD packet to send [16:51:08]OFD Sender: No OFD packet to send [16:51:13]OFD Sender: No OFD packet to send [16:51:18]OFD Sender: No OFD packet to send [16:51:23]OFD Sender: No OFD packet to send [16:51:28]OFD Sender: No OFD packet to send [16:51:33]OFD Sender: No OFD packet to send [16:51:38]OFD Sender: No OFD packet to send [16:51:43]accept exits with 9 [16:51:43]New connection [16:51:43]New thread 3067460964 created [16:51:43]Thread 3067317604 joined [16:51:43]Waiting for new connection... [16:51:43] Sock 9.Parse request [16:51:43]Sock 9.Check first char [16:51:43]Sock 9.First char is OK [16:51:43]request: POST /json_proto HTTP/1.0 [16:51:43]Method: POST [16:51:43]URL: /json_proto [16:51:43]Method is POST - this is cgi request [16:51:43]url: /json_proto [16:51:43]query_string will be loaded in cgi processing [16:51:43]execute_cgi json_proto POST (null) [16:51:43]execute_cgi path=json_proto method=POST [16:51:43]POST find Content-Length [16:51:43]Host: 172.17.45.132:8080 [16:51:43]Content-Length: 656 [16:51:43]Content-Type: application/json [16:51:43] [16:51:43]POST finish read [16:51:43]Found Content-Length = 656 [16:51:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126396", "tax_sys" : 0, "items" : [ { "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 4.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:51:43]execute_script... [16:51: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)126396", "tax_sys" : 0, "items" : [ { "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 4.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:51:43]POST & json_proto [16:51:43]process_json_proto [16:51:43]json parsed OK: [16:51:43]protocol is kg_v1.0 [16:51:43]action value=close_receipt [16:51:43]process_action close_receipt [16:51:43]cmd_close_receipt [16:51:43]MH_GetDate [16:51:43]Write to MH i2c: F0 00 00 30 59 78 [16:51:43]Write i2c OK [16:51:43]MH_I2C_Read... [16:51:43]Read from MH i2c: F0 [16:51:43]MH_I2C_Read... [16:51:43]Read from MH i2c: F0 09 00 [16:51:43]MH_I2C_Read... [16:51:43]Read from MH i2c: F0 09 00 30 59 00 25 77 A6 66 E3 0B 90 66 0D [16:51:43]GetLastDocTimeStamp 1722185447 [16:51:43]current date 1722185509 [16:51:43]FM_GetShiftState [16:51:43]SAM_PROTO_GetShiftState [16:51:43]wFMCommunicate request_size=4 [16:51:43]MH_SAM_APDU [16:51:43]CAPDU: 80 13 01 00 [16:51:43]Write to MH i2c: E2 08 00 31 59 80 13 01 00 00 00 00 00 07 [16:51:43]Write i2c OK [16:51:43]MH_I2C_Read... [16:51:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:51:43]Read from MH i2c: E2 [16:51:43]MH_I2C_Read... [16:51:43]Read from MH i2c: E2 0E 00 [16:51:43]MH_I2C_Read... [16:51:43]Read from MH i2c: E2 0E 00 31 59 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 FB [16:51:43]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [16:51:43]wFMCommunicate OK [16:51:43]SAM_PROTO_GetShiftState done [16:51:43]FM_GetShiftState done [16:51:43]opened in 1722125648 [16:51:43]opened+sec_in_day 1722212048 [16:51:43]quantity*price = 400 [16:51:43]sum+1 = 401 [16:51:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4.00 НСП 1% : 0.03 НДС 12% : 0.42 Наличными: 4.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 148 28.07.2024 16:51 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2097 ФПД: 174875832566915 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T165150&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2097&fm=174875832566915&tin=02508201610067®Number=0000000000189667&sum=400 0 [16:51:44]StoreToDocumentArchive [16:51:44]shift 13 fd 2097 [16:51:44]save to /storage/0013/doc_00002097 [16:51:44]save last doc name /storage/0013/doc_00002097 to /storage/kkm_last_doc_name [16:51:44]save OK [16:51:44]Clear old archive folders... [16:51:44]ProcessDocumentItem done err = 0, tmpTLVsize=278 [16:51:44]tlvbuf is 01F38540 [16:51:44]SAM_PROTO_ClearQueue [16:51:44]wFMCommunicate request_size=4 [16:51:44]MH_SAM_APDU [16:51:44]CAPDU: 80 09 00 00 [16:51:44]Write to MH i2c: E2 08 00 3E 59 80 09 00 00 00 00 00 00 09 [16:51:44]Write i2c OK [16:51:44]MH_I2C_Read... [16:51:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:51:44]Read from MH i2c: E2 [16:51:44]MH_I2C_Read... [16:51:44]Read from MH i2c: E2 03 00 [16:51:44]MH_I2C_Read... [16:51:44]Read from MH i2c: E2 03 00 3E 59 00 90 00 0B [16:51:44]RAPDU: 90 00 [16:51:44]wFMCommunicate OK [16:51:44]SAM_PROTO_ClearQueue done [16:51:44]KKMCreateOFDPacket [16:51:44]OFDProtocolAddRootSTLVToBuf [16:51:44]FM_MakeSignedData [16:51:44]FM_MakeSignedData [16:51:44]SAM_PROTO_SignData [16:51:44]wFMCommunicate request_size=4 [16:51:44]MH_SAM_APDU [16:51:44]CAPDU: 80 0D 01 02 [16:51:44]Write to MH i2c: E2 08 00 3F 59 80 0D 01 02 00 00 00 00 11 [16:51:44]Write i2c OK [16:51:44]MH_I2C_Read... [16:51:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:51:44]Read from MH i2c: E2 [16:51:44]MH_I2C_Read... [16:51:44]Read from MH i2c: E2 03 00 [16:51:44]MH_I2C_Read... [16:51:44]Read from MH i2c: E2 03 00 3F 59 00 90 00 0C [16:51:44]RAPDU: 90 00 [16:51:44]wFMCommunicate OK [16:51:44]wFMCommunicate request_size=255 [16:51:44]MH_SAM_APDU [16:51:44]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 00 00 00 00 00 07 04 06 00 90 01 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 26 77 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 [16:51:44]Write to MH i2c: E2 02 01 40 59 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 00 00 00 00 00 07 04 06 00 90 01 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 26 77 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 00 00 A4 [16:51:44]Write i2c OK [16:51:44]MH_I2C_Read... [16:51:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:51:44]Read from MH i2c: E2 [16:51:44]MH_I2C_Read... [16:51:44]Read from MH i2c: E2 03 00 [16:51:44]MH_I2C_Read... [16:51:44]Read from MH i2c: E2 03 00 40 59 00 90 00 0D [16:51:44]RAPDU: 90 00 [16:51:44]wFMCommunicate OK [16:51:44]wFMCommunicate request_size=37 [16:51:44]MH_SAM_APDU [16:51:44]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 31 08 00 00 35 04 06 00 9F 0C 73 E1 44 83 [16:51:44]Write to MH i2c: E2 28 00 41 59 80 0D 02 02 20 00 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 31 08 00 00 35 04 06 00 9F 0C 73 E1 44 83 00 00 67 [16:51:44]Write i2c OK [16:51:44]MH_I2C_Read... [16:51:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:51:44]Read from MH i2c: E2 [16:51:44]MH_I2C_Read... [16:51:44]Read from MH i2c: E2 03 00 [16:51:44]MH_I2C_Read... [16:51:44]Read from MH i2c: E2 03 00 41 59 00 90 00 0E [16:51:44]RAPDU: 90 00 [16:51:44]wFMCommunicate OK [16:51:44]wFMCommunicate request_size=4 [16:51:44]MH_SAM_APDU [16:51:44]CAPDU: 80 0D 03 02 [16:51:44]Write to MH i2c: E2 08 00 42 59 80 0D 03 02 00 00 00 00 16 [16:51:44]Write i2c OK [16:51:45]MH_I2C_Read... [16:51:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:51:45]Read from MH i2c: E2 [16:51:45]MH_I2C_Read... [16:51:45]Read from MH i2c: E2 0B 00 [16:51:45]MH_I2C_Read... [16:51:45]Read from MH i2c: E2 0B 00 42 59 00 36 1A 79 EB 78 B8 19 8E 90 00 A2 [16:51:45]RAPDU: 36 1A 79 EB 78 B8 19 8E 90 00 [16:51:45]wFMCommunicate OK [16:51:45]SAM_PROTO_SignData done [16:51:45]FM_MakeSignedData done [16:51:45]CreateOFDProtocolMessage [16:51:45]wFMCommunicate request_size=4 [16:51:45]MH_SAM_APDU [16:51:45]CAPDU: 80 11 00 00 [16:51:45]Write to MH i2c: E2 08 00 43 59 80 11 00 00 00 00 00 00 16 [16:51:45]Write i2c OK [16:51:45]MH_I2C_Read... [16:51:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:51:45]Read from MH i2c: E2 [16:51:45]MH_I2C_Read... [16:51:45]Read from MH i2c: E2 17 00 [16:51:45]MH_I2C_Read... [16:51:45]Read from MH i2c: E2 17 00 43 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 66 [16:51:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [16:51:45]wFMCommunicate OK [16:51:45]CreateOFDProtocolMessage done [16:51:45]OFDSenderStorePacket 2097 [16:51:45]StoreOFDPacket docnum=2097 [16:51:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2A 01 00 00 52 B9 22 01 40 D3 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 00 00 00 00 00 07 04 06 00 90 01 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 26 77 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 31 08 00 00 35 04 06 00 9F 0C 73 E1 44 83 36 1A 79 EB 78 B8 19 8E [16:51:45]CheckFolder [16:51:45]dirname=/storage/ofd_packets [16:51:45]CheckFolder done [16:51:45]ProducePacketName [16:51:45]name=ofd_packets/00002097 [16:51:45]NVStorageSaveData ofd_packets/00002097 [16:51:45]File name is /storage/ofd_packets/00002097 [16:51:45]Write 328 bytes [16:51:45]NVStorageSaveData done [16:51:45]OFDSenderStorePacket done [16:51:45]KKMCreateOFDPacket done [16:51:45]NVStorageSaveData kkm_last_timestamp [16:51:45]File name is /storage/kkm_last_timestamp [16:51:45]Write 4 bytes [16:51:45]NVStorageSaveData done [16:51:45]ExternCall_PrintAddStr [16:51:45]wPrintStart [16:51:45]Write to MH i2c: 01 00 00 44 59 9D [16:51:45]Write i2c OK [16:51:45]MH_I2C_Read... [16:51:45]Read from MH i2c: 01 [16:51:45]MH_I2C_Read... [16:51:45]Read from MH i2c: 01 07 00 [16:51:45]MH_I2C_Read... [16:51:45]Read from MH i2c: 01 07 00 44 59 00 00 00 00 00 FF 0F B2 [16:51:45]RasterBufferAndPrint [16:51:45]line Счет N : (3)126396 [16:51:45]line ИНН: 02508201610067 [16:51:45]line Контрольно-Кассовый Чек [16:51:45]line ПРОДАЖА [16:51:45]line Товар: 2000031750019 [16:51:45]line Пакет Партнер Нефть [16:51:45]line 1.000 * 4.00 [16:51:45]line = 4.00 [16:51:45]line НДС 12% НСП 1% [16:51:45]line > о реализуемом товаре [16:51:45]line ИТОГО: 4.00 [16:51:45]line НСП 1% : 0.03 [16:51:45]line НДС 12% : 0.42 [16:51:45]line Наличными: 4.00 [16:51:45]line Безнал.: 0.00 [16:51:45]line Место: АЗС № 127 "Партнер Нефть" [16:51:45]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [16:51:45]line СНО: Общий режим [16:51:45]line Чек 148 28.07.2024 16:51 [16:51:45]line Смена: 13 ФФД: 1.0 [16:51:45]line ЗНМ: 0300000161 [16:51:45]line РНМ: 0000000000189667 [16:51:45]line Версия ККМ: v1.0 [16:51:45]line ФМ: 0000000002094248 [16:51:45]line ФД: 2097 [16:51:45]line ФПД: 174875832566915 [16:51:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T165150&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2097&fm=174875832566915&tin=02508201610067®Number=0000000000189667&sum=400 [16:51:45]line 0 [16:51:45]OFD Sender: Processing packet 2097 [packets to send 1, broken 0] [16:51:45]ProducePacketName [16:51:45]name=ofd_packets/00002097 [16:51:45]OFD Sender: To server: pG, [16:51:45]CommunicateWithHost lk.salyk.kg:30040 [16:51:45]ConnectInit lk.salyk.kg [16:51:45]written 0, free lines is 4095 [16:51:45]Connected sock=10 [16:51:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2A 01 00 00 52 B9 22 01 40 D3 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 00 00 00 00 00 07 04 06 00 90 01 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 26 77 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 31 08 00 00 35 04 06 00 9F 0C 73 E1 44 83 36 1A 79 EB 78 B8 19 8E [16:51:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 27 6B 47 00 E6 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 32 30 39 34 32 34 38 10 04 04 00 31 08 00 00 F4 03 04 00 95 22 A6 66 B6 04 01 00 00 62 6C 6B 3C 32 31 1D FE [16:51:45]CommunicateWithHost err = 0 [16:51:45]CheckOFDResponse [16:51:45]1017 (14) - 77093643461234 [16:51:45]1041 (16) - 0000000002094248 [16:51:45]1040 (4) - 2097 [16:51:45]1012 (4) - 28.07.2024 10:51 [16:51:45]1206 (1) - 0 [16:51:45]OFD Sender: Remove packet 2097 [16:51:45]ProducePacketName [16:51:45]name=ofd_packets/00002097 [16:51:45]NVStorageDeleteData [16:51:45]Write to MH i2c: 01 00 00 6C 59 C5 [16:51:45]Write i2c OK [16:51:45]MH_I2C_Read... [16:51:45]Read from MH i2c: 01 [16:51:45]MH_I2C_Read... [16:51:45]Read from MH i2c: 01 07 00 [16:51:45]MH_I2C_Read... [16:51:45]Read from MH i2c: 01 07 00 6C 59 00 00 00 00 00 1F 0D F8 [16:51:45]RasterBufferAndPrint [16:51:45]line [16:51:45]line [16:51:45]line [16:51:45]line [16:51:45]line [16:51:45]written 0, free lines is 3365 [16:51:45]MH_Cut [16:51:45]Write to MH i2c: D1 01 00 73 59 01 9E [16:51:45]Write i2c OK [16:51:45]MH_I2C_Read... [16:51:45]Read from MH i2c: D1 [16:51:45]MH_I2C_Read... [16:51:45]Read from MH i2c: D1 01 00 [16:51:45]MH_I2C_Read... [16:51:45]Read from MH i2c: D1 01 00 73 59 00 9D [16:51:45]Write to MH i2c: 01 00 00 74 59 CD [16:51:45]Write i2c OK [16:51:45]MH_I2C_Read... [16:51:46]OFD Sender: No OFD packet to send [16:51:46]*** Cut start [16:51:46]*** Partial cut [16:51:46]*** CUTSNS_PIN = 1 [16:51:46]*** CUTSNS_PIN = 0 [16:51:46]*** Brake cut motor [16:51:47]Read from MH i2c: 01 [16:51:47]MH_I2C_Read... [16:51:47]*** Stop cut motor [16:51:47]*** Cut end [16:51:47]Read from MH i2c: 01 07 00 [16:51:47]MH_I2C_Read... [16:51:47]Read from MH i2c: 01 07 00 74 59 00 00 00 00 00 FF 0F E2 [16:51:47]process_action close_receipt done [16:51:47]requested_data is exist [16:51:47]produce_requested_data [16:51:47]requested_item fm.sn is exist - process it [16:51:47]wFMCommunicate request_size=4 [16:51:47]MH_SAM_APDU [16:51:47]CAPDU: 80 11 00 00 [16:51:47]Write to MH i2c: E2 08 00 75 59 80 11 00 00 00 00 00 00 48 [16:51:47]Write i2c OK [16:51:47]MH_I2C_Read... [16:51:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:51:47]Read from MH i2c: E2 [16:51:47]MH_I2C_Read... [16:51:47]Read from MH i2c: E2 17 00 [16:51:47]MH_I2C_Read... [16:51:47]Read from MH i2c: E2 17 00 75 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 98 [16:51:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [16:51:47]wFMCommunicate OK [16:51:47]requested_item fd.num is exist - process it [16:51:47]SAM_PROTO_GetFieldsCounters [16:51:47]wFMCommunicate request_size=4 [16:51:47]MH_SAM_APDU [16:51:47]CAPDU: 80 13 00 00 [16:51:47]Write to MH i2c: E2 08 00 76 59 80 13 00 00 00 00 00 00 4B [16:51:47]Write i2c OK [16:51:47]MH_I2C_Read... [16:51:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:51:47]Read from MH i2c: E2 [16:51:47]MH_I2C_Read... [16:51:47]Read from MH i2c: E2 62 00 [16:51:47]MH_I2C_Read... [16:51:47]Read from MH i2c: E2 62 00 76 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 31 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 77 [16:51:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 31 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:51:47]wFMCommunicate OK [16:51:47]SAM_PROTO_GetFieldsCounters done [16:51:47]requested_item shift.num is exist - process it [16:51:47]requested_item shift.opened is exist - process it [16:51:47]req_shift_opened [16:51:47]FM_GetShiftState [16:51:47]SAM_PROTO_GetShiftState [16:51:47]wFMCommunicate request_size=4 [16:51:47]MH_SAM_APDU [16:51:47]CAPDU: 80 13 01 00 [16:51:47]Write to MH i2c: E2 08 00 77 59 80 13 01 00 00 00 00 00 4D [16:51:47]Write i2c OK [16:51:47]MH_I2C_Read... [16:51:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:51:47]Read from MH i2c: E2 [16:51:47]MH_I2C_Read... [16:51:47]Read from MH i2c: E2 0E 00 [16:51:47]MH_I2C_Read... [16:51:47]Read from MH i2c: E2 0E 00 77 59 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 41 [16:51:47]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [16:51:47]wFMCommunicate OK [16:51:47]SAM_PROTO_GetShiftState done [16:51:47]FM_GetShiftState done [16:51:47]req_shift_opened done [16:51:47]requested_item shift.open_date is exist - process it [16:51:47]req_shift_open_date [16:51:47]req_shift_open_date done [16:51:47]produce_requested_data done [16:51:47]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2097,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [16:51:47]process_action_free close_receipt [16:51:47]json_value_free [16:51:47]json_value_free done [16:51:47]process_json_proto returns [16:51:47]Send response to host [16:51:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2097,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [16:51:47]free response buf [16:51:47]execute_script done [16:51:47]execute_script returns [16:51:47]free content buf [16:51:47]Sock 9.Close socket [16:51:47]Sock 9.Thread stoped [16:51:51]OFD Sender: No OFD packet to send [16:51:56]OFD Sender: No OFD packet to send [16:52:00]accept exits with 8 [16:52:00]New connection [16:52:00]New thread 3067317604 created [16:52:00]Thread 3067460964 joined [16:52:00]Waiting for new connection... [16:52:00] Sock 8.Parse request [16:52:00]Sock 8.Check first char [16:52:00]Sock 8.First char is OK [16:52:00]request: POST /json_proto HTTP/1.0 [16:52:00]Method: POST [16:52:00]URL: /json_proto [16:52:00]Method is POST - this is cgi request [16:52:00]url: /json_proto [16:52:00]query_string will be loaded in cgi processing [16:52:00]execute_cgi json_proto POST (null) [16:52:00]execute_cgi path=json_proto method=POST [16:52:00]POST find Content-Length [16:52:00]Host: 172.17.45.132:8080 [16:52:00]Content-Length: 656 [16:52:00]Content-Type: application/json [16:52:00] [16:52:00]POST finish read [16:52:00]Found Content-Length = 656 [16:52:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126397", "tax_sys" : 0, "items" : [ { "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 4.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:52:00]execute_script... [16:52: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)126397", "tax_sys" : 0, "items" : [ { "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 4.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:52:00]POST & json_proto [16:52:00]process_json_proto [16:52:00]json parsed OK: [16:52:00]protocol is kg_v1.0 [16:52:00]action value=close_receipt [16:52:00]process_action close_receipt [16:52:00]cmd_close_receipt [16:52:00]MH_GetDate [16:52:00]Write to MH i2c: F0 00 00 78 59 C0 [16:52:00]Write i2c OK [16:52:00]MH_I2C_Read... [16:52:00]Read from MH i2c: F0 [16:52:00]MH_I2C_Read... [16:52:00]Read from MH i2c: F0 09 00 [16:52:00]MH_I2C_Read... [16:52:00]Read from MH i2c: F0 09 00 78 59 00 36 77 A6 66 E3 0B 90 66 66 [16:52:00]GetLastDocTimeStamp 1722185510 [16:52:00]current date 1722185526 [16:52:00]FM_GetShiftState [16:52:00]SAM_PROTO_GetShiftState [16:52:00]wFMCommunicate request_size=4 [16:52:00]MH_SAM_APDU [16:52:00]CAPDU: 80 13 01 00 [16:52:00]Write to MH i2c: E2 08 00 79 59 80 13 01 00 00 00 00 00 4F [16:52:00]Write i2c OK [16:52:00]MH_I2C_Read... [16:52:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:00]Read from MH i2c: E2 [16:52:00]MH_I2C_Read... [16:52:00]Read from MH i2c: E2 0E 00 [16:52:00]MH_I2C_Read... [16:52:00]Read from MH i2c: E2 0E 00 79 59 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 43 [16:52:00]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [16:52:00]wFMCommunicate OK [16:52:00]SAM_PROTO_GetShiftState done [16:52:00]FM_GetShiftState done [16:52:00]opened in 1722125648 [16:52:00]opened+sec_in_day 1722212048 [16:52:00]quantity*price = 400 [16:52:00]sum+1 = 401 [16:52:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4.00 НСП 1% : 0.03 НДС 12% : 0.42 Наличными: 4.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 149 28.07.2024 16:52 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2098 ФПД: 86059225133391 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T165207&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2098&fm=86059225133391&tin=02508201610067®Number=0000000000189667&sum=400 0 [16:52:01]StoreToDocumentArchive [16:52:01]shift 13 fd 2098 [16:52:01]save to /storage/0013/doc_00002098 [16:52:01]save last doc name /storage/0013/doc_00002098 to /storage/kkm_last_doc_name [16:52:01]save OK [16:52:01]Clear old archive folders... [16:52:01]ProcessDocumentItem done err = 0, tmpTLVsize=278 [16:52:01]tlvbuf is 020E4780 [16:52:01]SAM_PROTO_ClearQueue [16:52:01]wFMCommunicate request_size=4 [16:52:01]MH_SAM_APDU [16:52:01]CAPDU: 80 09 00 00 [16:52:01]Write to MH i2c: E2 08 00 86 59 80 09 00 00 00 00 00 00 51 [16:52:01]Write i2c OK [16:52:01]MH_I2C_Read... [16:52:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:52:01]Read from MH i2c: E2 [16:52:01]MH_I2C_Read... [16:52:01]Read from MH i2c: E2 03 00 [16:52:01]MH_I2C_Read... [16:52:01]Read from MH i2c: E2 03 00 86 59 00 90 00 53 [16:52:01]RAPDU: 90 00 [16:52:01]wFMCommunicate OK [16:52:01]SAM_PROTO_ClearQueue done [16:52:01]KKMCreateOFDPacket [16:52:01]OFDProtocolAddRootSTLVToBuf [16:52:01]FM_MakeSignedData [16:52:01]FM_MakeSignedData [16:52:01]SAM_PROTO_SignData [16:52:01]wFMCommunicate request_size=4 [16:52:01]MH_SAM_APDU [16:52:01]CAPDU: 80 0D 01 02 [16:52:01]Write to MH i2c: E2 08 00 87 59 80 0D 01 02 00 00 00 00 59 [16:52:01]Write i2c OK [16:52:01]MH_I2C_Read... [16:52:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:52:01]Read from MH i2c: E2 [16:52:01]MH_I2C_Read... [16:52:01]Read from MH i2c: E2 03 00 [16:52:01]MH_I2C_Read... [16:52:01]Read from MH i2c: E2 03 00 87 59 00 90 00 54 [16:52:01]RAPDU: 90 00 [16:52:01]wFMCommunicate OK [16:52:01]wFMCommunicate request_size=255 [16:52:01]MH_SAM_APDU [16:52:01]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 00 00 00 00 00 07 04 06 00 90 01 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 37 77 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 [16:52:01]Write to MH i2c: E2 02 01 88 59 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 00 00 00 00 00 07 04 06 00 90 01 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 37 77 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 00 00 FE [16:52:01]Write i2c OK [16:52:01]MH_I2C_Read... [16:52:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:01]Read from MH i2c: E2 [16:52:01]MH_I2C_Read... [16:52:01]Read from MH i2c: E2 03 00 [16:52:01]MH_I2C_Read... [16:52:01]Read from MH i2c: E2 03 00 88 59 00 90 00 55 [16:52:01]RAPDU: 90 00 [16:52:01]wFMCommunicate OK [16:52:01]wFMCommunicate request_size=37 [16:52:01]MH_SAM_APDU [16:52:01]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 32 08 00 00 35 04 06 00 4E 45 39 8B 31 4F [16:52:01]Write to MH i2c: E2 28 00 89 59 80 0D 02 02 20 00 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 32 08 00 00 35 04 06 00 4E 45 39 8B 31 4F 00 00 C1 [16:52:01]Write i2c OK [16:52:01]MH_I2C_Read... [16:52:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:02]Read from MH i2c: E2 [16:52:02]MH_I2C_Read... [16:52:02]Read from MH i2c: E2 03 00 [16:52:02]MH_I2C_Read... [16:52:02]Read from MH i2c: E2 03 00 89 59 00 90 00 56 [16:52:02]RAPDU: 90 00 [16:52:02]wFMCommunicate OK [16:52:02]wFMCommunicate request_size=4 [16:52:02]MH_SAM_APDU [16:52:02]CAPDU: 80 0D 03 02 [16:52:02]Write to MH i2c: E2 08 00 8A 59 80 0D 03 02 00 00 00 00 5E [16:52:02]Write i2c OK [16:52:02]MH_I2C_Read... [16:52:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:52:02]Read from MH i2c: E2 [16:52:02]MH_I2C_Read... [16:52:02]Read from MH i2c: E2 0B 00 [16:52:02]MH_I2C_Read... [16:52:02]Read from MH i2c: E2 0B 00 8A 59 00 0C 76 05 72 10 20 B0 57 90 00 8F [16:52:02]RAPDU: 0C 76 05 72 10 20 B0 57 90 00 [16:52:02]wFMCommunicate OK [16:52:02]SAM_PROTO_SignData done [16:52:02]FM_MakeSignedData done [16:52:02]CreateOFDProtocolMessage [16:52:02]wFMCommunicate request_size=4 [16:52:02]MH_SAM_APDU [16:52:02]CAPDU: 80 11 00 00 [16:52:02]Write to MH i2c: E2 08 00 8B 59 80 11 00 00 00 00 00 00 5E [16:52:02]Write i2c OK [16:52:02]MH_I2C_Read... [16:52:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:02]Read from MH i2c: E2 [16:52:02]MH_I2C_Read... [16:52:02]Read from MH i2c: E2 17 00 [16:52:02]MH_I2C_Read... [16:52:02]Read from MH i2c: E2 17 00 8B 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 AE [16:52:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [16:52:02]wFMCommunicate OK [16:52:02]CreateOFDProtocolMessage done [16:52:02]OFDSenderStorePacket 2098 [16:52:02]StoreOFDPacket docnum=2098 [16:52:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2A 01 00 00 7F 54 22 01 B6 19 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 00 00 00 00 00 07 04 06 00 90 01 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 37 77 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 32 08 00 00 35 04 06 00 4E 45 39 8B 31 4F 0C 76 05 72 10 20 B0 57 [16:52:02]CheckFolder [16:52:02]dirname=/storage/ofd_packets [16:52:02]CheckFolder done [16:52:02]ProducePacketName [16:52:02]name=ofd_packets/00002098 [16:52:02]NVStorageSaveData ofd_packets/00002098 [16:52:02]File name is /storage/ofd_packets/00002098 [16:52:02]Write 328 bytes [16:52:02]NVStorageSaveData done [16:52:02]OFDSenderStorePacket done [16:52:02]KKMCreateOFDPacket done [16:52:02]NVStorageSaveData kkm_last_timestamp [16:52:02]File name is /storage/kkm_last_timestamp [16:52:02]Write 4 bytes [16:52:02]NVStorageSaveData done [16:52:02]ExternCall_PrintAddStr [16:52:02]wPrintStart [16:52:02]Write to MH i2c: 01 00 00 8C 59 E5 [16:52:02]Write i2c OK [16:52:02]MH_I2C_Read... [16:52:02]Read from MH i2c: 01 [16:52:02]MH_I2C_Read... [16:52:02]Read from MH i2c: 01 07 00 [16:52:02]MH_I2C_Read... [16:52:02]Read from MH i2c: 01 07 00 8C 59 00 00 00 00 00 FF 0F FA [16:52:02]RasterBufferAndPrint [16:52:02]line Счет N : (3)126397 [16:52:02]line ИНН: 02508201610067 [16:52:02]line Контрольно-Кассовый Чек [16:52:02]line ПРОДАЖА [16:52:02]line Товар: 2000031750019 [16:52:02]line Пакет Партнер Нефть [16:52:02]line 1.000 * 4.00 [16:52:02]line = 4.00 [16:52:02]line НДС 12% НСП 1% [16:52:02]line > о реализуемом товаре [16:52:02]line ИТОГО: 4.00 [16:52:02]line НСП 1% : 0.03 [16:52:02]line НДС 12% : 0.42 [16:52:02]line Наличными: 4.00 [16:52:02]line Безнал.: 0.00 [16:52:02]line Место: АЗС № 127 "Партнер Нефть" [16:52:02]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [16:52:02]line СНО: Общий режим [16:52:02]line Чек 149 28.07.2024 16:52 [16:52:02]line Смена: 13 ФФД: 1.0 [16:52:02]line ЗНМ: 0300000161 [16:52:02]line РНМ: 0000000000189667 [16:52:02]line Версия ККМ: v1.0 [16:52:02]line ФМ: 0000000002094248 [16:52:02]line ФД: 2098 [16:52:02]line ФПД: 86059225133391 [16:52:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T165207&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2098&fm=86059225133391&tin=02508201610067®Number=0000000000189667&sum=400 [16:52:02]line 0 [16:52:02]OFD Sender: Processing packet 2098 [packets to send 1, broken 0] [16:52:02]ProducePacketName [16:52:02]name=ofd_packets/00002098 [16:52:02]OFD Sender: To server: pG, [16:52:02]CommunicateWithHost lk.salyk.kg:30040 [16:52:02]ConnectInit lk.salyk.kg [16:52:02]written 0, free lines is 4095 [16:52:02]Connected sock=9 [16:52:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2A 01 00 00 7F 54 22 01 B6 19 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 00 00 00 00 00 07 04 06 00 90 01 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 37 77 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 32 08 00 00 35 04 06 00 4E 45 39 8B 31 4F 0C 76 05 72 10 20 B0 57 [16:52:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 0A FE 47 00 86 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 32 08 00 00 F4 03 04 00 A6 22 A6 66 B6 04 01 00 00 E8 E1 40 85 02 CA B2 26 [16:52:02]CommunicateWithHost err = 0 [16:52:02]CheckOFDResponse [16:52:02]1017 (14) - 77093643461234 [16:52:02]1041 (16) - 0000000002094248 [16:52:02]1040 (4) - 2098 [16:52:02]1012 (4) - 28.07.2024 10:51 [16:52:02]1206 (1) - 0 [16:52:02]OFD Sender: Remove packet 2098 [16:52:02]ProducePacketName [16:52:02]name=ofd_packets/00002098 [16:52:02]NVStorageDeleteData [16:52:02]Write to MH i2c: 01 00 00 B4 59 0D [16:52:02]Write i2c OK [16:52:02]MH_I2C_Read... [16:52:02]Read from MH i2c: 01 [16:52:02]MH_I2C_Read... [16:52:02]Read from MH i2c: 01 07 00 [16:52:02]MH_I2C_Read... [16:52:02]Read from MH i2c: 01 07 00 B4 59 00 00 00 00 00 13 0D 34 [16:52:02]RasterBufferAndPrint [16:52:02]line [16:52:02]line [16:52:02]line [16:52:02]line [16:52:02]line [16:52:02]written 0, free lines is 3356 [16:52:02]MH_Cut [16:52:02]Write to MH i2c: D1 01 00 BB 59 01 E6 [16:52:02]Write i2c OK [16:52:02]MH_I2C_Read... [16:52:02]Read from MH i2c: D1 [16:52:02]MH_I2C_Read... [16:52:02]Read from MH i2c: D1 01 00 [16:52:02]MH_I2C_Read... [16:52:02]Read from MH i2c: D1 01 00 BB 59 00 E5 [16:52:02]Write to MH i2c: 01 00 00 BC 59 15 [16:52:02]Write i2c OK [16:52:02]MH_I2C_Read... [16:52:03]OFD Sender: No OFD packet to send [16:52:03]*** Cut start [16:52:03]*** Partial cut [16:52:03]*** CUTSNS_PIN = 1 [16:52:03]*** CUTSNS_PIN = 0 [16:52:03]*** Brake cut motor [16:52:04]Read from MH i2c: 01 [16:52:04]MH_I2C_Read... [16:52:04]*** Stop cut motor [16:52:04]*** Cut end [16:52:04]Read from MH i2c: 01 07 00 [16:52:04]MH_I2C_Read... [16:52:04]Read from MH i2c: 01 07 00 BC 59 00 00 00 00 00 FF 0F 2A [16:52:04]process_action close_receipt done [16:52:04]requested_data is exist [16:52:04]produce_requested_data [16:52:04]requested_item fm.sn is exist - process it [16:52:04]wFMCommunicate request_size=4 [16:52:04]MH_SAM_APDU [16:52:04]CAPDU: 80 11 00 00 [16:52:04]Write to MH i2c: E2 08 00 BD 59 80 11 00 00 00 00 00 00 90 [16:52:04]Write i2c OK [16:52:04]MH_I2C_Read... [16:52:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:04]Read from MH i2c: E2 [16:52:04]MH_I2C_Read... [16:52:04]Read from MH i2c: E2 17 00 [16:52:04]MH_I2C_Read... [16:52:04]Read from MH i2c: E2 17 00 BD 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 E0 [16:52:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [16:52:04]wFMCommunicate OK [16:52:04]requested_item fd.num is exist - process it [16:52:04]SAM_PROTO_GetFieldsCounters [16:52:04]wFMCommunicate request_size=4 [16:52:04]MH_SAM_APDU [16:52:04]CAPDU: 80 13 00 00 [16:52:04]Write to MH i2c: E2 08 00 BE 59 80 13 00 00 00 00 00 00 93 [16:52:04]Write i2c OK [16:52:04]MH_I2C_Read... [16:52:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:52:04]Read from MH i2c: E2 [16:52:04]MH_I2C_Read... [16:52:04]Read from MH i2c: E2 62 00 [16:52:04]MH_I2C_Read... [16:52:04]Read from MH i2c: E2 62 00 BE 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 32 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 C3 [16:52:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 32 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:52:04]wFMCommunicate OK [16:52:04]SAM_PROTO_GetFieldsCounters done [16:52:04]requested_item shift.num is exist - process it [16:52:04]requested_item shift.opened is exist - process it [16:52:04]req_shift_opened [16:52:04]FM_GetShiftState [16:52:04]SAM_PROTO_GetShiftState [16:52:04]wFMCommunicate request_size=4 [16:52:04]MH_SAM_APDU [16:52:04]CAPDU: 80 13 01 00 [16:52:04]Write to MH i2c: E2 08 00 BF 59 80 13 01 00 00 00 00 00 95 [16:52:04]Write i2c OK [16:52:04]MH_I2C_Read... [16:52:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:04]Read from MH i2c: E2 [16:52:04]MH_I2C_Read... [16:52:04]Read from MH i2c: E2 0E 00 [16:52:04]MH_I2C_Read... [16:52:04]Read from MH i2c: E2 0E 00 BF 59 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 89 [16:52:04]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [16:52:04]wFMCommunicate OK [16:52:04]SAM_PROTO_GetShiftState done [16:52:04]FM_GetShiftState done [16:52:04]req_shift_opened done [16:52:04]requested_item shift.open_date is exist - process it [16:52:04]req_shift_open_date [16:52:04]req_shift_open_date done [16:52:04]produce_requested_data done [16:52:04]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2098,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [16:52:04]process_action_free close_receipt [16:52:04]json_value_free [16:52:04]json_value_free done [16:52:04]process_json_proto returns [16:52:04]Send response to host [16:52:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2098,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [16:52:04]free response buf [16:52:04]execute_script done [16:52:04]execute_script returns [16:52:04]free content buf [16:52:04]Sock 8.Close socket [16:52:04]Sock 8.Thread stoped [16:52:08]OFD Sender: No OFD packet to send [16:52:13]OFD Sender: No OFD packet to send [16:52:18]OFD Sender: No OFD packet to send [16:52:23]OFD Sender: No OFD packet to send [16:52:28]OFD Sender: No OFD packet to send [16:52:33]OFD Sender: No OFD packet to send [16:52:38]OFD Sender: No OFD packet to send [16:52:43]OFD Sender: No OFD packet to send [16:52:48]OFD Sender: No OFD packet to send [16:52:53]OFD Sender: No OFD packet to send [16:52:58]OFD Sender: No OFD packet to send [16:53:03]OFD Sender: No OFD packet to send [16:53:08]OFD Sender: No OFD packet to send [16:53:13]OFD Sender: No OFD packet to send [16:53:18]OFD Sender: No OFD packet to send [16:53:23]OFD Sender: No OFD packet to send [16:53:28]OFD Sender: No OFD packet to send [16:53:33]OFD Sender: No OFD packet to send [16:53:38]OFD Sender: No OFD packet to send [16:53:43]OFD Sender: No OFD packet to send [16:53:48]OFD Sender: No OFD packet to send [16:53:53]OFD Sender: No OFD packet to send [16:53:58]OFD Sender: No OFD packet to send [16:54:03]OFD Sender: No OFD packet to send [16:54:08]OFD Sender: No OFD packet to send [16:54:13]OFD Sender: No OFD packet to send [16:54:18]OFD Sender: No OFD packet to send [16:54:23]OFD Sender: No OFD packet to send [16:54:28]OFD Sender: No OFD packet to send [16:54:33]OFD Sender: No OFD packet to send [16:54:38]OFD Sender: No OFD packet to send [16:54:43]OFD Sender: No OFD packet to send [16:54:48]OFD Sender: No OFD packet to send [16:54:53]OFD Sender: No OFD packet to send [16:54:58]OFD Sender: No OFD packet to send [16:55:03]OFD Sender: No OFD packet to send [16:55:08]OFD Sender: No OFD packet to send [16:55:13]OFD Sender: No OFD packet to send [16:55:18]OFD Sender: No OFD packet to send [16:55:23]OFD Sender: No OFD packet to send [16:55:28]OFD Sender: No OFD packet to send [16:55:33]OFD Sender: No OFD packet to send [16:55:38]OFD Sender: No OFD packet to send [16:55:43]OFD Sender: No OFD packet to send [16:55:48]OFD Sender: No OFD packet to send [16:55:53]OFD Sender: No OFD packet to send [16:55:58]OFD Sender: No OFD packet to send [16:56:03]OFD Sender: No OFD packet to send [16:56:08]OFD Sender: No OFD packet to send [16:56:13]OFD Sender: No OFD packet to send [16:56:18]OFD Sender: No OFD packet to send [16:56:23]OFD Sender: No OFD packet to send [16:56:28]OFD Sender: No OFD packet to send [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:03]OFD Sender: No OFD packet to send [16:57:08]OFD Sender: No OFD packet to send [16:57:13]OFD Sender: No OFD packet to send [16:57:18]OFD Sender: No OFD packet to send [16:57:23]OFD Sender: No OFD packet to send [16:57:28]OFD Sender: No OFD packet to send [16:57:33]OFD Sender: No OFD packet to send [16:57:38]OFD Sender: No OFD packet to send [16:57:43]OFD Sender: No OFD packet to send [16:57:48]OFD Sender: No OFD packet to send [16:57:53]OFD Sender: No OFD packet to send [16:57:58]OFD Sender: No OFD packet to send [16:58:03]OFD Sender: No OFD packet to send [16:58:08]OFD Sender: No OFD packet to send [16:58:13]OFD Sender: No OFD packet to send [16:58:18]OFD Sender: No OFD packet to send [16:58:23]OFD Sender: No OFD packet to send [16:58:28]OFD Sender: No OFD packet to send [16:58:33]OFD Sender: No OFD packet to send [16:58:38]OFD Sender: No OFD packet to send [16:58:43]OFD Sender: No OFD packet to send [16:58:48]OFD Sender: No OFD packet to send [16:58:53]OFD Sender: No OFD packet to send [16:58:58]OFD Sender: No OFD packet to send [16:59:03]OFD Sender: No OFD packet to send [16:59:08]OFD Sender: No OFD packet to send [16:59:13]OFD Sender: No OFD packet to send [16:59:18]OFD Sender: No OFD packet to send [16:59:23]OFD Sender: No OFD packet to send [16:59:28]OFD Sender: No OFD packet to send [16:59:33]OFD Sender: No OFD packet to send [16:59:38]OFD Sender: No OFD packet to send [16:59:43]OFD Sender: No OFD packet to send [16:59:48]OFD Sender: No OFD packet to send [16:59:53]OFD Sender: No OFD packet to send [16:59:58]OFD Sender: No OFD packet to send [17:00:03]OFD Sender: No OFD packet to send [17:00:08]OFD Sender: No OFD packet to send [17:00:13]OFD Sender: No OFD packet to send [17:00:18]OFD Sender: No OFD packet to send [17:00:23]OFD Sender: No OFD packet to send [17:00:28]OFD Sender: No OFD packet to send [17:00:33]OFD Sender: No OFD packet to send [17:00:38]OFD Sender: No OFD packet to send [17:00:43]OFD Sender: No OFD packet to send [17:00:48]OFD Sender: No OFD packet to send [17:00:53]OFD Sender: No OFD packet to send [17:00:58]OFD Sender: No OFD packet to send [17:01:03]OFD Sender: No OFD packet to send [17:01:08]OFD Sender: No OFD packet to send [17:01:13]OFD Sender: No OFD packet to send [17:01:18]OFD Sender: No OFD packet to send [17:01:23]OFD Sender: No OFD packet to send [17:01:28]OFD Sender: No OFD packet to send [17:01:33]OFD Sender: No OFD packet to send [17:01:38]OFD Sender: No OFD packet to send [17:01:43]OFD Sender: No OFD packet to send [17:01:48]OFD Sender: No OFD packet to send [17:01:53]OFD Sender: No OFD packet to send [17:01:58]OFD Sender: No OFD packet to send [17:02:03]OFD Sender: No OFD packet to send [17:02:08]OFD Sender: No OFD packet to send [17:02:13]OFD Sender: No OFD packet to send [17:02:18]OFD Sender: No OFD packet to send [17:02:23]OFD Sender: No OFD packet to send [17:02:28]OFD Sender: No OFD packet to send [17:02:33]OFD Sender: No OFD packet to send [17:02:38]OFD Sender: No OFD packet to send [17:02:43]OFD Sender: No OFD packet to send [17:02:48]OFD Sender: No OFD packet to send [17:02:53]OFD Sender: No OFD packet to send [17:02:58]OFD Sender: No OFD packet to send [17:03:00]accept exits with 10 [17:03:00]New connection [17:03:00]New thread 3067460964 created [17:03:00]Thread 3067317604 joined [17:03:00]Waiting for new connection... [17:03:00] Sock 10.Parse request [17:03:00]Sock 10.Check first char [17:03:00]Sock 10.First char is OK [17:03:00]request: POST /json_proto HTTP/1.0 [17:03:00]Method: POST [17:03:00]URL: /json_proto [17:03:00]Method is POST - this is cgi request [17:03:00]url: /json_proto [17:03:00]query_string will be loaded in cgi processing [17:03:00]execute_cgi json_proto POST (null) [17:03:00]execute_cgi path=json_proto method=POST [17:03:00]POST find Content-Length [17:03:00]Host: 172.17.45.132:8080 [17:03:00]Content-Length: 677 [17:03:00]Content-Type: application/json [17:03:00] [17:03:00]POST finish read [17:03:00]Found Content-Length = 677 [17:03:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)609376", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:03:00]execute_script... [17:03:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)609376", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:03:00]POST & json_proto [17:03:00]process_json_proto [17:03:00]json parsed OK: [17:03:00]protocol is kg_v1.0 [17:03:00]action value=close_receipt [17:03:00]process_action close_receipt [17:03:00]cmd_close_receipt [17:03:00]MH_GetDate [17:03:00]Write to MH i2c: F0 00 00 C0 59 08 [17:03:00]Write i2c OK [17:03:00]MH_I2C_Read... [17:03:00]Read from MH i2c: F0 [17:03:00]MH_I2C_Read... [17:03:00]Read from MH i2c: F0 09 00 [17:03:00]MH_I2C_Read... [17:03:00]Read from MH i2c: F0 09 00 C0 59 00 CB 79 A6 66 E3 0B 90 66 45 [17:03:00]GetLastDocTimeStamp 1722185527 [17:03:00]current date 1722186187 [17:03:00]FM_GetShiftState [17:03:00]SAM_PROTO_GetShiftState [17:03:00]wFMCommunicate request_size=4 [17:03:00]MH_SAM_APDU [17:03:00]CAPDU: 80 13 01 00 [17:03:00]Write to MH i2c: E2 08 00 C1 59 80 13 01 00 00 00 00 00 97 [17:03:00]Write i2c OK [17:03:00]MH_I2C_Read... [17:03:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:03:00]Read from MH i2c: E2 [17:03:00]MH_I2C_Read... [17:03:00]Read from MH i2c: E2 0E 00 [17:03:00]MH_I2C_Read... [17:03:00]Read from MH i2c: E2 0E 00 C1 59 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 8B [17:03:00]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [17:03:00]wFMCommunicate OK [17:03:00]SAM_PROTO_GetShiftState done [17:03:00]FM_GetShiftState done [17:03:00]opened in 1722125648 [17:03:00]opened+sec_in_day 1722212048 [17:03:00]quantity*price = 60003 [17:03:00]sum+1 = 60004 [17:03:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 150 28.07.2024 17:03 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2099 ФПД: 10859075894570 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T170307&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2099&fm=10859075894570&tin=02508201610067®Number=0000000000189667&sum=60000 [17:03:01]StoreToDocumentArchive [17:03:01]shift 13 fd 2099 [17:03:01]save to /storage/0013/doc_00002099 [17:03:01]save last doc name /storage/0013/doc_00002099 to /storage/kkm_last_doc_name [17:03:01]save OK [17:03:01]Clear old archive folders... [17:03:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:03:01]tlvbuf is 02046740 [17:03:01]SAM_PROTO_ClearQueue [17:03:01]wFMCommunicate request_size=4 [17:03:01]MH_SAM_APDU [17:03:01]CAPDU: 80 09 00 00 [17:03:01]Write to MH i2c: E2 08 00 CE 59 80 09 00 00 00 00 00 00 99 [17:03:01]Write i2c OK [17:03:01]MH_I2C_Read... [17:03:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:03:01]Read from MH i2c: E2 [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: E2 03 00 [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: E2 03 00 CE 59 00 90 00 9B [17:03:01]RAPDU: 90 00 [17:03:01]wFMCommunicate OK [17:03:01]SAM_PROTO_ClearQueue done [17:03:01]KKMCreateOFDPacket [17:03:01]OFDProtocolAddRootSTLVToBuf [17:03:01]FM_MakeSignedData [17:03:01]FM_MakeSignedData [17:03:01]SAM_PROTO_SignData [17:03:01]wFMCommunicate request_size=4 [17:03:01]MH_SAM_APDU [17:03:01]CAPDU: 80 0D 01 02 [17:03:01]Write to MH i2c: E2 08 00 CF 59 80 0D 01 02 00 00 00 00 A1 [17:03:01]Write i2c OK [17:03:01]MH_I2C_Read... [17:03:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:03:01]Read from MH i2c: E2 [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: E2 03 00 [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: E2 03 00 CF 59 00 90 00 9C [17:03:01]RAPDU: 90 00 [17:03:01]wFMCommunicate OK [17:03:01]wFMCommunicate request_size=255 [17:03:01]MH_SAM_APDU [17:03:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 CB 79 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 33 08 00 00 35 04 06 00 09 [17:03:01]Write to MH i2c: E2 02 01 D0 59 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 CB 79 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 33 08 00 00 35 04 06 00 09 00 00 24 [17:03:01]Write i2c OK [17:03:01]MH_I2C_Read... [17:03:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:02]Read from MH i2c: E2 [17:03:02]MH_I2C_Read... [17:03:02]Read from MH i2c: E2 03 00 [17:03:02]MH_I2C_Read... [17:03:02]Read from MH i2c: E2 03 00 D0 59 00 90 00 9D [17:03:02]RAPDU: 90 00 [17:03:02]wFMCommunicate OK [17:03:02]wFMCommunicate request_size=10 [17:03:02]MH_SAM_APDU [17:03:02]CAPDU: 80 0D 02 02 05 E0 53 5C 7D 2A [17:03:02]Write to MH i2c: E2 0D 00 D1 59 80 0D 02 02 05 00 E0 53 5C 7D 2A 00 00 E4 [17:03:02]Write i2c OK [17:03:02]MH_I2C_Read... [17:03:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:02]Read from MH i2c: E2 [17:03:02]MH_I2C_Read... [17:03:02]Read from MH i2c: E2 03 00 [17:03:02]MH_I2C_Read... [17:03:02]Read from MH i2c: E2 03 00 D1 59 00 90 00 9E [17:03:02]RAPDU: 90 00 [17:03:02]wFMCommunicate OK [17:03:02]wFMCommunicate request_size=4 [17:03:02]MH_SAM_APDU [17:03:02]CAPDU: 80 0D 03 02 [17:03:02]Write to MH i2c: E2 08 00 D2 59 80 0D 03 02 00 00 00 00 A6 [17:03:02]Write i2c OK [17:03:02]MH_I2C_Read... [17:03:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:03:02]Read from MH i2c: E2 [17:03:02]MH_I2C_Read... [17:03:02]Read from MH i2c: E2 0B 00 [17:03:02]MH_I2C_Read... [17:03:02]Read from MH i2c: E2 0B 00 D2 59 00 BF 6A 55 AA 20 70 DA 14 90 00 4D [17:03:02]RAPDU: BF 6A 55 AA 20 70 DA 14 90 00 [17:03:02]wFMCommunicate OK [17:03:02]SAM_PROTO_SignData done [17:03:02]FM_MakeSignedData done [17:03:02]CreateOFDProtocolMessage [17:03:02]wFMCommunicate request_size=4 [17:03:02]MH_SAM_APDU [17:03:02]CAPDU: 80 11 00 00 [17:03:02]Write to MH i2c: E2 08 00 D3 59 80 11 00 00 00 00 00 00 A6 [17:03:02]Write i2c OK [17:03:02]MH_I2C_Read... [17:03:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:02]Read from MH i2c: E2 [17:03:02]MH_I2C_Read... [17:03:02]Read from MH i2c: E2 17 00 [17:03:02]MH_I2C_Read... [17:03:02]Read from MH i2c: E2 17 00 D3 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 F6 [17:03:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [17:03:02]wFMCommunicate OK [17:03:02]CreateOFDProtocolMessage done [17:03:02]OFDSenderStorePacket 2099 [17:03:02]StoreOFDPacket docnum=2099 [17:03:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 B6 59 07 01 14 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 CB 79 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 33 08 00 00 35 04 06 00 09 E0 53 5C 7D 2A BF 6A 55 AA 20 70 DA 14 [17:03:02]CheckFolder [17:03:02]dirname=/storage/ofd_packets [17:03:02]CheckFolder done [17:03:02]ProducePacketName [17:03:02]name=ofd_packets/00002099 [17:03:02]NVStorageSaveData ofd_packets/00002099 [17:03:02]File name is /storage/ofd_packets/00002099 [17:03:02]Write 301 bytes [17:03:02]NVStorageSaveData done [17:03:02]OFDSenderStorePacket done [17:03:02]KKMCreateOFDPacket done [17:03:02]NVStorageSaveData kkm_last_timestamp [17:03:02]File name is /storage/kkm_last_timestamp [17:03:02]Write 4 bytes [17:03:02]NVStorageSaveData done [17:03:02]ExternCall_PrintAddStr [17:03:02]wPrintStart [17:03:02]Write to MH i2c: 01 00 00 D4 59 2D [17:03:02]Write i2c OK [17:03:02]MH_I2C_Read... [17:03:02]Read from MH i2c: 01 [17:03:02]MH_I2C_Read... [17:03:02]Read from MH i2c: 01 07 00 [17:03:02]MH_I2C_Read... [17:03:02]Read from MH i2c: 01 07 00 D4 59 00 00 00 00 00 FF 0F 42 [17:03:02]RasterBufferAndPrint [17:03:02]line Счет N : (1)609376 [17:03:02]line ИНН: 02508201610067 [17:03:02]line Контрольно-Кассовый Чек [17:03:02]line ПРОДАЖА [17:03:02]line ТРК (МРК, ГНК) : 42 [17:03:02]line Товар: 2710124130 [17:03:02]line Аи-92-К-2 [17:03:02]line 8.850 * 67.80 [17:03:02]line = 600.03 [17:03:02]line НДС 12% НСП 1% [17:03:02]line > о реализуемом товаре [17:03:02]line ОКРУГЛЕНИЕ: -0.03 [17:03:02]line ИТОГО: 600.00 [17:03:02]line Внесено: 600.00 [17:03:02]line СДАЧА: 0.00 [17:03:02]line НСП 1% : 5.31 [17:03:02]line НДС 12% : 63.72 [17:03:02]line Наличными: 600.00 [17:03:02]line Безнал.: 0.00 [17:03:02]line Место: АЗС № 127 "Партнер Нефть" [17:03:02]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [17:03:02]line СНО: Общий режим [17:03:02]line Чек 150 28.07.2024 17:03 [17:03:02]line Смена: 13 ФФД: 1.0 [17:03:02]line ЗНМ: 0300000161 [17:03:02]line РНМ: 0000000000189667 [17:03:02]line Версия ККМ: v1.0 [17:03:02]line ФМ: 0000000002094248 [17:03:02]line ФД: 2099 [17:03:02]line ФПД: 10859075894570 [17:03:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T170307&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2099&fm=10859075894570&tin=02508201610067®Number=0000000000189667&sum=60000 [17:03:02]OFD Sender: Processing packet 2099 [packets to send 1, broken 0] [17:03:02]ProducePacketName [17:03:02]name=ofd_packets/00002099 [17:03:02]OFD Sender: To server: pG, [17:03:02]CommunicateWithHost lk.salyk.kg:30040 [17:03:02]ConnectInit lk.salyk.kg [17:03:02]written 0, free lines is 4095 [17:03:02]Connected sock=11 [17:03:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 B6 59 07 01 14 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 CB 79 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 33 08 00 00 35 04 06 00 09 E0 53 5C 7D 2A BF 6A 55 AA 20 70 DA 14 [17:03:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 E7 B6 47 00 07 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 33 08 00 00 F4 03 04 00 3A 25 A6 66 B6 04 01 00 00 50 6E A4 8D 6F 27 2A 82 [17:03:03]CommunicateWithHost err = 0 [17:03:03]CheckOFDResponse [17:03:03]1017 (14) - 77093643461234 [17:03:03]1041 (16) - 0000000002094248 [17:03:03]1040 (4) - 2099 [17:03:03]1012 (4) - 28.07.2024 11:02 [17:03:03]1206 (1) - 0 [17:03:03]OFD Sender: Remove packet 2099 [17:03:03]ProducePacketName [17:03:03]name=ofd_packets/00002099 [17:03:03]NVStorageDeleteData [17:03:03]Write to MH i2c: 01 00 00 FF 59 58 [17:03:03]Write i2c OK [17:03:03]MH_I2C_Read... [17:03:03]Read from MH i2c: 01 [17:03:03]MH_I2C_Read... [17:03:03]Read from MH i2c: 01 07 00 [17:03:03]MH_I2C_Read... [17:03:03]Read from MH i2c: 01 07 00 FF 59 00 00 00 00 00 00 0D 6C [17:03:03]RasterBufferAndPrint [17:03:03]line [17:03:03]line [17:03:03]line [17:03:03]line [17:03:03]line [17:03:03]written 0, free lines is 3334 [17:03:03]MH_Cut [17:03:03]Write to MH i2c: D1 01 00 06 5A 01 32 [17:03:03]Write i2c OK [17:03:03]MH_I2C_Read... [17:03:03]Read from MH i2c: D1 [17:03:03]MH_I2C_Read... [17:03:03]Read from MH i2c: D1 01 00 [17:03:03]MH_I2C_Read... [17:03:03]Read from MH i2c: D1 01 00 06 5A 00 31 [17:03:03]Write to MH i2c: 01 00 00 07 5A 61 [17:03:03]Write i2c OK [17:03:03]MH_I2C_Read... [17:03:03]OFD Sender: No OFD packet to send [17:03:03]*** Cut start [17:03:03]*** Partial cut [17:03:03]*** CUTSNS_PIN = 1 [17:03:03]*** CUTSNS_PIN = 0 [17:03:04]*** Brake cut motor [17:03:04]Read from MH i2c: 01 [17:03:04]MH_I2C_Read... [17:03:04]*** Stop cut motor [17:03:04]Read from MH i2c: 01 07 00 [17:03:04]MH_I2C_Read... [17:03:04]*** Cut end [17:03:04]Read from MH i2c: 01 07 00 07 5A 00 00 00 00 00 FF 0F 76 [17:03:04]process_action close_receipt done [17:03:04]requested_data is exist [17:03:04]produce_requested_data [17:03:04]requested_item fm.sn is exist - process it [17:03:04]wFMCommunicate request_size=4 [17:03:04]MH_SAM_APDU [17:03:04]CAPDU: 80 11 00 00 [17:03:04]Write to MH i2c: E2 08 00 08 5A 80 11 00 00 00 00 00 00 DC [17:03:04]Write i2c OK [17:03:04]MH_I2C_Read... [17:03:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:04]Read from MH i2c: E2 [17:03:04]MH_I2C_Read... [17:03:04]Read from MH i2c: E2 17 00 [17:03:04]MH_I2C_Read... [17:03:04]Read from MH i2c: E2 17 00 08 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 2C [17:03:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [17:03:04]wFMCommunicate OK [17:03:04]requested_item fd.num is exist - process it [17:03:04]SAM_PROTO_GetFieldsCounters [17:03:04]wFMCommunicate request_size=4 [17:03:04]MH_SAM_APDU [17:03:04]CAPDU: 80 13 00 00 [17:03:04]Write to MH i2c: E2 08 00 09 5A 80 13 00 00 00 00 00 00 DF [17:03:04]Write i2c OK [17:03:04]MH_I2C_Read... [17:03:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:03:04]Read from MH i2c: E2 [17:03:04]MH_I2C_Read... [17:03:04]Read from MH i2c: E2 62 00 [17:03:04]MH_I2C_Read... [17:03:04]Read from MH i2c: E2 62 00 09 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 33 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [17:03:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 33 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:03:04]wFMCommunicate OK [17:03:04]SAM_PROTO_GetFieldsCounters done [17:03:04]requested_item shift.num is exist - process it [17:03:04]requested_item shift.opened is exist - process it [17:03:04]req_shift_opened [17:03:04]FM_GetShiftState [17:03:04]SAM_PROTO_GetShiftState [17:03:04]wFMCommunicate request_size=4 [17:03:04]MH_SAM_APDU [17:03:04]CAPDU: 80 13 01 00 [17:03:04]Write to MH i2c: E2 08 00 0A 5A 80 13 01 00 00 00 00 00 E1 [17:03:04]Write i2c OK [17:03:04]MH_I2C_Read... [17:03:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:03:04]Read from MH i2c: E2 [17:03:04]MH_I2C_Read... [17:03:04]Read from MH i2c: E2 0E 00 [17:03:04]MH_I2C_Read... [17:03:04]Read from MH i2c: E2 0E 00 0A 5A 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 D5 [17:03:04]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [17:03:04]wFMCommunicate OK [17:03:04]SAM_PROTO_GetShiftState done [17:03:04]FM_GetShiftState done [17:03:04]req_shift_opened done [17:03:04]requested_item shift.open_date is exist - process it [17:03:04]req_shift_open_date [17:03:04]req_shift_open_date done [17:03:04]produce_requested_data done [17:03:04]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2099,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [17:03:04]process_action_free close_receipt [17:03:04]json_value_free [17:03:04]json_value_free done [17:03:04]process_json_proto returns [17:03:04]Send response to host [17:03:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2099,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [17:03:04]free response buf [17:03:04]execute_script done [17:03:04]execute_script returns [17:03:04]free content buf [17:03:04]Sock 10.Close socket [17:03:04]Sock 10.Thread stoped [17:03:08]OFD Sender: No OFD packet to send [17:03:13]OFD Sender: No OFD packet to send [17:03:18]OFD Sender: No OFD packet to send [17:03:23]OFD Sender: No OFD packet to send [17:03:28]OFD Sender: No OFD packet to send [17:03:33]OFD Sender: No OFD packet to send [17:03:38]OFD Sender: No OFD packet to send [17:03:43]OFD Sender: No OFD packet to send [17:03:48]OFD Sender: No OFD packet to send [17:03:53]OFD Sender: No OFD packet to send [17:03:58]OFD Sender: No OFD packet to send [17:04:03]OFD Sender: No OFD packet to send [17:04:08]OFD Sender: No OFD packet to send [17:04:13]OFD Sender: No OFD packet to send [17:04:18]OFD Sender: No OFD packet to send [17:04:23]OFD Sender: No OFD packet to send [17:04:28]OFD Sender: No OFD packet to send [17:04:33]OFD Sender: No OFD packet to send [17:04:38]OFD Sender: No OFD packet to send [17:04:43]OFD Sender: No OFD packet to send [17:04:48]OFD Sender: No OFD packet to send [17:04:53]OFD Sender: No OFD packet to send [17:04:58]OFD Sender: No OFD packet to send [17:05:03]OFD Sender: No OFD packet to send [17:05:08]OFD Sender: No OFD packet to send [17:05:13]OFD Sender: No OFD packet to send [17:05:18]OFD Sender: No OFD packet to send [17:05:23]OFD Sender: No OFD packet to send [17:05:28]OFD Sender: No OFD packet to send [17:05:33]OFD Sender: No OFD packet to send [17:05:38]OFD Sender: No OFD packet to send [17:05:43]OFD Sender: No OFD packet to send [17:05:48]OFD Sender: No OFD packet to send [17:05:53]OFD Sender: No OFD packet to send [17:05:58]OFD Sender: No OFD packet to send [17:06:03]OFD Sender: No OFD packet to send [17:06:08]OFD Sender: No OFD packet to send [17:06:13]OFD Sender: No OFD packet to send [17:06:18]OFD Sender: No OFD packet to send [17:06:23]OFD Sender: No OFD packet to send [17:06:28]OFD Sender: No OFD packet to send [17:06:33]OFD Sender: No OFD packet to send [17:06:38]OFD Sender: No OFD packet to send [17:06:43]OFD Sender: No OFD packet to send [17:06:48]OFD Sender: No OFD packet to send [17:06:53]OFD Sender: No OFD packet to send [17:06:54]accept exits with 8 [17:06:54]New connection [17:06:54]New thread 3067317604 created [17:06:54]Thread 3067460964 joined [17:06:54]Waiting for new connection... [17:06:54] Sock 8.Parse request [17:06:54]Sock 8.Check first char [17:06:54]Sock 8.First char is OK [17:06:54]request: POST /json_proto HTTP/1.0 [17:06:54]Method: POST [17:06:54]URL: /json_proto [17:06:54]Method is POST - this is cgi request [17:06:54]url: /json_proto [17:06:54]query_string will be loaded in cgi processing [17:06:54]execute_cgi json_proto POST (null) [17:06:54]execute_cgi path=json_proto method=POST [17:06:54]POST find Content-Length [17:06:54]Host: 172.17.45.132:8080 [17:06:54]Content-Length: 1021 [17:06:54]Content-Type: application/json [17:06:54] [17:06:54]POST finish read [17:06:54]Found Content-Length = 1021 [17:06:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126398", "tax_sys" : 0, "items" : [ { "code": "4603290003032", "name": "\u041A\u0440\u0435\u043A\u0435\u0440 \u042F\u0448\u043A\u0438\u043D\u043E \u0424\u0440\u0430\u043D\u0446\u0443\u0437\u0441\u043A\u0438\u0439 \u0445\u0440\u0443\u0441\u0442 \u0441 \u043A\u0443\u043D\u0436\u0443\u0442", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ], "payments": [ { "type": 0, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:06:54]execute_script... [17:06: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)126398", "tax_sys" : 0, "items" : [ { "code": "4603290003032", "name": "\u041A\u0440\u0435\u043A\u0435\u0440 \u042F\u0448\u043A\u0438\u043D\u043E \u0424\u0440\u0430\u043D\u0446\u0443\u0437\u0441\u043A\u0438\u0439 \u0445\u0440\u0443\u0441\u0442 \u0441 \u043A\u0443\u043D\u0436\u0443\u0442", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ], "payments": [ { "type": 0, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:06:54]POST & json_proto [17:06:54]process_json_proto [17:06:54]json parsed OK: [17:06:54]protocol is kg_v1.0 [17:06:54]action value=close_receipt [17:06:54]process_action close_receipt [17:06:54]cmd_close_receipt [17:06:54]MH_GetDate [17:06:54]Write to MH i2c: F0 00 00 0B 5A 54 [17:06:54]Write i2c OK [17:06:54]MH_I2C_Read... [17:06:54]Read from MH i2c: F0 [17:06:54]MH_I2C_Read... [17:06:54]Read from MH i2c: F0 09 00 [17:06:54]MH_I2C_Read... [17:06:54]Read from MH i2c: F0 09 00 0B 5A 00 B5 7A A6 66 E3 0B 90 66 7C [17:06:54]GetLastDocTimeStamp 1722186187 [17:06:54]current date 1722186421 [17:06:54]FM_GetShiftState [17:06:54]SAM_PROTO_GetShiftState [17:06:54]wFMCommunicate request_size=4 [17:06:54]MH_SAM_APDU [17:06:54]CAPDU: 80 13 01 00 [17:06:54]Write to MH i2c: E2 08 00 0C 5A 80 13 01 00 00 00 00 00 E3 [17:06:54]Write i2c OK [17:06:54]MH_I2C_Read... [17:06:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:54]Read from MH i2c: E2 [17:06:54]MH_I2C_Read... [17:06:54]Read from MH i2c: E2 0E 00 [17:06:54]MH_I2C_Read... [17:06:54]Read from MH i2c: E2 0E 00 0C 5A 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 D7 [17:06:54]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [17:06:54]wFMCommunicate OK [17:06:54]SAM_PROTO_GetShiftState done [17:06:54]FM_GetShiftState done [17:06:54]opened in 1722125648 [17:06:54]opened+sec_in_day 1722212048 [17:06:54]quantity*price = 7000 [17:06:54]sum+1 = 7001 [17:06:54]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000014535 Напит Спрайт 0,33л 1.000 * 85.00 = 85.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 155.00 НСП 1% : 1.37 НДС 12% : 16.46 Наличными: 155.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 151 28.07.2024 17:07 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2100 ФПД: 135310328918187 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T170701&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2100&fm=135310328918187&tin=02508201610067®Number=0000000000189667&sum=15500 0 [17:06:55]StoreToDocumentArchive [17:06:55]shift 13 fd 2100 [17:06:55]save to /storage/0013/doc_00002100 [17:06:55]save last doc name /storage/0013/doc_00002100 to /storage/kkm_last_doc_name [17:06:55]save OK [17:06:55]Clear old archive folders... [17:06:55]ProcessDocumentItem done err = 0, tmpTLVsize=419 [17:06:55]tlvbuf is 01F63E30 [17:06:55]SAM_PROTO_ClearQueue [17:06:55]wFMCommunicate request_size=4 [17:06:55]MH_SAM_APDU [17:06:55]CAPDU: 80 09 00 00 [17:06:55]Write to MH i2c: E2 08 00 19 5A 80 09 00 00 00 00 00 00 E5 [17:06:55]Write i2c OK [17:06:55]MH_I2C_Read... [17:06:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:06:55]Read from MH i2c: E2 [17:06:55]MH_I2C_Read... [17:06:55]Read from MH i2c: E2 03 00 [17:06:55]MH_I2C_Read... [17:06:55]Read from MH i2c: E2 03 00 19 5A 00 90 00 E7 [17:06:55]RAPDU: 90 00 [17:06:55]wFMCommunicate OK [17:06:55]SAM_PROTO_ClearQueue done [17:06:55]KKMCreateOFDPacket [17:06:55]OFDProtocolAddRootSTLVToBuf [17:06:55]FM_MakeSignedData [17:06:55]FM_MakeSignedData [17:06:55]SAM_PROTO_SignData [17:06:55]wFMCommunicate request_size=4 [17:06:55]MH_SAM_APDU [17:06:55]CAPDU: 80 0D 01 02 [17:06:55]Write to MH i2c: E2 08 00 1A 5A 80 0D 01 02 00 00 00 00 ED [17:06:55]Write i2c OK [17:06:55]MH_I2C_Read... [17:06:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:06:55]Read from MH i2c: E2 [17:06:55]MH_I2C_Read... [17:06:55]Read from MH i2c: E2 03 00 [17:06:55]MH_I2C_Read... [17:06:55]Read from MH i2c: E2 03 00 1A 5A 00 90 00 E8 [17:06:55]RAPDU: 90 00 [17:06:55]wFMCommunicate OK [17:06:55]wFMCommunicate request_size=255 [17:06:55]MH_SAM_APDU [17:06:55]CAPDU: 80 0D 02 02 FA 03 00 A3 01 1E 04 01 00 01 23 04 8F 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 33 30 33 32 06 04 4B 00 D0 9A D1 80 D0 B5 D0 BA D0 B5 D1 80 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 A4 D1 80 D0 B0 D0 BD D1 86 D1 83 D0 B7 D1 81 D0 BA D0 B8 D0 B9 20 D1 85 D1 80 D1 83 D1 81 D1 82 20 D1 81 20 D0 BA D1 83 D0 BD D0 B6 D1 83 D1 82 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 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 [17:06:55]Write to MH i2c: E2 02 01 1B 5A 80 0D 02 02 FA 00 03 00 A3 01 1E 04 01 00 01 23 04 8F 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 33 30 33 32 06 04 4B 00 D0 9A D1 80 D0 B5 D0 BA D0 B5 D1 80 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 A4 D1 80 D0 B0 D0 BD D1 86 D1 83 D0 B7 D1 81 D0 BA D0 B8 D0 B9 20 D1 85 D1 80 D1 83 D1 81 D1 82 20 D1 81 20 D0 BA D1 83 D0 BD D0 B6 D1 83 D1 82 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 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 00 00 FA [17:06:55]Write i2c OK [17:06:55]MH_I2C_Read... [17:06:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:06:56]Read from MH i2c: E2 [17:06:56]MH_I2C_Read... [17:06:56]Read from MH i2c: E2 03 00 [17:06:56]MH_I2C_Read... [17:06:56]Read from MH i2c: E2 03 00 1B 5A 00 90 00 E9 [17:06:56]RAPDU: 90 00 [17:06:56]wFMCommunicate OK [17:06:56]wFMCommunicate request_size=178 [17:06:56]MH_SAM_APDU [17:06:56]CAPDU: 80 0D 02 02 AD 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 97 00 00 00 F4 03 04 00 B5 7A A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 34 08 00 00 35 04 06 00 7B 10 64 16 F0 AB [17:06:56]Write to MH i2c: E2 B5 00 1C 5A 80 0D 02 02 AD 00 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 97 00 00 00 F4 03 04 00 B5 7A A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 34 08 00 00 35 04 06 00 7B 10 64 16 F0 AB 00 00 A1 [17:06:56]Write i2c OK [17:06:56]MH_I2C_Read... [17:06:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:06:56]Read from MH i2c: E2 [17:06:56]MH_I2C_Read... [17:06:56]Read from MH i2c: E2 03 00 [17:06:56]MH_I2C_Read... [17:06:56]Read from MH i2c: E2 03 00 1C 5A 00 90 00 EA [17:06:56]RAPDU: 90 00 [17:06:56]wFMCommunicate OK [17:06:56]wFMCommunicate request_size=4 [17:06:56]MH_SAM_APDU [17:06:56]CAPDU: 80 0D 03 02 [17:06:56]Write to MH i2c: E2 08 00 1D 5A 80 0D 03 02 00 00 00 00 F2 [17:06:56]Write i2c OK [17:06:56]MH_I2C_Read... [17:06:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:06:56]Read from MH i2c: E2 [17:06:56]MH_I2C_Read... [17:06:56]Read from MH i2c: E2 0B 00 [17:06:56]MH_I2C_Read... [17:06:56]Read from MH i2c: E2 0B 00 1D 5A 00 B7 47 59 86 29 33 0F 81 90 00 BC [17:06:56]RAPDU: B7 47 59 86 29 33 0F 81 90 00 [17:06:56]wFMCommunicate OK [17:06:56]SAM_PROTO_SignData done [17:06:56]FM_MakeSignedData done [17:06:56]CreateOFDProtocolMessage [17:06:56]wFMCommunicate request_size=4 [17:06:56]MH_SAM_APDU [17:06:56]CAPDU: 80 11 00 00 [17:06:56]Write to MH i2c: E2 08 00 1E 5A 80 11 00 00 00 00 00 00 F2 [17:06:56]Write i2c OK [17:06:56]MH_I2C_Read... [17:06:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:56]Read from MH i2c: E2 [17:06:56]MH_I2C_Read... [17:06:56]Read from MH i2c: E2 17 00 [17:06:56]MH_I2C_Read... [17:06:56]Read from MH i2c: E2 17 00 1E 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 42 [17:06:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [17:06:56]wFMCommunicate OK [17:06:56]CreateOFDProtocolMessage done [17:06:56]OFDSenderStorePacket 2100 [17:06:56]StoreOFDPacket docnum=2100 [17:06:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 B7 01 00 00 01 82 AF 01 7E 0F 5A 03 01 00 03 00 A3 01 1E 04 01 00 01 23 04 8F 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 33 30 33 32 06 04 4B 00 D0 9A D1 80 D0 B5 D0 BA D0 B5 D1 80 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 A4 D1 80 D0 B0 D0 BD D1 86 D1 83 D0 B7 D1 81 D0 BA D0 B8 D0 B9 20 D1 85 D1 80 D1 83 D1 81 D1 82 20 D1 81 20 D0 BA D1 83 D0 BD D0 B6 D1 83 D1 82 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 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 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 97 00 00 00 F4 03 04 00 B5 7A A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 34 08 00 00 35 04 06 00 7B 10 64 16 F0 AB B7 47 59 86 29 33 0F 81 [17:06:56]CheckFolder [17:06:56]dirname=/storage/ofd_packets [17:06:56]CheckFolder done [17:06:56]ProducePacketName [17:06:56]name=ofd_packets/00002100 [17:06:56]NVStorageSaveData ofd_packets/00002100 [17:06:56]File name is /storage/ofd_packets/00002100 [17:06:56]Write 469 bytes [17:06:56]NVStorageSaveData done [17:06:56]OFDSenderStorePacket done [17:06:56]KKMCreateOFDPacket done [17:06:56]NVStorageSaveData kkm_last_timestamp [17:06:56]File name is /storage/kkm_last_timestamp [17:06:56]Write 4 bytes [17:06:56]NVStorageSaveData done [17:06:56]ExternCall_PrintAddStr [17:06:56]wPrintStart [17:06:56]Write to MH i2c: 01 00 00 1F 5A 79 [17:06:56]OFD Sender: Processing packet 2100 [packets to send 1, broken 0] [17:06:56]ProducePacketName [17:06:56]name=ofd_packets/00002100 [17:06:56]Write i2c OK [17:06:56]MH_I2C_Read... [17:06:56]Read from MH i2c: 01 [17:06:56]MH_I2C_Read... [17:06:56]OFD Sender: To server: pG, [17:06:56]CommunicateWithHost lk.salyk.kg:30040 [17:06:56]ConnectInit lk.salyk.kg [17:06:56]Read from MH i2c: 01 07 00 [17:06:56]MH_I2C_Read... [17:06:56]Read from MH i2c: 01 07 00 1F 5A 00 00 00 00 00 FF 0F 8E [17:06:56]RasterBufferAndPrint [17:06:56]line Счет N : (3)126398 [17:06:56]line ИНН: 02508201610067 [17:06:56]line Контрольно-Кассовый Чек [17:06:56]line ПРОДАЖА [17:06:56]line Товар: 4603290003032 [17:06:56]line Крекер Яшкино Французский хруст с кунжут [17:06:56]line 1.000 * 70.00 [17:06:56]line = 70.00 [17:06:56]line НДС 12% НСП 1% [17:06:56]line > о реализуемом товаре [17:06:56]line Товар: 5449000014535 [17:06:56]line Напит Спрайт 0,33л [17:06:56]line 1.000 * 85.00 [17:06:56]line = 85.00 [17:06:56]line НДС 12% НСП 1% [17:06:56]line > о реализуемом товаре [17:06:56]line ИТОГО: 155.00 [17:06:56]line НСП 1% : 1.37 [17:06:56]line НДС 12% : 16.46 [17:06:56]line Наличными: 155.00 [17:06:56]line Безнал.: 0.00 [17:06:56]line Место: АЗС № 127 "Партнер Нефть" [17:06:56]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [17:06:56]line СНО: Общий режим [17:06:56]line Чек 151 28.07.2024 17:07 [17:06:56]line Смена: 13 ФФД: 1.0 [17:06:56]line ЗНМ: 0300000161 [17:06:56]line РНМ: 0000000000189667 [17:06:56]line Версия ККМ: v1.0 [17:06:56]line ФМ: 0000000002094248 [17:06:56]line ФД: 2100 [17:06:56]line ФПД: 135310328918187 [17:06:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T170701&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2100&fm=135310328918187&tin=02508201610067®Number=0000000000189667&sum=15500 [17:06:56]line 0 [17:06:56]written 0, free lines is 4095 [17:06:56]Connected sock=10 [17:06:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 B7 01 00 00 01 82 AF 01 7E 0F 5A 03 01 00 03 00 A3 01 1E 04 01 00 01 23 04 8F 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 33 30 33 32 06 04 4B 00 D0 9A D1 80 D0 B5 D0 BA D0 B5 D1 80 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 A4 D1 80 D0 B0 D0 BD D1 86 D1 83 D0 B7 D1 81 D0 BA D0 B8 D0 B9 20 D1 85 D1 80 D1 83 D1 81 D1 82 20 D1 81 20 D0 BA D1 83 D0 BD D0 B6 D1 83 D1 82 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 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 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 97 00 00 00 F4 03 04 00 B5 7A A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 34 08 00 00 35 04 06 00 7B 10 64 16 F0 AB B7 47 59 86 29 33 0F 81 [17:06:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 06 1A 47 00 C5 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 34 08 00 00 F4 03 04 00 24 26 A6 66 B6 04 01 00 00 D7 14 F6 B9 F2 2D 3F CD [17:06:57]CommunicateWithHost err = 0 [17:06:57]CheckOFDResponse [17:06:57]1017 (14) - 77093643461234 [17:06:57]1041 (16) - 0000000002094248 [17:06:57]1040 (4) - 2100 [17:06:57]1012 (4) - 28.07.2024 11:06 [17:06:57]1206 (1) - 0 [17:06:57]OFD Sender: Remove packet 2100 [17:06:57]ProducePacketName [17:06:57]name=ofd_packets/00002100 [17:06:57]NVStorageDeleteData [17:06:57]Write to MH i2c: 01 00 00 4E 5A A8 [17:06:57]Write i2c OK [17:06:57]MH_I2C_Read... [17:06:57]Read from MH i2c: 01 [17:06:57]MH_I2C_Read... [17:06:57]Read from MH i2c: 01 07 00 [17:06:57]MH_I2C_Read... [17:06:57]Read from MH i2c: 01 07 00 4E 5A 00 00 00 00 00 CD 0C 88 [17:06:57]RasterBufferAndPrint [17:06:57]line [17:06:57]line [17:06:57]line [17:06:57]line [17:06:57]line [17:06:57]written 0, free lines is 3286 [17:06:57]MH_Cut [17:06:57]Write to MH i2c: D1 01 00 55 5A 01 81 [17:06:57]Write i2c OK [17:06:57]MH_I2C_Read... [17:06:57]Read from MH i2c: D1 [17:06:57]MH_I2C_Read... [17:06:57]Read from MH i2c: D1 01 00 [17:06:57]MH_I2C_Read... [17:06:57]Read from MH i2c: D1 01 00 55 5A 00 80 [17:06:57]Write to MH i2c: 01 00 00 56 5A B0 [17:06:57]Write i2c OK [17:06:57]MH_I2C_Read... [17:06:57]OFD Sender: No OFD packet to send [17:06:57]*** Cut start [17:06:57]*** Partial cut [17:06:57]*** CUTSNS_PIN = 1 [17:06:57]*** CUTSNS_PIN = 0 [17:06:58]*** Brake cut motor [17:06:58]Read from MH i2c: 01 [17:06:58]MH_I2C_Read... [17:06:58]*** Stop cut motor [17:06:58]*** Cut end [17:06:58]Read from MH i2c: 01 07 00 [17:06:58]MH_I2C_Read... [17:06:58]Read from MH i2c: 01 07 00 56 5A 00 00 00 00 00 FF 0F C5 [17:06:58]process_action close_receipt done [17:06:58]requested_data is exist [17:06:58]produce_requested_data [17:06:58]requested_item fm.sn is exist - process it [17:06:58]wFMCommunicate request_size=4 [17:06:58]MH_SAM_APDU [17:06:58]CAPDU: 80 11 00 00 [17:06:58]Write to MH i2c: E2 08 00 57 5A 80 11 00 00 00 00 00 00 2B [17:06:58]Write i2c OK [17:06:58]MH_I2C_Read... [17:06:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:58]Read from MH i2c: E2 [17:06:58]MH_I2C_Read... [17:06:58]Read from MH i2c: E2 17 00 [17:06:58]MH_I2C_Read... [17:06:58]Read from MH i2c: E2 17 00 57 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 7B [17:06:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [17:06:58]wFMCommunicate OK [17:06:58]requested_item fd.num is exist - process it [17:06:58]SAM_PROTO_GetFieldsCounters [17:06:58]wFMCommunicate request_size=4 [17:06:58]MH_SAM_APDU [17:06:58]CAPDU: 80 13 00 00 [17:06:58]Write to MH i2c: E2 08 00 58 5A 80 13 00 00 00 00 00 00 2E [17:06:58]Write i2c OK [17:06:58]MH_I2C_Read... [17:06:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:06:58]Read from MH i2c: E2 [17:06:58]MH_I2C_Read... [17:06:58]Read from MH i2c: E2 62 00 [17:06:58]MH_I2C_Read... [17:06:58]Read from MH i2c: E2 62 00 58 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 34 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 66 [17:06:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 34 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:06:58]wFMCommunicate OK [17:06:58]SAM_PROTO_GetFieldsCounters done [17:06:58]requested_item shift.num is exist - process it [17:06:58]requested_item shift.opened is exist - process it [17:06:58]req_shift_opened [17:06:58]FM_GetShiftState [17:06:58]SAM_PROTO_GetShiftState [17:06:58]wFMCommunicate request_size=4 [17:06:58]MH_SAM_APDU [17:06:58]CAPDU: 80 13 01 00 [17:06:58]Write to MH i2c: E2 08 00 59 5A 80 13 01 00 00 00 00 00 30 [17:06:58]Write i2c OK [17:06:58]MH_I2C_Read... [17:06:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:58]Read from MH i2c: E2 [17:06:58]MH_I2C_Read... [17:06:58]Read from MH i2c: E2 0E 00 [17:06:58]MH_I2C_Read... [17:06:58]Read from MH i2c: E2 0E 00 59 5A 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 24 [17:06:58]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [17:06:58]wFMCommunicate OK [17:06:58]SAM_PROTO_GetShiftState done [17:06:58]FM_GetShiftState done [17:06:58]req_shift_opened done [17:06:58]requested_item shift.open_date is exist - process it [17:06:58]req_shift_open_date [17:06:58]req_shift_open_date done [17:06:58]produce_requested_data done [17:06:58]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2100,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [17:06:58]process_action_free close_receipt [17:06:58]json_value_free [17:06:58]json_value_free done [17:06:58]process_json_proto returns [17:06:58]Send response to host [17:06:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2100,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [17:06:58]free response buf [17:06:58]execute_script done [17:06:58]execute_script returns [17:06:58]free content buf [17:06:58]Sock 8.Close socket [17:06:58]Sock 8.Thread stoped [17:07:02]OFD Sender: No OFD packet to send [17:07:07]OFD Sender: No OFD packet to send [17:07:12]OFD Sender: No OFD packet to send [17:07:17]OFD Sender: No OFD packet to send [17:07:22]OFD Sender: No OFD packet to send [17:07:27]OFD Sender: No OFD packet to send [17:07:32]OFD Sender: No OFD packet to send [17:07:37]OFD Sender: No OFD packet to send [17:07:42]OFD Sender: No OFD packet to send [17:07:45]accept exits with 9 [17:07:45]New connection [17:07:45]New thread 3067460964 created [17:07:45]Thread 3067317604 joined [17:07:45]Waiting for new connection... [17:07:45] Sock 9.Parse request [17:07:45]Sock 9.Check first char [17:07:45]Sock 9.First char is OK [17:07:45]request: POST /json_proto HTTP/1.0 [17:07:45]Method: POST [17:07:45]URL: /json_proto [17:07:45]Method is POST - this is cgi request [17:07:45]url: /json_proto [17:07:45]query_string will be loaded in cgi processing [17:07:45]execute_cgi json_proto POST (null) [17:07:45]execute_cgi path=json_proto method=POST [17:07:45]POST find Content-Length [17:07:45]Host: 172.17.45.132:8080 [17:07:45]Content-Length: 800 [17:07:45]Content-Type: application/json [17:07:45] [17:07:45]POST finish read [17:07:45]Found Content-Length = 800 [17:07:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)609378", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 500.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:07:45]execute_script... [17:07:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)609378", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 500.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:07:45]POST & json_proto [17:07:45]process_json_proto [17:07:45]json parsed OK: [17:07:45]protocol is kg_v1.0 [17:07:45]action value=close_receipt [17:07:45]process_action close_receipt [17:07:45]cmd_close_receipt [17:07:45]MH_GetDate [17:07:45]Write to MH i2c: F0 00 00 5A 5A A3 [17:07:45]Write i2c OK [17:07:45]MH_I2C_Read... [17:07:45]Read from MH i2c: F0 [17:07:45]MH_I2C_Read... [17:07:45]Read from MH i2c: F0 09 00 [17:07:45]MH_I2C_Read... [17:07:45]Read from MH i2c: F0 09 00 5A 5A 00 E8 7A A6 66 E3 0B 90 66 FE [17:07:45]GetLastDocTimeStamp 1722186421 [17:07:45]current date 1722186472 [17:07:45]FM_GetShiftState [17:07:45]SAM_PROTO_GetShiftState [17:07:45]wFMCommunicate request_size=4 [17:07:45]MH_SAM_APDU [17:07:45]CAPDU: 80 13 01 00 [17:07:45]Write to MH i2c: E2 08 00 5B 5A 80 13 01 00 00 00 00 00 32 [17:07:45]Write i2c OK [17:07:45]MH_I2C_Read... [17:07:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:46]Read from MH i2c: E2 [17:07:46]MH_I2C_Read... [17:07:46]Read from MH i2c: E2 0E 00 [17:07:46]MH_I2C_Read... [17:07:46]Read from MH i2c: E2 0E 00 5B 5A 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 26 [17:07:46]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [17:07:46]wFMCommunicate OK [17:07:46]SAM_PROTO_GetShiftState done [17:07:46]FM_GetShiftState done [17:07:46]opened in 1722125648 [17:07:46]opened+sec_in_day 1722212048 [17:07:46]quantity*price = 50036 [17:07:46]sum+1 = 50037 [17:07:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.36 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.36 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 152 28.07.2024 17:07 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2101 ФПД: 161479417453312 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T170752&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2101&fm=161479417453312&tin=02508201610067®Number=0000000000189667&sum=50036 [17:07:47]StoreToDocumentArchive [17:07:47]shift 13 fd 2101 [17:07:47]save to /storage/0013/doc_00002101 [17:07:47]save last doc name /storage/0013/doc_00002101 to /storage/kkm_last_doc_name [17:07:47]save OK [17:07:47]Clear old archive folders... [17:07:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:07:47]tlvbuf is 02010EA0 [17:07:47]SAM_PROTO_ClearQueue [17:07:47]wFMCommunicate request_size=4 [17:07:47]MH_SAM_APDU [17:07:47]CAPDU: 80 09 00 00 [17:07:47]Write to MH i2c: E2 08 00 68 5A 80 09 00 00 00 00 00 00 34 [17:07:47]Write i2c OK [17:07:47]MH_I2C_Read... [17:07:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:07:47]Read from MH i2c: E2 [17:07:47]MH_I2C_Read... [17:07:47]Read from MH i2c: E2 03 00 [17:07:47]MH_I2C_Read... [17:07:47]Read from MH i2c: E2 03 00 68 5A 00 90 00 36 [17:07:47]RAPDU: 90 00 [17:07:47]wFMCommunicate OK [17:07:47]SAM_PROTO_ClearQueue done [17:07:47]KKMCreateOFDPacket [17:07:47]OFDProtocolAddRootSTLVToBuf [17:07:47]FM_MakeSignedData [17:07:47]FM_MakeSignedData [17:07:47]SAM_PROTO_SignData [17:07:47]wFMCommunicate request_size=4 [17:07:47]MH_SAM_APDU [17:07:47]CAPDU: 80 0D 01 02 [17:07:47]Write to MH i2c: E2 08 00 69 5A 80 0D 01 02 00 00 00 00 3C [17:07:47]Write i2c OK [17:07:47]MH_I2C_Read... [17:07:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:07:47]Read from MH i2c: E2 [17:07:47]MH_I2C_Read... [17:07:47]Read from MH i2c: E2 03 00 [17:07:47]MH_I2C_Read... [17:07:47]Read from MH i2c: E2 03 00 69 5A 00 90 00 37 [17:07:47]RAPDU: 90 00 [17:07:47]wFMCommunicate OK [17:07:47]wFMCommunicate request_size=255 [17:07:47]MH_SAM_APDU [17:07:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 E8 7A A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 35 08 00 00 35 04 06 00 92 [17:07:47]Write to MH i2c: E2 02 01 6A 5A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 E8 7A A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 35 08 00 00 35 04 06 00 92 00 00 EB [17:07:47]Write i2c OK [17:07:47]MH_I2C_Read... [17:07:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:47]Read from MH i2c: E2 [17:07:47]MH_I2C_Read... [17:07:47]Read from MH i2c: E2 03 00 [17:07:47]MH_I2C_Read... [17:07:47]Read from MH i2c: E2 03 00 6A 5A 00 90 00 38 [17:07:47]RAPDU: 90 00 [17:07:47]wFMCommunicate OK [17:07:47]wFMCommunicate request_size=10 [17:07:47]MH_SAM_APDU [17:07:47]CAPDU: 80 0D 02 02 05 DD 5B 50 DB 00 [17:07:47]Write to MH i2c: E2 0D 00 6B 5A 80 0D 02 02 05 00 DD 5B 50 DB 00 00 00 AC [17:07:47]Write i2c OK [17:07:47]MH_I2C_Read... [17:07:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:47]Read from MH i2c: E2 [17:07:47]MH_I2C_Read... [17:07:47]Read from MH i2c: E2 03 00 [17:07:47]MH_I2C_Read... [17:07:47]Read from MH i2c: E2 03 00 6B 5A 00 90 00 39 [17:07:47]RAPDU: 90 00 [17:07:47]wFMCommunicate OK [17:07:47]wFMCommunicate request_size=4 [17:07:47]MH_SAM_APDU [17:07:47]CAPDU: 80 0D 03 02 [17:07:47]Write to MH i2c: E2 08 00 6C 5A 80 0D 03 02 00 00 00 00 41 [17:07:47]Write i2c OK [17:07:47]MH_I2C_Read... [17:07:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:07:47]Read from MH i2c: E2 [17:07:47]MH_I2C_Read... [17:07:47]Read from MH i2c: E2 0B 00 [17:07:47]MH_I2C_Read... [17:07:47]Read from MH i2c: E2 0B 00 6C 5A 00 F5 E1 8F 3E 50 65 60 5D 90 00 57 [17:07:47]RAPDU: F5 E1 8F 3E 50 65 60 5D 90 00 [17:07:47]wFMCommunicate OK [17:07:47]SAM_PROTO_SignData done [17:07:47]FM_MakeSignedData done [17:07:47]CreateOFDProtocolMessage [17:07:47]wFMCommunicate request_size=4 [17:07:47]MH_SAM_APDU [17:07:47]CAPDU: 80 11 00 00 [17:07:47]Write to MH i2c: E2 08 00 6D 5A 80 11 00 00 00 00 00 00 41 [17:07:47]Write i2c OK [17:07:47]MH_I2C_Read... [17:07:47]OFD Sender: No OFD packet to send [17:07:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:47]Read from MH i2c: E2 [17:07:47]MH_I2C_Read... [17:07:47]Read from MH i2c: E2 17 00 [17:07:47]MH_I2C_Read... [17:07:47]Read from MH i2c: E2 17 00 6D 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 91 [17:07:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [17:07:47]wFMCommunicate OK [17:07:47]CreateOFDProtocolMessage done [17:07:47]OFDSenderStorePacket 2101 [17:07:47]StoreOFDPacket docnum=2101 [17:07:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 32 05 07 01 4B EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 E8 7A A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 35 08 00 00 35 04 06 00 92 DD 5B 50 DB 00 F5 E1 8F 3E 50 65 60 5D [17:07:47]CheckFolder [17:07:47]dirname=/storage/ofd_packets [17:07:47]CheckFolder done [17:07:47]ProducePacketName [17:07:47]name=ofd_packets/00002101 [17:07:47]NVStorageSaveData ofd_packets/00002101 [17:07:47]File name is /storage/ofd_packets/00002101 [17:07:47]Write 301 bytes [17:07:47]NVStorageSaveData done [17:07:47]OFDSenderStorePacket done [17:07:47]KKMCreateOFDPacket done [17:07:47]NVStorageSaveData kkm_last_timestamp [17:07:47]File name is /storage/kkm_last_timestamp [17:07:47]Write 4 bytes [17:07:47]NVStorageSaveData done [17:07:47]ExternCall_PrintAddStr [17:07:47]wPrintStart [17:07:47]Write to MH i2c: 01 00 00 6E 5A C8 [17:07:47]Write i2c OK [17:07:47]MH_I2C_Read... [17:07:47]Read from MH i2c: 01 [17:07:47]MH_I2C_Read... [17:07:47]Read from MH i2c: 01 07 00 [17:07:47]MH_I2C_Read... [17:07:47]Read from MH i2c: 01 07 00 6E 5A 00 00 00 00 00 FF 0F DD [17:07:47]RasterBufferAndPrint [17:07:47]line Счет N : (1)609378 [17:07:47]line ИНН: 02508201610067 [17:07:47]line Контрольно-Кассовый Чек [17:07:47]line ПРОДАЖА [17:07:47]line ТРК (МРК, ГНК) : 62 [17:07:47]line Товар: 2710124130 [17:07:47]line Аи-92-К-2 [17:07:47]line 7.380 * 67.80 [17:07:47]line = 500.36 [17:07:47]line НДС 12% НСП 1% [17:07:47]line > о реализуемом товаре [17:07:47]line ИТОГО: 500.36 [17:07:47]line НСП 1% : 4.43 [17:07:47]line НДС 12% : 53.14 [17:07:47]line Наличными: 0.00 [17:07:47]line Безнал.: 500.36 [17:07:47]line Место: АЗС № 127 "Партнер Нефть" [17:07:47]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [17:07:47]line СНО: Общий режим [17:07:47]line Чек 152 28.07.2024 17:07 [17:07:47]line Смена: 13 ФФД: 1.0 [17:07:47]line ЗНМ: 0300000161 [17:07:47]line РНМ: 0000000000189667 [17:07:47]line Версия ККМ: v1.0 [17:07:47]line Платежная система: O! деньги [17:07:47]line ФМ: 0000000002094248 [17:07:47]line ФД: 2101 [17:07:47]line ФПД: 161479417453312 [17:07:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T170752&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2101&fm=161479417453312&tin=02508201610067®Number=0000000000189667&sum=50036 [17:07:48]OFD Sender: Processing packet 2101 [packets to send 1, broken 0] [17:07:48]ProducePacketName [17:07:48]name=ofd_packets/00002101 [17:07:48]OFD Sender: To server: pG, [17:07:48]CommunicateWithHost lk.salyk.kg:30040 [17:07:48]ConnectInit lk.salyk.kg [17:07:48]written 0, free lines is 4095 [17:07:48]Connected sock=10 [17:07:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 32 05 07 01 4B EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 E8 7A A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 35 08 00 00 35 04 06 00 92 DD 5B 50 DB 00 F5 E1 8F 3E 50 65 60 5D [17:07:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 C0 40 47 00 92 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 35 08 00 00 F4 03 04 00 57 26 A6 66 B6 04 01 00 00 C8 B2 C3 89 83 EE 3C 09 [17:07:48]CommunicateWithHost err = 0 [17:07:48]CheckOFDResponse [17:07:48]1017 (14) - 77093643461234 [17:07:48]1041 (16) - 0000000002094248 [17:07:48]1040 (4) - 2101 [17:07:48]1012 (4) - 28.07.2024 11:07 [17:07:48]1206 (1) - 0 [17:07:48]OFD Sender: Remove packet 2101 [17:07:48]ProducePacketName [17:07:48]name=ofd_packets/00002101 [17:07:48]NVStorageDeleteData [17:07:48]Write to MH i2c: 01 00 00 98 5A F2 [17:07:48]Write i2c OK [17:07:48]MH_I2C_Read... [17:07:48]Read from MH i2c: 01 [17:07:48]MH_I2C_Read... [17:07:48]Read from MH i2c: 01 07 00 [17:07:48]MH_I2C_Read... [17:07:48]Read from MH i2c: 01 07 00 98 5A 00 00 00 00 00 1A 0D 20 [17:07:48]RasterBufferAndPrint [17:07:48]line [17:07:48]line [17:07:48]line [17:07:48]line [17:07:48]line [17:07:48]written 0, free lines is 3363 [17:07:48]MH_Cut [17:07:48]Write to MH i2c: D1 01 00 9F 5A 01 CB [17:07:48]Write i2c OK [17:07:48]MH_I2C_Read... [17:07:48]Read from MH i2c: D1 [17:07:48]MH_I2C_Read... [17:07:48]Read from MH i2c: D1 01 00 [17:07:48]MH_I2C_Read... [17:07:48]Read from MH i2c: D1 01 00 9F 5A 00 CA [17:07:48]Write to MH i2c: 01 00 00 A0 5A FA [17:07:48]Write i2c OK [17:07:48]MH_I2C_Read... [17:07:48]OFD Sender: No OFD packet to send [17:07:49]*** Cut start [17:07:49]*** Partial cut [17:07:49]*** CUTSNS_PIN = 1 [17:07:49]*** CUTSNS_PIN = 0 [17:07:49]*** Brake cut motor [17:07:49]Read from MH i2c: 01 [17:07:49]MH_I2C_Read... [17:07:49]*** Stop cut motor [17:07:49]*** Cut end [17:07:49]Read from MH i2c: 01 07 00 [17:07:49]MH_I2C_Read... [17:07:49]Read from MH i2c: 01 07 00 A0 5A 00 00 00 00 00 FF 0F 0F [17:07:49]process_action close_receipt done [17:07:49]requested_data is exist [17:07:49]produce_requested_data [17:07:49]requested_item fm.sn is exist - process it [17:07:49]wFMCommunicate request_size=4 [17:07:49]MH_SAM_APDU [17:07:49]CAPDU: 80 11 00 00 [17:07:49]Write to MH i2c: E2 08 00 A1 5A 80 11 00 00 00 00 00 00 75 [17:07:49]Write i2c OK [17:07:49]MH_I2C_Read... [17:07:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:49]Read from MH i2c: E2 [17:07:49]MH_I2C_Read... [17:07:49]Read from MH i2c: E2 17 00 [17:07:49]MH_I2C_Read... [17:07:49]Read from MH i2c: E2 17 00 A1 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 C5 [17:07:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [17:07:49]wFMCommunicate OK [17:07:49]requested_item fd.num is exist - process it [17:07:49]SAM_PROTO_GetFieldsCounters [17:07:49]wFMCommunicate request_size=4 [17:07:49]MH_SAM_APDU [17:07:49]CAPDU: 80 13 00 00 [17:07:49]Write to MH i2c: E2 08 00 A2 5A 80 13 00 00 00 00 00 00 78 [17:07:49]Write i2c OK [17:07:49]MH_I2C_Read... [17:07:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:07:49]Read from MH i2c: E2 [17:07:49]MH_I2C_Read... [17:07:49]Read from MH i2c: E2 62 00 [17:07:49]MH_I2C_Read... [17:07:49]Read from MH i2c: E2 62 00 A2 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 35 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [17:07:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 35 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:07:49]wFMCommunicate OK [17:07:49]SAM_PROTO_GetFieldsCounters done [17:07:49]requested_item shift.num is exist - process it [17:07:49]requested_item shift.opened is exist - process it [17:07:49]req_shift_opened [17:07:49]FM_GetShiftState [17:07:49]SAM_PROTO_GetShiftState [17:07:49]wFMCommunicate request_size=4 [17:07:49]MH_SAM_APDU [17:07:49]CAPDU: 80 13 01 00 [17:07:49]Write to MH i2c: E2 08 00 A3 5A 80 13 01 00 00 00 00 00 7A [17:07:50]Write i2c OK [17:07:50]MH_I2C_Read... [17:07:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:50]Read from MH i2c: E2 [17:07:50]MH_I2C_Read... [17:07:50]Read from MH i2c: E2 0E 00 [17:07:50]MH_I2C_Read... [17:07:50]Read from MH i2c: E2 0E 00 A3 5A 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 6E [17:07:50]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [17:07:50]wFMCommunicate OK [17:07:50]SAM_PROTO_GetShiftState done [17:07:50]FM_GetShiftState done [17:07:50]req_shift_opened done [17:07:50]requested_item shift.open_date is exist - process it [17:07:50]req_shift_open_date [17:07:50]req_shift_open_date done [17:07:50]produce_requested_data done [17:07:50]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2101,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [17:07:50]process_action_free close_receipt [17:07:50]json_value_free [17:07:50]json_value_free done [17:07:50]process_json_proto returns [17:07:50]Send response to host [17:07:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2101,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [17:07:50]free response buf [17:07:50]execute_script done [17:07:50]execute_script returns [17:07:50]free content buf [17:07:50]Sock 9.Close socket [17:07:50]Sock 9.Thread stoped [17:07:53]OFD Sender: No OFD packet to send [17:07:58]OFD Sender: No OFD packet to send [17:08:03]OFD Sender: No OFD packet to send [17:08:08]OFD Sender: No OFD packet to send [17:08:13]OFD Sender: No OFD packet to send [17:08:18]OFD Sender: No OFD packet to send [17:08:23]OFD Sender: No OFD packet to send [17:08:28]OFD Sender: No OFD packet to send [17:08:33]OFD Sender: No OFD packet to send [17:08:38]OFD Sender: No OFD packet to send [17:08:43]OFD Sender: No OFD packet to send [17:08:48]OFD Sender: No OFD packet to send [17:08:53]OFD Sender: No OFD packet to send [17:08:58]OFD Sender: No OFD packet to send [17:09:03]OFD Sender: No OFD packet to send [17:09:08]OFD Sender: No OFD packet to send [17:09:13]OFD Sender: No OFD packet to send [17:09:18]OFD Sender: No OFD packet to send [17:09:23]OFD Sender: No OFD packet to send [17:09:28]OFD Sender: No OFD packet to send [17:09:33]OFD Sender: No OFD packet to send [17:09:34]accept exits with 8 [17:09:34]New connection [17:09:34]New thread 3067317604 created [17:09:34]Thread 3067460964 joined [17:09:34]Waiting for new connection... [17:09:34] Sock 8.Parse request [17:09:34]Sock 8.Check first char [17:09:34]Sock 8.First char is OK [17:09:34]request: POST /json_proto HTTP/1.0 [17:09:34]Method: POST [17:09:34]URL: /json_proto [17:09:34]Method is POST - this is cgi request [17:09:34]url: /json_proto [17:09:34]query_string will be loaded in cgi processing [17:09:34]execute_cgi json_proto POST (null) [17:09:34]execute_cgi path=json_proto method=POST [17:09:34]POST find Content-Length [17:09:34]Host: 172.17.45.132:8080 [17:09:34]Content-Length: 908 [17:09:34]Content-Type: application/json [17:09:34] [17:09:34]POST finish read [17:09:34]Found Content-Length = 908 [17:09:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126399", "tax_sys" : 0, "items" : [ { "code": "2000028410025", "name": "\u041E\u0447\u043A\u0438 \u0441\u043E\u043B\u043D\u0446\u0435\u0437\u0430\u0449\u0438\u0442\u043D\u044B\u0435 \u0432 \u0430\u0441\u0441\u043E\u0440\u0442\u0438\u043C\u0435\u043D\u0442\u0435", "price" : 590.00, "quantity" : 1.000, "sum" : 590.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" : 590.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:09:34]execute_script... [17:09: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)126399", "tax_sys" : 0, "items" : [ { "code": "2000028410025", "name": "\u041E\u0447\u043A\u0438 \u0441\u043E\u043B\u043D\u0446\u0435\u0437\u0430\u0449\u0438\u0442\u043D\u044B\u0435 \u0432 \u0430\u0441\u0441\u043E\u0440\u0442\u0438\u043C\u0435\u043D\u0442\u0435", "price" : 590.00, "quantity" : 1.000, "sum" : 590.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" : 590.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:09:34]POST & json_proto [17:09:34]process_json_proto [17:09:34]json parsed OK: [17:09:34]protocol is kg_v1.0 [17:09:34]action value=close_receipt [17:09:34]process_action close_receipt [17:09:34]cmd_close_receipt [17:09:34]MH_GetDate [17:09:34]Write to MH i2c: F0 00 00 A4 5A ED [17:09:34]Write i2c OK [17:09:34]MH_I2C_Read... [17:09:34]Read from MH i2c: F0 [17:09:34]MH_I2C_Read... [17:09:34]Read from MH i2c: F0 09 00 [17:09:34]MH_I2C_Read... [17:09:34]Read from MH i2c: F0 09 00 A4 5A 00 54 7B A6 66 E3 0B 90 66 B5 [17:09:34]GetLastDocTimeStamp 1722186472 [17:09:34]current date 1722186580 [17:09:34]FM_GetShiftState [17:09:34]SAM_PROTO_GetShiftState [17:09:34]wFMCommunicate request_size=4 [17:09:34]MH_SAM_APDU [17:09:34]CAPDU: 80 13 01 00 [17:09:34]Write to MH i2c: E2 08 00 A5 5A 80 13 01 00 00 00 00 00 7C [17:09:34]Write i2c OK [17:09:34]MH_I2C_Read... [17:09:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:34]Read from MH i2c: E2 [17:09:34]MH_I2C_Read... [17:09:34]Read from MH i2c: E2 0E 00 [17:09:34]MH_I2C_Read... [17:09:34]Read from MH i2c: E2 0E 00 A5 5A 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 70 [17:09:34]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [17:09:34]wFMCommunicate OK [17:09:34]SAM_PROTO_GetShiftState done [17:09:34]FM_GetShiftState done [17:09:34]opened in 1722125648 [17:09:34]opened+sec_in_day 1722212048 [17:09:34]quantity*price = 59000 [17:09:34]sum+1 = 59001 [17:09:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 590.00 НСП 1% : 5.22 НДС 12% : 62.65 Наличными: 0.00 Безнал.: 590.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 153 28.07.2024 17:09 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2102 ФПД: 177357222908522 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T170940&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2102&fm=177357222908522&tin=02508201610067®Number=0000000000189667&sum=59000 0 [17:09:35]StoreToDocumentArchive [17:09:35]shift 13 fd 2102 [17:09:35]save to /storage/0013/doc_00002102 [17:09:35]save last doc name /storage/0013/doc_00002102 to /storage/kkm_last_doc_name [17:09:35]save OK [17:09:35]Clear old archive folders... [17:09:35]ProcessDocumentItem done err = 0, tmpTLVsize=307 [17:09:35]tlvbuf is 01F64480 [17:09:35]SAM_PROTO_ClearQueue [17:09:35]wFMCommunicate request_size=4 [17:09:35]MH_SAM_APDU [17:09:35]CAPDU: 80 09 00 00 [17:09:35]Write to MH i2c: E2 08 00 B2 5A 80 09 00 00 00 00 00 00 7E [17:09:35]Write i2c OK [17:09:35]MH_I2C_Read... [17:09:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:09:35]Read from MH i2c: E2 [17:09:35]MH_I2C_Read... [17:09:35]Read from MH i2c: E2 03 00 [17:09:35]MH_I2C_Read... [17:09:35]Read from MH i2c: E2 03 00 B2 5A 00 90 00 80 [17:09:35]RAPDU: 90 00 [17:09:35]wFMCommunicate OK [17:09:35]SAM_PROTO_ClearQueue done [17:09:35]KKMCreateOFDPacket [17:09:35]OFDProtocolAddRootSTLVToBuf [17:09:35]FM_MakeSignedData [17:09:35]FM_MakeSignedData [17:09:35]SAM_PROTO_SignData [17:09:35]wFMCommunicate request_size=4 [17:09:35]MH_SAM_APDU [17:09:35]CAPDU: 80 0D 01 02 [17:09:35]Write to MH i2c: E2 08 00 B3 5A 80 0D 01 02 00 00 00 00 86 [17:09:35]Write i2c OK [17:09:35]MH_I2C_Read... [17:09:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:09:35]Read from MH i2c: E2 [17:09:35]MH_I2C_Read... [17:09:35]Read from MH i2c: E2 03 00 [17:09:35]MH_I2C_Read... [17:09:35]Read from MH i2c: E2 03 00 B3 5A 00 90 00 81 [17:09:35]RAPDU: 90 00 [17:09:35]wFMCommunicate OK [17:09:35]wFMCommunicate request_size=255 [17:09:35]MH_SAM_APDU [17:09:35]CAPDU: 80 0D 02 02 FA 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 38 34 31 30 30 32 35 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 E6 00 00 00 00 13 04 06 00 78 E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 E6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 54 7B A6 66 0E 04 04 00 0D 00 00 00 B9 04 [17:09:35]Write to MH i2c: E2 02 01 B4 5A 80 0D 02 02 FA 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 38 34 31 30 30 32 35 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 E6 00 00 00 00 13 04 06 00 78 E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 E6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 54 7B A6 66 0E 04 04 00 0D 00 00 00 B9 04 00 00 88 [17:09:35]Write i2c OK [17:09:35]MH_I2C_Read... [17:09:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:35]Read from MH i2c: E2 [17:09:35]MH_I2C_Read... [17:09:35]Read from MH i2c: E2 03 00 [17:09:35]MH_I2C_Read... [17:09:35]Read from MH i2c: E2 03 00 B4 5A 00 90 00 82 [17:09:35]RAPDU: 90 00 [17:09:35]wFMCommunicate OK [17:09:35]wFMCommunicate request_size=66 [17:09:35]MH_SAM_APDU [17:09:35]CAPDU: 80 0D 02 02 3D 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 36 08 00 00 35 04 06 00 A1 4E 32 45 12 6A [17:09:35]Write to MH i2c: E2 45 00 B5 5A 80 0D 02 02 3D 00 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 36 08 00 00 35 04 06 00 A1 4E 32 45 12 6A 00 00 04 [17:09:35]Write i2c OK [17:09:35]MH_I2C_Read... [17:09:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:35]Read from MH i2c: E2 [17:09:35]MH_I2C_Read... [17:09:35]Read from MH i2c: E2 03 00 [17:09:35]MH_I2C_Read... [17:09:35]Read from MH i2c: E2 03 00 B5 5A 00 90 00 83 [17:09:35]RAPDU: 90 00 [17:09:35]wFMCommunicate OK [17:09:35]wFMCommunicate request_size=4 [17:09:35]MH_SAM_APDU [17:09:35]CAPDU: 80 0D 03 02 [17:09:35]Write to MH i2c: E2 08 00 B6 5A 80 0D 03 02 00 00 00 00 8B [17:09:35]Write i2c OK [17:09:35]MH_I2C_Read... [17:09:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:09:36]Read from MH i2c: E2 [17:09:36]MH_I2C_Read... [17:09:36]Read from MH i2c: E2 0B 00 [17:09:36]MH_I2C_Read... [17:09:36]Read from MH i2c: E2 0B 00 B6 5A 00 A2 53 D7 80 8B 42 A7 EA 90 00 36 [17:09:36]RAPDU: A2 53 D7 80 8B 42 A7 EA 90 00 [17:09:36]wFMCommunicate OK [17:09:36]SAM_PROTO_SignData done [17:09:36]FM_MakeSignedData done [17:09:36]CreateOFDProtocolMessage [17:09:36]wFMCommunicate request_size=4 [17:09:36]MH_SAM_APDU [17:09:36]CAPDU: 80 11 00 00 [17:09:36]Write to MH i2c: E2 08 00 B7 5A 80 11 00 00 00 00 00 00 8B [17:09:36]Write i2c OK [17:09:36]MH_I2C_Read... [17:09:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:36]Read from MH i2c: E2 [17:09:36]MH_I2C_Read... [17:09:36]Read from MH i2c: E2 17 00 [17:09:36]MH_I2C_Read... [17:09:36]Read from MH i2c: E2 17 00 B7 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 DB [17:09:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [17:09:36]wFMCommunicate OK [17:09:36]CreateOFDProtocolMessage done [17:09:36]OFDSenderStorePacket 2102 [17:09:36]StoreOFDPacket docnum=2102 [17:09:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 47 01 00 00 BC C0 3F 01 E1 52 5A 03 01 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 38 34 31 30 30 32 35 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 E6 00 00 00 00 13 04 06 00 78 E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 E6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 54 7B A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 36 08 00 00 35 04 06 00 A1 4E 32 45 12 6A A2 53 D7 80 8B 42 A7 EA [17:09:36]CheckFolder [17:09:36]dirname=/storage/ofd_packets [17:09:36]CheckFolder done [17:09:36]ProducePacketName [17:09:36]name=ofd_packets/00002102 [17:09:36]NVStorageSaveData ofd_packets/00002102 [17:09:36]File name is /storage/ofd_packets/00002102 [17:09:36]Write 357 bytes [17:09:36]NVStorageSaveData done [17:09:36]OFDSenderStorePacket done [17:09:36]KKMCreateOFDPacket done [17:09:36]NVStorageSaveData kkm_last_timestamp [17:09:36]File name is /storage/kkm_last_timestamp [17:09:36]Write 4 bytes [17:09:36]NVStorageSaveData done [17:09:36]ExternCall_PrintAddStr [17:09:36]wPrintStart [17:09:36]Write to MH i2c: 01 00 00 B8 5A 12 [17:09:36]Write i2c OK [17:09:36]MH_I2C_Read... [17:09:36]Read from MH i2c: 01 [17:09:36]MH_I2C_Read... [17:09:36]Read from MH i2c: 01 07 00 [17:09:36]MH_I2C_Read... [17:09:36]Read from MH i2c: 01 07 00 B8 5A 00 00 00 00 00 FF 0F 27 [17:09:36]RasterBufferAndPrint [17:09:36]line Счет N : (3)126399 [17:09:36]line ИНН: 02508201610067 [17:09:36]line Контрольно-Кассовый Чек [17:09:36]line ПРОДАЖА [17:09:36]line Товар: 2000028410025 [17:09:36]line Очки солнцезащитные в ассортименте [17:09:36]line 1.000 * 590.00 [17:09:36]line = 590.00 [17:09:36]line НДС 12% НСП 1% [17:09:36]line > о реализуемом товаре [17:09:36]line ИТОГО: 590.00 [17:09:36]line НСП 1% : 5.22 [17:09:36]line НДС 12% : 62.65 [17:09:36]line Наличными: 0.00 [17:09:36]line Безнал.: 590.00 [17:09:36]line Место: АЗС № 127 "Партнер Нефть" [17:09:36]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [17:09:36]line СНО: Общий режим [17:09:36]line Чек 153 28.07.2024 17:09 [17:09:36]line Смена: 13 ФФД: 1.0 [17:09:36]line ЗНМ: 0300000161 [17:09:36]line РНМ: 0000000000189667 [17:09:36]line Версия ККМ: v1.0 [17:09:36]line Платежная система: O! деньги [17:09:36]line ФМ: 0000000002094248 [17:09:36]line ФД: 2102 [17:09:36]line ФПД: 177357222908522 [17:09:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T170940&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2102&fm=177357222908522&tin=02508201610067®Number=0000000000189667&sum=59000 [17:09:36]line 0 [17:09:36]OFD Sender: Processing packet 2102 [packets to send 1, broken 0] [17:09:36]ProducePacketName [17:09:36]name=ofd_packets/00002102 [17:09:36]OFD Sender: To server: pG, [17:09:36]CommunicateWithHost lk.salyk.kg:30040 [17:09:36]ConnectInit lk.salyk.kg [17:09:36]written 0, free lines is 4095 [17:09:36]Connected sock=10 [17:09:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 47 01 00 00 BC C0 3F 01 E1 52 5A 03 01 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 38 34 31 30 30 32 35 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 E6 00 00 00 00 13 04 06 00 78 E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 E6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 54 7B A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 36 08 00 00 35 04 06 00 A1 4E 32 45 12 6A A2 53 D7 80 8B 42 A7 EA [17:09:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 8D F8 47 00 2A F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 36 08 00 00 F4 03 04 00 C4 26 A6 66 B6 04 01 00 00 1B 93 C0 34 F3 E2 F3 5A [17:09:36]CommunicateWithHost err = 0 [17:09:36]CheckOFDResponse [17:09:36]1017 (14) - 77093643461234 [17:09:36]1041 (16) - 0000000002094248 [17:09:36]1040 (4) - 2102 [17:09:36]1012 (4) - 28.07.2024 11:08 [17:09:36]1206 (1) - 0 [17:09:36]OFD Sender: Remove packet 2102 [17:09:36]ProducePacketName [17:09:36]name=ofd_packets/00002102 [17:09:36]NVStorageDeleteData [17:09:36]Write to MH i2c: 01 00 00 E3 5A 3D [17:09:36]Write i2c OK [17:09:36]MH_I2C_Read... [17:09:36]Read from MH i2c: 01 [17:09:36]MH_I2C_Read... [17:09:36]Read from MH i2c: 01 07 00 [17:09:36]MH_I2C_Read... [17:09:36]Read from MH i2c: 01 07 00 E3 5A 00 00 00 00 00 F7 0C 47 [17:09:36]RasterBufferAndPrint [17:09:36]line [17:09:36]line [17:09:36]line [17:09:36]line [17:09:36]line [17:09:36]written 0, free lines is 3326 [17:09:36]MH_Cut [17:09:36]Write to MH i2c: D1 01 00 EA 5A 01 16 [17:09:36]Write i2c OK [17:09:36]MH_I2C_Read... [17:09:36]Read from MH i2c: D1 [17:09:36]MH_I2C_Read... [17:09:36]Read from MH i2c: D1 01 00 [17:09:36]MH_I2C_Read... [17:09:36]Read from MH i2c: D1 01 00 EA 5A 00 15 [17:09:36]Write to MH i2c: 01 00 00 EB 5A 45 [17:09:36]Write i2c OK [17:09:36]MH_I2C_Read... [17:09:37]OFD Sender: No OFD packet to send [17:09:37]*** Cut start [17:09:37]*** Partial cut [17:09:37]*** CUTSNS_PIN = 1 [17:09:37]*** CUTSNS_PIN = 0 [17:09:37]*** Brake cut motor [17:09:38]Read from MH i2c: 01 [17:09:38]MH_I2C_Read... [17:09:38]*** Stop cut motor [17:09:38]*** Cut end [17:09:38]Read from MH i2c: 01 07 00 [17:09:38]MH_I2C_Read... [17:09:38]Read from MH i2c: 01 07 00 EB 5A 00 00 00 00 00 FF 0F 5A [17:09:38]process_action close_receipt done [17:09:38]requested_data is exist [17:09:38]produce_requested_data [17:09:38]requested_item fm.sn is exist - process it [17:09:38]wFMCommunicate request_size=4 [17:09:38]MH_SAM_APDU [17:09:38]CAPDU: 80 11 00 00 [17:09:38]Write to MH i2c: E2 08 00 EC 5A 80 11 00 00 00 00 00 00 C0 [17:09:38]Write i2c OK [17:09:38]MH_I2C_Read... [17:09:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:38]Read from MH i2c: E2 [17:09:38]MH_I2C_Read... [17:09:38]Read from MH i2c: E2 17 00 [17:09:38]MH_I2C_Read... [17:09:38]Read from MH i2c: E2 17 00 EC 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 10 [17:09:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [17:09:38]wFMCommunicate OK [17:09:38]requested_item fd.num is exist - process it [17:09:38]SAM_PROTO_GetFieldsCounters [17:09:38]wFMCommunicate request_size=4 [17:09:38]MH_SAM_APDU [17:09:38]CAPDU: 80 13 00 00 [17:09:38]Write to MH i2c: E2 08 00 ED 5A 80 13 00 00 00 00 00 00 C3 [17:09:38]Write i2c OK [17:09:38]MH_I2C_Read... [17:09:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:09:38]Read from MH i2c: E2 [17:09:38]MH_I2C_Read... [17:09:38]Read from MH i2c: E2 62 00 [17:09:38]MH_I2C_Read... [17:09:38]Read from MH i2c: E2 62 00 ED 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 36 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 03 [17:09:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 36 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:09:38]wFMCommunicate OK [17:09:38]SAM_PROTO_GetFieldsCounters done [17:09:38]requested_item shift.num is exist - process it [17:09:38]requested_item shift.opened is exist - process it [17:09:38]req_shift_opened [17:09:38]FM_GetShiftState [17:09:38]SAM_PROTO_GetShiftState [17:09:38]wFMCommunicate request_size=4 [17:09:38]MH_SAM_APDU [17:09:38]CAPDU: 80 13 01 00 [17:09:38]Write to MH i2c: E2 08 00 EE 5A 80 13 01 00 00 00 00 00 C5 [17:09:38]Write i2c OK [17:09:38]MH_I2C_Read... [17:09:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:38]Read from MH i2c: E2 [17:09:38]MH_I2C_Read... [17:09:38]Read from MH i2c: E2 0E 00 [17:09:38]MH_I2C_Read... [17:09:38]Read from MH i2c: E2 0E 00 EE 5A 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 B9 [17:09:38]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [17:09:38]wFMCommunicate OK [17:09:38]SAM_PROTO_GetShiftState done [17:09:38]FM_GetShiftState done [17:09:38]req_shift_opened done [17:09:38]requested_item shift.open_date is exist - process it [17:09:38]req_shift_open_date [17:09:38]req_shift_open_date done [17:09:38]produce_requested_data done [17:09:38]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2102,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [17:09:38]process_action_free close_receipt [17:09:38]json_value_free [17:09:38]json_value_free done [17:09:38]process_json_proto returns [17:09:38]Send response to host [17:09:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2102,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [17:09:38]free response buf [17:09:38]execute_script done [17:09:38]execute_script returns [17:09:38]free content buf [17:09:38]Sock 8.Close socket [17:09:38]Sock 8.Thread stoped [17:09:42]OFD Sender: No OFD packet to send [17:09:47]OFD Sender: No OFD packet to send [17:09:52]OFD Sender: No OFD packet to send [17:09:57]OFD Sender: No OFD packet to send [17:10:02]OFD Sender: No OFD packet to send [17:10:07]OFD Sender: No OFD packet to send [17:10:12]OFD Sender: No OFD packet to send [17:10:17]OFD Sender: No OFD packet to send [17:10:22]OFD Sender: No OFD packet to send [17:10:27]OFD Sender: No OFD packet to send [17:10:32]OFD Sender: No OFD packet to send [17:10:37]OFD Sender: No OFD packet to send [17:10:42]OFD Sender: No OFD packet to send [17:10:47]OFD Sender: No OFD packet to send [17:10:52]OFD Sender: No OFD packet to send [17:10:57]OFD Sender: No OFD packet to send [17:11:02]OFD Sender: No OFD packet to send [17:11:07]OFD Sender: No OFD packet to send [17:11:12]OFD Sender: No OFD packet to send [17:11:17]OFD Sender: No OFD packet to send [17:11:22]OFD Sender: No OFD packet to send [17:11:27]OFD Sender: No OFD packet to send [17:11:32]OFD Sender: No OFD packet to send [17:11:37]OFD Sender: No OFD packet to send [17:11:42]OFD Sender: No OFD packet to send [17:11:47]OFD Sender: No OFD packet to send [17:11:52]OFD Sender: No OFD packet to send [17:11:57]OFD Sender: No OFD packet to send [17:12:02]OFD Sender: No OFD packet to send [17:12:07]OFD Sender: No OFD packet to send [17:12:12]OFD Sender: No OFD packet to send [17:12:17]OFD Sender: No OFD packet to send [17:12:22]OFD Sender: No OFD packet to send [17:12:27]OFD Sender: No OFD packet to send [17:12:32]OFD Sender: No OFD packet to send [17:12:37]OFD Sender: No OFD packet to send [17:12:42]OFD Sender: No OFD packet to send [17:12:47]OFD Sender: No OFD packet to send [17:12:52]OFD Sender: No OFD packet to send [17:12:57]OFD Sender: No OFD packet to send [17:13:02]OFD Sender: No OFD packet to send [17:13:07]OFD Sender: No OFD packet to send [17:13:12]OFD Sender: No OFD packet to send [17:13:17]OFD Sender: No OFD packet to send [17:13:22]OFD Sender: No OFD packet to send [17:13:27]OFD Sender: No OFD packet to send [17:13:32]OFD Sender: No OFD packet to send [17:13:37]OFD Sender: No OFD packet to send [17:13:42]OFD Sender: No OFD packet to send [17:13:47]OFD Sender: No OFD packet to send [17:13:52]OFD Sender: No OFD packet to send [17:13:57]OFD Sender: No OFD packet to send [17:14:02]OFD Sender: No OFD packet to send [17:14:07]OFD Sender: No OFD packet to send [17:14:12]OFD Sender: No OFD packet to send [17:14:17]OFD Sender: No OFD packet to send [17:14:22]OFD Sender: No OFD packet to send [17:14:27]OFD Sender: No OFD packet to send [17:14:32]OFD Sender: No OFD packet to send [17:14:37]OFD Sender: No OFD packet to send [17:14:42]OFD Sender: No OFD packet to send [17:14:47]OFD Sender: No OFD packet to send [17:14:52]OFD Sender: No OFD packet to send [17:14:57]OFD Sender: No OFD packet to send [17:15:02]OFD Sender: No OFD packet to send [17:15:07]OFD Sender: No OFD packet to send [17:15:12]OFD Sender: No OFD packet to send [17:15:17]OFD Sender: No OFD packet to send [17:15:22]OFD Sender: No OFD packet to send [17:15:27]OFD Sender: No OFD packet to send [17:15:32]OFD Sender: No OFD packet to send [17:15:37]OFD Sender: No OFD packet to send [17:15:42]OFD Sender: No OFD packet to send [17:15:47]OFD Sender: No OFD packet to send [17:15:52]OFD Sender: No OFD packet to send [17:15:57]OFD Sender: No OFD packet to send [17:16:02]OFD Sender: No OFD packet to send [17:16:07]OFD Sender: No OFD packet to send [17:16:12]OFD Sender: No OFD packet to send [17:16:17]OFD Sender: No OFD packet to send [17:16:22]OFD Sender: No OFD packet to send [17:16:27]OFD Sender: No OFD packet to send [17:16:32]OFD Sender: No OFD packet to send [17:16:37]OFD Sender: No OFD packet to send [17:16:42]OFD Sender: No OFD packet to send [17:16:47]OFD Sender: No OFD packet to send [17:16:52]OFD Sender: No OFD packet to send [17:16:57]OFD Sender: No OFD packet to send [17:17:02]OFD Sender: No OFD packet to send [17:17:07]OFD Sender: No OFD packet to send [17:17:12]OFD Sender: No OFD packet to send [17:17:17]OFD Sender: No OFD packet to send [17:17:22]OFD Sender: No OFD packet to send [17:17:27]OFD Sender: No OFD packet to send [17:17:32]OFD Sender: No OFD packet to send [17:17:37]OFD Sender: No OFD packet to send [17:17:42]OFD Sender: No OFD packet to send [17:17:47]OFD Sender: No OFD packet to send [17:17:52]OFD Sender: No OFD packet to send [17:17:57]OFD Sender: No OFD packet to send [17:18:02]OFD Sender: No OFD packet to send [17:18:07]OFD Sender: No OFD packet to send [17:18:12]OFD Sender: No OFD packet to send [17:18:17]OFD Sender: No OFD packet to send [17:18:22]OFD Sender: No OFD packet to send [17:18:27]OFD Sender: No OFD packet to send [17:18:32]OFD Sender: No OFD packet to send [17:18:37]OFD Sender: No OFD packet to send [17:18:42]OFD Sender: No OFD packet to send [17:18:47]OFD Sender: No OFD packet to send [17:18:52]OFD Sender: No OFD packet to send [17:18:57]OFD Sender: No OFD packet to send [17:19:00]int [17:19:00]Write to MH i2c: 01 00 00 EF 5A 49 [17:19:00]*** FLAG_PRN_PAP1 set [17:19:00]Write i2c OK [17:19:00]MH_I2C_Read... [17:19:00]Read from MH i2c: 01 [17:19:00]MH_I2C_Read... [17:19:00]Read from MH i2c: 01 07 00 [17:19:00]MH_I2C_Read... [17:19:00]Read from MH i2c: 01 07 00 EF 5A 00 01 00 00 00 FF 0F 5F [17:19:00]state=0 [17:19:00]No paper [17:19:01]int [17:19:01]Write to MH i2c: 01 00 00 F0 5A 4A [17:19:01]*** FLAG_PRN_PAP2 set [17:19:01]Write i2c OK [17:19:01]MH_I2C_Read... [17:19:01]Read from MH i2c: 01 [17:19:01]MH_I2C_Read... [17:19:01]Read from MH i2c: 01 07 00 [17:19:01]MH_I2C_Read... [17:19:01]Read from MH i2c: 01 07 00 F0 5A 00 03 00 00 00 FF 0F 62 [17:19:01]state=0 [17:19:01]No paper [17:19:01]Cover opened [17:19:02]OFD Sender: No OFD packet to send [17:19:06]Write to MH i2c: 01 00 00 F1 5A 4B [17:19:06]Write i2c OK [17:19:06]MH_I2C_Read... [17:19:06]Read from MH i2c: 01 [17:19:06]MH_I2C_Read... [17:19:06]Read from MH i2c: 01 07 00 [17:19:06]MH_I2C_Read... [17:19:06]Read from MH i2c: 01 07 00 F1 5A 00 03 00 00 00 FF 0F 63 [17:19:06]state=3 [17:19:06]No paper [17:19:06]Cover opened [17:19:07]OFD Sender: No OFD packet to send [17:19:11]Write to MH i2c: 01 00 00 F2 5A 4C [17:19:11]Write i2c OK [17:19:11]MH_I2C_Read... [17:19:11]Read from MH i2c: 01 [17:19:11]MH_I2C_Read... [17:19:11]Read from MH i2c: 01 07 00 [17:19:11]MH_I2C_Read... [17:19:11]Read from MH i2c: 01 07 00 F2 5A 00 03 00 00 00 FF 0F 64 [17:19:11]state=3 [17:19:11]No paper [17:19:11]Cover opened [17:19:12]OFD Sender: No OFD packet to send [17:19:16]Write to MH i2c: 01 00 00 F3 5A 4D [17:19:16]Write i2c OK [17:19:16]MH_I2C_Read... [17:19:16]Read from MH i2c: 01 [17:19:16]MH_I2C_Read... [17:19:16]Read from MH i2c: 01 07 00 [17:19:16]MH_I2C_Read... [17:19:16]Read from MH i2c: 01 07 00 F3 5A 00 03 00 00 00 FF 0F 65 [17:19:16]state=3 [17:19:16]No paper [17:19:16]Cover opened [17:19:17]OFD Sender: No OFD packet to send [17:19:21]int [17:19:21]Write to MH i2c: 01 00 00 F4 5A 4E [17:19:21]*** FLAG_PRN_PAP1 reset [17:19:21]Write i2c OK [17:19:21]MH_I2C_Read... [17:19:21]Read from MH i2c: 01 [17:19:21]MH_I2C_Read... [17:19:21]Read from MH i2c: 01 07 00 [17:19:21]MH_I2C_Read... [17:19:21]Read from MH i2c: 01 07 00 F4 5A 00 02 00 00 00 FF 0F 65 [17:19:21]state=3 [17:19:21]Cover opened [17:19:21]int [17:19:21]Write to MH i2c: 01 00 00 F5 5A 4F [17:19:21]*** FLAG_PRN_PAP2 reset [17:19:21]Write i2c OK [17:19:21]MH_I2C_Read... [17:19:21]Read from MH i2c: 01 [17:19:21]MH_I2C_Read... [17:19:21]Read from MH i2c: 01 07 00 [17:19:21]MH_I2C_Read... [17:19:21]Read from MH i2c: 01 07 00 F5 5A 00 00 00 00 00 FF 0F 64 [17:19:21]state=3 [17:19:21]Cover closed [17:19:22]OFD Sender: No OFD packet to send [17:19:27]OFD Sender: No OFD packet to send [17:19:32]OFD Sender: No OFD packet to send [17:19:37]OFD Sender: No OFD packet to send [17:19:42]OFD Sender: No OFD packet to send [17:19:47]OFD Sender: No OFD packet to send [17:19:52]OFD Sender: No OFD packet to send [17:19:57]OFD Sender: No OFD packet to send [17:20:02]OFD Sender: No OFD packet to send [17:20:07]OFD Sender: No OFD packet to send [17:20:12]OFD Sender: No OFD packet to send [17:20:17]OFD Sender: No OFD packet to send [17:20:22]OFD Sender: No OFD packet to send [17:20:27]OFD Sender: No OFD packet to send [17:20:32]OFD Sender: No OFD packet to send [17:20:37]OFD Sender: No OFD packet to send [17:20:42]OFD Sender: No OFD packet to send [17:20:47]OFD Sender: No OFD packet to send [17:20:52]OFD Sender: No OFD packet to send [17:20:57]OFD Sender: No OFD packet to send [17:21:02]OFD Sender: No OFD packet to send [17:21:07]OFD Sender: No OFD packet to send [17:21:12]OFD Sender: No OFD packet to send [17:21:17]OFD Sender: No OFD packet to send [17:21:22]OFD Sender: No OFD packet to send [17:21:27]OFD Sender: No OFD packet to send [17:21:32]OFD Sender: No OFD packet to send [17:21:37]OFD Sender: No OFD packet to send [17:21:42]OFD Sender: No OFD packet to send [17:21:47]OFD Sender: No OFD packet to send [17:21:49]accept exits with 9 [17:21:49]New connection [17:21:49]New thread 3067460964 created [17:21:49]Thread 3067317604 joined [17:21:49]Waiting for new connection... [17:21:49] Sock 9.Parse request [17:21:49]Sock 9.Check first char [17:21:49]Sock 9.First char is OK [17:21:49]request: POST /json_proto HTTP/1.0 [17:21:49]Method: POST [17:21:49]URL: /json_proto [17:21:49]Method is POST - this is cgi request [17:21:49]url: /json_proto [17:21:49]query_string will be loaded in cgi processing [17:21:49]execute_cgi json_proto POST (null) [17:21:49]execute_cgi path=json_proto method=POST [17:21:49]POST find Content-Length [17:21:49]Host: 172.17.45.132:8080 [17:21:49]Content-Length: 215 [17:21:49]Content-Type: application/json [17:21:49] [17:21:49]POST finish read [17:21:49]Found Content-Length = 215 [17:21: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" ] } } [17:21:49]execute_script... [17:21: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" ] } } [17:21:49]POST & json_proto [17:21:49]process_json_proto [17:21:49]json parsed OK: [17:21:49]protocol is kg_v1.0 [17:21:49]action value=get_value [17:21:49]process_action get_value [17:21:49]cmd_get_value [17:21:49]process_action get_value done [17:21:49]requested_data is exist [17:21:49]produce_requested_data [17:21:49]requested_item kkm.sn is exist - process it [17:21:49]requested_item kkm.ver is exist - process it [17:21:49]requested_item fm.sn is exist - process it [17:21:49]wFMCommunicate request_size=4 [17:21:49]MH_SAM_APDU [17:21:49]CAPDU: 80 11 00 00 [17:21:49]Write to MH i2c: E2 08 00 F6 5A 80 11 00 00 00 00 00 00 CA [17:21:49]Write i2c OK [17:21:49]MH_I2C_Read... [17:21:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:21:49]Read from MH i2c: E2 [17:21:49]MH_I2C_Read... [17:21:49]Read from MH i2c: E2 17 00 [17:21:49]MH_I2C_Read... [17:21:49]Read from MH i2c: E2 17 00 F6 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 1A [17:21:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [17:21:49]wFMCommunicate OK [17:21:49]requested_item fd.num is exist - process it [17:21:49]SAM_PROTO_GetFieldsCounters [17:21:49]wFMCommunicate request_size=4 [17:21:49]MH_SAM_APDU [17:21:49]CAPDU: 80 13 00 00 [17:21:49]Write to MH i2c: E2 08 00 F7 5A 80 13 00 00 00 00 00 00 CD [17:21:49]Write i2c OK [17:21:49]MH_I2C_Read... [17:21:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:21:49]Read from MH i2c: E2 [17:21:49]MH_I2C_Read... [17:21:49]Read from MH i2c: E2 62 00 [17:21:49]MH_I2C_Read... [17:21:49]Read from MH i2c: E2 62 00 F7 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 36 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 0D [17:21:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 36 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:21:49]wFMCommunicate OK [17:21:49]SAM_PROTO_GetFieldsCounters done [17:21:49]requested_item shift.num is exist - process it [17:21:49]requested_item shift.opened is exist - process it [17:21:49]req_shift_opened [17:21:49]FM_GetShiftState [17:21:49]SAM_PROTO_GetShiftState [17:21:49]wFMCommunicate request_size=4 [17:21:49]MH_SAM_APDU [17:21:49]CAPDU: 80 13 01 00 [17:21:49]Write to MH i2c: E2 08 00 F8 5A 80 13 01 00 00 00 00 00 CF [17:21:49]Write i2c OK [17:21:49]MH_I2C_Read... [17:21:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:21:49]Read from MH i2c: E2 [17:21:49]MH_I2C_Read... [17:21:49]Read from MH i2c: E2 0E 00 [17:21:49]MH_I2C_Read... [17:21:49]Read from MH i2c: E2 0E 00 F8 5A 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 C3 [17:21:49]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [17:21:49]wFMCommunicate OK [17:21:49]SAM_PROTO_GetShiftState done [17:21:49]FM_GetShiftState done [17:21:49]req_shift_opened done [17:21:49]requested_item shift.open_date is exist - process it [17:21:49]req_shift_open_date [17:21:49]req_shift_open_date done [17:21:49]produce_requested_data done [17:21:49]produce_requested_data return {"kkm.sn":"0300000161","kkm.ver":"v1.0","fm.sn":"0000000002094248","fd.num":2102,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [17:21:49]process_action_free get_value [17:21:49]json_value_free [17:21:49]json_value_free done [17:21:49]process_json_proto returns [17:21:49]Send response to host [17:21:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000161","kkm.ver":"v1.0","fm.sn":"0000000002094248","fd.num":2102,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [17:21:49]free response buf [17:21:49]execute_script done [17:21:49]execute_script returns [17:21:49]free content buf [17:21:49]Sock 9.Close socket [17:21:49]Sock 9.Thread stoped [17:21:49]accept exits with 8 [17:21:49]New connection [17:21:49]New thread 3067317604 created [17:21:49]Thread 3067460964 joined [17:21:49]Waiting for new connection... [17:21:49] Sock 8.Parse request [17:21:49]Sock 8.Check first char [17:21:49]Sock 8.First char is OK [17:21:49]request: POST /json_proto HTTP/1.0 [17:21:49]Method: POST [17:21:49]URL: /json_proto [17:21:49]Method is POST - this is cgi request [17:21:49]url: /json_proto [17:21:49]query_string will be loaded in cgi processing [17:21:49]execute_cgi json_proto POST (null) [17:21:49]execute_cgi path=json_proto method=POST [17:21:49]POST find Content-Length [17:21:49]Host: 172.17.45.132:8080 [17:21:49]Content-Length: 331 [17:21:49]Content-Type: application/json [17:21:49] [17:21:49]POST finish read [17:21:49]Found Content-Length = 331 [17:21: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" ] } } [17:21:49]execute_script... [17:21: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" ] } } [17:21:49]POST & json_proto [17:21:49]process_json_proto [17:21:49]json parsed OK: [17:21:49]protocol is kg_v1.0 [17:21:49]action value=get_value [17:21:49]process_action get_value [17:21:49]cmd_get_value [17:21:49]process_action get_value done [17:21:49]requested_data is exist [17:21:49]produce_requested_data [17:21:49]requested_item fm.sale.total is exist - process it [17:21:49]SAM_PROTO_GetFMData [17:21:49]wFMCommunicate request_size=4 [17:21:49]MH_SAM_APDU [17:21:49]CAPDU: 80 13 03 00 [17:21:49]Write to MH i2c: E2 08 00 F9 5A 80 13 03 00 00 00 00 00 D2 [17:21:49]Write i2c OK [17:21:49]MH_I2C_Read... [17:21:49]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [17:21:50]Read from MH i2c: E2 [17:21:50]MH_I2C_Read... [17:21:50]Read from MH i2c: E2 FD 00 [17:21:50]MH_I2C_Read... [17:21:50]Read from MH i2c: E2 FD 00 F9 5A 00 C0 04 85 04 BC 04 6E 04 04 00 1C 08 00 00 69 04 9F 00 6F 04 04 00 0B 08 00 00 B1 04 04 00 02 66 4B 05 70 04 04 00 D4 17 6B 03 72 04 04 00 2E 4E E0 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 80 F3 8F 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 1F FE 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 53 04 02 EF 03 09 00 F6 03 01 90 00 66 [17:21:50]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 1C 08 00 00 69 04 9F 00 6F 04 04 00 0B 08 00 00 B1 04 04 00 02 66 4B 05 70 04 04 00 D4 17 6B 03 72 04 04 00 2E 4E E0 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 80 F3 8F 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 1F FE 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 53 04 02 EF 03 09 00 F6 03 01 90 00 [17:21:50]wFMCommunicate OK [17:21:50]wFMCommunicate request_size=4 [17:21:50]MH_SAM_APDU [17:21:50]CAPDU: 80 17 00 00 [17:21:50]Write to MH i2c: E2 08 00 FA 5A 80 17 00 00 00 00 00 00 D4 [17:21:50]Write i2c OK [17:21:50]MH_I2C_Read... [17:21:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:21:50]Read from MH i2c: E2 [17:21:50]MH_I2C_Read... [17:21:50]Read from MH i2c: E2 FD 00 [17:21:50]MH_I2C_Read... [17:21:50]Read from MH i2c: E2 FD 00 FA 5A 00 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 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 90 00 33 [17:21:50]RAPDU: 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 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 90 00 [17:21:50]wFMCommunicate OK [17:21:50]wFMCommunicate request_size=4 [17:21:50]MH_SAM_APDU [17:21:50]CAPDU: 80 17 00 00 [17:21:50]Write to MH i2c: E2 08 00 FB 5A 80 17 00 00 00 00 00 00 D5 [17:21:50]Write i2c OK [17:21:50]MH_I2C_Read... [17:21:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:21:50]Read from MH i2c: E2 [17:21:50]MH_I2C_Read... [17:21:50]Read from MH i2c: E2 FD 00 [17:21:50]MH_I2C_Read... [17:21:50]Read from MH i2c: E2 FD 00 FB 5A 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 90 00 78 [17:21:50]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 90 00 [17:21:50]wFMCommunicate OK [17:21:50]wFMCommunicate request_size=4 [17:21:50]MH_SAM_APDU [17:21:50]CAPDU: 80 17 00 00 [17:21:50]Write to MH i2c: E2 08 00 FC 5A 80 17 00 00 00 00 00 00 D6 [17:21:50]Write i2c OK [17:21:50]MH_I2C_Read... [17:21:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:21:50]Read from MH i2c: E2 [17:21:50]MH_I2C_Read... [17:21:50]Read from MH i2c: E2 FD 00 [17:21:50]MH_I2C_Read... [17:21:50]Read from MH i2c: E2 FD 00 FC 5A 00 01 00 04 F7 03 00 00 EF 03 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 90 00 4E [17:21:50]RAPDU: 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:21:50]wFMCommunicate OK [17:21:50]wFMCommunicate request_size=4 [17:21:50]MH_SAM_APDU [17:21:50]CAPDU: 80 17 00 00 [17:21:50]Write to MH i2c: E2 08 00 FD 5A 80 17 00 00 00 00 00 00 D7 [17:21:50]Write i2c OK [17:21:50]MH_I2C_Read... [17:21:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [17:21:51]Read from MH i2c: E2 [17:21:51]MH_I2C_Read... [17:21:51]Read from MH i2c: E2 DD 00 [17:21:51]MH_I2C_Read... [17:21:51]Read from MH i2c: E2 DD 00 FD 5A 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 BF [17:21:51]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [17:21:51]wFMCommunicate OK [17:21:51]SAM_PROTO_GetFMData done [17:21:51]requested_item fm.sale_refund.total is exist - process it [17:21:51]requested_item fm.buy.total is exist - process it [17:21:51]requested_item shift.sale.total is exist - process it [17:21:51]SAM_PROTO_GetShiftData [17:21:51]wFMCommunicate request_size=4 [17:21:51]MH_SAM_APDU [17:21:51]CAPDU: 80 13 02 00 [17:21:51]Write to MH i2c: E2 08 00 FE 5A 80 13 02 00 00 00 00 00 D6 [17:21:51]Write i2c OK [17:21:51]MH_I2C_Read... [17:21:51]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [17:21:51]Read from MH i2c: E2 [17:21:51]MH_I2C_Read... [17:21:51]Read from MH i2c: E2 FD 00 [17:21:51]MH_I2C_Read... [17:21:51]Read from MH i2c: E2 FD 00 FE 5A 00 BA 04 AA 04 B6 04 6E 04 04 00 99 00 00 00 69 04 9B 00 6F 04 04 00 95 00 00 00 B1 04 03 00 D3 2C 48 70 04 03 00 60 60 30 72 04 03 00 73 CC 17 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 30 AA 07 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 76 A3 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 99 00 6F 04 04 00 04 00 00 00 B1 04 03 00 EC 8A 01 70 04 02 00 18 79 72 04 03 00 D4 11 01 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 F0 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 9E [17:21:51]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 99 00 00 00 69 04 9B 00 6F 04 04 00 95 00 00 00 B1 04 03 00 D3 2C 48 70 04 03 00 60 60 30 72 04 03 00 73 CC 17 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 30 AA 07 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 76 A3 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 99 00 6F 04 04 00 04 00 00 00 B1 04 03 00 EC 8A 01 70 04 02 00 18 79 72 04 03 00 D4 11 01 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 F0 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [17:21:51]wFMCommunicate OK [17:21:51]wFMCommunicate request_size=4 [17:21:51]MH_SAM_APDU [17:21:51]CAPDU: 80 17 00 00 [17:21:51]Write to MH i2c: E2 08 00 FF 5A 80 17 00 00 00 00 00 00 D9 [17:21:51]Write i2c OK [17:21:51]MH_I2C_Read... [17:21:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:21:51]Read from MH i2c: E2 [17:21:51]MH_I2C_Read... [17:21:51]Read from MH i2c: E2 FD 00 [17:21:51]MH_I2C_Read... [17:21:51]Read from MH i2c: E2 FD 00 FF 5A 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 05 [17:21:51]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 [17:21:51]wFMCommunicate OK [17:21:51]wFMCommunicate request_size=4 [17:21:51]MH_SAM_APDU [17:21:51]CAPDU: 80 17 00 00 [17:21:51]Write to MH i2c: E2 08 00 00 5B 80 17 00 00 00 00 00 00 DB [17:21:51]Write i2c OK [17:21:51]MH_I2C_Read... [17:21:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:21:52]Read from MH i2c: E2 [17:21:52]MH_I2C_Read... [17:21:52]Read from MH i2c: E2 FD 00 [17:21:52]MH_I2C_Read... [17:21:52]Read from MH i2c: E2 FD 00 00 5B 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 07 [17:21:52]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 [17:21:52]wFMCommunicate OK [17:21:52]wFMCommunicate request_size=4 [17:21:52]MH_SAM_APDU [17:21:52]CAPDU: 80 17 00 00 [17:21:52]Write to MH i2c: E2 08 00 01 5B 80 17 00 00 00 00 00 00 DC [17:21:52]Write i2c OK [17:21:52]MH_I2C_Read... [17:21:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:21:52]Read from MH i2c: E2 [17:21:52]MH_I2C_Read... [17:21:52]Read from MH i2c: E2 FD 00 [17:21:52]MH_I2C_Read... [17:21:52]Read from MH i2c: E2 FD 00 01 5B 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 54 [17:21:52]RAPDU: 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 [17:21:52]wFMCommunicate OK [17:21:52]wFMCommunicate request_size=4 [17:21:52]MH_SAM_APDU [17:21:52]CAPDU: 80 17 00 00 [17:21:52]Write to MH i2c: E2 08 00 02 5B 80 17 00 00 00 00 00 00 DD [17:21:52]Write i2c OK [17:21:52]MH_I2C_Read... [17:21:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [17:21:52]Read from MH i2c: E2 [17:21:52]MH_I2C_Read... [17:21:52]Read from MH i2c: E2 D7 00 [17:21:52]MH_I2C_Read... [17:21:52]Read from MH i2c: E2 D7 00 02 5B 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 C0 [17:21:52]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:21:52]wFMCommunicate OK [17:21:52]SAM_PROTO_GetShiftData done [17:21:52]requested_item shift.sale.total_cash is exist - process it [17:21:52]requested_item shift.sale_refund.total is exist - process it [17:21:52]requested_item shift.sale_refund.total_cash is exist - process it [17:21:52]requested_item shift.buy.total is exist - process it [17:21:52]requested_item shift.buy.total_cash is exist - process it [17:21:52]produce_requested_data done [17:21:52]produce_requested_data return {"fm.sale.total":888273.94,"fm.sale_refund.total":12447.00,"fm.buy.total":0.00,"shift.sale.total":47300.67,"shift.sale.total_cash":31704.00,"shift.sale_refund.total":1011.00,"shift.sale_refund.total_cash":310.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [17:21:52]process_action_free get_value [17:21:52]json_value_free [17:21:52]json_value_free done [17:21:52]process_json_proto returns [17:21:52]Send response to host [17:21:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":888273.94,"fm.sale_refund.total":12447.00,"fm.buy.total":0.00,"shift.sale.total":47300.67,"shift.sale.total_cash":31704.00,"shift.sale_refund.total":1011.00,"shift.sale_refund.total_cash":310.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [17:21:52]free response buf [17:21:52]execute_script done [17:21:52]execute_script returns [17:21:52]free content buf [17:21:52]Sock 8.Close socket [17:21:52]Sock 8.Thread stoped [17:21:52]OFD Sender: No OFD packet to send [17:21:57]OFD Sender: No OFD packet to send [17:22:02]OFD Sender: No OFD packet to send [17:22:08]OFD Sender: No OFD packet to send [17:22:13]OFD Sender: No OFD packet to send [17:22:18]OFD Sender: No OFD packet to send [17:22:23]OFD Sender: No OFD packet to send [17:22:28]OFD Sender: No OFD packet to send [17:22:33]OFD Sender: No OFD packet to send [17:22:38]OFD Sender: No OFD packet to send [17:22:43]OFD Sender: No OFD packet to send [17:22:48]OFD Sender: No OFD packet to send [17:22:53]OFD Sender: No OFD packet to send [17:22:58]OFD Sender: No OFD packet to send [17:23:03]OFD Sender: No OFD packet to send [17:23:08]OFD Sender: No OFD packet to send [17:23:13]OFD Sender: No OFD packet to send [17:23:18]OFD Sender: No OFD packet to send [17:23:23]OFD Sender: No OFD packet to send [17:23:28]OFD Sender: No OFD packet to send [17:23:33]OFD Sender: No OFD packet to send [17:23:38]OFD Sender: No OFD packet to send [17:23:43]OFD Sender: No OFD packet to send [17:23:48]OFD Sender: No OFD packet to send [17:23:53]OFD Sender: No OFD packet to send [17:23:58]OFD Sender: No OFD packet to send [17:24:03]OFD Sender: No OFD packet to send [17:24:08]OFD Sender: No OFD packet to send [17:24:13]OFD Sender: No OFD packet to send [17:24:18]OFD Sender: No OFD packet to send [17:24:23]OFD Sender: No OFD packet to send [17:24:28]OFD Sender: No OFD packet to send [17:24:33]OFD Sender: No OFD packet to send [17:24:38]OFD Sender: No OFD packet to send [17:24:43]OFD Sender: No OFD packet to send [17:24:48]OFD Sender: No OFD packet to send [17:24:53]OFD Sender: No OFD packet to send [17:24:58]OFD Sender: No OFD packet to send [17:25:03]OFD Sender: No OFD packet to send [17:25:08]OFD Sender: No OFD packet to send [17:25:13]OFD Sender: No OFD packet to send [17:25:18]OFD Sender: No OFD packet to send [17:25:23]OFD Sender: No OFD packet to send [17:25:28]OFD Sender: No OFD packet to send [17:25:33]OFD Sender: No OFD packet to send [17:25:38]OFD Sender: No OFD packet to send [17:25:43]OFD Sender: No OFD packet to send [17:25:48]OFD Sender: No OFD packet to send [17:25:53]OFD Sender: No OFD packet to send [17:25:58]OFD Sender: No OFD packet to send [17:26:03]OFD Sender: No OFD packet to send [17:26:08]OFD Sender: No OFD packet to send [17:26:13]OFD Sender: No OFD packet to send [17:26:18]OFD Sender: No OFD packet to send [17:26:23]OFD Sender: No OFD packet to send [17:26:28]OFD Sender: No OFD packet to send [17:26:33]OFD Sender: No OFD packet to send [17:26:38]OFD Sender: No OFD packet to send [17:26:43]OFD Sender: No OFD packet to send [17:26:48]OFD Sender: No OFD packet to send [17:26:53]OFD Sender: No OFD packet to send [17:26:58]OFD Sender: No OFD packet to send [17:27:03]OFD Sender: No OFD packet to send [17:27:08]OFD Sender: No OFD packet to send [17:27:13]OFD Sender: No OFD packet to send [17:27:18]OFD Sender: No OFD packet to send [17:27:23]OFD Sender: No OFD packet to send [17:27:28]OFD Sender: No OFD packet to send [17:27:33]OFD Sender: No OFD packet to send [17:27:38]OFD Sender: No OFD packet to send [17:27:43]OFD Sender: No OFD packet to send [17:27:48]OFD Sender: No OFD packet to send [17:27:53]OFD Sender: No OFD packet to send [17:27:58]OFD Sender: No OFD packet to send [17:28:03]OFD Sender: No OFD packet to send [17:28:08]OFD Sender: No OFD packet to send [17:28:13]OFD Sender: No OFD packet to send [17:28:18]OFD Sender: No OFD packet to send [17:28:23]OFD Sender: No OFD packet to send [17:28:28]OFD Sender: No OFD packet to send [17:28:33]OFD Sender: No OFD packet to send [17:28:38]OFD Sender: No OFD packet to send [17:28:43]OFD Sender: No OFD packet to send [17:28:48]OFD Sender: No OFD packet to send [17:28:53]OFD Sender: No OFD packet to send [17:28:58]OFD Sender: No OFD packet to send [17:29:03]OFD Sender: No OFD packet to send [17:29:08]OFD Sender: No OFD packet to send [17:29:13]OFD Sender: No OFD packet to send [17:29:18]OFD Sender: No OFD packet to send [17:29:23]OFD Sender: No OFD packet to send [17:29:28]OFD Sender: No OFD packet to send [17:29:33]OFD Sender: No OFD packet to send [17:29:38]OFD Sender: No OFD packet to send [17:29:43]OFD Sender: No OFD packet to send [17:29:48]OFD Sender: No OFD packet to send [17:29:53]OFD Sender: No OFD packet to send [17:29:58]OFD Sender: No OFD packet to send [17:30:03]OFD Sender: No OFD packet to send [17:30:08]OFD Sender: No OFD packet to send [17:30:13]OFD Sender: No OFD packet to send [17:30:18]OFD Sender: No OFD packet to send [17:30:23]OFD Sender: No OFD packet to send [17:30:28]OFD Sender: No OFD packet to send [17:30:33]OFD Sender: No OFD packet to send [17:30:38]OFD Sender: No OFD packet to send [17:30:43]OFD Sender: No OFD packet to send [17:30:48]OFD Sender: No OFD packet to send [17:30:53]OFD Sender: No OFD packet to send [17:30:58]OFD Sender: No OFD packet to send [17:31:03]OFD Sender: No OFD packet to send [17:31:08]OFD Sender: No OFD packet to send [17:31:13]OFD Sender: No OFD packet to send [17:31:18]OFD Sender: No OFD packet to send [17:31:23]OFD Sender: No OFD packet to send [17:31:28]OFD Sender: No OFD packet to send [17:31:33]OFD Sender: No OFD packet to send [17:31:38]OFD Sender: No OFD packet to send [17:31:43]OFD Sender: No OFD packet to send [17:31:48]OFD Sender: No OFD packet to send [17:31:53]OFD Sender: No OFD packet to send [17:31:58]OFD Sender: No OFD packet to send [17:32:03]OFD Sender: No OFD packet to send [17:32:08]OFD Sender: No OFD packet to send [17:32:13]OFD Sender: No OFD packet to send [17:32:18]OFD Sender: No OFD packet to send [17:32:23]OFD Sender: No OFD packet to send [17:32:28]OFD Sender: No OFD packet to send [17:32:33]OFD Sender: No OFD packet to send [17:32:38]OFD Sender: No OFD packet to send [17:32:43]OFD Sender: No OFD packet to send [17:32:48]OFD Sender: No OFD packet to send [17:32:53]OFD Sender: No OFD packet to send [17:32:58]OFD Sender: No OFD packet to send [17:33:03]OFD Sender: No OFD packet to send [17:33:08]OFD Sender: No OFD packet to send [17:33:13]OFD Sender: No OFD packet to send [17:33:18]OFD Sender: No OFD packet to send [17:33:23]OFD Sender: No OFD packet to send [17:33:28]OFD Sender: No OFD packet to send [17:33:33]OFD Sender: No OFD packet to send [17:33:38]OFD Sender: No OFD packet to send [17:33:43]OFD Sender: No OFD packet to send [17:33:48]OFD Sender: No OFD packet to send [17:33:53]OFD Sender: No OFD packet to send [17:33:58]OFD Sender: No OFD packet to send [17:34:03]OFD Sender: No OFD packet to send [17:34:08]OFD Sender: No OFD packet to send [17:34:13]OFD Sender: No OFD packet to send [17:34:18]OFD Sender: No OFD packet to send [17:34:23]OFD Sender: No OFD packet to send [17:34:28]OFD Sender: No OFD packet to send [17:34:33]OFD Sender: No OFD packet to send [17:34:38]OFD Sender: No OFD packet to send [17:34:43]OFD Sender: No OFD packet to send [17:34:48]OFD Sender: No OFD packet to send [17:34:53]OFD Sender: No OFD packet to send [17:34:58]OFD Sender: No OFD packet to send [17:35:03]OFD Sender: No OFD packet to send [17:35:08]OFD Sender: No OFD packet to send [17:35:13]OFD Sender: No OFD packet to send [17:35:18]OFD Sender: No OFD packet to send [17:35:23]OFD Sender: No OFD packet to send [17:35:28]OFD Sender: No OFD packet to send [17:35:33]OFD Sender: No OFD packet to send [17:35:38]OFD Sender: No OFD packet to send [17:35:43]OFD Sender: No OFD packet to send [17:35:48]OFD Sender: No OFD packet to send [17:35:53]OFD Sender: No OFD packet to send [17:35:58]OFD Sender: No OFD packet to send [17:36:03]OFD Sender: No OFD packet to send [17:36:08]OFD Sender: No OFD packet to send [17:36:13]OFD Sender: No OFD packet to send [17:36:18]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:29]OFD Sender: No OFD packet to send [17:44:34]OFD Sender: No OFD packet to send [17:44:39]OFD Sender: No OFD packet to send [17:44:44]OFD Sender: No OFD packet to send [17:44:49]OFD Sender: No OFD packet to send [17:44:54]OFD Sender: No OFD packet to send [17:44:59]OFD Sender: No OFD packet to send [17:45:04]OFD Sender: No OFD packet to send [17:45:09]OFD Sender: No OFD packet to send [17:45:14]OFD Sender: No OFD packet to send [17:45:19]OFD Sender: No OFD packet to send [17:45:24]OFD Sender: No OFD packet to send [17:45:29]OFD Sender: No OFD packet to send [17:45:34]OFD Sender: No OFD packet to send [17:45:39]OFD Sender: No OFD packet to send [17:45:44]OFD Sender: No OFD packet to send [17:45:49]OFD Sender: No OFD packet to send [17:45:54]OFD Sender: No OFD packet to send [17:45:59]OFD Sender: No OFD packet to send [17:46:04]OFD Sender: No OFD packet to send [17:46:04]accept exits with 9 [17:46:04]New connection [17:46:04]New thread 3067460964 created [17:46:04]Thread 3067317604 joined [17:46:04]Waiting for new connection... [17:46:04] Sock 9.Parse request [17:46:04]Sock 9.Check first char [17:46:04]Sock 9.First char is OK [17:46:04]request: POST /json_proto HTTP/1.0 [17:46:04]Method: POST [17:46:04]URL: /json_proto [17:46:04]Method is POST - this is cgi request [17:46:04]url: /json_proto [17:46:04]query_string will be loaded in cgi processing [17:46:04]execute_cgi json_proto POST (null) [17:46:04]execute_cgi path=json_proto method=POST [17:46:04]POST find Content-Length [17:46:04]Host: 172.17.45.132:8080 [17:46:04]Content-Length: 965 [17:46:04]Content-Type: application/json [17:46:04] [17:46:04]POST finish read [17:46:04]Found Content-Length = 965 [17:46:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126400", "tax_sys" : 0, "items" : [ { "code": "4700003010476", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u044F\u0431\u043B\u043E\u043A\u043E \u041F\u042D\u0422 1\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000133328", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 Zero 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" : 187.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:46:04]execute_script... [17:46: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)126400", "tax_sys" : 0, "items" : [ { "code": "4700003010476", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u044F\u0431\u043B\u043E\u043A\u043E \u041F\u042D\u0422 1\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000133328", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 Zero 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" : 187.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:46:04]POST & json_proto [17:46:04]process_json_proto [17:46:04]json parsed OK: [17:46:04]protocol is kg_v1.0 [17:46:04]action value=close_receipt [17:46:04]process_action close_receipt [17:46:04]cmd_close_receipt [17:46:04]MH_GetDate [17:46:04]Write to MH i2c: F0 00 00 03 5B 4D [17:46:04]Write i2c OK [17:46:04]MH_I2C_Read... [17:46:04]Read from MH i2c: F0 [17:46:04]MH_I2C_Read... [17:46:04]Read from MH i2c: F0 09 00 [17:46:04]MH_I2C_Read... [17:46:04]Read from MH i2c: F0 09 00 03 5B 00 E3 83 A6 66 E3 0B 90 66 AC [17:46:04]GetLastDocTimeStamp 1722186580 [17:46:04]current date 1722188771 [17:46:04]FM_GetShiftState [17:46:04]SAM_PROTO_GetShiftState [17:46:04]wFMCommunicate request_size=4 [17:46:04]MH_SAM_APDU [17:46:04]CAPDU: 80 13 01 00 [17:46:04]Write to MH i2c: E2 08 00 04 5B 80 13 01 00 00 00 00 00 DC [17:46:04]Write i2c OK [17:46:04]MH_I2C_Read... [17:46:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:04]Read from MH i2c: E2 [17:46:04]MH_I2C_Read... [17:46:04]Read from MH i2c: E2 0E 00 [17:46:04]MH_I2C_Read... [17:46:04]Read from MH i2c: E2 0E 00 04 5B 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 D0 [17:46:04]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [17:46:04]wFMCommunicate OK [17:46:04]SAM_PROTO_GetShiftState done [17:46:04]FM_GetShiftState done [17:46:04]opened in 1722125648 [17:46:04]opened+sec_in_day 1722212048 [17:46:04]quantity*price = 8000 [17:46:04]sum+1 = 8001 [17:46:04]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000133328 Напиток Кока-Кола Zero 1л 1.000 * 107.00 = 107.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 187.00 НСП 1% : 1.66 НДС 12% : 19.86 Наличными: 187.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 154 28.07.2024 17:46 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2103 ФПД: 24974288209563 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T174611&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2103&fm=24974288209563&tin=02508201610067®Number=0000000000189667&sum=18700 0 [17:46:05]StoreToDocumentArchive [17:46:05]shift 13 fd 2103 [17:46:05]save to /storage/0013/doc_00002103 [17:46:05]save last doc name /storage/0013/doc_00002103 to /storage/kkm_last_doc_name [17:46:05]save OK [17:46:05]Clear old archive folders... [17:46:05]ProcessDocumentItem done err = 0, tmpTLVsize=409 [17:46:05]tlvbuf is 02045E70 [17:46:05]SAM_PROTO_ClearQueue [17:46:05]wFMCommunicate request_size=4 [17:46:05]MH_SAM_APDU [17:46:05]CAPDU: 80 09 00 00 [17:46:05]Write to MH i2c: E2 08 00 11 5B 80 09 00 00 00 00 00 00 DE [17:46:05]Write i2c OK [17:46:05]MH_I2C_Read... [17:46:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:46:05]Read from MH i2c: E2 [17:46:05]MH_I2C_Read... [17:46:05]Read from MH i2c: E2 03 00 [17:46:05]MH_I2C_Read... [17:46:05]Read from MH i2c: E2 03 00 11 5B 00 90 00 E0 [17:46:05]RAPDU: 90 00 [17:46:05]wFMCommunicate OK [17:46:05]SAM_PROTO_ClearQueue done [17:46:05]KKMCreateOFDPacket [17:46:05]OFDProtocolAddRootSTLVToBuf [17:46:05]FM_MakeSignedData [17:46:05]FM_MakeSignedData [17:46:05]SAM_PROTO_SignData [17:46:05]wFMCommunicate request_size=4 [17:46:05]MH_SAM_APDU [17:46:05]CAPDU: 80 0D 01 02 [17:46:05]Write to MH i2c: E2 08 00 12 5B 80 0D 01 02 00 00 00 00 E6 [17:46:05]Write i2c OK [17:46:05]MH_I2C_Read... [17:46:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:46:05]Read from MH i2c: E2 [17:46:05]MH_I2C_Read... [17:46:05]Read from MH i2c: E2 03 00 [17:46:05]MH_I2C_Read... [17:46:05]Read from MH i2c: E2 03 00 12 5B 00 90 00 E1 [17:46:05]RAPDU: 90 00 [17:46:05]wFMCommunicate OK [17:46:05]wFMCommunicate request_size=255 [17:46:05]MH_SAM_APDU [17:46:05]CAPDU: 80 0D 02 02 FA 03 00 99 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 37 36 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 35 34 34 39 30 30 30 31 33 33 33 32 38 06 04 29 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 5A 65 72 6F 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 [17:46:05]Write to MH i2c: E2 02 01 13 5B 80 0D 02 02 FA 00 03 00 99 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 37 36 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 35 34 34 39 30 30 30 31 33 33 33 32 38 06 04 29 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 5A 65 72 6F 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 00 00 BB [17:46:05]Write i2c OK [17:46:05]MH_I2C_Read... [17:46:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:46:06]Read from MH i2c: E2 [17:46:06]MH_I2C_Read... [17:46:06]Read from MH i2c: E2 03 00 [17:46:06]MH_I2C_Read... [17:46:06]Read from MH i2c: E2 03 00 13 5B 00 90 00 E2 [17:46:06]RAPDU: 90 00 [17:46:06]wFMCommunicate OK [17:46:06]wFMCommunicate request_size=168 [17:46:06]MH_SAM_APDU [17:46:06]CAPDU: 80 0D 02 02 A3 06 00 0C 49 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 07 00 00 00 00 07 04 06 00 0C 49 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 E3 83 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 37 08 00 00 35 04 06 00 16 B6 C7 93 C6 9B [17:46:06]Write to MH i2c: E2 AB 00 14 5B 80 0D 02 02 A3 00 06 00 0C 49 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 07 00 00 00 00 07 04 06 00 0C 49 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 E3 83 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 37 08 00 00 35 04 06 00 16 B6 C7 93 C6 9B 00 00 73 [17:46:06]Write i2c OK [17:46:06]MH_I2C_Read... [17:46:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:46:06]Read from MH i2c: E2 [17:46:06]MH_I2C_Read... [17:46:06]Read from MH i2c: E2 03 00 [17:46:06]MH_I2C_Read... [17:46:06]Read from MH i2c: E2 03 00 14 5B 00 90 00 E3 [17:46:06]RAPDU: 90 00 [17:46:06]wFMCommunicate OK [17:46:06]wFMCommunicate request_size=4 [17:46:06]MH_SAM_APDU [17:46:06]CAPDU: 80 0D 03 02 [17:46:06]Write to MH i2c: E2 08 00 15 5B 80 0D 03 02 00 00 00 00 EB [17:46:06]Write i2c OK [17:46:06]MH_I2C_Read... [17:46:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:46:06]Read from MH i2c: E2 [17:46:06]MH_I2C_Read... [17:46:06]Read from MH i2c: E2 0B 00 [17:46:06]MH_I2C_Read... [17:46:06]Read from MH i2c: E2 0B 00 15 5B 00 7B F8 A7 7F BF 8E 3F F3 90 00 04 [17:46:06]RAPDU: 7B F8 A7 7F BF 8E 3F F3 90 00 [17:46:06]wFMCommunicate OK [17:46:06]SAM_PROTO_SignData done [17:46:06]FM_MakeSignedData done [17:46:06]CreateOFDProtocolMessage [17:46:06]wFMCommunicate request_size=4 [17:46:06]MH_SAM_APDU [17:46:06]CAPDU: 80 11 00 00 [17:46:06]Write to MH i2c: E2 08 00 16 5B 80 11 00 00 00 00 00 00 EB [17:46:06]Write i2c OK [17:46:06]MH_I2C_Read... [17:46:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:46:06]Read from MH i2c: E2 [17:46:06]MH_I2C_Read... [17:46:06]Read from MH i2c: E2 17 00 [17:46:06]MH_I2C_Read... [17:46:06]Read from MH i2c: E2 17 00 16 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 3B [17:46:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [17:46:06]wFMCommunicate OK [17:46:06]CreateOFDProtocolMessage done [17:46:06]OFDSenderStorePacket 2103 [17:46:06]StoreOFDPacket docnum=2103 [17:46:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 AD 01 00 00 90 FA A5 01 F1 43 5A 03 01 00 03 00 99 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 37 36 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 35 34 34 39 30 30 30 31 33 33 33 32 38 06 04 29 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 5A 65 72 6F 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 0C 49 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 07 00 00 00 00 07 04 06 00 0C 49 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 E3 83 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 37 08 00 00 35 04 06 00 16 B6 C7 93 C6 9B 7B F8 A7 7F BF 8E 3F F3 [17:46:06]CheckFolder [17:46:06]dirname=/storage/ofd_packets [17:46:06]CheckFolder done [17:46:06]ProducePacketName [17:46:06]name=ofd_packets/00002103 [17:46:06]NVStorageSaveData ofd_packets/00002103 [17:46:06]File name is /storage/ofd_packets/00002103 [17:46:06]Write 459 bytes [17:46:06]NVStorageSaveData done [17:46:06]OFDSenderStorePacket done [17:46:06]KKMCreateOFDPacket done [17:46:06]NVStorageSaveData kkm_last_timestamp [17:46:06]File name is /storage/kkm_last_timestamp [17:46:06]Write 4 bytes [17:46:06]NVStorageSaveData done [17:46:06]ExternCall_PrintAddStr [17:46:06]wPrintStart [17:46:06]Write to MH i2c: 01 00 00 17 5B 72 [17:46:06]Write i2c OK [17:46:06]MH_I2C_Read... [17:46:06]OFD Sender: Processing packet 2103 [packets to send 1, broken 0] [17:46:06]ProducePacketName [17:46:06]name=ofd_packets/00002103 [17:46:06]OFD Sender: To server: pG, [17:46:06]CommunicateWithHost lk.salyk.kg:30040 [17:46:06]ConnectInit lk.salyk.kg [17:46:06]Read from MH i2c: 01 [17:46:06]MH_I2C_Read... [17:46:06]Read from MH i2c: 01 07 00 [17:46:06]MH_I2C_Read... [17:46:06]Read from MH i2c: 01 07 00 17 5B 00 00 00 00 00 FF 0F 87 [17:46:06]RasterBufferAndPrint [17:46:06]line Счет N : (3)126400 [17:46:06]line ИНН: 02508201610067 [17:46:06]line Контрольно-Кассовый Чек [17:46:06]line ПРОДАЖА [17:46:06]line Товар: 4700003010476 [17:46:06]line Напиток Let`s Go! с/с яблоко ПЭТ 1л [17:46:06]line 1.000 * 80.00 [17:46:06]line = 80.00 [17:46:06]line НДС 12% НСП 1% [17:46:06]line > о реализуемом товаре [17:46:06]line Товар: 5449000133328 [17:46:06]line Напиток Кока-Кола Zero 1л [17:46:06]line 1.000 * 107.00 [17:46:06]line = 107.00 [17:46:06]line НДС 12% НСП 1% [17:46:06]line > о реализуемом товаре [17:46:06]line ИТОГО: 187.00 [17:46:06]line НСП 1% : 1.66 [17:46:06]line НДС 12% : 19.86 [17:46:06]line Наличными: 187.00 [17:46:06]line Безнал.: 0.00 [17:46:06]line Место: АЗС № 127 "Партнер Нефть" [17:46:06]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [17:46:06]line СНО: Общий режим [17:46:06]line Чек 154 28.07.2024 17:46 [17:46:06]line Смена: 13 ФФД: 1.0 [17:46:06]line ЗНМ: 0300000161 [17:46:06]line РНМ: 0000000000189667 [17:46:06]line Версия ККМ: v1.0 [17:46:06]line ФМ: 0000000002094248 [17:46:06]line ФД: 2103 [17:46:06]line ФПД: 24974288209563 [17:46:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T174611&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2103&fm=24974288209563&tin=02508201610067®Number=0000000000189667&sum=18700 [17:46:06]line 0 [17:46:06]written 0, free lines is 4095 [17:46:06]Connected sock=10 [17:46:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 AD 01 00 00 90 FA A5 01 F1 43 5A 03 01 00 03 00 99 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 37 36 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 35 34 34 39 30 30 30 31 33 33 33 32 38 06 04 29 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 5A 65 72 6F 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 0C 49 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 07 00 00 00 00 07 04 06 00 0C 49 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 E3 83 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 37 08 00 00 35 04 06 00 16 B6 C7 93 C6 9B 7B F8 A7 7F BF 8E 3F F3 [17:46:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 A1 24 47 00 DB 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 32 30 39 34 32 34 38 10 04 04 00 37 08 00 00 F4 03 04 00 52 2F A6 66 B6 04 01 00 00 D5 C1 81 84 76 CC CE 34 [17:46:07]CommunicateWithHost err = 0 [17:46:07]CheckOFDResponse [17:46:07]1017 (14) - 77093643461234 [17:46:07]1041 (16) - 0000000002094248 [17:46:07]1040 (4) - 2103 [17:46:07]1012 (4) - 28.07.2024 11:45 [17:46:07]1206 (1) - 0 [17:46:07]OFD Sender: Remove packet 2103 [17:46:07]ProducePacketName [17:46:07]name=ofd_packets/00002103 [17:46:07]NVStorageDeleteData [17:46:07]Write to MH i2c: 01 00 00 46 5B A1 [17:46:07]Write i2c OK [17:46:07]MH_I2C_Read... [17:46:07]Read from MH i2c: 01 [17:46:07]MH_I2C_Read... [17:46:07]Read from MH i2c: 01 07 00 [17:46:07]MH_I2C_Read... [17:46:07]Read from MH i2c: 01 07 00 46 5B 00 00 00 00 00 CD 0C 81 [17:46:07]RasterBufferAndPrint [17:46:07]line [17:46:07]line [17:46:07]line [17:46:07]line [17:46:07]line [17:46:07]written 0, free lines is 3286 [17:46:07]MH_Cut [17:46:07]Write to MH i2c: D1 01 00 4D 5B 01 7A [17:46:07]Write i2c OK [17:46:07]MH_I2C_Read... [17:46:07]Read from MH i2c: D1 [17:46:07]MH_I2C_Read... [17:46:07]Read from MH i2c: D1 01 00 [17:46:07]MH_I2C_Read... [17:46:07]Read from MH i2c: D1 01 00 4D 5B 00 79 [17:46:07]Write to MH i2c: 01 00 00 4E 5B A9 [17:46:07]Write i2c OK [17:46:07]MH_I2C_Read... [17:46:07]OFD Sender: No OFD packet to send [17:46:07]*** Cut start [17:46:07]*** Partial cut [17:46:07]*** CUTSNS_PIN = 1 [17:46:07]*** CUTSNS_PIN = 0 [17:46:08]*** Brake cut motor [17:46:08]Read from MH i2c: 01 [17:46:08]MH_I2C_Read... [17:46:08]*** Stop cut motor [17:46:08]*** Cut end [17:46:08]Read from MH i2c: 01 07 00 [17:46:08]MH_I2C_Read... [17:46:08]Read from MH i2c: 01 07 00 4E 5B 00 00 00 00 00 FF 0F BE [17:46:08]process_action close_receipt done [17:46:08]requested_data is exist [17:46:08]produce_requested_data [17:46:08]requested_item fm.sn is exist - process it [17:46:08]wFMCommunicate request_size=4 [17:46:08]MH_SAM_APDU [17:46:08]CAPDU: 80 11 00 00 [17:46:08]Write to MH i2c: E2 08 00 4F 5B 80 11 00 00 00 00 00 00 24 [17:46:08]Write i2c OK [17:46:08]MH_I2C_Read... [17:46:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:46:08]Read from MH i2c: E2 [17:46:08]MH_I2C_Read... [17:46:08]Read from MH i2c: E2 17 00 [17:46:08]MH_I2C_Read... [17:46:08]Read from MH i2c: E2 17 00 4F 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 74 [17:46:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [17:46:08]wFMCommunicate OK [17:46:08]requested_item fd.num is exist - process it [17:46:08]SAM_PROTO_GetFieldsCounters [17:46:08]wFMCommunicate request_size=4 [17:46:08]MH_SAM_APDU [17:46:08]CAPDU: 80 13 00 00 [17:46:08]Write to MH i2c: E2 08 00 50 5B 80 13 00 00 00 00 00 00 27 [17:46:08]Write i2c OK [17:46:08]MH_I2C_Read... [17:46:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:46:08]Read from MH i2c: E2 [17:46:08]MH_I2C_Read... [17:46:08]Read from MH i2c: E2 62 00 [17:46:08]MH_I2C_Read... [17:46:08]Read from MH i2c: E2 62 00 50 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 37 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 6B [17:46:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 37 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:46:08]wFMCommunicate OK [17:46:08]SAM_PROTO_GetFieldsCounters done [17:46:08]requested_item shift.num is exist - process it [17:46:08]requested_item shift.opened is exist - process it [17:46:08]req_shift_opened [17:46:08]FM_GetShiftState [17:46:08]SAM_PROTO_GetShiftState [17:46:08]wFMCommunicate request_size=4 [17:46:08]MH_SAM_APDU [17:46:08]CAPDU: 80 13 01 00 [17:46:08]Write to MH i2c: E2 08 00 51 5B 80 13 01 00 00 00 00 00 29 [17:46:08]Write i2c OK [17:46:08]MH_I2C_Read... [17:46:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:08]Read from MH i2c: E2 [17:46:08]MH_I2C_Read... [17:46:08]Read from MH i2c: E2 0E 00 [17:46:08]MH_I2C_Read... [17:46:08]Read from MH i2c: E2 0E 00 51 5B 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 1D [17:46:08]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [17:46:08]wFMCommunicate OK [17:46:08]SAM_PROTO_GetShiftState done [17:46:08]FM_GetShiftState done [17:46:08]req_shift_opened done [17:46:08]requested_item shift.open_date is exist - process it [17:46:08]req_shift_open_date [17:46:08]req_shift_open_date done [17:46:08]produce_requested_data done [17:46:08]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2103,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [17:46:08]process_action_free close_receipt [17:46:08]json_value_free [17:46:08]json_value_free done [17:46:08]process_json_proto returns [17:46:08]Send response to host [17:46:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2103,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [17:46:08]free response buf [17:46:08]execute_script done [17:46:08]execute_script returns [17:46:08]free content buf [17:46:08]Sock 9.Close socket [17:46:08]Sock 9.Thread stoped [17:46:12]OFD Sender: No OFD packet to send [17:46:17]OFD Sender: No OFD packet to send [17:46:22]OFD Sender: No OFD packet to send [17:46:27]OFD Sender: No OFD packet to send [17:46:32]OFD Sender: No OFD packet to send [17:46:37]OFD Sender: No OFD packet to send [17:46:42]OFD Sender: No OFD packet to send [17:46:47]OFD Sender: No OFD packet to send [17:46:52]OFD Sender: No OFD packet to send [17:46:57]OFD Sender: No OFD packet to send [17:47:02]OFD Sender: No OFD packet to send [17:47:07]OFD Sender: No OFD packet to send [17:47:12]OFD Sender: No OFD packet to send [17:47:17]OFD Sender: No OFD packet to send [17:47:22]OFD Sender: No OFD packet to send [17:47:27]OFD Sender: No OFD packet to send [17:47:32]OFD Sender: No OFD packet to send [17:47:37]OFD Sender: No OFD packet to send [17:47:42]OFD Sender: No OFD packet to send [17:47:47]OFD Sender: No OFD packet to send [17:47:52]OFD Sender: No OFD packet to send [17:47:57]OFD Sender: No OFD packet to send [17:48:02]OFD Sender: No OFD packet to send [17:48:07]OFD Sender: No OFD packet to send [17:48:12]OFD Sender: No OFD packet to send [17:48:17]OFD Sender: No OFD packet to send [17:48:22]OFD Sender: No OFD packet to send [17:48:27]OFD Sender: No OFD packet to send [17:48:32]OFD Sender: No OFD packet to send [17:48:37]OFD Sender: No OFD packet to send [17:48:42]OFD Sender: No OFD packet to send [17:48:47]OFD Sender: No OFD packet to send [17:48:52]OFD Sender: No OFD packet to send [17:48:57]OFD Sender: No OFD packet to send [17:49:02]OFD Sender: No OFD packet to send [17:49:07]OFD Sender: No OFD packet to send [17:49:12]OFD Sender: No OFD packet to send [17:49:17]OFD Sender: No OFD packet to send [17:49:22]OFD Sender: No OFD packet to send [17:49:27]OFD Sender: No OFD packet to send [17:49:32]OFD Sender: No OFD packet to send [17:49:37]OFD Sender: No OFD packet to send [17:49:42]OFD Sender: No OFD packet to send [17:49:47]OFD Sender: No OFD packet to send [17:49:52]OFD Sender: No OFD packet to send [17:49:57]OFD Sender: No OFD packet to send [17:50:02]OFD Sender: No OFD packet to send [17:50:07]OFD Sender: No OFD packet to send [17:50:12]OFD Sender: No OFD packet to send [17:50:17]OFD Sender: No OFD packet to send [17:50:22]OFD Sender: No OFD packet to send [17:50:27]OFD Sender: No OFD packet to send [17:50:32]OFD Sender: No OFD packet to send [17:50:37]OFD Sender: No OFD packet to send [17:50:42]OFD Sender: No OFD packet to send [17:50:47]OFD Sender: No OFD packet to send [17:50:52]OFD Sender: No OFD packet to send [17:50:57]OFD Sender: No OFD packet to send [17:51:02]OFD Sender: No OFD packet to send [17:51:07]OFD Sender: No OFD packet to send [17:51:12]OFD Sender: No OFD packet to send [17:51:17]OFD Sender: No OFD packet to send [17:51:22]OFD Sender: No OFD packet to send [17:51:27]OFD Sender: No OFD packet to send [17:51:32]OFD Sender: No OFD packet to send [17:51:37]OFD Sender: No OFD packet to send [17:51:42]OFD Sender: No OFD packet to send [17:51:47]OFD Sender: No OFD packet to send [17:51:52]OFD Sender: No OFD packet to send [17:51:57]OFD Sender: No OFD packet to send [17:52:02]OFD Sender: No OFD packet to send [17:52:07]OFD Sender: No OFD packet to send [17:52:12]OFD Sender: No OFD packet to send [17:52:17]OFD Sender: No OFD packet to send [17:52:22]OFD Sender: No OFD packet to send [17:52:27]OFD Sender: No OFD packet to send [17:52:32]OFD Sender: No OFD packet to send [17:52:37]OFD Sender: No OFD packet to send [17:52:42]OFD Sender: No OFD packet to send [17:52:47]OFD Sender: No OFD packet to send [17:52:52]OFD Sender: No OFD packet to send [17:52:57]OFD Sender: No OFD packet to send [17:53:02]OFD Sender: No OFD packet to send [17:53:07]OFD Sender: No OFD packet to send [17:53:12]OFD Sender: No OFD packet to send [17:53:17]OFD Sender: No OFD packet to send [17:53:22]OFD Sender: No OFD packet to send [17:53:27]OFD Sender: No OFD packet to send [17:53:32]OFD Sender: No OFD packet to send [17:53:37]OFD Sender: No OFD packet to send [17:53:42]OFD Sender: No OFD packet to send [17:53:47]OFD Sender: No OFD packet to send [17:53:52]OFD Sender: No OFD packet to send [17:53:57]OFD Sender: No OFD packet to send [17:54:02]OFD Sender: No OFD packet to send [17:54:07]OFD Sender: No OFD packet to send [17:54:12]OFD Sender: No OFD packet to send [17:54:17]OFD Sender: No OFD packet to send [17:54:22]OFD Sender: No OFD packet to send [17:54:27]OFD Sender: No OFD packet to send [17:54:32]OFD Sender: No OFD packet to send [17:54:38]OFD Sender: No OFD packet to send [17:54:43]OFD Sender: No OFD packet to send [17:54:48]OFD Sender: No OFD packet to send [17:54:53]OFD Sender: No OFD packet to send [17:54:58]OFD Sender: No OFD packet to send [17:55:03]OFD Sender: No OFD packet to send [17:55:08]OFD Sender: No OFD packet to send [17:55:13]OFD Sender: No OFD packet to send [17:55:18]OFD Sender: No OFD packet to send [17:55:23]OFD Sender: No OFD packet to send [17:55:28]OFD Sender: No OFD packet to send [17:55:33]OFD Sender: No OFD packet to send [17:55:38]OFD Sender: No OFD packet to send [17:55:43]OFD Sender: No OFD packet to send [17:55:48]OFD Sender: No OFD packet to send [17:55:53]OFD Sender: No OFD packet to send [17:55:58]OFD Sender: No OFD packet to send [17:56:03]OFD Sender: No OFD packet to send [17:56:08]OFD Sender: No OFD packet to send [17:56:13]OFD Sender: No OFD packet to send [17:56:18]OFD Sender: No OFD packet to send [17:56:23]OFD Sender: No OFD packet to send [17:56:28]OFD Sender: No OFD packet to send [17:56:33]OFD Sender: No OFD packet to send [17:56:38]OFD Sender: No OFD packet to send [17:56:43]OFD Sender: No OFD packet to send [17:56:48]OFD Sender: No OFD packet to send [17:56:53]OFD Sender: No OFD packet to send [17:56:58]OFD Sender: No OFD packet to send [17:57:03]OFD Sender: No OFD packet to send [17:57:08]OFD Sender: No OFD packet to send [17:57:13]OFD Sender: No OFD packet to send [17:57:18]OFD Sender: No OFD packet to send [17:57:23]OFD Sender: No OFD packet to send [17:57:28]OFD Sender: No OFD packet to send [17:57:33]OFD Sender: No OFD packet to send [17:57:38]OFD Sender: No OFD packet to send [17:57:43]OFD Sender: No OFD packet to send [17:57:48]OFD Sender: No OFD packet to send [17:57:53]OFD Sender: No OFD packet to send [17:57:58]OFD Sender: No OFD packet to send [17:58:03]OFD Sender: No OFD packet to send [17:58:08]OFD Sender: No OFD packet to send [17:58:13]OFD Sender: No OFD packet to send [17:58:18]OFD Sender: No OFD packet to send [17:58:23]OFD Sender: No OFD packet to send [17:58:28]OFD Sender: No OFD packet to send [17:58:33]OFD Sender: No OFD packet to send [17:58:38]OFD Sender: No OFD packet to send [17:58:43]OFD Sender: No OFD packet to send [17:58:48]OFD Sender: No OFD packet to send [17:58:53]OFD Sender: No OFD packet to send [17:58:58]OFD Sender: No OFD packet to send [17:59:03]OFD Sender: No OFD packet to send [17:59:08]OFD Sender: No OFD packet to send [17:59:13]OFD Sender: No OFD packet to send [17:59:18]OFD Sender: No OFD packet to send [17:59:23]OFD Sender: No OFD packet to send [17:59:28]OFD Sender: No OFD packet to send [17:59:33]OFD Sender: No OFD packet to send [17:59:38]OFD Sender: No OFD packet to send [17:59:43]OFD Sender: No OFD packet to send [17:59:48]OFD Sender: No OFD packet to send [17:59:53]OFD Sender: No OFD packet to send [17:59:58]OFD Sender: No OFD packet to send [18:00:03]OFD Sender: No OFD packet to send [18:00:08]OFD Sender: No OFD packet to send [18:00:13]OFD Sender: No OFD packet to send [18:00:18]OFD Sender: No OFD packet to send [18:00:23]OFD Sender: No OFD packet to send [18:00:28]OFD Sender: No OFD packet to send [18:00:33]OFD Sender: No OFD packet to send [18:00:38]OFD Sender: No OFD packet to send [18:00:43]OFD Sender: No OFD packet to send [18:00:48]OFD Sender: No OFD packet to send [18:00:53]OFD Sender: No OFD packet to send [18:00:58]OFD Sender: No OFD packet to send [18:01:03]OFD Sender: No OFD packet to send [18:01:08]OFD Sender: No OFD packet to send [18:01:13]OFD Sender: No OFD packet to send [18:01:18]OFD Sender: No OFD packet to send [18:01:23]OFD Sender: No OFD packet to send [18:01:28]OFD Sender: No OFD packet to send [18:01:33]OFD Sender: No OFD packet to send [18:01:38]OFD Sender: No OFD packet to send [18:01:43]OFD Sender: No OFD packet to send [18:01:48]OFD Sender: No OFD packet to send [18:01:53]OFD Sender: No OFD packet to send [18:01:58]OFD Sender: No OFD packet to send [18:02:03]OFD Sender: No OFD packet to send [18:02:08]OFD Sender: No OFD packet to send [18:02:13]OFD Sender: No OFD packet to send [18:02:18]OFD Sender: No OFD packet to send [18:02:23]OFD Sender: No OFD packet to send [18:02:28]OFD Sender: No OFD packet to send [18:02:33]OFD Sender: No OFD packet to send [18:02:38]OFD Sender: No OFD packet to send [18:02:43]OFD Sender: No OFD packet to send [18:02:48]OFD Sender: No OFD packet to send [18:02:53]OFD Sender: No OFD packet to send [18:02:58]OFD Sender: No OFD packet to send [18:03:03]OFD Sender: No OFD packet to send [18:03:08]OFD Sender: No OFD packet to send [18:03:13]OFD Sender: No OFD packet to send [18:03:18]OFD Sender: No OFD packet to send [18:03:23]OFD Sender: No OFD packet to send [18:03:28]OFD Sender: No OFD packet to send [18:03:33]OFD Sender: No OFD packet to send [18:03:38]OFD Sender: No OFD packet to send [18:03:43]OFD Sender: No OFD packet to send [18:03:48]OFD Sender: No OFD packet to send [18:03:53]OFD Sender: No OFD packet to send [18:03:58]OFD Sender: No OFD packet to send [18:04:03]OFD Sender: No OFD packet to send [18:04:08]OFD Sender: No OFD packet to send [18:04:13]OFD Sender: No OFD packet to send [18:04:18]OFD Sender: No OFD packet to send [18:04:23]OFD Sender: No OFD packet to send [18:04:28]OFD Sender: No OFD packet to send [18:04:33]OFD Sender: No OFD packet to send [18:04:38]OFD Sender: No OFD packet to send [18:04:43]OFD Sender: No OFD packet to send [18:04:48]OFD Sender: No OFD packet to send [18:04:53]OFD Sender: No OFD packet to send [18:04:58]OFD Sender: No OFD packet to send [18:05:03]OFD Sender: No OFD packet to send [18:05:08]OFD Sender: No OFD packet to send [18:05:13]OFD Sender: No OFD packet to send [18:05:18]OFD Sender: No OFD packet to send [18:05:23]OFD Sender: No OFD packet to send [18:05:28]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:44]OFD Sender: No OFD packet to send [18:16:49]OFD Sender: No OFD packet to send [18:16:54]OFD Sender: No OFD packet to send [18:16:59]OFD Sender: No OFD packet to send [18:17:04]OFD Sender: No OFD packet to send [18:17:09]OFD Sender: No OFD packet to send [18:17:14]OFD Sender: No OFD packet to send [18:17:19]OFD Sender: No OFD packet to send [18:17:24]OFD Sender: No OFD packet to send [18:17:29]OFD Sender: No OFD packet to send [18:17:34]OFD Sender: No OFD packet to send [18:17:39]OFD Sender: No OFD packet to send [18:17:44]OFD Sender: No OFD packet to send [18:17:49]OFD Sender: No OFD packet to send [18:17:54]OFD Sender: No OFD packet to send [18:17:59]OFD Sender: No OFD packet to send [18:18:04]OFD Sender: No OFD packet to send [18:18:09]OFD Sender: No OFD packet to send [18:18:14]OFD Sender: No OFD packet to send [18:18:19]OFD Sender: No OFD packet to send [18:18:24]OFD Sender: No OFD packet to send [18:18:29]OFD Sender: No OFD packet to send [18:18:34]OFD Sender: No OFD packet to send [18:18:39]OFD Sender: No OFD packet to send [18:18:44]OFD Sender: No OFD packet to send [18:18:49]OFD Sender: No OFD packet to send [18:18:54]OFD Sender: No OFD packet to send [18:18:59]OFD Sender: No OFD packet to send [18:19:04]OFD Sender: No OFD packet to send [18:19:09]OFD Sender: No OFD packet to send [18:19:14]OFD Sender: No OFD packet to send [18:19:19]OFD Sender: No OFD packet to send [18:19:24]OFD Sender: No OFD packet to send [18:19:29]OFD Sender: No OFD packet to send [18:19:34]OFD Sender: No OFD packet to send [18:19:39]OFD Sender: No OFD packet to send [18:19:44]OFD Sender: No OFD packet to send [18:19:49]OFD Sender: No OFD packet to send [18:19:54]OFD Sender: No OFD packet to send [18:19:59]OFD Sender: No OFD packet to send [18:20:04]OFD Sender: No OFD packet to send [18:20:09]OFD Sender: No OFD packet to send [18:20:14]OFD Sender: No OFD packet to send [18:20:19]OFD Sender: No OFD packet to send [18:20:24]OFD Sender: No OFD packet to send [18:20:29]OFD Sender: No OFD packet to send [18:20:34]OFD Sender: No OFD packet to send [18:20:39]OFD Sender: No OFD packet to send [18:20:44]OFD Sender: No OFD packet to send [18:20:49]OFD Sender: No OFD packet to send [18:20:54]OFD Sender: No OFD packet to send [18:20:59]OFD Sender: No OFD packet to send [18:21:04]OFD Sender: No OFD packet to send [18:21:09]OFD Sender: No OFD packet to send [18:21:14]OFD Sender: No OFD packet to send [18:21:19]OFD Sender: No OFD packet to send [18:21:24]OFD Sender: No OFD packet to send [18:21:29]OFD Sender: No OFD packet to send [18:21:34]OFD Sender: No OFD packet to send [18:21:39]OFD Sender: No OFD packet to send [18:21:44]OFD Sender: No OFD packet to send [18:21:49]OFD Sender: No OFD packet to send [18:21:54]OFD Sender: No OFD packet to send [18:21:59]OFD Sender: No OFD packet to send [18:22:04]OFD Sender: No OFD packet to send [18:22:09]OFD Sender: No OFD packet to send [18:22:14]OFD Sender: No OFD packet to send [18:22:19]OFD Sender: No OFD packet to send [18:22:24]OFD Sender: No OFD packet to send [18:22:28]accept exits with 8 [18:22:28]New connection [18:22:28]New thread 3067317604 created [18:22:28] Sock 8.Parse request [18:22:28]Thread 3067460964 joined [18:22:28]Sock 8.Check first char [18:22:28]Waiting for new connection... [18:22:28]Sock 8.First char is OK [18:22:28]request: POST /json_proto HTTP/1.0 [18:22:28]Method: POST [18:22:28]URL: /json_proto [18:22:28]Method is POST - this is cgi request [18:22:28]url: /json_proto [18:22:28]query_string will be loaded in cgi processing [18:22:28]execute_cgi json_proto POST (null) [18:22:28]execute_cgi path=json_proto method=POST [18:22:28]POST find Content-Length [18:22:28]Host: 172.17.45.132:8080 [18:22:28]Content-Length: 815 [18:22:28]Content-Type: application/json [18:22:28] [18:22:28]POST finish read [18:22:28]Found Content-Length = 815 [18:22:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126401", "tax_sys" : 0, "items" : [ { "code": "4860019001353", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,5\u043B \u041F\u042D\u0422", "price" : 120.00, "quantity" : 1.000, "sum" : 120.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" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:22:28]execute_script... [18:22: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)126401", "tax_sys" : 0, "items" : [ { "code": "4860019001353", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,5\u043B \u041F\u042D\u0422", "price" : 120.00, "quantity" : 1.000, "sum" : 120.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" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:22:28]POST & json_proto [18:22:28]process_json_proto [18:22:28]json parsed OK: [18:22:28]protocol is kg_v1.0 [18:22:28]action value=close_receipt [18:22:28]process_action close_receipt [18:22:28]cmd_close_receipt [18:22:28]MH_GetDate [18:22:28]Write to MH i2c: F0 00 00 52 5B 9C [18:22:28]Write i2c OK [18:22:28]MH_I2C_Read... [18:22:28]Read from MH i2c: F0 [18:22:28]MH_I2C_Read... [18:22:28]Read from MH i2c: F0 09 00 [18:22:28]MH_I2C_Read... [18:22:28]Read from MH i2c: F0 09 00 52 5B 00 6B 8C A6 66 E3 0B 90 66 8C [18:22:28]GetLastDocTimeStamp 1722188771 [18:22:28]current date 1722190955 [18:22:28]FM_GetShiftState [18:22:28]SAM_PROTO_GetShiftState [18:22:28]wFMCommunicate request_size=4 [18:22:28]MH_SAM_APDU [18:22:28]CAPDU: 80 13 01 00 [18:22:28]Write to MH i2c: E2 08 00 53 5B 80 13 01 00 00 00 00 00 2B [18:22:28]Write i2c OK [18:22:28]MH_I2C_Read... [18:22:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:22:28]Read from MH i2c: E2 [18:22:28]MH_I2C_Read... [18:22:28]Read from MH i2c: E2 0E 00 [18:22:28]MH_I2C_Read... [18:22:28]Read from MH i2c: E2 0E 00 53 5B 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 1F [18:22:28]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [18:22:28]wFMCommunicate OK [18:22:28]SAM_PROTO_GetShiftState done [18:22:28]FM_GetShiftState done [18:22:28]opened in 1722125648 [18:22:28]opened+sec_in_day 1722212048 [18:22:28]quantity*price = 12000 [18:22:28]sum+1 = 12001 [18:22:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 120.00 НСП 1% : 1.06 НДС 12% : 12.74 Наличными: 0.00 Безнал.: 120.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 155 28.07.2024 18:22 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2104 ФПД: 242410835120573 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T182235&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2104&fm=242410835120573&tin=02508201610067®Number=0000000000189667&sum=12000 0 [18:22:29]StoreToDocumentArchive [18:22:29]shift 13 fd 2104 [18:22:29]save to /storage/0013/doc_00002104 [18:22:29]save last doc name /storage/0013/doc_00002104 to /storage/kkm_last_doc_name [18:22:29]save OK [18:22:29]Clear old archive folders... [18:22:29]ProcessDocumentItem done err = 0, tmpTLVsize=278 [18:22:29]tlvbuf is 020E09C0 [18:22:29]SAM_PROTO_ClearQueue [18:22:29]wFMCommunicate request_size=4 [18:22:29]MH_SAM_APDU [18:22:29]CAPDU: 80 09 00 00 [18:22:29]Write to MH i2c: E2 08 00 60 5B 80 09 00 00 00 00 00 00 2D [18:22:29]Write i2c OK [18:22:29]MH_I2C_Read... [18:22:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:22:29]Read from MH i2c: E2 [18:22:29]MH_I2C_Read... [18:22:29]Read from MH i2c: E2 03 00 [18:22:29]MH_I2C_Read... [18:22:29]Read from MH i2c: E2 03 00 60 5B 00 90 00 2F [18:22:29]RAPDU: 90 00 [18:22:29]wFMCommunicate OK [18:22:29]SAM_PROTO_ClearQueue done [18:22:29]KKMCreateOFDPacket [18:22:29]OFDProtocolAddRootSTLVToBuf [18:22:29]FM_MakeSignedData [18:22:29]FM_MakeSignedData [18:22:29]SAM_PROTO_SignData [18:22:29]wFMCommunicate request_size=4 [18:22:29]MH_SAM_APDU [18:22:29]CAPDU: 80 0D 01 02 [18:22:29]Write to MH i2c: E2 08 00 61 5B 80 0D 01 02 00 00 00 00 35 [18:22:29]Write i2c OK [18:22:29]MH_I2C_Read... [18:22:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:22:29]Read from MH i2c: E2 [18:22:29]MH_I2C_Read... [18:22:29]Read from MH i2c: E2 03 00 [18:22:29]MH_I2C_Read... [18:22:29]Read from MH i2c: E2 03 00 61 5B 00 90 00 30 [18:22:29]RAPDU: 90 00 [18:22:29]wFMCommunicate OK [18:22:29]wFMCommunicate request_size=255 [18:22:29]MH_SAM_APDU [18:22:29]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 35 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 2E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 6B 8C A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 [18:22:29]Write to MH i2c: E2 02 01 62 5B 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 35 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 2E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 6B 8C A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 00 00 1C [18:22:29]Write i2c OK [18:22:29]MH_I2C_Read... [18:22:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:22:29]Read from MH i2c: E2 [18:22:29]MH_I2C_Read... [18:22:29]Read from MH i2c: E2 03 00 [18:22:29]MH_I2C_Read... [18:22:29]Read from MH i2c: E2 03 00 62 5B 00 90 00 31 [18:22:29]RAPDU: 90 00 [18:22:29]wFMCommunicate OK [18:22:29]wFMCommunicate request_size=37 [18:22:29]MH_SAM_APDU [18:22:29]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 38 08 00 00 35 04 06 00 DC 78 AB B7 91 BD [18:22:29]Write to MH i2c: E2 28 00 63 5B 80 0D 02 02 20 00 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 38 08 00 00 35 04 06 00 DC 78 AB B7 91 BD 00 00 D0 [18:22:29]Write i2c OK [18:22:29]MH_I2C_Read... [18:22:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:22:30]Read from MH i2c: E2 [18:22:30]MH_I2C_Read... [18:22:30]Read from MH i2c: E2 03 00 [18:22:30]MH_I2C_Read... [18:22:30]Read from MH i2c: E2 03 00 63 5B 00 90 00 32 [18:22:30]RAPDU: 90 00 [18:22:30]wFMCommunicate OK [18:22:30]wFMCommunicate request_size=4 [18:22:30]MH_SAM_APDU [18:22:30]CAPDU: 80 0D 03 02 [18:22:30]Write to MH i2c: E2 08 00 64 5B 80 0D 03 02 00 00 00 00 3A [18:22:30]Write i2c OK [18:22:30]MH_I2C_Read... [18:22:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:22:30]Read from MH i2c: E2 [18:22:30]MH_I2C_Read... [18:22:30]Read from MH i2c: E2 0B 00 [18:22:30]MH_I2C_Read... [18:22:30]Read from MH i2c: E2 0B 00 64 5B 00 D4 D8 3B 80 F7 D5 6E E2 90 00 BE [18:22:30]RAPDU: D4 D8 3B 80 F7 D5 6E E2 90 00 [18:22:30]wFMCommunicate OK [18:22:30]SAM_PROTO_SignData done [18:22:30]FM_MakeSignedData done [18:22:30]CreateOFDProtocolMessage [18:22:30]wFMCommunicate request_size=4 [18:22:30]MH_SAM_APDU [18:22:30]CAPDU: 80 11 00 00 [18:22:30]Write to MH i2c: E2 08 00 65 5B 80 11 00 00 00 00 00 00 3A [18:22:30]Write i2c OK [18:22:30]MH_I2C_Read... [18:22:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:22:30]Read from MH i2c: E2 [18:22:30]MH_I2C_Read... [18:22:30]Read from MH i2c: E2 17 00 [18:22:30]MH_I2C_Read... [18:22:30]Read from MH i2c: E2 17 00 65 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 8A [18:22:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [18:22:30]wFMCommunicate OK [18:22:30]CreateOFDProtocolMessage done [18:22:30]OFDSenderStorePacket 2104 [18:22:30]StoreOFDPacket docnum=2104 [18:22:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2A 01 00 00 0C C3 22 01 4C E3 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 35 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 2E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 6B 8C A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 38 08 00 00 35 04 06 00 DC 78 AB B7 91 BD D4 D8 3B 80 F7 D5 6E E2 [18:22:30]CheckFolder [18:22:30]dirname=/storage/ofd_packets [18:22:30]CheckFolder done [18:22:30]ProducePacketName [18:22:30]name=ofd_packets/00002104 [18:22:30]NVStorageSaveData ofd_packets/00002104 [18:22:30]File name is /storage/ofd_packets/00002104 [18:22:30]Write 328 bytes [18:22:30]NVStorageSaveData done [18:22:30]OFDSenderStorePacket done [18:22:30]KKMCreateOFDPacket done [18:22:30]NVStorageSaveData kkm_last_timestamp [18:22:30]File name is /storage/kkm_last_timestamp [18:22:30]Write 4 bytes [18:22:30]NVStorageSaveData done [18:22:30]ExternCall_PrintAddStr [18:22:30]wPrintStart [18:22:30]Write to MH i2c: 01 00 00 66 5B C1 [18:22:30]OFD Sender: Processing packet 2104 [packets to send 1, broken 0] [18:22:30]ProducePacketName [18:22:30]name=ofd_packets/00002104 [18:22:30]OFD Sender: To server: pG, [18:22:30]CommunicateWithHost lk.salyk.kg:30040 [18:22:30]ConnectInit lk.salyk.kg [18:22:30]Write i2c OK [18:22:30]MH_I2C_Read... [18:22:30]Read from MH i2c: 01 [18:22:30]MH_I2C_Read... [18:22:30]Read from MH i2c: 01 07 00 [18:22:30]MH_I2C_Read... [18:22:30]Read from MH i2c: 01 07 00 66 5B 00 00 00 00 00 FF 0F D6 [18:22:30]RasterBufferAndPrint [18:22:30]line Счет N : (3)126401 [18:22:30]line ИНН: 02508201610067 [18:22:30]line Контрольно-Кассовый Чек [18:22:30]line ПРОДАЖА [18:22:30]line Товар: 4860019001353 [18:22:30]line Вода Боржоми 0,5л ПЭТ [18:22:30]line 1.000 * 120.00 [18:22:30]line = 120.00 [18:22:30]line НДС 12% НСП 1% [18:22:30]line > о реализуемом товаре [18:22:30]line ИТОГО: 120.00 [18:22:30]line НСП 1% : 1.06 [18:22:30]line НДС 12% : 12.74 [18:22:30]line Наличными: 0.00 [18:22:30]line Безнал.: 120.00 [18:22:30]line Место: АЗС № 127 "Партнер Нефть" [18:22:30]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [18:22:30]line СНО: Общий режим [18:22:30]line Чек 155 28.07.2024 18:22 [18:22:30]line Смена: 13 ФФД: 1.0 [18:22:30]line ЗНМ: 0300000161 [18:22:30]line РНМ: 0000000000189667 [18:22:30]line Версия ККМ: v1.0 [18:22:30]line Платежная система: O! деньги [18:22:30]line ФМ: 0000000002094248 [18:22:30]line ФД: 2104 [18:22:30]line ФПД: 242410835120573 [18:22:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T182235&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2104&fm=242410835120573&tin=02508201610067®Number=0000000000189667&sum=12000 [18:22:30]line 0 [18:22:30]Connected sock=10 [18:22:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2A 01 00 00 0C C3 22 01 4C E3 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 35 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 2E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 6B 8C A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 38 08 00 00 35 04 06 00 DC 78 AB B7 91 BD D4 D8 3B 80 F7 D5 6E E2 [18:22:30]written 0, free lines is 4095 [18:22:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 A0 6E 47 00 DB 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 38 08 00 00 F4 03 04 00 DA 37 A6 66 B6 04 01 00 00 77 3E C6 1A 0B 13 55 27 [18:22:30]CommunicateWithHost err = 0 [18:22:30]CheckOFDResponse [18:22:30]1017 (14) - 77093643461234 [18:22:30]1041 (16) - 0000000002094248 [18:22:30]1040 (4) - 2104 [18:22:30]1012 (4) - 28.07.2024 12:21 [18:22:30]1206 (1) - 0 [18:22:30]OFD Sender: Remove packet 2104 [18:22:30]ProducePacketName [18:22:30]name=ofd_packets/00002104 [18:22:30]NVStorageDeleteData [18:22:30]Write to MH i2c: 01 00 00 90 5B EB [18:22:30]Write i2c OK [18:22:30]MH_I2C_Read... [18:22:30]Read from MH i2c: 01 [18:22:30]MH_I2C_Read... [18:22:30]Read from MH i2c: 01 07 00 [18:22:30]MH_I2C_Read... [18:22:30]Read from MH i2c: 01 07 00 90 5B 00 00 00 00 00 EF 0C ED [18:22:30]RasterBufferAndPrint [18:22:30]line [18:22:30]line [18:22:30]line [18:22:30]line [18:22:30]line [18:22:30]written 0, free lines is 3317 [18:22:30]MH_Cut [18:22:30]Write to MH i2c: D1 01 00 97 5B 01 C4 [18:22:30]Write i2c OK [18:22:30]MH_I2C_Read... [18:22:30]Read from MH i2c: D1 [18:22:30]MH_I2C_Read... [18:22:30]Read from MH i2c: D1 01 00 [18:22:30]MH_I2C_Read... [18:22:30]Read from MH i2c: D1 01 00 97 5B 00 C3 [18:22:30]Write to MH i2c: 01 00 00 98 5B F3 [18:22:30]Write i2c OK [18:22:30]MH_I2C_Read... [18:22:31]OFD Sender: No OFD packet to send [18:22:31]*** Cut start [18:22:31]*** Partial cut [18:22:31]*** CUTSNS_PIN = 1 [18:22:31]*** CUTSNS_PIN = 0 [18:22:31]*** Brake cut motor [18:22:32]Read from MH i2c: 01 [18:22:32]MH_I2C_Read... [18:22:32]*** Stop cut motor [18:22:32]*** Cut end [18:22:32]Read from MH i2c: 01 07 00 [18:22:32]MH_I2C_Read... [18:22:32]Read from MH i2c: 01 07 00 98 5B 00 00 00 00 00 FF 0F 08 [18:22:32]process_action close_receipt done [18:22:32]requested_data is exist [18:22:32]produce_requested_data [18:22:32]requested_item fm.sn is exist - process it [18:22:32]wFMCommunicate request_size=4 [18:22:32]MH_SAM_APDU [18:22:32]CAPDU: 80 11 00 00 [18:22:32]Write to MH i2c: E2 08 00 99 5B 80 11 00 00 00 00 00 00 6E [18:22:32]Write i2c OK [18:22:32]MH_I2C_Read... [18:22:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:22:32]Read from MH i2c: E2 [18:22:32]MH_I2C_Read... [18:22:32]Read from MH i2c: E2 17 00 [18:22:32]MH_I2C_Read... [18:22:32]Read from MH i2c: E2 17 00 99 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 BE [18:22:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [18:22:32]wFMCommunicate OK [18:22:32]requested_item fd.num is exist - process it [18:22:32]SAM_PROTO_GetFieldsCounters [18:22:32]wFMCommunicate request_size=4 [18:22:32]MH_SAM_APDU [18:22:32]CAPDU: 80 13 00 00 [18:22:32]Write to MH i2c: E2 08 00 9A 5B 80 13 00 00 00 00 00 00 71 [18:22:32]Write i2c OK [18:22:32]MH_I2C_Read... [18:22:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:22:32]Read from MH i2c: E2 [18:22:32]MH_I2C_Read... [18:22:32]Read from MH i2c: E2 62 00 [18:22:32]MH_I2C_Read... [18:22:32]Read from MH i2c: E2 62 00 9A 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 38 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 B9 [18:22:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 38 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:22:32]wFMCommunicate OK [18:22:32]SAM_PROTO_GetFieldsCounters done [18:22:32]requested_item shift.num is exist - process it [18:22:32]requested_item shift.opened is exist - process it [18:22:32]req_shift_opened [18:22:32]FM_GetShiftState [18:22:32]SAM_PROTO_GetShiftState [18:22:32]wFMCommunicate request_size=4 [18:22:32]MH_SAM_APDU [18:22:32]CAPDU: 80 13 01 00 [18:22:32]Write to MH i2c: E2 08 00 9B 5B 80 13 01 00 00 00 00 00 73 [18:22:32]Write i2c OK [18:22:32]MH_I2C_Read... [18:22:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:22:32]Read from MH i2c: E2 [18:22:32]MH_I2C_Read... [18:22:32]Read from MH i2c: E2 0E 00 [18:22:32]MH_I2C_Read... [18:22:32]Read from MH i2c: E2 0E 00 9B 5B 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 67 [18:22:32]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [18:22:32]wFMCommunicate OK [18:22:32]SAM_PROTO_GetShiftState done [18:22:32]FM_GetShiftState done [18:22:32]req_shift_opened done [18:22:32]requested_item shift.open_date is exist - process it [18:22:32]req_shift_open_date [18:22:32]req_shift_open_date done [18:22:32]produce_requested_data done [18:22:32]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2104,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [18:22:32]process_action_free close_receipt [18:22:32]json_value_free [18:22:32]json_value_free done [18:22:32]process_json_proto returns [18:22:32]Send response to host [18:22:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2104,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [18:22:32]free response buf [18:22:32]execute_script done [18:22:32]execute_script returns [18:22:32]free content buf [18:22:32]Sock 8.Close socket [18:22:32]Sock 8.Thread stoped [18:22:36]OFD Sender: No OFD packet to send [18:22:41]OFD Sender: No OFD packet to send [18:22:46]OFD Sender: No OFD packet to send [18:22:51]OFD Sender: No OFD packet to send [18:22:56]OFD Sender: No OFD packet to send [18:23:01]OFD Sender: No OFD packet to send [18:23:06]OFD Sender: No OFD packet to send [18:23:11]OFD Sender: No OFD packet to send [18:23:16]OFD Sender: No OFD packet to send [18:23:21]OFD Sender: No OFD packet to send [18:23:26]OFD Sender: No OFD packet to send [18:23:31]OFD Sender: No OFD packet to send [18:23:36]OFD Sender: No OFD packet to send [18:23:41]OFD Sender: No OFD packet to send [18:23:46]OFD Sender: No OFD packet to send [18:23:51]OFD Sender: No OFD packet to send [18:23:56]OFD Sender: No OFD packet to send [18:24:01]OFD Sender: No OFD packet to send [18:24:06]OFD Sender: No OFD packet to send [18:24:11]OFD Sender: No OFD packet to send [18:24:16]OFD Sender: No OFD packet to send [18:24:21]OFD Sender: No OFD packet to send [18:24:26]OFD Sender: No OFD packet to send [18:24:31]OFD Sender: No OFD packet to send [18:24:36]OFD Sender: No OFD packet to send [18:24:41]OFD Sender: No OFD packet to send [18:24:46]OFD Sender: No OFD packet to send [18:24:51]OFD Sender: No OFD packet to send [18:24:56]OFD Sender: No OFD packet to send [18:25:01]OFD Sender: No OFD packet to send [18:25:06]OFD Sender: No OFD packet to send [18:25:11]OFD Sender: No OFD packet to send [18:25:16]OFD Sender: No OFD packet to send [18:25:21]OFD Sender: No OFD packet to send [18:25:26]OFD Sender: No OFD packet to send [18:25:31]OFD Sender: No OFD packet to send [18:25:36]OFD Sender: No OFD packet to send [18:25:41]OFD Sender: No OFD packet to send [18:25:46]OFD Sender: No OFD packet to send [18:25:51]OFD Sender: No OFD packet to send [18:25:56]OFD Sender: No OFD packet to send [18:26:01]OFD Sender: No OFD packet to send [18:26:06]OFD Sender: No OFD packet to send [18:26:11]OFD Sender: No OFD packet to send [18:26:16]OFD Sender: No OFD packet to send [18:26:21]OFD Sender: No OFD packet to send [18:26:26]OFD Sender: No OFD packet to send [18:26:31]OFD Sender: No OFD packet to send [18:26:36]OFD Sender: No OFD packet to send [18:26:41]OFD Sender: No OFD packet to send [18:26:46]OFD Sender: No OFD packet to send [18:26:51]OFD Sender: No OFD packet to send [18:26:56]OFD Sender: No OFD packet to send [18:27:01]OFD Sender: No OFD packet to send [18:27:06]OFD Sender: No OFD packet to send [18:27:11]OFD Sender: No OFD packet to send [18:27:16]OFD Sender: No OFD packet to send [18:27:21]OFD Sender: No OFD packet to send [18:27:26]OFD Sender: No OFD packet to send [18:27:31]OFD Sender: No OFD packet to send [18:27:36]OFD Sender: No OFD packet to send [18:27:41]OFD Sender: No OFD packet to send [18:27:46]OFD Sender: No OFD packet to send [18:27:51]OFD Sender: No OFD packet to send [18:27:56]OFD Sender: No OFD packet to send [18:28:01]OFD Sender: No OFD packet to send [18:28:06]OFD Sender: No OFD packet to send [18:28:11]OFD Sender: No OFD packet to send [18:28:16]OFD Sender: No OFD packet to send [18:28:21]OFD Sender: No OFD packet to send [18:28:26]OFD Sender: No OFD packet to send [18:28:31]OFD Sender: No OFD packet to send [18:28:36]OFD Sender: No OFD packet to send [18:28:41]OFD Sender: No OFD packet to send [18:28:46]OFD Sender: No OFD packet to send [18:28:51]OFD Sender: No OFD packet to send [18:28:56]OFD Sender: No OFD packet to send [18:29:01]OFD Sender: No OFD packet to send [18:29:06]OFD Sender: No OFD packet to send [18:29:11]OFD Sender: No OFD packet to send [18:29:16]OFD Sender: No OFD packet to send [18:29:21]OFD Sender: No OFD packet to send [18:29:26]OFD Sender: No OFD packet to send [18:29:31]OFD Sender: No OFD packet to send [18:29:36]OFD Sender: No OFD packet to send [18:29:41]OFD Sender: No OFD packet to send [18:29:46]OFD Sender: No OFD packet to send [18:29:51]OFD Sender: No OFD packet to send [18:29:56]OFD Sender: No OFD packet to send [18:30:01]OFD Sender: No OFD packet to send [18:30:06]OFD Sender: No OFD packet to send [18:30:11]OFD Sender: No OFD packet to send [18:30:16]OFD Sender: No OFD packet to send [18:30:21]OFD Sender: No OFD packet to send [18:30:26]OFD Sender: No OFD packet to send [18:30:31]OFD Sender: No OFD packet to send [18:30:36]OFD Sender: No OFD packet to send [18:30:41]OFD Sender: No OFD packet to send [18:30:46]OFD Sender: No OFD packet to send [18:30:51]OFD Sender: No OFD packet to send [18:30:56]OFD Sender: No OFD packet to send [18:31:01]OFD Sender: No OFD packet to send [18:31:06]OFD Sender: No OFD packet to send [18:31:11]OFD Sender: No OFD packet to send [18:31:16]OFD Sender: No OFD packet to send [18:31:21]OFD Sender: No OFD packet to send [18:31:26]OFD Sender: No OFD packet to send [18:31:31]OFD Sender: No OFD packet to send [18:31:36]OFD Sender: No OFD packet to send [18:31:41]OFD Sender: No OFD packet to send [18:31:46]OFD Sender: No OFD packet to send [18:31:51]OFD Sender: No OFD packet to send [18:31:56]OFD Sender: No OFD packet to send [18:32:01]OFD Sender: No OFD packet to send [18:32:06]OFD Sender: No OFD packet to send [18:32:11]OFD Sender: No OFD packet to send [18:32:16]OFD Sender: No OFD packet to send [18:32:21]OFD Sender: No OFD packet to send [18:32:26]OFD Sender: No OFD packet to send [18:32:31]OFD Sender: No OFD packet to send [18:32:36]OFD Sender: No OFD packet to send [18:32:41]OFD Sender: No OFD packet to send [18:32:46]OFD Sender: No OFD packet to send [18:32:51]OFD Sender: No OFD packet to send [18:32:56]OFD Sender: No OFD packet to send [18:33:01]OFD Sender: No OFD packet to send [18:33:06]OFD Sender: No OFD packet to send [18:33:11]OFD Sender: No OFD packet to send [18:33:16]OFD Sender: No OFD packet to send [18:33:21]OFD Sender: No OFD packet to send [18:33:26]OFD Sender: No OFD packet to send [18:33:31]OFD Sender: No OFD packet to send [18:33:36]OFD Sender: No OFD packet to send [18:33:41]OFD Sender: No OFD packet to send [18:33:46]OFD Sender: No OFD packet to send [18:33:51]OFD Sender: No OFD packet to send [18:33:56]OFD Sender: No OFD packet to send [18:34:01]OFD Sender: No OFD packet to send [18:34:06]OFD Sender: No OFD packet to send [18:34:11]OFD Sender: No OFD packet to send [18:34:16]OFD Sender: No OFD packet to send [18:34:21]OFD Sender: No OFD packet to send [18:34:26]OFD Sender: No OFD packet to send [18:34:31]OFD Sender: No OFD packet to send [18:34:36]OFD Sender: No OFD packet to send [18:34:41]OFD Sender: No OFD packet to send [18:34:46]OFD Sender: No OFD packet to send [18:34:51]OFD Sender: No OFD packet to send [18:34:56]OFD Sender: No OFD packet to send [18:35:01]OFD Sender: No OFD packet to send [18:35:06]OFD Sender: No OFD packet to send [18:35:11]OFD Sender: No OFD packet to send [18:35:16]OFD Sender: No OFD packet to send [18:35:21]OFD Sender: No OFD packet to send [18:35:26]OFD Sender: No OFD packet to send [18:35:31]OFD Sender: No OFD packet to send [18:35:36]OFD Sender: No OFD packet to send [18:35:41]OFD Sender: No OFD packet to send [18:35:46]OFD Sender: No OFD packet to send [18:35:51]OFD Sender: No OFD packet to send [18:35:56]OFD Sender: No OFD packet to send [18:36:01]OFD Sender: No OFD packet to send [18:36:06]OFD Sender: No OFD packet to send [18:36:11]OFD Sender: No OFD packet to send [18:36:16]OFD Sender: No OFD packet to send [18:36:21]OFD Sender: No OFD packet to send [18:36:26]OFD Sender: No OFD packet to send [18:36:31]OFD Sender: No OFD packet to send [18:36:36]OFD Sender: No OFD packet to send [18:36:41]OFD Sender: No OFD packet to send [18:36:46]OFD Sender: No OFD packet to send [18:36:51]OFD Sender: No OFD packet to send [18:36:56]OFD Sender: No OFD packet to send [18:37:01]OFD Sender: No OFD packet to send [18:37:06]OFD Sender: No OFD packet to send [18:37:11]OFD Sender: No OFD packet to send [18:37:16]OFD Sender: No OFD packet to send [18:37:21]OFD Sender: No OFD packet to send [18:37:26]OFD Sender: No OFD packet to send [18:37:31]OFD Sender: No OFD packet to send [18:37:36]OFD Sender: No OFD packet to send [18:37:41]OFD Sender: No OFD packet to send [18:37:46]OFD Sender: No OFD packet to send [18:37:51]OFD Sender: No OFD packet to send [18:37:56]OFD Sender: No OFD packet to send [18:38:01]OFD Sender: No OFD packet to send [18:38:06]OFD Sender: No OFD packet to send [18:38:11]OFD Sender: No OFD packet to send [18:38:16]OFD Sender: No OFD packet to send [18:38:21]OFD Sender: No OFD packet to send [18:38:26]OFD Sender: No OFD packet to send [18:38:31]OFD Sender: No OFD packet to send [18:38:36]OFD Sender: No OFD packet to send [18:38:41]OFD Sender: No OFD packet to send [18:38:46]OFD Sender: No OFD packet to send [18:38:51]OFD Sender: No OFD packet to send [18:38:56]OFD Sender: No OFD packet to send [18:39:01]OFD Sender: No OFD packet to send [18:39:06]OFD Sender: No OFD packet to send [18:39:11]OFD Sender: No OFD packet to send [18:39:16]OFD Sender: No OFD packet to send [18:39:21]OFD Sender: No OFD packet to send [18:39:26]OFD Sender: No OFD packet to send [18:39:31]OFD Sender: No OFD packet to send [18:39:36]OFD Sender: No OFD packet to send [18:39:41]OFD Sender: No OFD packet to send [18:39:46]OFD Sender: No OFD packet to send [18:39:51]OFD Sender: No OFD packet to send [18:39:56]OFD Sender: No OFD packet to send [18:40:01]OFD Sender: No OFD packet to send [18:40:06]OFD Sender: No OFD packet to send [18:40:11]OFD Sender: No OFD packet to send [18:40:16]OFD Sender: No OFD packet to send [18:40:21]OFD Sender: No OFD packet to send [18:40:26]OFD Sender: No OFD packet to send [18:40:31]OFD Sender: No OFD packet to send [18:40:36]OFD Sender: No OFD packet to send [18:40:41]OFD Sender: No OFD packet to send [18:40:46]OFD Sender: No OFD packet to send [18:40:51]OFD Sender: No OFD packet to send [18:40:56]OFD Sender: No OFD packet to send [18:41:01]OFD Sender: No OFD packet to send [18:41:06]OFD Sender: No OFD packet to send [18:41:11]OFD Sender: No OFD packet to send [18:41:16]OFD Sender: No OFD packet to send [18:41:22]OFD Sender: No OFD packet to send [18:41:27]OFD Sender: No OFD packet to send [18:41:32]OFD Sender: No OFD packet to send [18:41:37]OFD Sender: No OFD packet to send [18:41:42]OFD Sender: No OFD packet to send [18:41:47]OFD Sender: No OFD packet to send [18:41:52]OFD Sender: No OFD packet to send [18:41:57]OFD Sender: No OFD packet to send [18:42:02]OFD Sender: No OFD packet to send [18:42:07]OFD Sender: No OFD packet to send [18:42:12]OFD Sender: No OFD packet to send [18:42:17]OFD Sender: No OFD packet to send [18:42:22]OFD Sender: No OFD packet to send [18:42:24]accept exits with 9 [18:42:24]New connection [18:42:24]New thread 3067460964 created [18:42:24]Thread 3067317604 joined [18:42:24]Waiting for new connection... [18:42:24] Sock 9.Parse request [18:42:24]Sock 9.Check first char [18:42:24]Sock 9.First char is OK [18:42:24]request: POST /json_proto HTTP/1.0 [18:42:24]Method: POST [18:42:24]URL: /json_proto [18:42:24]Method is POST - this is cgi request [18:42:24]url: /json_proto [18:42:24]query_string will be loaded in cgi processing [18:42:24]execute_cgi json_proto POST (null) [18:42:24]execute_cgi path=json_proto method=POST [18:42:24]POST find Content-Length [18:42:24]Host: 172.17.45.132:8080 [18:42:24]Content-Length: 949 [18:42:24]Content-Type: application/json [18:42:24] [18:42:24]POST finish read [18:42:24]Found Content-Length = 949 [18:42:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126402", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521216", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0437\u0435\u043B.\u043B\u0438\u043C\u043E\u043D (\u043D\u043E\u0432\u044B\u0439)", "price" : 110.00, "quantity" : 1.000, "sum" : 110.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" ] } } [18:42:24]execute_script... [18:42: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)126402", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521216", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0437\u0435\u043B.\u043B\u0438\u043C\u043E\u043D (\u043D\u043E\u0432\u044B\u0439)", "price" : 110.00, "quantity" : 1.000, "sum" : 110.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" ] } } [18:42:24]POST & json_proto [18:42:24]process_json_proto [18:42:24]json parsed OK: [18:42:24]protocol is kg_v1.0 [18:42:24]action value=close_receipt [18:42:24]process_action close_receipt [18:42:24]cmd_close_receipt [18:42:24]MH_GetDate [18:42:24]Write to MH i2c: F0 00 00 9C 5B E6 [18:42:24]Write i2c OK [18:42:24]MH_I2C_Read... [18:42:24]Read from MH i2c: F0 [18:42:24]MH_I2C_Read... [18:42:24]Read from MH i2c: F0 09 00 [18:42:24]MH_I2C_Read... [18:42:24]Read from MH i2c: F0 09 00 9C 5B 00 17 91 A6 66 E3 0B 90 66 87 [18:42:24]GetLastDocTimeStamp 1722190955 [18:42:24]current date 1722192151 [18:42:24]FM_GetShiftState [18:42:24]SAM_PROTO_GetShiftState [18:42:24]wFMCommunicate request_size=4 [18:42:24]MH_SAM_APDU [18:42:24]CAPDU: 80 13 01 00 [18:42:24]Write to MH i2c: E2 08 00 9D 5B 80 13 01 00 00 00 00 00 75 [18:42:24]Write i2c OK [18:42:24]MH_I2C_Read... [18:42:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:42:24]Read from MH i2c: E2 [18:42:24]MH_I2C_Read... [18:42:24]Read from MH i2c: E2 0E 00 [18:42:24]MH_I2C_Read... [18:42:24]Read from MH i2c: E2 0E 00 9D 5B 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 69 [18:42:24]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [18:42:24]wFMCommunicate OK [18:42:24]SAM_PROTO_GetShiftState done [18:42:24]FM_GetShiftState done [18:42:24]opened in 1722125648 [18:42:24]opened+sec_in_day 1722212048 [18:42:24]quantity*price = 15000 [18:42:24]sum+1 = 15001 [18:42:24]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870202521216 Напиток MAXI чай 1,2 зел.лимон (новый) 1.000 * 110.00 = 110.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 156 28.07.2024 18:42 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2105 ФПД: 47512630933293 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T184231&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2105&fm=47512630933293&tin=02508201610067®Number=0000000000189667&sum=26000 0 [18:42:25]StoreToDocumentArchive [18:42:25]shift 13 fd 2105 [18:42:25]save to /storage/0013/doc_00002105 [18:42:25]save last doc name /storage/0013/doc_00002105 to /storage/kkm_last_doc_name [18:42:25]save OK [18:42:25]Clear old archive folders... [18:42:25]ProcessDocumentItem done err = 0, tmpTLVsize=407 [18:42:25]tlvbuf is 02048350 [18:42:25]SAM_PROTO_ClearQueue [18:42:25]wFMCommunicate request_size=4 [18:42:25]MH_SAM_APDU [18:42:25]CAPDU: 80 09 00 00 [18:42:25]Write to MH i2c: E2 08 00 AA 5B 80 09 00 00 00 00 00 00 77 [18:42:25]Write i2c OK [18:42:25]MH_I2C_Read... [18:42:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:42:25]Read from MH i2c: E2 [18:42:25]MH_I2C_Read... [18:42:25]Read from MH i2c: E2 03 00 [18:42:25]MH_I2C_Read... [18:42:25]Read from MH i2c: E2 03 00 AA 5B 00 90 00 79 [18:42:25]RAPDU: 90 00 [18:42:25]wFMCommunicate OK [18:42:25]SAM_PROTO_ClearQueue done [18:42:25]KKMCreateOFDPacket [18:42:25]OFDProtocolAddRootSTLVToBuf [18:42:25]FM_MakeSignedData [18:42:25]FM_MakeSignedData [18:42:25]SAM_PROTO_SignData [18:42:25]wFMCommunicate request_size=4 [18:42:25]MH_SAM_APDU [18:42:25]CAPDU: 80 0D 01 02 [18:42:25]Write to MH i2c: E2 08 00 AB 5B 80 0D 01 02 00 00 00 00 7F [18:42:25]Write i2c OK [18:42:25]MH_I2C_Read... [18:42:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:42:25]Read from MH i2c: E2 [18:42:25]MH_I2C_Read... [18:42:25]Read from MH i2c: E2 03 00 [18:42:25]MH_I2C_Read... [18:42:25]Read from MH i2c: E2 03 00 AB 5B 00 90 00 7A [18:42:25]RAPDU: 90 00 [18:42:25]wFMCommunicate OK [18:42:25]wFMCommunicate request_size=255 [18:42:25]MH_SAM_APDU [18:42:25]CAPDU: 80 0D 02 02 FA 03 00 97 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 [18:42:25]Write to MH i2c: E2 02 01 AC 5B 80 0D 02 02 FA 00 03 00 97 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 43 [18:42:25]Write i2c OK [18:42:25]MH_I2C_Read... [18:42:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:42:26]Read from MH i2c: E2 [18:42:26]MH_I2C_Read... [18:42:26]Read from MH i2c: E2 03 00 [18:42:26]MH_I2C_Read... [18:42:26]Read from MH i2c: E2 03 00 AC 5B 00 90 00 7B [18:42:26]RAPDU: 90 00 [18:42:26]wFMCommunicate OK [18:42:26]wFMCommunicate request_size=166 [18:42:26]MH_SAM_APDU [18:42:26]CAPDU: 80 0D 02 02 A1 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 9C 00 00 00 F4 03 04 00 17 91 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 39 08 00 00 35 04 06 00 2B 36 65 7D 37 2D [18:42:26]Write to MH i2c: E2 A9 00 AD 5B 80 0D 02 02 A1 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 9C 00 00 00 F4 03 04 00 17 91 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 39 08 00 00 35 04 06 00 2B 36 65 7D 37 2D 00 00 F2 [18:42:26]Write i2c OK [18:42:26]MH_I2C_Read... [18:42:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:42:26]Read from MH i2c: E2 [18:42:26]MH_I2C_Read... [18:42:26]Read from MH i2c: E2 03 00 [18:42:26]MH_I2C_Read... [18:42:26]Read from MH i2c: E2 03 00 AD 5B 00 90 00 7C [18:42:26]RAPDU: 90 00 [18:42:26]wFMCommunicate OK [18:42:26]wFMCommunicate request_size=4 [18:42:26]MH_SAM_APDU [18:42:26]CAPDU: 80 0D 03 02 [18:42:26]Write to MH i2c: E2 08 00 AE 5B 80 0D 03 02 00 00 00 00 84 [18:42:26]Write i2c OK [18:42:26]MH_I2C_Read... [18:42:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:42:26]Read from MH i2c: E2 [18:42:26]MH_I2C_Read... [18:42:26]Read from MH i2c: E2 0B 00 [18:42:26]MH_I2C_Read... [18:42:26]Read from MH i2c: E2 0B 00 AE 5B 00 45 FA 21 DD 79 83 CF 5C 90 00 E9 [18:42:26]RAPDU: 45 FA 21 DD 79 83 CF 5C 90 00 [18:42:26]wFMCommunicate OK [18:42:26]SAM_PROTO_SignData done [18:42:26]FM_MakeSignedData done [18:42:26]CreateOFDProtocolMessage [18:42:26]wFMCommunicate request_size=4 [18:42:26]MH_SAM_APDU [18:42:26]CAPDU: 80 11 00 00 [18:42:26]Write to MH i2c: E2 08 00 AF 5B 80 11 00 00 00 00 00 00 84 [18:42:26]Write i2c OK [18:42:26]MH_I2C_Read... [18:42:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:42:26]Read from MH i2c: E2 [18:42:26]MH_I2C_Read... [18:42:26]Read from MH i2c: E2 17 00 [18:42:26]MH_I2C_Read... [18:42:26]Read from MH i2c: E2 17 00 AF 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 D4 [18:42:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [18:42:26]wFMCommunicate OK [18:42:26]CreateOFDProtocolMessage done [18:42:26]OFDSenderStorePacket 2105 [18:42:26]StoreOFDPacket docnum=2105 [18:42:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 AB 01 00 00 B9 43 A3 01 19 BC 5A 03 01 00 03 00 97 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 9C 00 00 00 F4 03 04 00 17 91 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 39 08 00 00 35 04 06 00 2B 36 65 7D 37 2D 45 FA 21 DD 79 83 CF 5C [18:42:26]CheckFolder [18:42:26]dirname=/storage/ofd_packets [18:42:26]CheckFolder done [18:42:26]ProducePacketName [18:42:26]name=ofd_packets/00002105 [18:42:26]NVStorageSaveData ofd_packets/00002105 [18:42:26]File name is /storage/ofd_packets/00002105 [18:42:26]Write 457 bytes [18:42:26]NVStorageSaveData done [18:42:26]OFDSenderStorePacket done [18:42:26]KKMCreateOFDPacket done [18:42:26]NVStorageSaveData kkm_last_timestamp [18:42:26]File name is /storage/kkm_last_timestamp [18:42:26]Write 4 bytes [18:42:26]NVStorageSaveData done [18:42:26]ExternCall_PrintAddStr [18:42:26]wPrintStart [18:42:26]Write to MH i2c: 01 00 00 B0 5B 0B [18:42:26]Write i2c OK [18:42:26]MH_I2C_Read... [18:42:26]Read from MH i2c: 01 [18:42:26]MH_I2C_Read... [18:42:26]OFD Sender: Processing packet 2105 [packets to send 1, broken 0] [18:42:26]ProducePacketName [18:42:26]name=ofd_packets/00002105 [18:42:26]OFD Sender: To server: pG, [18:42:26]CommunicateWithHost lk.salyk.kg:30040 [18:42:26]ConnectInit lk.salyk.kg [18:42:26]Read from MH i2c: 01 07 00 [18:42:26]MH_I2C_Read... [18:42:26]Read from MH i2c: 01 07 00 B0 5B 00 00 00 00 00 FF 0F 20 [18:42:26]RasterBufferAndPrint [18:42:26]line Счет N : (3)126402 [18:42:26]line ИНН: 02508201610067 [18:42:26]line Контрольно-Кассовый Чек [18:42:26]line ПРОДАЖА [18:42:26]line Товар: 4640030091645 [18:42:26]line Сигареты ESSE Exchange M [18:42:26]line 1.000 * 150.00 [18:42:26]line = 150.00 [18:42:26]line НДС 12% НСП 1% [18:42:26]line > о реализуемом товаре [18:42:26]line Товар: 4870202521216 [18:42:26]line Напиток MAXI чай 1,2 зел.лимон (новый) [18:42:26]line 1.000 * 110.00 [18:42:26]line = 110.00 [18:42:26]line НДС 12% НСП 1% [18:42:26]line > о реализуемом товаре [18:42:26]line ИТОГО: 260.00 [18:42:26]line НСП 1% : 2.30 [18:42:26]line НДС 12% : 27.61 [18:42:26]line Наличными: 260.00 [18:42:26]line Безнал.: 0.00 [18:42:26]line Место: АЗС № 127 "Партнер Нефть" [18:42:26]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [18:42:26]line СНО: Общий режим [18:42:26]line Чек 156 28.07.2024 18:42 [18:42:26]line Смена: 13 ФФД: 1.0 [18:42:26]line ЗНМ: 0300000161 [18:42:26]line РНМ: 0000000000189667 [18:42:26]line Версия ККМ: v1.0 [18:42:26]line ФМ: 0000000002094248 [18:42:26]line ФД: 2105 [18:42:26]line ФПД: 47512630933293 [18:42:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T184231&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2105&fm=47512630933293&tin=02508201610067®Number=0000000000189667&sum=26000 [18:42:26]line 0 [18:42:26]written 0, free lines is 4095 [18:42:26]Connected sock=8 [18:42:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 AB 01 00 00 B9 43 A3 01 19 BC 5A 03 01 00 03 00 97 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 9C 00 00 00 F4 03 04 00 17 91 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 39 08 00 00 35 04 06 00 2B 36 65 7D 37 2D 45 FA 21 DD 79 83 CF 5C [18:42:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 AE 2D 47 00 E9 A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 39 08 00 00 F4 03 04 00 86 3C A6 66 B6 04 01 00 00 6C DC F1 E0 32 E7 47 C9 [18:42:27]CommunicateWithHost err = 0 [18:42:27]CheckOFDResponse [18:42:27]1017 (14) - 77093643461234 [18:42:27]1041 (16) - 0000000002094248 [18:42:27]1040 (4) - 2105 [18:42:27]1012 (4) - 28.07.2024 12:41 [18:42:27]1206 (1) - 0 [18:42:27]OFD Sender: Remove packet 2105 [18:42:27]ProducePacketName [18:42:27]name=ofd_packets/00002105 [18:42:27]NVStorageDeleteData [18:42:27]Write to MH i2c: 01 00 00 DF 5B 3A [18:42:27]Write i2c OK [18:42:27]MH_I2C_Read... [18:42:27]Read from MH i2c: 01 [18:42:27]MH_I2C_Read... [18:42:27]Read from MH i2c: 01 07 00 [18:42:27]MH_I2C_Read... [18:42:27]Read from MH i2c: 01 07 00 DF 5B 00 00 00 00 00 BC 0C 09 [18:42:27]RasterBufferAndPrint [18:42:27]line [18:42:27]line [18:42:27]line [18:42:27]line [18:42:27]line [18:42:27]written 0, free lines is 3270 [18:42:27]MH_Cut [18:42:27]Write to MH i2c: D1 01 00 E6 5B 01 13 [18:42:27]Write i2c OK [18:42:27]MH_I2C_Read... [18:42:27]Read from MH i2c: D1 [18:42:27]MH_I2C_Read... [18:42:27]Read from MH i2c: D1 01 00 [18:42:27]MH_I2C_Read... [18:42:27]Read from MH i2c: D1 01 00 E6 5B 00 12 [18:42:27]Write to MH i2c: 01 00 00 E7 5B 42 [18:42:27]Write i2c OK [18:42:27]MH_I2C_Read... [18:42:27]OFD Sender: No OFD packet to send [18:42:27]*** Cut start [18:42:27]*** Partial cut [18:42:27]*** CUTSNS_PIN = 1 [18:42:27]*** CUTSNS_PIN = 0 [18:42:28]*** Brake cut motor [18:42:28]Read from MH i2c: 01 [18:42:28]MH_I2C_Read... [18:42:28]*** Stop cut motor [18:42:28]*** Cut end [18:42:28]Read from MH i2c: 01 07 00 [18:42:28]MH_I2C_Read... [18:42:28]Read from MH i2c: 01 07 00 E7 5B 00 00 00 00 00 FF 0F 57 [18:42:28]process_action close_receipt done [18:42:28]requested_data is exist [18:42:28]produce_requested_data [18:42:28]requested_item fm.sn is exist - process it [18:42:28]wFMCommunicate request_size=4 [18:42:28]MH_SAM_APDU [18:42:28]CAPDU: 80 11 00 00 [18:42:28]Write to MH i2c: E2 08 00 E8 5B 80 11 00 00 00 00 00 00 BD [18:42:28]Write i2c OK [18:42:28]MH_I2C_Read... [18:42:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:42:28]Read from MH i2c: E2 [18:42:28]MH_I2C_Read... [18:42:28]Read from MH i2c: E2 17 00 [18:42:28]MH_I2C_Read... [18:42:28]Read from MH i2c: E2 17 00 E8 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 0D [18:42:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [18:42:28]wFMCommunicate OK [18:42:28]requested_item fd.num is exist - process it [18:42:28]SAM_PROTO_GetFieldsCounters [18:42:28]wFMCommunicate request_size=4 [18:42:28]MH_SAM_APDU [18:42:28]CAPDU: 80 13 00 00 [18:42:28]Write to MH i2c: E2 08 00 E9 5B 80 13 00 00 00 00 00 00 C0 [18:42:28]Write i2c OK [18:42:28]MH_I2C_Read... [18:42:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:42:28]Read from MH i2c: E2 [18:42:28]MH_I2C_Read... [18:42:28]Read from MH i2c: E2 62 00 [18:42:28]MH_I2C_Read... [18:42:28]Read from MH i2c: E2 62 00 E9 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 39 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 0C [18:42:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 39 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:42:28]wFMCommunicate OK [18:42:28]SAM_PROTO_GetFieldsCounters done [18:42:28]requested_item shift.num is exist - process it [18:42:28]requested_item shift.opened is exist - process it [18:42:28]req_shift_opened [18:42:28]FM_GetShiftState [18:42:28]SAM_PROTO_GetShiftState [18:42:28]wFMCommunicate request_size=4 [18:42:28]MH_SAM_APDU [18:42:28]CAPDU: 80 13 01 00 [18:42:28]Write to MH i2c: E2 08 00 EA 5B 80 13 01 00 00 00 00 00 C2 [18:42:28]Write i2c OK [18:42:28]MH_I2C_Read... [18:42:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:42:28]Read from MH i2c: E2 [18:42:28]MH_I2C_Read... [18:42:28]Read from MH i2c: E2 0E 00 [18:42:28]MH_I2C_Read... [18:42:28]Read from MH i2c: E2 0E 00 EA 5B 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 B6 [18:42:28]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [18:42:28]wFMCommunicate OK [18:42:28]SAM_PROTO_GetShiftState done [18:42:28]FM_GetShiftState done [18:42:28]req_shift_opened done [18:42:28]requested_item shift.open_date is exist - process it [18:42:28]req_shift_open_date [18:42:28]req_shift_open_date done [18:42:28]produce_requested_data done [18:42:28]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2105,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [18:42:28]process_action_free close_receipt [18:42:28]json_value_free [18:42:28]json_value_free done [18:42:28]process_json_proto returns [18:42:28]Send response to host [18:42:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2105,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [18:42:28]free response buf [18:42:28]execute_script done [18:42:28]execute_script returns [18:42:28]free content buf [18:42:28]Sock 9.Close socket [18:42:28]Sock 9.Thread stoped [18:42:32]OFD Sender: No OFD packet to send [18:42:37]OFD Sender: No OFD packet to send [18:42:42]OFD Sender: No OFD packet to send [18:42:47]OFD Sender: No OFD packet to send [18:42:52]OFD Sender: No OFD packet to send [18:42:57]OFD Sender: No OFD packet to send [18:43:02]OFD Sender: No OFD packet to send [18:43:07]OFD Sender: No OFD packet to send [18:43:12]OFD Sender: No OFD packet to send [18:43:17]OFD Sender: No OFD packet to send [18:43:22]OFD Sender: No OFD packet to send [18:43:27]OFD Sender: No OFD packet to send [18:43:32]OFD Sender: No OFD packet to send [18:43:37]OFD Sender: No OFD packet to send [18:43:42]OFD Sender: No OFD packet to send [18:43:47]OFD Sender: No OFD packet to send [18:43:52]OFD Sender: No OFD packet to send [18:43:57]OFD Sender: No OFD packet to send [18:44:02]OFD Sender: No OFD packet to send [18:44:07]OFD Sender: No OFD packet to send [18:44:12]OFD Sender: No OFD packet to send [18:44:17]OFD Sender: No OFD packet to send [18:44:22]OFD Sender: No OFD packet to send [18:44:27]OFD Sender: No OFD packet to send [18:44:32]OFD Sender: No OFD packet to send [18:44:37]OFD Sender: No OFD packet to send [18:44:42]OFD Sender: No OFD packet to send [18:44:47]OFD Sender: No OFD packet to send [18:44:52]OFD Sender: No OFD packet to send [18:44:57]OFD Sender: No OFD packet to send [18:45:02]OFD Sender: No OFD packet to send [18:45:07]OFD Sender: No OFD packet to send [18:45:12]OFD Sender: No OFD packet to send [18:45:17]OFD Sender: No OFD packet to send [18:45:22]OFD Sender: No OFD packet to send [18:45:27]OFD Sender: No OFD packet to send [18:45:32]OFD Sender: No OFD packet to send [18:45:37]OFD Sender: No OFD packet to send [18:45:42]OFD Sender: No OFD packet to send [18:45:47]OFD Sender: No OFD packet to send [18:45:52]OFD Sender: No OFD packet to send [18:45:57]OFD Sender: No OFD packet to send [18:46:02]OFD Sender: No OFD packet to send [18:46:07]OFD Sender: No OFD packet to send [18:46:12]OFD Sender: No OFD packet to send [18:46:17]OFD Sender: No OFD packet to send [18:46:22]OFD Sender: No OFD packet to send [18:46:27]OFD Sender: No OFD packet to send [18:46:32]OFD Sender: No OFD packet to send [18:46:37]OFD Sender: No OFD packet to send [18:46:42]OFD Sender: No OFD packet to send [18:46:47]OFD Sender: No OFD packet to send [18:46:52]OFD Sender: No OFD packet to send [18:46:57]OFD Sender: No OFD packet to send [18:47:02]OFD Sender: No OFD packet to send [18:47:07]OFD Sender: No OFD packet to send [18:47:12]OFD Sender: No OFD packet to send [18:47:17]OFD Sender: No OFD packet to send [18:47:22]OFD Sender: No OFD packet to send [18:47:27]OFD Sender: No OFD packet to send [18:47:32]OFD Sender: No OFD packet to send [18:47:37]OFD Sender: No OFD packet to send [18:47:42]OFD Sender: No OFD packet to send [18:47:47]OFD Sender: No OFD packet to send [18:47:52]OFD Sender: No OFD packet to send [18:47:57]OFD Sender: No OFD packet to send [18:48:02]OFD Sender: No OFD packet to send [18:48:07]OFD Sender: No OFD packet to send [18:48:12]OFD Sender: No OFD packet to send [18:48:17]OFD Sender: No OFD packet to send [18:48:22]OFD Sender: No OFD packet to send [18:48:27]OFD Sender: No OFD packet to send [18:48:32]OFD Sender: No OFD packet to send [18:48:37]OFD Sender: No OFD packet to send [18:48:42]OFD Sender: No OFD packet to send [18:48:47]OFD Sender: No OFD packet to send [18:48:52]OFD Sender: No OFD packet to send [18:48:57]OFD Sender: No OFD packet to send [18:49:02]OFD Sender: No OFD packet to send [18:49:07]OFD Sender: No OFD packet to send [18:49:12]OFD Sender: No OFD packet to send [18:49:17]OFD Sender: No OFD packet to send [18:49:22]OFD Sender: No OFD packet to send [18:49:27]OFD Sender: No OFD packet to send [18:49:32]OFD Sender: No OFD packet to send [18:49:37]OFD Sender: No OFD packet to send [18:49:42]OFD Sender: No OFD packet to send [18:49:47]OFD Sender: No OFD packet to send [18:49:52]OFD Sender: No OFD packet to send [18:49:57]OFD Sender: No OFD packet to send [18:50:02]OFD Sender: No OFD packet to send [18:50:07]OFD Sender: No OFD packet to send [18:50:12]OFD Sender: No OFD packet to send [18:50:17]OFD Sender: No OFD packet to send [18:50:22]OFD Sender: No OFD packet to send [18:50:27]OFD Sender: No OFD packet to send [18:50:32]OFD Sender: No OFD packet to send [18:50:37]OFD Sender: No OFD packet to send [18:50:42]OFD Sender: No OFD packet to send [18:50:47]OFD Sender: No OFD packet to send [18:50:52]OFD Sender: No OFD packet to send [18:50:57]OFD Sender: No OFD packet to send [18:51:02]OFD Sender: No OFD packet to send [18:51:07]OFD Sender: No OFD packet to send [18:51:12]OFD Sender: No OFD packet to send [18:51:17]OFD Sender: No OFD packet to send [18:51:22]OFD Sender: No OFD packet to send [18:51:27]OFD Sender: No OFD packet to send [18:51:32]OFD Sender: No OFD packet to send [18:51:37]OFD Sender: No OFD packet to send [18:51:42]OFD Sender: No OFD packet to send [18:51:47]OFD Sender: No OFD packet to send [18:51:52]OFD Sender: No OFD packet to send [18:51:57]OFD Sender: No OFD packet to send [18:52:03]OFD Sender: No OFD packet to send [18:52:08]OFD Sender: No OFD packet to send [18:52:13]OFD Sender: No OFD packet to send [18:52:18]OFD Sender: No OFD packet to send [18:52:23]OFD Sender: No OFD packet to send [18:52:28]OFD Sender: No OFD packet to send [18:52:33]OFD Sender: No OFD packet to send [18:52:38]OFD Sender: No OFD packet to send [18:52:43]OFD Sender: No OFD packet to send [18:52:48]OFD Sender: No OFD packet to send [18:52:53]OFD Sender: No OFD packet to send [18:52:58]OFD Sender: No OFD packet to send [18:53:03]OFD Sender: No OFD packet to send [18:53:08]OFD Sender: No OFD packet to send [18:53:13]OFD Sender: No OFD packet to send [18:53:18]OFD Sender: No OFD packet to send [18:53:23]OFD Sender: No OFD packet to send [18:53:28]OFD Sender: No OFD packet to send [18:53:33]OFD Sender: No OFD packet to send [18:53:38]OFD Sender: No OFD packet to send [18:53:43]OFD Sender: No OFD packet to send [18:53:48]OFD Sender: No OFD packet to send [18:53:53]OFD Sender: No OFD packet to send [18:53:58]OFD Sender: No OFD packet to send [18:54:03]OFD Sender: No OFD packet to send [18:54:08]OFD Sender: No OFD packet to send [18:54:13]OFD Sender: No OFD packet to send [18:54:18]OFD Sender: No OFD packet to send [18:54:23]OFD Sender: No OFD packet to send [18:54:28]OFD Sender: No OFD packet to send [18:54:33]OFD Sender: No OFD packet to send [18:54:38]OFD Sender: No OFD packet to send [18:54:43]OFD Sender: No OFD packet to send [18:54:48]OFD Sender: No OFD packet to send [18:54:53]OFD Sender: No OFD packet to send [18:54:58]OFD Sender: No OFD packet to send [18:55:03]OFD Sender: No OFD packet to send [18:55:08]OFD Sender: No OFD packet to send [18:55:13]OFD Sender: No OFD packet to send [18:55:18]OFD Sender: No OFD packet to send [18:55:23]OFD Sender: No OFD packet to send [18:55:28]OFD Sender: No OFD packet to send [18:55:33]OFD Sender: No OFD packet to send [18:55:38]OFD Sender: No OFD packet to send [18:55:43]OFD Sender: No OFD packet to send [18:55:48]OFD Sender: No OFD packet to send [18:55:53]OFD Sender: No OFD packet to send [18:55:58]OFD Sender: No OFD packet to send [18:56:03]OFD Sender: No OFD packet to send [18:56:08]OFD Sender: No OFD packet to send [18:56:13]OFD Sender: No OFD packet to send [18:56:18]OFD Sender: No OFD packet to send [18:56:23]OFD Sender: No OFD packet to send [18:56:28]OFD Sender: No OFD packet to send [18:56:33]OFD Sender: No OFD packet to send [18:56:38]OFD Sender: No OFD packet to send [18:56:43]OFD Sender: No OFD packet to send [18:56:48]OFD Sender: No OFD packet to send [18:56:53]OFD Sender: No OFD packet to send [18:56:58]OFD Sender: No OFD packet to send [18:57:03]OFD Sender: No OFD packet to send [18:57:08]OFD Sender: No OFD packet to send [18:57:13]OFD Sender: No OFD packet to send [18:57:18]OFD Sender: No OFD packet to send [18:57:23]OFD Sender: No OFD packet to send [18:57:28]OFD Sender: No OFD packet to send [18:57:33]OFD Sender: No OFD packet to send [18:57:38]OFD Sender: No OFD packet to send [18:57:43]OFD Sender: No OFD packet to send [18:57:48]OFD Sender: No OFD packet to send [18:57:53]OFD Sender: No OFD packet to send [18:57:58]OFD Sender: No OFD packet to send [18:58:03]OFD Sender: No OFD packet to send [18:58:08]OFD Sender: No OFD packet to send [18:58:13]OFD Sender: No OFD packet to send [18:58:18]OFD Sender: No OFD packet to send [18:58:23]OFD Sender: No OFD packet to send [18:58:28]OFD Sender: No OFD packet to send [18:58:33]OFD Sender: No OFD packet to send [18:58:38]OFD Sender: No OFD packet to send [18:58:43]OFD Sender: No OFD packet to send [18:58:48]OFD Sender: No OFD packet to send [18:58:53]OFD Sender: No OFD packet to send [18:58:58]OFD Sender: No OFD packet to send [18:59:03]OFD Sender: No OFD packet to send [18:59:08]OFD Sender: No OFD packet to send [18:59:13]OFD Sender: No OFD packet to send [18:59:18]OFD Sender: No OFD packet to send [18:59:23]OFD Sender: No OFD packet to send [18:59:28]OFD Sender: No OFD packet to send [18:59:33]OFD Sender: No OFD packet to send [18:59:38]OFD Sender: No OFD packet to send [18:59:43]OFD Sender: No OFD packet to send [18:59:48]OFD Sender: No OFD packet to send [18:59:53]OFD Sender: No OFD packet to send [18:59:58]OFD Sender: No OFD packet to send [19:00:03]OFD Sender: No OFD packet to send [19:00:08]OFD Sender: No OFD packet to send [19:00:13]OFD Sender: No OFD packet to send [19:00:18]OFD Sender: No OFD packet to send [19:00:23]OFD Sender: No OFD packet to send [19:00:28]OFD Sender: No OFD packet to send [19:00:33]OFD Sender: No OFD packet to send [19:00:38]OFD Sender: No OFD packet to send [19:00:43]OFD Sender: No OFD packet to send [19:00:48]OFD Sender: No OFD packet to send [19:00:53]OFD Sender: No OFD packet to send [19:00:58]OFD Sender: No OFD packet to send [19:01:03]OFD Sender: No OFD packet to send [19:01:08]OFD Sender: No OFD packet to send [19:01:13]OFD Sender: No OFD packet to send [19:01:18]OFD Sender: No OFD packet to send [19:01:23]OFD Sender: No OFD packet to send [19:01:28]OFD Sender: No OFD packet to send [19:01:33]OFD Sender: No OFD packet to send [19:01:38]OFD Sender: No OFD packet to send [19:01:43]OFD Sender: No OFD packet to send [19:01:48]OFD Sender: No OFD packet to send [19:01:53]OFD Sender: No OFD packet to send [19:01:58]OFD Sender: No OFD packet to send [19:02:03]OFD Sender: No OFD packet to send [19:02:08]OFD Sender: No OFD packet to send [19:02:13]OFD Sender: No OFD packet to send [19:02:18]OFD Sender: No OFD packet to send [19:02:23]OFD Sender: No OFD packet to send [19:02:28]OFD Sender: No OFD packet to send [19:02:33]OFD Sender: No OFD packet to send [19:02:38]OFD Sender: No OFD packet to send [19:02:43]OFD Sender: No OFD packet to send [19:02:48]OFD Sender: No OFD packet to send [19:02:53]OFD Sender: No OFD packet to send [19:02:58]OFD Sender: No OFD packet to send [19:03:03]OFD Sender: No OFD packet to send [19:03:08]OFD Sender: No OFD packet to send [19:03:13]OFD Sender: No OFD packet to send [19:03:18]OFD Sender: No OFD packet to send [19:03:23]OFD Sender: No OFD packet to send [19:03:28]OFD Sender: No OFD packet to send [19:03:33]OFD Sender: No OFD packet to send [19:03:38]OFD Sender: No OFD packet to send [19:03:43]OFD Sender: No OFD packet to send [19:03:48]OFD Sender: No OFD packet to send [19:03:53]OFD Sender: No OFD packet to send [19:03:58]OFD Sender: No OFD packet to send [19:04:03]OFD Sender: No OFD packet to send [19:04:08]OFD Sender: No OFD packet to send [19:04:13]OFD Sender: No OFD packet to send [19:04:18]OFD Sender: No OFD packet to send [19:04:23]OFD Sender: No OFD packet to send [19:04:28]OFD Sender: No OFD packet to send [19:04:33]OFD Sender: No OFD packet to send [19:04:38]OFD Sender: No OFD packet to send [19:04:43]OFD Sender: No OFD packet to send [19:04:48]OFD Sender: No OFD packet to send [19:04:53]OFD Sender: No OFD packet to send [19:04:58]OFD Sender: No OFD packet to send [19:05:03]OFD Sender: No OFD packet to send [19:05:08]OFD Sender: No OFD packet to send [19:05:13]OFD Sender: No OFD packet to send [19:05:18]OFD Sender: No OFD packet to send [19:05:23]OFD Sender: No OFD packet to send [19:05:28]OFD Sender: No OFD packet to send [19:05:33]OFD Sender: No OFD packet to send [19:05:38]OFD Sender: No OFD packet to send [19:05:43]OFD Sender: No OFD packet to send [19:05:48]OFD Sender: No OFD packet to send [19:05:53]OFD Sender: No OFD packet to send [19:05:58]OFD Sender: No OFD packet to send [19:06:03]OFD Sender: No OFD packet to send [19:06:08]OFD Sender: No OFD packet to send [19:06:13]OFD Sender: No OFD packet to send [19:06:18]OFD Sender: No OFD packet to send [19:06:23]OFD Sender: No OFD packet to send [19:06:28]OFD Sender: No OFD packet to send [19:06:33]OFD Sender: No OFD packet to send [19:06:38]OFD Sender: No OFD packet to send [19:06:43]OFD Sender: No OFD packet to send [19:06:48]OFD Sender: No OFD packet to send [19:06:53]OFD Sender: No OFD packet to send [19:06:58]OFD Sender: No OFD packet to send [19:07:03]OFD Sender: No OFD packet to send [19:07:08]OFD Sender: No OFD packet to send [19:07:13]OFD Sender: No OFD packet to send [19:07:18]OFD Sender: No OFD packet to send [19:07:23]OFD Sender: No OFD packet to send [19:07:28]OFD Sender: No OFD packet to send [19:07:33]OFD Sender: No OFD packet to send [19:07:38]OFD Sender: No OFD packet to send [19:07:43]OFD Sender: No OFD packet to send [19:07:48]OFD Sender: No OFD packet to send [19:07:53]OFD Sender: No OFD packet to send [19:07:58]OFD Sender: No OFD packet to send [19:08:03]OFD Sender: No OFD packet to send [19:08:08]OFD Sender: No OFD packet to send [19:08:13]OFD Sender: No OFD packet to send [19:08:18]OFD Sender: No OFD packet to send [19:08:23]OFD Sender: No OFD packet to send [19:08:28]OFD Sender: No OFD packet to send [19:08:33]OFD Sender: No OFD packet to send [19:08:38]OFD Sender: No OFD packet to send [19:08:43]OFD Sender: No OFD packet to send [19:08:48]OFD Sender: No OFD packet to send [19:08:53]OFD Sender: No OFD packet to send [19:08:58]OFD Sender: No OFD packet to send [19:09:03]OFD Sender: No OFD packet to send [19:09:08]OFD Sender: No OFD packet to send [19:09:13]OFD Sender: No OFD packet to send [19:09:18]OFD Sender: No OFD packet to send [19:09:23]OFD Sender: No OFD packet to send [19:09:28]OFD Sender: No OFD packet to send [19:09:33]OFD Sender: No OFD packet to send [19:09:38]OFD Sender: No OFD packet to send [19:09:43]OFD Sender: No OFD packet to send [19:09:48]OFD Sender: No OFD packet to send [19:09:53]OFD Sender: No OFD packet to send [19:09:58]OFD Sender: No OFD packet to send [19:10:03]OFD Sender: No OFD packet to send [19:10:08]OFD Sender: No OFD packet to send [19:10:13]OFD Sender: No OFD packet to send [19:10:18]OFD Sender: No OFD packet to send [19:10:23]OFD Sender: No OFD packet to send [19:10:28]OFD Sender: No OFD packet to send [19:10:33]OFD Sender: No OFD packet to send [19:10:38]OFD Sender: No OFD packet to send [19:10:43]OFD Sender: No OFD packet to send [19:10:48]OFD Sender: No OFD packet to send [19:10:53]OFD Sender: No OFD packet to send [19:10:58]OFD Sender: No OFD packet to send [19:11:03]OFD Sender: No OFD packet to send [19:11:08]OFD Sender: No OFD packet to send [19:11:13]OFD Sender: No OFD packet to send [19:11:18]OFD Sender: No OFD packet to send [19:11:23]OFD Sender: No OFD packet to send [19:11:28]OFD Sender: No OFD packet to send [19:11:33]OFD Sender: No OFD packet to send [19:11:38]OFD Sender: No OFD packet to send [19:11:43]OFD Sender: No OFD packet to send [19:11:48]OFD Sender: No OFD packet to send [19:11:53]OFD Sender: No OFD packet to send [19:11:58]OFD Sender: No OFD packet to send [19:12:03]OFD Sender: No OFD packet to send [19:12:08]OFD Sender: No OFD packet to send [19:12:13]OFD Sender: No OFD packet to send [19:12:18]OFD Sender: No OFD packet to send [19:12:23]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:19]OFD Sender: No OFD packet to send [19:14:24]OFD Sender: No OFD packet to send [19:14:29]OFD Sender: No OFD packet to send [19:14:34]OFD Sender: No OFD packet to send [19:14:39]OFD Sender: No OFD packet to send [19:14:44]OFD Sender: No OFD packet to send [19:14:49]OFD Sender: No OFD packet to send [19:14:54]OFD Sender: No OFD packet to send [19:14:59]OFD Sender: No OFD packet to send [19:15:04]OFD Sender: No OFD packet to send [19:15:09]OFD Sender: No OFD packet to send [19:15:14]OFD Sender: No OFD packet to send [19:15:19]OFD Sender: No OFD packet to send [19:15:24]OFD Sender: No OFD packet to send [19:15:29]OFD Sender: No OFD packet to send [19:15:34]OFD Sender: No OFD packet to send [19:15:39]OFD Sender: No OFD packet to send [19:15:44]OFD Sender: No OFD packet to send [19:15:49]OFD Sender: No OFD packet to send [19:15:54]OFD Sender: No OFD packet to send [19:15:59]OFD Sender: No OFD packet to send [19:16:04]OFD Sender: No OFD packet to send [19:16:09]OFD Sender: No OFD packet to send [19:16:14]OFD Sender: No OFD packet to send [19:16:19]OFD Sender: No OFD packet to send [19:16:24]OFD Sender: No OFD packet to send [19:16:29]OFD Sender: No OFD packet to send [19:16:34]OFD Sender: No OFD packet to send [19:16:39]OFD Sender: No OFD packet to send [19:16:44]OFD Sender: No OFD packet to send [19:16:49]OFD Sender: No OFD packet to send [19:16:54]OFD Sender: No OFD packet to send [19:16:59]OFD Sender: No OFD packet to send [19:17:04]OFD Sender: No OFD packet to send [19:17:09]OFD Sender: No OFD packet to send [19:17:14]OFD Sender: No OFD packet to send [19:17:19]OFD Sender: No OFD packet to send [19:17:24]OFD Sender: No OFD packet to send [19:17:29]OFD Sender: No OFD packet to send [19:17:34]OFD Sender: No OFD packet to send [19:17:39]OFD Sender: No OFD packet to send [19:17:44]OFD Sender: No OFD packet to send [19:17:49]OFD Sender: No OFD packet to send [19:17:54]OFD Sender: No OFD packet to send [19:17:59]OFD Sender: No OFD packet to send [19:18:04]OFD Sender: No OFD packet to send [19:18:09]OFD Sender: No OFD packet to send [19:18:14]OFD Sender: No OFD packet to send [19:18:19]OFD Sender: No OFD packet to send [19:18:24]OFD Sender: No OFD packet to send [19:18:29]OFD Sender: No OFD packet to send [19:18:34]OFD Sender: No OFD packet to send [19:18:39]OFD Sender: No OFD packet to send [19:18:44]OFD Sender: No OFD packet to send [19:18:49]OFD Sender: No OFD packet to send [19:18:54]OFD Sender: No OFD packet to send [19:18:59]OFD Sender: No OFD packet to send [19:19:04]OFD Sender: No OFD packet to send [19:19:09]OFD Sender: No OFD packet to send [19:19:14]OFD Sender: No OFD packet to send [19:19:19]OFD Sender: No OFD packet to send [19:19:24]OFD Sender: No OFD packet to send [19:19:29]OFD Sender: No OFD packet to send [19:19:34]OFD Sender: No OFD packet to send [19:19:39]OFD Sender: No OFD packet to send [19:19:44]OFD Sender: No OFD packet to send [19:19:49]OFD Sender: No OFD packet to send [19:19:50]accept exits with 10 [19:19:50]New connection [19:19:50]New thread 3067317604 created [19:19:50]Thread 3067460964 joined [19:19:50]Waiting for new connection... [19:19:50] Sock 10.Parse request [19:19:50]Sock 10.Check first char [19:19:50]Sock 10.First char is OK [19:19:50]request: POST /json_proto HTTP/1.0 [19:19:50]Method: POST [19:19:50]URL: /json_proto [19:19:50]Method is POST - this is cgi request [19:19:50]url: /json_proto [19:19:50]query_string will be loaded in cgi processing [19:19:50]execute_cgi json_proto POST (null) [19:19:50]execute_cgi path=json_proto method=POST [19:19:50]POST find Content-Length [19:19:50]Host: 172.17.45.132:8080 [19:19:50]Content-Length: 670 [19:19:50]Content-Type: application/json [19:19:50] [19:19:50]POST finish read [19:19:50]Found Content-Length = 670 [19:19:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126403", "tax_sys" : 0, "items" : [ { "code": "4700003010056", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0437\u0435\u043B \u043B\u0438\u043C \u041F\u042D\u0422 1,25\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:19:50]execute_script... [19:19: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)126403", "tax_sys" : 0, "items" : [ { "code": "4700003010056", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0437\u0435\u043B \u043B\u0438\u043C \u041F\u042D\u0422 1,25\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:19:50]POST & json_proto [19:19:50]process_json_proto [19:19:50]json parsed OK: [19:19:50]protocol is kg_v1.0 [19:19:50]action value=close_receipt [19:19:50]process_action close_receipt [19:19:50]cmd_close_receipt [19:19:50]MH_GetDate [19:19:50]Write to MH i2c: F0 00 00 EB 5B 35 [19:19:50]Write i2c OK [19:19:50]MH_I2C_Read... [19:19:50]Read from MH i2c: F0 [19:19:50]MH_I2C_Read... [19:19:50]Read from MH i2c: F0 09 00 [19:19:50]MH_I2C_Read... [19:19:50]Read from MH i2c: F0 09 00 EB 5B 00 DD 99 A6 66 E3 0B 90 66 A4 [19:19:50]GetLastDocTimeStamp 1722192151 [19:19:50]current date 1722194397 [19:19:50]FM_GetShiftState [19:19:50]SAM_PROTO_GetShiftState [19:19:50]wFMCommunicate request_size=4 [19:19:50]MH_SAM_APDU [19:19:50]CAPDU: 80 13 01 00 [19:19:50]Write to MH i2c: E2 08 00 EC 5B 80 13 01 00 00 00 00 00 C4 [19:19:50]Write i2c OK [19:19:50]MH_I2C_Read... [19:19:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:19:50]Read from MH i2c: E2 [19:19:50]MH_I2C_Read... [19:19:50]Read from MH i2c: E2 0E 00 [19:19:50]MH_I2C_Read... [19:19:50]Read from MH i2c: E2 0E 00 EC 5B 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 B8 [19:19:50]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [19:19:50]wFMCommunicate OK [19:19:50]SAM_PROTO_GetShiftState done [19:19:50]FM_GetShiftState done [19:19:50]opened in 1722125648 [19:19:50]opened+sec_in_day 1722212048 [19:19:50]quantity*price = 9500 [19:19:50]sum+1 = 9501 [19:19:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 157 28.07.2024 19:19 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2106 ФПД: 40149154325656 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T191957&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2106&fm=40149154325656&tin=02508201610067®Number=0000000000189667&sum=9500 0 [19:19:51]StoreToDocumentArchive [19:19:51]shift 13 fd 2106 [19:19:51]save to /storage/0013/doc_00002106 [19:19:51]save last doc name /storage/0013/doc_00002106 to /storage/kkm_last_doc_name [19:19:51]save OK [19:19:51]Clear old archive folders... [19:19:51]ProcessDocumentItem done err = 0, tmpTLVsize=293 [19:19:51]tlvbuf is 020C3E60 [19:19:51]SAM_PROTO_ClearQueue [19:19:51]wFMCommunicate request_size=4 [19:19:51]MH_SAM_APDU [19:19:51]CAPDU: 80 09 00 00 [19:19:51]Write to MH i2c: E2 08 00 F9 5B 80 09 00 00 00 00 00 00 C6 [19:19:51]Write i2c OK [19:19:51]MH_I2C_Read... [19:19:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:19:51]Read from MH i2c: E2 [19:19:51]MH_I2C_Read... [19:19:51]Read from MH i2c: E2 03 00 [19:19:51]MH_I2C_Read... [19:19:51]Read from MH i2c: E2 03 00 F9 5B 00 90 00 C8 [19:19:51]RAPDU: 90 00 [19:19:51]wFMCommunicate OK [19:19:51]SAM_PROTO_ClearQueue done [19:19:51]KKMCreateOFDPacket [19:19:51]OFDProtocolAddRootSTLVToBuf [19:19:51]FM_MakeSignedData [19:19:51]FM_MakeSignedData [19:19:51]SAM_PROTO_SignData [19:19:51]wFMCommunicate request_size=4 [19:19:51]MH_SAM_APDU [19:19:51]CAPDU: 80 0D 01 02 [19:19:51]Write to MH i2c: E2 08 00 FA 5B 80 0D 01 02 00 00 00 00 CE [19:19:51]Write i2c OK [19:19:51]MH_I2C_Read... [19:19:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:19:51]Read from MH i2c: E2 [19:19:51]MH_I2C_Read... [19:19:51]Read from MH i2c: E2 03 00 [19:19:51]MH_I2C_Read... [19:19:51]Read from MH i2c: E2 03 00 FA 5B 00 90 00 C9 [19:19:51]RAPDU: 90 00 [19:19:51]wFMCommunicate OK [19:19:51]wFMCommunicate request_size=255 [19:19:51]MH_SAM_APDU [19:19:51]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 35 36 06 04 33 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 DD 99 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [19:19:51]Write to MH i2c: E2 02 01 FB 5B 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 35 36 06 04 33 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 DD 99 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 F2 [19:19:51]Write i2c OK [19:19:51]MH_I2C_Read... [19:19:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:19:51]Read from MH i2c: E2 [19:19:51]MH_I2C_Read... [19:19:51]Read from MH i2c: E2 03 00 [19:19:51]MH_I2C_Read... [19:19:51]Read from MH i2c: E2 03 00 FB 5B 00 90 00 CA [19:19:51]RAPDU: 90 00 [19:19:51]wFMCommunicate OK [19:19:51]wFMCommunicate request_size=52 [19:19:51]MH_SAM_APDU [19:19:51]CAPDU: 80 0D 02 02 2F 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 3A 08 00 00 35 04 06 00 24 83 F4 14 E4 98 [19:19:51]Write to MH i2c: E2 37 00 FC 5B 80 0D 02 02 2F 00 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 3A 08 00 00 35 04 06 00 24 83 F4 14 E4 98 00 00 0A [19:19:51]Write i2c OK [19:19:51]MH_I2C_Read... [19:19:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:19:51]Read from MH i2c: E2 [19:19:51]MH_I2C_Read... [19:19:51]Read from MH i2c: E2 03 00 [19:19:51]MH_I2C_Read... [19:19:51]Read from MH i2c: E2 03 00 FC 5B 00 90 00 CB [19:19:51]RAPDU: 90 00 [19:19:51]wFMCommunicate OK [19:19:51]wFMCommunicate request_size=4 [19:19:51]MH_SAM_APDU [19:19:51]CAPDU: 80 0D 03 02 [19:19:51]Write to MH i2c: E2 08 00 FD 5B 80 0D 03 02 00 00 00 00 D3 [19:19:51]Write i2c OK [19:19:51]MH_I2C_Read... [19:19:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:19:51]Read from MH i2c: E2 [19:19:51]MH_I2C_Read... [19:19:51]Read from MH i2c: E2 0B 00 [19:19:51]MH_I2C_Read... [19:19:51]Read from MH i2c: E2 0B 00 FD 5B 00 E5 CE 3F DF BF 1E A5 98 90 00 BF [19:19:51]RAPDU: E5 CE 3F DF BF 1E A5 98 90 00 [19:19:51]wFMCommunicate OK [19:19:51]SAM_PROTO_SignData done [19:19:51]FM_MakeSignedData done [19:19:51]CreateOFDProtocolMessage [19:19:51]wFMCommunicate request_size=4 [19:19:51]MH_SAM_APDU [19:19:51]CAPDU: 80 11 00 00 [19:19:51]Write to MH i2c: E2 08 00 FE 5B 80 11 00 00 00 00 00 00 D3 [19:19:51]Write i2c OK [19:19:51]MH_I2C_Read... [19:19:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:19:51]Read from MH i2c: E2 [19:19:51]MH_I2C_Read... [19:19:51]Read from MH i2c: E2 17 00 [19:19:51]MH_I2C_Read... [19:19:51]Read from MH i2c: E2 17 00 FE 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 23 [19:19:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [19:19:51]wFMCommunicate OK [19:19:51]CreateOFDProtocolMessage done [19:19:51]OFDSenderStorePacket 2106 [19:19:51]StoreOFDPacket docnum=2106 [19:19:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 39 01 00 00 2D 57 31 01 09 BE 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 35 36 06 04 33 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 DD 99 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 3A 08 00 00 35 04 06 00 24 83 F4 14 E4 98 E5 CE 3F DF BF 1E A5 98 [19:19:51]CheckFolder [19:19:51]dirname=/storage/ofd_packets [19:19:51]CheckFolder done [19:19:51]ProducePacketName [19:19:51]name=ofd_packets/00002106 [19:19:51]NVStorageSaveData ofd_packets/00002106 [19:19:51]File name is /storage/ofd_packets/00002106 [19:19:51]Write 343 bytes [19:19:51]NVStorageSaveData done [19:19:51]OFDSenderStorePacket done [19:19:51]KKMCreateOFDPacket done [19:19:51]NVStorageSaveData kkm_last_timestamp [19:19:51]File name is /storage/kkm_last_timestamp [19:19:51]Write 4 bytes [19:19:51]NVStorageSaveData done [19:19:51]ExternCall_PrintAddStr [19:19:51]wPrintStart [19:19:51]Write to MH i2c: 01 00 00 FF 5B 5A [19:19:51]Write i2c OK [19:19:51]MH_I2C_Read... [19:19:51]Read from MH i2c: 01 [19:19:51]MH_I2C_Read... [19:19:51]Read from MH i2c: 01 07 00 [19:19:51]MH_I2C_Read... [19:19:51]Read from MH i2c: 01 07 00 FF 5B 00 00 00 00 00 FF 0F 6F [19:19:51]RasterBufferAndPrint [19:19:51]line Счет N : (3)126403 [19:19:51]line ИНН: 02508201610067 [19:19:51]line Контрольно-Кассовый Чек [19:19:51]line ПРОДАЖА [19:19:51]line Товар: 4700003010056 [19:19:51]line Чай хол Let`s Go! зел лим ПЭТ 1,25л [19:19:51]line 1.000 * 95.00 [19:19:51]line = 95.00 [19:19:51]line НДС 12% НСП 1% [19:19:51]line > о реализуемом товаре [19:19:51]line ИТОГО: 95.00 [19:19:51]line НСП 1% : 0.84 [19:19:51]line НДС 12% : 10.09 [19:19:51]line Наличными: 95.00 [19:19:51]line Безнал.: 0.00 [19:19:51]line Место: АЗС № 127 "Партнер Нефть" [19:19:51]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [19:19:51]line СНО: Общий режим [19:19:51]line Чек 157 28.07.2024 19:19 [19:19:51]line Смена: 13 ФФД: 1.0 [19:19:51]line ЗНМ: 0300000161 [19:19:51]line РНМ: 0000000000189667 [19:19:51]line Версия ККМ: v1.0 [19:19:51]line ФМ: 0000000002094248 [19:19:51]line ФД: 2106 [19:19:51]line ФПД: 40149154325656 [19:19:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T191957&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2106&fm=40149154325656&tin=02508201610067®Number=0000000000189667&sum=9500 [19:19:52]line 0 [19:19:52]OFD Sender: Processing packet 2106 [packets to send 1, broken 0] [19:19:52]ProducePacketName [19:19:52]name=ofd_packets/00002106 [19:19:52]OFD Sender: To server: pG, [19:19:52]CommunicateWithHost lk.salyk.kg:30040 [19:19:52]ConnectInit lk.salyk.kg [19:19:52]written 0, free lines is 4095 [19:19:52]Connected sock=9 [19:19:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 39 01 00 00 2D 57 31 01 09 BE 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 35 36 06 04 33 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 DD 99 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 3A 08 00 00 35 04 06 00 24 83 F4 14 E4 98 E5 CE 3F DF BF 1E A5 98 [19:19:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 A5 AE 47 00 87 E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 3A 08 00 00 F4 03 04 00 4B 45 A6 66 B6 04 01 00 00 05 67 44 A4 42 F6 CA 58 [19:19:52]CommunicateWithHost err = 0 [19:19:52]CheckOFDResponse [19:19:52]1017 (14) - 77093643461234 [19:19:52]1041 (16) - 0000000002094248 [19:19:52]1040 (4) - 2106 [19:19:52]1012 (4) - 28.07.2024 13:19 [19:19:52]1206 (1) - 0 [19:19:52]OFD Sender: Remove packet 2106 [19:19:52]ProducePacketName [19:19:52]name=ofd_packets/00002106 [19:19:52]NVStorageDeleteData [19:19:52]Write to MH i2c: 01 00 00 28 5C 84 [19:19:52]Write i2c OK [19:19:52]MH_I2C_Read... [19:19:52]Read from MH i2c: 01 [19:19:52]MH_I2C_Read... [19:19:52]Read from MH i2c: 01 07 00 [19:19:52]MH_I2C_Read... [19:19:52]Read from MH i2c: 01 07 00 28 5C 00 00 00 00 00 FB 0C 92 [19:19:52]RasterBufferAndPrint [19:19:52]line [19:19:52]line [19:19:52]line [19:19:52]line [19:19:52]line [19:19:52]written 0, free lines is 3328 [19:19:52]MH_Cut [19:19:52]Write to MH i2c: D1 01 00 2F 5C 01 5D [19:19:52]Write i2c OK [19:19:52]MH_I2C_Read... [19:19:52]Read from MH i2c: D1 [19:19:52]MH_I2C_Read... [19:19:52]Read from MH i2c: D1 01 00 [19:19:52]MH_I2C_Read... [19:19:52]Read from MH i2c: D1 01 00 2F 5C 00 5C [19:19:52]Write to MH i2c: 01 00 00 30 5C 8C [19:19:52]Write i2c OK [19:19:52]MH_I2C_Read... [19:19:53]OFD Sender: No OFD packet to send [19:19:53]*** Cut start [19:19:53]*** Partial cut [19:19:53]*** CUTSNS_PIN = 1 [19:19:53]*** CUTSNS_PIN = 0 [19:19:53]*** Brake cut motor [19:19:53]Read from MH i2c: 01 [19:19:53]MH_I2C_Read... [19:19:53]*** Stop cut motor [19:19:53]*** Cut end [19:19:53]Read from MH i2c: 01 07 00 [19:19:53]MH_I2C_Read... [19:19:53]Read from MH i2c: 01 07 00 30 5C 00 00 00 00 00 FF 0F A1 [19:19:53]process_action close_receipt done [19:19:53]requested_data is exist [19:19:53]produce_requested_data [19:19:53]requested_item fm.sn is exist - process it [19:19:53]wFMCommunicate request_size=4 [19:19:53]MH_SAM_APDU [19:19:53]CAPDU: 80 11 00 00 [19:19:53]Write to MH i2c: E2 08 00 31 5C 80 11 00 00 00 00 00 00 07 [19:19:53]Write i2c OK [19:19:53]MH_I2C_Read... [19:19:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:19:53]Read from MH i2c: E2 [19:19:53]MH_I2C_Read... [19:19:53]Read from MH i2c: E2 17 00 [19:19:53]MH_I2C_Read... [19:19:53]Read from MH i2c: E2 17 00 31 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 57 [19:19:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [19:19:53]wFMCommunicate OK [19:19:53]requested_item fd.num is exist - process it [19:19:53]SAM_PROTO_GetFieldsCounters [19:19:53]wFMCommunicate request_size=4 [19:19:53]MH_SAM_APDU [19:19:53]CAPDU: 80 13 00 00 [19:19:53]Write to MH i2c: E2 08 00 32 5C 80 13 00 00 00 00 00 00 0A [19:19:53]Write i2c OK [19:19:53]MH_I2C_Read... [19:19:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:19:54]Read from MH i2c: E2 [19:19:54]MH_I2C_Read... [19:19:54]Read from MH i2c: E2 62 00 [19:19:54]MH_I2C_Read... [19:19:54]Read from MH i2c: E2 62 00 32 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 3A 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 5A [19:19:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 3A 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:19:54]wFMCommunicate OK [19:19:54]SAM_PROTO_GetFieldsCounters done [19:19:54]requested_item shift.num is exist - process it [19:19:54]requested_item shift.opened is exist - process it [19:19:54]req_shift_opened [19:19:54]FM_GetShiftState [19:19:54]SAM_PROTO_GetShiftState [19:19:54]wFMCommunicate request_size=4 [19:19:54]MH_SAM_APDU [19:19:54]CAPDU: 80 13 01 00 [19:19:54]Write to MH i2c: E2 08 00 33 5C 80 13 01 00 00 00 00 00 0C [19:19:54]Write i2c OK [19:19:54]MH_I2C_Read... [19:19:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:19:54]Read from MH i2c: E2 [19:19:54]MH_I2C_Read... [19:19:54]Read from MH i2c: E2 0E 00 [19:19:54]MH_I2C_Read... [19:19:54]Read from MH i2c: E2 0E 00 33 5C 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 00 [19:19:54]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [19:19:54]wFMCommunicate OK [19:19:54]SAM_PROTO_GetShiftState done [19:19:54]FM_GetShiftState done [19:19:54]req_shift_opened done [19:19:54]requested_item shift.open_date is exist - process it [19:19:54]req_shift_open_date [19:19:54]req_shift_open_date done [19:19:54]produce_requested_data done [19:19:54]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2106,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [19:19:54]process_action_free close_receipt [19:19:54]json_value_free [19:19:54]json_value_free done [19:19:54]process_json_proto returns [19:19:54]Send response to host [19:19:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2106,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [19:19:54]free response buf [19:19:54]execute_script done [19:19:54]execute_script returns [19:19:54]free content buf [19:19:54]Sock 10.Close socket [19:19:54]Sock 10.Thread stoped [19:19:58]OFD Sender: No OFD packet to send [19:20:03]OFD Sender: No OFD packet to send [19:20:08]OFD Sender: No OFD packet to send [19:20:13]OFD Sender: No OFD packet to send [19:20:18]OFD Sender: No OFD packet to send [19:20:23]OFD Sender: No OFD packet to send [19:20:28]OFD Sender: No OFD packet to send [19:20:33]OFD Sender: No OFD packet to send [19:20:38]OFD Sender: No OFD packet to send [19:20:43]OFD Sender: No OFD packet to send [19:20:48]OFD Sender: No OFD packet to send [19:20:53]OFD Sender: No OFD packet to send [19:20:58]OFD Sender: No OFD packet to send [19:21:03]OFD Sender: No OFD packet to send [19:21:08]OFD Sender: No OFD packet to send [19:21:13]OFD Sender: No OFD packet to send [19:21:15]accept exits with 8 [19:21:15]New connection [19:21:15]New thread 3067460964 created [19:21:15]Thread 3067317604 joined [19:21:15]Waiting for new connection... [19:21:15] Sock 8.Parse request [19:21:15]Sock 8.Check first char [19:21:15]Sock 8.First char is OK [19:21:15]request: POST /json_proto HTTP/1.0 [19:21:15]Method: POST [19:21:15]URL: /json_proto [19:21:15]Method is POST - this is cgi request [19:21:15]url: /json_proto [19:21:15]query_string will be loaded in cgi processing [19:21:15]execute_cgi json_proto POST (null) [19:21:15]execute_cgi path=json_proto method=POST [19:21:15]POST find Content-Length [19:21:15]Host: 172.17.45.132:8080 [19:21:15]Content-Length: 1009 [19:21:15]Content-Type: application/json [19:21:15] [19:21:15]POST finish read [19:21:15]Found Content-Length = 1009 [19:21:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126404", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521254", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u043A\u043B\u0443\u0431\u043D", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:21:15]execute_script... [19:21: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)126404", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521254", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u043A\u043B\u0443\u0431\u043D", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:21:15]POST & json_proto [19:21:15]process_json_proto [19:21:15]json parsed OK: [19:21:15]protocol is kg_v1.0 [19:21:15]action value=close_receipt [19:21:15]process_action close_receipt [19:21:15]cmd_close_receipt [19:21:15]MH_GetDate [19:21:15]Write to MH i2c: F0 00 00 34 5C 7F [19:21:15]Write i2c OK [19:21:15]MH_I2C_Read... [19:21:15]Read from MH i2c: F0 [19:21:15]MH_I2C_Read... [19:21:15]Read from MH i2c: F0 09 00 [19:21:15]MH_I2C_Read... [19:21:15]Read from MH i2c: F0 09 00 34 5C 00 32 9A A6 66 E3 0B 90 66 44 [19:21:15]GetLastDocTimeStamp 1722194397 [19:21:15]current date 1722194482 [19:21:15]FM_GetShiftState [19:21:15]SAM_PROTO_GetShiftState [19:21:15]wFMCommunicate request_size=4 [19:21:15]MH_SAM_APDU [19:21:15]CAPDU: 80 13 01 00 [19:21:15]Write to MH i2c: E2 08 00 35 5C 80 13 01 00 00 00 00 00 0E [19:21:15]Write i2c OK [19:21:15]MH_I2C_Read... [19:21:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:21:15]Read from MH i2c: E2 [19:21:15]MH_I2C_Read... [19:21:15]Read from MH i2c: E2 0E 00 [19:21:15]MH_I2C_Read... [19:21:15]Read from MH i2c: E2 0E 00 35 5C 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 02 [19:21:15]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [19:21:15]wFMCommunicate OK [19:21:15]SAM_PROTO_GetShiftState done [19:21:15]FM_GetShiftState done [19:21:15]opened in 1722125648 [19:21:15]opened+sec_in_day 1722212048 [19:21:15]quantity*price = 5000 [19:21:15]sum+1 = 5001 [19:21:15]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870202521254 Чай холодный MAXI черный со вкусом клубн 1.000 * 110.00 = 110.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 160.00 НСП 1% : 1.41 НДС 12% : 16.99 Наличными: 160.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 158 28.07.2024 19:21 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2107 ФПД: 73840895440741 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T192122&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2107&fm=73840895440741&tin=02508201610067®Number=0000000000189667&sum=16000 0 [19:21:16]StoreToDocumentArchive [19:21:16]shift 13 fd 2107 [19:21:16]save to /storage/0013/doc_00002107 [19:21:16]save last doc name /storage/0013/doc_00002107 to /storage/kkm_last_doc_name [19:21:16]save OK [19:21:16]Clear old archive folders... [19:21:16]ProcessDocumentItem done err = 0, tmpTLVsize=417 [19:21:16]tlvbuf is 01F48660 [19:21:16]SAM_PROTO_ClearQueue [19:21:16]wFMCommunicate request_size=4 [19:21:16]MH_SAM_APDU [19:21:16]CAPDU: 80 09 00 00 [19:21:16]Write to MH i2c: E2 08 00 42 5C 80 09 00 00 00 00 00 00 10 [19:21:16]Write i2c OK [19:21:16]MH_I2C_Read... [19:21:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:21:16]Read from MH i2c: E2 [19:21:16]MH_I2C_Read... [19:21:16]Read from MH i2c: E2 03 00 [19:21:16]MH_I2C_Read... [19:21:16]Read from MH i2c: E2 03 00 42 5C 00 90 00 12 [19:21:16]RAPDU: 90 00 [19:21:16]wFMCommunicate OK [19:21:16]SAM_PROTO_ClearQueue done [19:21:16]KKMCreateOFDPacket [19:21:16]OFDProtocolAddRootSTLVToBuf [19:21:16]FM_MakeSignedData [19:21:16]FM_MakeSignedData [19:21:16]SAM_PROTO_SignData [19:21:16]wFMCommunicate request_size=4 [19:21:16]MH_SAM_APDU [19:21:16]CAPDU: 80 0D 01 02 [19:21:16]Write to MH i2c: E2 08 00 43 5C 80 0D 01 02 00 00 00 00 18 [19:21:16]Write i2c OK [19:21:16]MH_I2C_Read... [19:21:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:21:16]Read from MH i2c: E2 [19:21:16]MH_I2C_Read... [19:21:16]Read from MH i2c: E2 03 00 [19:21:16]MH_I2C_Read... [19:21:16]Read from MH i2c: E2 03 00 43 5C 00 90 00 13 [19:21:16]RAPDU: 90 00 [19:21:16]wFMCommunicate OK [19:21:16]wFMCommunicate request_size=255 [19:21:16]MH_SAM_APDU [19:21:16]CAPDU: 80 0D 02 02 FA 03 00 A1 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 [19:21:16]Write to MH i2c: E2 02 01 44 5C 80 0D 02 02 FA 00 03 00 A1 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 00 00 BB [19:21:16]Write i2c OK [19:21:16]MH_I2C_Read... [19:21:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:21:16]Read from MH i2c: E2 [19:21:16]MH_I2C_Read... [19:21:16]Read from MH i2c: E2 03 00 [19:21:16]MH_I2C_Read... [19:21:16]Read from MH i2c: E2 03 00 44 5C 00 90 00 14 [19:21:16]RAPDU: 90 00 [19:21:16]wFMCommunicate OK [19:21:16]wFMCommunicate request_size=176 [19:21:16]MH_SAM_APDU [19:21:16]CAPDU: 80 0D 02 02 AB 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 32 9A A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 3B 08 00 00 35 04 06 00 43 28 6C 57 B7 65 [19:21:16]Write to MH i2c: E2 B3 00 45 5C 80 0D 02 02 AB 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 32 9A A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 3B 08 00 00 35 04 06 00 43 28 6C 57 B7 65 00 00 41 [19:21:16]Write i2c OK [19:21:16]MH_I2C_Read... [19:21:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:21:17]Read from MH i2c: E2 [19:21:17]MH_I2C_Read... [19:21:17]Read from MH i2c: E2 03 00 [19:21:17]MH_I2C_Read... [19:21:17]Read from MH i2c: E2 03 00 45 5C 00 90 00 15 [19:21:17]RAPDU: 90 00 [19:21:17]wFMCommunicate OK [19:21:17]wFMCommunicate request_size=4 [19:21:17]MH_SAM_APDU [19:21:17]CAPDU: 80 0D 03 02 [19:21:17]Write to MH i2c: E2 08 00 46 5C 80 0D 03 02 00 00 00 00 1D [19:21:17]Write i2c OK [19:21:17]MH_I2C_Read... [19:21:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:21:17]Read from MH i2c: E2 [19:21:17]MH_I2C_Read... [19:21:17]Read from MH i2c: E2 0B 00 [19:21:17]MH_I2C_Read... [19:21:17]Read from MH i2c: E2 0B 00 46 5C 00 9C 99 41 22 9A 7D 66 02 90 00 35 [19:21:17]RAPDU: 9C 99 41 22 9A 7D 66 02 90 00 [19:21:17]wFMCommunicate OK [19:21:17]SAM_PROTO_SignData done [19:21:17]FM_MakeSignedData done [19:21:17]CreateOFDProtocolMessage [19:21:17]wFMCommunicate request_size=4 [19:21:17]MH_SAM_APDU [19:21:17]CAPDU: 80 11 00 00 [19:21:17]Write to MH i2c: E2 08 00 47 5C 80 11 00 00 00 00 00 00 1D [19:21:17]Write i2c OK [19:21:17]MH_I2C_Read... [19:21:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:21:17]Read from MH i2c: E2 [19:21:17]MH_I2C_Read... [19:21:17]Read from MH i2c: E2 17 00 [19:21:17]MH_I2C_Read... [19:21:17]Read from MH i2c: E2 17 00 47 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 6D [19:21:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [19:21:17]wFMCommunicate OK [19:21:17]CreateOFDProtocolMessage done [19:21:17]OFDSenderStorePacket 2107 [19:21:17]StoreOFDPacket docnum=2107 [19:21:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 B5 01 00 00 45 02 AD 01 A0 0F 5A 03 01 00 03 00 A1 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 32 9A A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 3B 08 00 00 35 04 06 00 43 28 6C 57 B7 65 9C 99 41 22 9A 7D 66 02 [19:21:17]CheckFolder [19:21:17]dirname=/storage/ofd_packets [19:21:17]CheckFolder done [19:21:17]ProducePacketName [19:21:17]name=ofd_packets/00002107 [19:21:17]NVStorageSaveData ofd_packets/00002107 [19:21:17]File name is /storage/ofd_packets/00002107 [19:21:17]Write 467 bytes [19:21:17]NVStorageSaveData done [19:21:17]OFDSenderStorePacket done [19:21:17]KKMCreateOFDPacket done [19:21:17]OFD Sender: Processing packet 2107 [packets to send 1, broken 0] [19:21:17]ProducePacketName [19:21:17]name=ofd_packets/00002107 [19:21:17]OFD Sender: To server: pG, [19:21:17]CommunicateWithHost lk.salyk.kg:30040 [19:21:17]ConnectInit lk.salyk.kg [19:21:17]NVStorageSaveData kkm_last_timestamp [19:21:17]File name is /storage/kkm_last_timestamp [19:21:17]Write 4 bytes [19:21:17]NVStorageSaveData done [19:21:17]ExternCall_PrintAddStr [19:21:17]wPrintStart [19:21:17]Write to MH i2c: 01 00 00 48 5C A4 [19:21:17]Write i2c OK [19:21:17]MH_I2C_Read... [19:21:17]Read from MH i2c: 01 [19:21:17]MH_I2C_Read... [19:21:17]Read from MH i2c: 01 07 00 [19:21:17]MH_I2C_Read... [19:21:17]Read from MH i2c: 01 07 00 48 5C 00 00 00 00 00 FF 0F B9 [19:21:17]RasterBufferAndPrint [19:21:17]line Счет N : (3)126404 [19:21:17]line ИНН: 02508201610067 [19:21:17]line Контрольно-Кассовый Чек [19:21:17]line ПРОДАЖА [19:21:17]line Товар: 5449000005489 [19:21:17]line Вода Бонаква 1л б/г [19:21:17]line 1.000 * 50.00 [19:21:17]line = 50.00 [19:21:17]line НДС 12% НСП 1% [19:21:17]line > о реализуемом товаре [19:21:17]line Товар: 4870202521254 [19:21:17]line Чай холодный MAXI черный со вкусом клубн [19:21:17]line 1.000 * 110.00 [19:21:17]line = 110.00 [19:21:17]line НДС 12% НСП 1% [19:21:17]line > о реализуемом товаре [19:21:17]line ИТОГО: 160.00 [19:21:17]line НСП 1% : 1.41 [19:21:17]line НДС 12% : 16.99 [19:21:17]line Наличными: 160.00 [19:21:17]line Безнал.: 0.00 [19:21:17]line Место: АЗС № 127 "Партнер Нефть" [19:21:17]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [19:21:17]line СНО: Общий режим [19:21:17]line Чек 158 28.07.2024 19:21 [19:21:17]line Смена: 13 ФФД: 1.0 [19:21:17]line ЗНМ: 0300000161 [19:21:17]line РНМ: 0000000000189667 [19:21:17]line Версия ККМ: v1.0 [19:21:17]line ФМ: 0000000002094248 [19:21:17]line ФД: 2107 [19:21:17]line ФПД: 73840895440741 [19:21:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T192122&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2107&fm=73840895440741&tin=02508201610067®Number=0000000000189667&sum=16000 [19:21:17]line 0 [19:21:17]written 0, free lines is 4095 [19:21:17]Connected sock=11 [19:21:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 B5 01 00 00 45 02 AD 01 A0 0F 5A 03 01 00 03 00 A1 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 32 9A A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 3B 08 00 00 35 04 06 00 43 28 6C 57 B7 65 9C 99 41 22 9A 7D 66 02 [19:21:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 AC 23 47 00 B1 DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 3B 08 00 00 F4 03 04 00 A1 45 A6 66 B6 04 01 00 00 67 9B FA 53 F5 6E 78 0E [19:21:18]CommunicateWithHost err = 0 [19:21:18]CheckOFDResponse [19:21:18]1017 (14) - 77093643461234 [19:21:18]1041 (16) - 0000000002094248 [19:21:18]1040 (4) - 2107 [19:21:18]1012 (4) - 28.07.2024 13:20 [19:21:18]1206 (1) - 0 [19:21:18]OFD Sender: Remove packet 2107 [19:21:18]ProducePacketName [19:21:18]name=ofd_packets/00002107 [19:21:18]NVStorageDeleteData [19:21:18]Write to MH i2c: 01 00 00 77 5C D3 [19:21:18]Write i2c OK [19:21:18]MH_I2C_Read... [19:21:18]Read from MH i2c: 01 [19:21:18]MH_I2C_Read... [19:21:18]Read from MH i2c: 01 07 00 [19:21:18]MH_I2C_Read... [19:21:18]Read from MH i2c: 01 07 00 77 5C 00 00 00 00 00 C5 0C AB [19:21:18]RasterBufferAndPrint [19:21:18]line [19:21:18]line [19:21:18]line [19:21:18]line [19:21:18]line [19:21:18]written 0, free lines is 3275 [19:21:18]MH_Cut [19:21:18]Write to MH i2c: D1 01 00 7E 5C 01 AC [19:21:18]Write i2c OK [19:21:18]MH_I2C_Read... [19:21:18]Read from MH i2c: D1 [19:21:18]MH_I2C_Read... [19:21:18]Read from MH i2c: D1 01 00 [19:21:18]MH_I2C_Read... [19:21:18]Read from MH i2c: D1 01 00 7E 5C 00 AB [19:21:18]Write to MH i2c: 01 00 00 7F 5C DB [19:21:18]Write i2c OK [19:21:18]MH_I2C_Read... [19:21:18]OFD Sender: No OFD packet to send [19:21:18]*** Cut start [19:21:18]*** Partial cut [19:21:18]*** CUTSNS_PIN = 1 [19:21:18]*** CUTSNS_PIN = 0 [19:21:19]*** Brake cut motor [19:21:19]Read from MH i2c: 01 [19:21:19]MH_I2C_Read... [19:21:19]*** Stop cut motor [19:21:19]*** Cut end [19:21:19]Read from MH i2c: 01 07 00 [19:21:19]MH_I2C_Read... [19:21:19]Read from MH i2c: 01 07 00 7F 5C 00 00 00 00 00 FF 0F F0 [19:21:19]process_action close_receipt done [19:21:19]requested_data is exist [19:21:19]produce_requested_data [19:21:19]requested_item fm.sn is exist - process it [19:21:19]wFMCommunicate request_size=4 [19:21:19]MH_SAM_APDU [19:21:19]CAPDU: 80 11 00 00 [19:21:19]Write to MH i2c: E2 08 00 80 5C 80 11 00 00 00 00 00 00 56 [19:21:19]Write i2c OK [19:21:19]MH_I2C_Read... [19:21:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:21:19]Read from MH i2c: E2 [19:21:19]MH_I2C_Read... [19:21:19]Read from MH i2c: E2 17 00 [19:21:19]MH_I2C_Read... [19:21:19]Read from MH i2c: E2 17 00 80 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 A6 [19:21:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [19:21:19]wFMCommunicate OK [19:21:19]requested_item fd.num is exist - process it [19:21:19]SAM_PROTO_GetFieldsCounters [19:21:19]wFMCommunicate request_size=4 [19:21:19]MH_SAM_APDU [19:21:19]CAPDU: 80 13 00 00 [19:21:19]Write to MH i2c: E2 08 00 81 5C 80 13 00 00 00 00 00 00 59 [19:21:19]Write i2c OK [19:21:19]MH_I2C_Read... [19:21:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:21:19]Read from MH i2c: E2 [19:21:19]MH_I2C_Read... [19:21:19]Read from MH i2c: E2 62 00 [19:21:19]MH_I2C_Read... [19:21:19]Read from MH i2c: E2 62 00 81 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 3B 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 AD [19:21:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 3B 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:21:19]wFMCommunicate OK [19:21:19]SAM_PROTO_GetFieldsCounters done [19:21:19]requested_item shift.num is exist - process it [19:21:19]requested_item shift.opened is exist - process it [19:21:19]req_shift_opened [19:21:19]FM_GetShiftState [19:21:19]SAM_PROTO_GetShiftState [19:21:19]wFMCommunicate request_size=4 [19:21:19]MH_SAM_APDU [19:21:19]CAPDU: 80 13 01 00 [19:21:19]Write to MH i2c: E2 08 00 82 5C 80 13 01 00 00 00 00 00 5B [19:21:19]Write i2c OK [19:21:19]MH_I2C_Read... [19:21:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:21:19]Read from MH i2c: E2 [19:21:19]MH_I2C_Read... [19:21:19]Read from MH i2c: E2 0E 00 [19:21:19]MH_I2C_Read... [19:21:19]Read from MH i2c: E2 0E 00 82 5C 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 4F [19:21:19]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [19:21:19]wFMCommunicate OK [19:21:19]SAM_PROTO_GetShiftState done [19:21:19]FM_GetShiftState done [19:21:19]req_shift_opened done [19:21:19]requested_item shift.open_date is exist - process it [19:21:19]req_shift_open_date [19:21:19]req_shift_open_date done [19:21:19]produce_requested_data done [19:21:19]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2107,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [19:21:19]process_action_free close_receipt [19:21:19]json_value_free [19:21:19]json_value_free done [19:21:19]process_json_proto returns [19:21:19]Send response to host [19:21:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2107,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [19:21:19]free response buf [19:21:19]execute_script done [19:21:19]execute_script returns [19:21:19]free content buf [19:21:19]Sock 8.Close socket [19:21:19]Sock 8.Thread stoped [19:21:23]OFD Sender: No OFD packet to send [19:21:28]OFD Sender: No OFD packet to send [19:21:33]OFD Sender: No OFD packet to send [19:21:38]OFD Sender: No OFD packet to send [19:21:43]OFD Sender: No OFD packet to send [19:21:48]OFD Sender: No OFD packet to send [19:21:53]OFD Sender: No OFD packet to send [19:21:58]OFD Sender: No OFD packet to send [19:22:03]OFD Sender: No OFD packet to send [19:22:08]OFD Sender: No OFD packet to send [19:22:13]OFD Sender: No OFD packet to send [19:22:18]OFD Sender: No OFD packet to send [19:22:23]OFD Sender: No OFD packet to send [19:22:28]OFD Sender: No OFD packet to send [19:22:33]OFD Sender: No OFD packet to send [19:22:38]OFD Sender: No OFD packet to send [19:22:43]OFD Sender: No OFD packet to send [19:22:48]OFD Sender: No OFD packet to send [19:22:53]OFD Sender: No OFD packet to send [19:22:58]OFD Sender: No OFD packet to send [19:23:03]OFD Sender: No OFD packet to send [19:23:08]OFD Sender: No OFD packet to send [19:23:13]OFD Sender: No OFD packet to send [19:23:18]OFD Sender: No OFD packet to send [19:23:23]OFD Sender: No OFD packet to send [19:23:28]OFD Sender: No OFD packet to send [19:23:33]OFD Sender: No OFD packet to send [19:23:38]OFD Sender: No OFD packet to send [19:23:41]accept exits with 9 [19:23:41]New connection [19:23:41]New thread 3067317604 created [19:23:41]Thread 3067460964 joined [19:23:41]Waiting for new connection... [19:23:41] Sock 9.Parse request [19:23:41]Sock 9.Check first char [19:23:41]Sock 9.First char is OK [19:23:41]request: POST /json_proto HTTP/1.0 [19:23:41]Method: POST [19:23:41]URL: /json_proto [19:23:41]Method is POST - this is cgi request [19:23:41]url: /json_proto [19:23:41]query_string will be loaded in cgi processing [19:23:41]execute_cgi json_proto POST (null) [19:23:41]execute_cgi path=json_proto method=POST [19:23:41]POST find Content-Length [19:23:41]Host: 172.17.45.132:8080 [19:23:41]Content-Length: 1218 [19:23:41]Content-Type: application/json [19:23:41] [19:23:41]POST finish read [19:23:41]Found Content-Length = 1218 [19:23:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126405", "tax_sys" : 0, "items" : [ { "code": "4700000160792", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u043A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 (\u043A\u0440\u0443\u0433\u043B\u044B\u0439)", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160099", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u0438\u043D\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043B\u044C\u043D\u044B\u0439", "price" : 15.00, "quantity" : 4.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:23:41]execute_script... [19:23: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)126405", "tax_sys" : 0, "items" : [ { "code": "4700000160792", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u043A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 (\u043A\u0440\u0443\u0433\u043B\u044B\u0439)", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160099", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u0438\u043D\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043B\u044C\u043D\u044B\u0439", "price" : 15.00, "quantity" : 4.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:23:41]POST & json_proto [19:23:41]process_json_proto [19:23:41]json parsed OK: [19:23:41]protocol is kg_v1.0 [19:23:41]action value=close_receipt [19:23:41]process_action close_receipt [19:23:41]cmd_close_receipt [19:23:41]MH_GetDate [19:23:41]Write to MH i2c: F0 00 00 83 5C CE [19:23:41]Write i2c OK [19:23:41]MH_I2C_Read... [19:23:41]Read from MH i2c: F0 [19:23:41]MH_I2C_Read... [19:23:41]Read from MH i2c: F0 09 00 [19:23:41]MH_I2C_Read... [19:23:41]Read from MH i2c: F0 09 00 83 5C 00 C4 9A A6 66 E3 0B 90 66 25 [19:23:41]GetLastDocTimeStamp 1722194482 [19:23:41]current date 1722194628 [19:23:41]FM_GetShiftState [19:23:41]SAM_PROTO_GetShiftState [19:23:41]wFMCommunicate request_size=4 [19:23:41]MH_SAM_APDU [19:23:41]CAPDU: 80 13 01 00 [19:23:41]Write to MH i2c: E2 08 00 84 5C 80 13 01 00 00 00 00 00 5D [19:23:41]Write i2c OK [19:23:41]MH_I2C_Read... [19:23:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:23:41]Read from MH i2c: E2 [19:23:41]MH_I2C_Read... [19:23:41]Read from MH i2c: E2 0E 00 [19:23:41]MH_I2C_Read... [19:23:41]Read from MH i2c: E2 0E 00 84 5C 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 51 [19:23:41]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [19:23:41]wFMCommunicate OK [19:23:41]SAM_PROTO_GetShiftState done [19:23:41]FM_GetShiftState done [19:23:41]opened in 1722125648 [19:23:41]opened+sec_in_day 1722212048 [19:23:41]quantity*price = 6000 [19:23:41]sum+1 = 6001 [19:23:41]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160099 Снек Курут индивидуальный 4.000 * 15.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 120.00 НСП 1% : 1.06 НДС 12% : 12.74 Наличными: 0.00 Безнал.: 120.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 159 28.07.2024 19:23 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: Бакай Банк ФМ: 0000000002094248 ФД: 2108 ФПД: 219927124862699 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T192348&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2108&fm=219927124862699&tin=02508201610067®Number=0000000000189667&sum=12000 0 [19:23:42]StoreToDocumentArchive [19:23:42]shift 13 fd 2108 [19:23:42]save to /storage/0013/doc_00002108 [19:23:42]save last doc name /storage/0013/doc_00002108 to /storage/kkm_last_doc_name [19:23:42]save OK [19:23:42]Clear old archive folders... [19:23:42]ProcessDocumentItem done err = 0, tmpTLVsize=423 [19:23:42]tlvbuf is 02079FE0 [19:23:42]SAM_PROTO_ClearQueue [19:23:42]wFMCommunicate request_size=4 [19:23:42]MH_SAM_APDU [19:23:42]CAPDU: 80 09 00 00 [19:23:42]Write to MH i2c: E2 08 00 91 5C 80 09 00 00 00 00 00 00 5F [19:23:42]Write i2c OK [19:23:42]MH_I2C_Read... [19:23:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:23:42]Read from MH i2c: E2 [19:23:42]MH_I2C_Read... [19:23:42]Read from MH i2c: E2 03 00 [19:23:42]MH_I2C_Read... [19:23:42]Read from MH i2c: E2 03 00 91 5C 00 90 00 61 [19:23:42]RAPDU: 90 00 [19:23:42]wFMCommunicate OK [19:23:42]SAM_PROTO_ClearQueue done [19:23:42]KKMCreateOFDPacket [19:23:42]OFDProtocolAddRootSTLVToBuf [19:23:42]FM_MakeSignedData [19:23:42]FM_MakeSignedData [19:23:42]SAM_PROTO_SignData [19:23:42]wFMCommunicate request_size=4 [19:23:42]MH_SAM_APDU [19:23:42]CAPDU: 80 0D 01 02 [19:23:42]Write to MH i2c: E2 08 00 92 5C 80 0D 01 02 00 00 00 00 67 [19:23:42]Write i2c OK [19:23:42]MH_I2C_Read... [19:23:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:23:42]Read from MH i2c: E2 [19:23:42]MH_I2C_Read... [19:23:42]Read from MH i2c: E2 03 00 [19:23:42]MH_I2C_Read... [19:23:42]Read from MH i2c: E2 03 00 92 5C 00 90 00 62 [19:23:42]RAPDU: 90 00 [19:23:42]wFMCommunicate OK [19:23:42]wFMCommunicate request_size=255 [19:23:42]MH_SAM_APDU [19:23:42]CAPDU: 80 0D 02 02 FA 03 00 A7 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 39 39 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 [19:23:42]Write to MH i2c: E2 02 01 93 5C 80 0D 02 02 FA 00 03 00 A7 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 39 39 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 00 E0 [19:23:42]Write i2c OK [19:23:42]MH_I2C_Read... [19:23:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:23:43]Read from MH i2c: E2 [19:23:43]MH_I2C_Read... [19:23:43]Read from MH i2c: E2 03 00 [19:23:43]MH_I2C_Read... [19:23:43]Read from MH i2c: E2 03 00 93 5C 00 90 00 63 [19:23:43]RAPDU: 90 00 [19:23:43]wFMCommunicate OK [19:23:43]wFMCommunicate request_size=182 [19:23:43]MH_SAM_APDU [19:23:43]CAPDU: 80 0D 02 02 B1 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 2E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 C4 9A A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 3C 08 00 00 35 04 06 00 C8 05 C6 27 66 EB [19:23:43]Write to MH i2c: E2 B9 00 94 5C 80 0D 02 02 B1 00 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 2E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 C4 9A A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 3C 08 00 00 35 04 06 00 C8 05 C6 27 66 EB 00 00 BE [19:23:43]Write i2c OK [19:23:43]MH_I2C_Read... [19:23:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:23:43]Read from MH i2c: E2 [19:23:43]MH_I2C_Read... [19:23:43]Read from MH i2c: E2 03 00 [19:23:43]MH_I2C_Read... [19:23:43]Read from MH i2c: E2 03 00 94 5C 00 90 00 64 [19:23:43]RAPDU: 90 00 [19:23:43]wFMCommunicate OK [19:23:43]wFMCommunicate request_size=4 [19:23:43]MH_SAM_APDU [19:23:43]CAPDU: 80 0D 03 02 [19:23:43]Write to MH i2c: E2 08 00 95 5C 80 0D 03 02 00 00 00 00 6C [19:23:43]Write i2c OK [19:23:43]MH_I2C_Read... [19:23:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:23:43]Read from MH i2c: E2 [19:23:43]MH_I2C_Read... [19:23:43]Read from MH i2c: E2 0B 00 [19:23:43]MH_I2C_Read... [19:23:43]Read from MH i2c: E2 0B 00 95 5C 00 E1 9B 26 77 C9 B1 44 0F 90 00 53 [19:23:43]RAPDU: E1 9B 26 77 C9 B1 44 0F 90 00 [19:23:43]wFMCommunicate OK [19:23:43]SAM_PROTO_SignData done [19:23:43]FM_MakeSignedData done [19:23:43]CreateOFDProtocolMessage [19:23:43]wFMCommunicate request_size=4 [19:23:43]MH_SAM_APDU [19:23:43]CAPDU: 80 11 00 00 [19:23:43]Write to MH i2c: E2 08 00 96 5C 80 11 00 00 00 00 00 00 6C [19:23:43]Write i2c OK [19:23:43]MH_I2C_Read... [19:23:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:23:43]Read from MH i2c: E2 [19:23:43]MH_I2C_Read... [19:23:43]Read from MH i2c: E2 17 00 [19:23:43]MH_I2C_Read... [19:23:43]Read from MH i2c: E2 17 00 96 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 BC [19:23:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [19:23:43]wFMCommunicate OK [19:23:43]CreateOFDProtocolMessage done [19:23:43]OFDSenderStorePacket 2108 [19:23:43]StoreOFDPacket docnum=2108 [19:23:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 BB 01 00 00 6A 4C B3 01 D1 65 5A 03 01 00 03 00 A7 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 39 39 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 DC 05 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 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 2E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 C4 9A A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 3C 08 00 00 35 04 06 00 C8 05 C6 27 66 EB E1 9B 26 77 C9 B1 44 0F [19:23:43]CheckFolder [19:23:43]dirname=/storage/ofd_packets [19:23:43]CheckFolder done [19:23:43]ProducePacketName [19:23:43]name=ofd_packets/00002108 [19:23:43]NVStorageSaveData ofd_packets/00002108 [19:23:43]File name is /storage/ofd_packets/00002108 [19:23:43]Write 473 bytes [19:23:43]NVStorageSaveData done [19:23:43]OFDSenderStorePacket done [19:23:43]KKMCreateOFDPacket done [19:23:43]NVStorageSaveData kkm_last_timestamp [19:23:43]File name is /storage/kkm_last_timestamp [19:23:43]Write 4 bytes [19:23:43]NVStorageSaveData done [19:23:43]ExternCall_PrintAddStr [19:23:43]wPrintStart [19:23:43]Write to MH i2c: 01 00 00 97 5C F3 [19:23:43]Write i2c OK [19:23:43]MH_I2C_Read... [19:23:43]Read from MH i2c: 01 [19:23:43]MH_I2C_Read... [19:23:43]Read from MH i2c: 01 07 00 [19:23:43]MH_I2C_Read... [19:23:43]Read from MH i2c: 01 07 00 97 5C 00 00 00 00 00 FF 0F 08 [19:23:43]RasterBufferAndPrint [19:23:43]line Счет N : (3)126405 [19:23:43]line ИНН: 02508201610067 [19:23:43]line Контрольно-Кассовый Чек [19:23:43]line ПРОДАЖА [19:23:43]line Товар: 4700000160792 [19:23:43]line Снек Курут классический (круглый) [19:23:43]line 1.000 * 60.00 [19:23:43]line = 60.00 [19:23:43]line НДС 12% НСП 1% [19:23:43]line > о реализуемом товаре [19:23:43]line Товар: 4700000160099 [19:23:43]line Снек Курут индивидуальный [19:23:43]line 4.000 * 15.00 [19:23:43]line = 60.00 [19:23:43]line НДС 12% НСП 1% [19:23:43]line > о реализуемом товаре [19:23:43]line ИТОГО: 120.00 [19:23:43]line НСП 1% : 1.06 [19:23:43]line НДС 12% : 12.74 [19:23:43]line Наличными: 0.00 [19:23:43]line Безнал.: 120.00 [19:23:43]line Место: АЗС № 127 "Партнер Нефть" [19:23:43]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [19:23:43]line СНО: Общий режим [19:23:43]line Чек 159 28.07.2024 19:23 [19:23:43]line Смена: 13 ФФД: 1.0 [19:23:43]line ЗНМ: 0300000161 [19:23:43]line РНМ: 0000000000189667 [19:23:43]line Версия ККМ: v1.0 [19:23:43]line Платежная система: Бакай Банк [19:23:43]line ФМ: 0000000002094248 [19:23:43]line ФД: 2108 [19:23:43]line ФПД: 219927124862699 [19:23:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T192348&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2108&fm=219927124862699&tin=02508201610067®Number=0000000000189667&sum=12000 [19:23:43]line 0 [19:23:43]written 0, free lines is 4095 [19:23:43]OFD Sender: Processing packet 2108 [packets to send 1, broken 0] [19:23:43]ProducePacketName [19:23:43]name=ofd_packets/00002108 [19:23:43]OFD Sender: To server: pG, [19:23:43]CommunicateWithHost lk.salyk.kg:30040 [19:23:43]ConnectInit lk.salyk.kg [19:23:43]Connected sock=10 [19:23:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 BB 01 00 00 6A 4C B3 01 D1 65 5A 03 01 00 03 00 A7 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 39 39 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 DC 05 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 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 2E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 C4 9A A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 3C 08 00 00 35 04 06 00 C8 05 C6 27 66 EB E1 9B 26 77 C9 B1 44 0F [19:23:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 9F 5E 47 00 9A 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 3C 08 00 00 F4 03 04 00 33 46 A6 66 B6 04 01 00 00 29 39 2B EE D6 1E 05 E4 [19:23:43]CommunicateWithHost err = 0 [19:23:43]CheckOFDResponse [19:23:43]1017 (14) - 77093643461234 [19:23:43]1041 (16) - 0000000002094248 [19:23:43]1040 (4) - 2108 [19:23:43]1012 (4) - 28.07.2024 13:22 [19:23:43]1206 (1) - 0 [19:23:43]OFD Sender: Remove packet 2108 [19:23:43]ProducePacketName [19:23:43]name=ofd_packets/00002108 [19:23:43]NVStorageDeleteData [19:23:44]Write to MH i2c: 01 00 00 C8 5C 24 [19:23:44]Write i2c OK [19:23:44]MH_I2C_Read... [19:23:44]Read from MH i2c: 01 [19:23:44]MH_I2C_Read... [19:23:44]Read from MH i2c: 01 07 00 [19:23:44]MH_I2C_Read... [19:23:44]Read from MH i2c: 01 07 00 C8 5C 00 00 00 00 00 BB 0C F2 [19:23:44]RasterBufferAndPrint [19:23:44]line [19:23:44]line [19:23:44]line [19:23:44]line [19:23:44]line [19:23:44]written 0, free lines is 3267 [19:23:44]MH_Cut [19:23:44]Write to MH i2c: D1 01 00 CF 5C 01 FD [19:23:44]Write i2c OK [19:23:44]MH_I2C_Read... [19:23:44]Read from MH i2c: D1 [19:23:44]MH_I2C_Read... [19:23:44]Read from MH i2c: D1 01 00 [19:23:44]MH_I2C_Read... [19:23:44]Read from MH i2c: D1 01 00 CF 5C 00 FC [19:23:44]Write to MH i2c: 01 00 00 D0 5C 2C [19:23:44]Write i2c OK [19:23:44]MH_I2C_Read... [19:23:44]OFD Sender: No OFD packet to send [19:23:44]*** Cut start [19:23:44]*** Partial cut [19:23:44]*** CUTSNS_PIN = 1 [19:23:44]*** CUTSNS_PIN = 0 [19:23:45]*** Brake cut motor [19:23:45]Read from MH i2c: 01 [19:23:45]MH_I2C_Read... [19:23:45]*** Stop cut motor [19:23:45]*** Cut end [19:23:45]Read from MH i2c: 01 07 00 [19:23:45]MH_I2C_Read... [19:23:45]Read from MH i2c: 01 07 00 D0 5C 00 00 00 00 00 FF 0F 41 [19:23:45]process_action close_receipt done [19:23:45]requested_data is exist [19:23:45]produce_requested_data [19:23:45]requested_item fm.sn is exist - process it [19:23:45]wFMCommunicate request_size=4 [19:23:45]MH_SAM_APDU [19:23:45]CAPDU: 80 11 00 00 [19:23:45]Write to MH i2c: E2 08 00 D1 5C 80 11 00 00 00 00 00 00 A7 [19:23:45]Write i2c OK [19:23:45]MH_I2C_Read... [19:23:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:23:45]Read from MH i2c: E2 [19:23:45]MH_I2C_Read... [19:23:45]Read from MH i2c: E2 17 00 [19:23:45]MH_I2C_Read... [19:23:45]Read from MH i2c: E2 17 00 D1 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 F7 [19:23:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [19:23:45]wFMCommunicate OK [19:23:45]requested_item fd.num is exist - process it [19:23:45]SAM_PROTO_GetFieldsCounters [19:23:45]wFMCommunicate request_size=4 [19:23:45]MH_SAM_APDU [19:23:45]CAPDU: 80 13 00 00 [19:23:45]Write to MH i2c: E2 08 00 D2 5C 80 13 00 00 00 00 00 00 AA [19:23:45]Write i2c OK [19:23:45]MH_I2C_Read... [19:23:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:23:45]Read from MH i2c: E2 [19:23:45]MH_I2C_Read... [19:23:45]Read from MH i2c: E2 62 00 [19:23:45]MH_I2C_Read... [19:23:45]Read from MH i2c: E2 62 00 D2 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 3C 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [19:23:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 3C 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:23:45]wFMCommunicate OK [19:23:45]SAM_PROTO_GetFieldsCounters done [19:23:45]requested_item shift.num is exist - process it [19:23:45]requested_item shift.opened is exist - process it [19:23:45]req_shift_opened [19:23:45]FM_GetShiftState [19:23:45]SAM_PROTO_GetShiftState [19:23:45]wFMCommunicate request_size=4 [19:23:45]MH_SAM_APDU [19:23:45]CAPDU: 80 13 01 00 [19:23:45]Write to MH i2c: E2 08 00 D3 5C 80 13 01 00 00 00 00 00 AC [19:23:45]Write i2c OK [19:23:45]MH_I2C_Read... [19:23:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:23:45]Read from MH i2c: E2 [19:23:45]MH_I2C_Read... [19:23:45]Read from MH i2c: E2 0E 00 [19:23:45]MH_I2C_Read... [19:23:45]Read from MH i2c: E2 0E 00 D3 5C 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 A0 [19:23:45]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [19:23:45]wFMCommunicate OK [19:23:45]SAM_PROTO_GetShiftState done [19:23:45]FM_GetShiftState done [19:23:45]req_shift_opened done [19:23:45]requested_item shift.open_date is exist - process it [19:23:45]req_shift_open_date [19:23:45]req_shift_open_date done [19:23:45]produce_requested_data done [19:23:45]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2108,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [19:23:45]process_action_free close_receipt [19:23:45]json_value_free [19:23:45]json_value_free done [19:23:45]process_json_proto returns [19:23:45]Send response to host [19:23:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2108,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [19:23:45]free response buf [19:23:45]execute_script done [19:23:45]execute_script returns [19:23:45]free content buf [19:23:45]Sock 9.Close socket [19:23:45]Sock 9.Thread stoped [19:23:49]OFD Sender: No OFD packet to send [19:23:54]OFD Sender: No OFD packet to send [19:23:59]OFD Sender: No OFD packet to send [19:24:04]OFD Sender: No OFD packet to send [19:24:09]OFD Sender: No OFD packet to send [19:24:14]OFD Sender: No OFD packet to send [19:24:19]OFD Sender: No OFD packet to send [19:24:24]OFD Sender: No OFD packet to send [19:24:29]OFD Sender: No OFD packet to send [19:24:34]OFD Sender: No OFD packet to send [19:24:39]OFD Sender: No OFD packet to send [19:24:44]OFD Sender: No OFD packet to send [19:24:49]OFD Sender: No OFD packet to send [19:24:54]OFD Sender: No OFD packet to send [19:24:59]OFD Sender: No OFD packet to send [19:25:04]OFD Sender: No OFD packet to send [19:25:09]OFD Sender: No OFD packet to send [19:25:14]OFD Sender: No OFD packet to send [19:25:19]OFD Sender: No OFD packet to send [19:25:24]OFD Sender: No OFD packet to send [19:25:29]OFD Sender: No OFD packet to send [19:25:34]OFD Sender: No OFD packet to send [19:25:39]OFD Sender: No OFD packet to send [19:25:44]OFD Sender: No OFD packet to send [19:25:49]OFD Sender: No OFD packet to send [19:25:54]OFD Sender: No OFD packet to send [19:25:59]OFD Sender: No OFD packet to send [19:26:04]OFD Sender: No OFD packet to send [19:26:09]OFD Sender: No OFD packet to send [19:26:09]accept exits with 8 [19:26:09]New connection [19:26:09]New thread 3067460964 created [19:26:09]Thread 3067317604 joined [19:26:09]Waiting for new connection... [19:26:09] Sock 8.Parse request [19:26:09]Sock 8.Check first char [19:26:09]Sock 8.First char is OK [19:26:09]request: POST /json_proto HTTP/1.0 [19:26:09]Method: POST [19:26:09]URL: /json_proto [19:26:09]Method is POST - this is cgi request [19:26:09]url: /json_proto [19:26:09]query_string will be loaded in cgi processing [19:26:09]execute_cgi json_proto POST (null) [19:26:09]execute_cgi path=json_proto method=POST [19:26:09]POST find Content-Length [19:26:09]Host: 172.17.45.132:8080 [19:26:09]Content-Length: 677 [19:26:09]Content-Type: application/json [19:26:09] [19:26:09]POST finish read [19:26:09]Found Content-Length = 677 [19:26:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)609442", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:09]execute_script... [19:26:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)609442", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:09]POST & json_proto [19:26:09]process_json_proto [19:26:09]json parsed OK: [19:26:09]protocol is kg_v1.0 [19:26:09]action value=close_receipt [19:26:09]process_action close_receipt [19:26:09]cmd_close_receipt [19:26:09]MH_GetDate [19:26:09]Write to MH i2c: F0 00 00 D4 5C 1F [19:26:09]Write i2c OK [19:26:09]MH_I2C_Read... [19:26:09]Read from MH i2c: F0 [19:26:09]MH_I2C_Read... [19:26:09]Read from MH i2c: F0 09 00 [19:26:09]MH_I2C_Read... [19:26:09]Read from MH i2c: F0 09 00 D4 5C 00 58 9B A6 66 E3 0B 90 66 0B [19:26:09]GetLastDocTimeStamp 1722194628 [19:26:09]current date 1722194776 [19:26:09]FM_GetShiftState [19:26:09]SAM_PROTO_GetShiftState [19:26:09]wFMCommunicate request_size=4 [19:26:09]MH_SAM_APDU [19:26:09]CAPDU: 80 13 01 00 [19:26:09]Write to MH i2c: E2 08 00 D5 5C 80 13 01 00 00 00 00 00 AE [19:26:09]Write i2c OK [19:26:09]MH_I2C_Read... [19:26:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:09]Read from MH i2c: E2 [19:26:09]MH_I2C_Read... [19:26:09]Read from MH i2c: E2 0E 00 [19:26:09]MH_I2C_Read... [19:26:09]Read from MH i2c: E2 0E 00 D5 5C 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 A2 [19:26:09]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [19:26:09]wFMCommunicate OK [19:26:09]SAM_PROTO_GetShiftState done [19:26:09]FM_GetShiftState done [19:26:09]opened in 1722125648 [19:26:09]opened+sec_in_day 1722212048 [19:26:09]quantity*price = 50036 [19:26:09]sum+1 = 50037 [19:26:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 160 28.07.2024 19:26 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2109 ФПД: 36986790255690 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T192616&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2109&fm=36986790255690&tin=02508201610067®Number=0000000000189667&sum=50000 [19:26:10]StoreToDocumentArchive [19:26:10]shift 13 fd 2109 [19:26:10]save to /storage/0013/doc_00002109 [19:26:10]save last doc name /storage/0013/doc_00002109 to /storage/kkm_last_doc_name [19:26:10]save OK [19:26:10]Clear old archive folders... [19:26:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:26:10]tlvbuf is 0217C7C0 [19:26:10]SAM_PROTO_ClearQueue [19:26:10]wFMCommunicate request_size=4 [19:26:10]MH_SAM_APDU [19:26:10]CAPDU: 80 09 00 00 [19:26:10]Write to MH i2c: E2 08 00 E2 5C 80 09 00 00 00 00 00 00 B0 [19:26:10]Write i2c OK [19:26:10]MH_I2C_Read... [19:26:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:26:10]Read from MH i2c: E2 [19:26:10]MH_I2C_Read... [19:26:10]Read from MH i2c: E2 03 00 [19:26:10]MH_I2C_Read... [19:26:10]Read from MH i2c: E2 03 00 E2 5C 00 90 00 B2 [19:26:10]RAPDU: 90 00 [19:26:10]wFMCommunicate OK [19:26:10]SAM_PROTO_ClearQueue done [19:26:10]KKMCreateOFDPacket [19:26:10]OFDProtocolAddRootSTLVToBuf [19:26:10]FM_MakeSignedData [19:26:10]FM_MakeSignedData [19:26:10]SAM_PROTO_SignData [19:26:10]wFMCommunicate request_size=4 [19:26:10]MH_SAM_APDU [19:26:10]CAPDU: 80 0D 01 02 [19:26:10]Write to MH i2c: E2 08 00 E3 5C 80 0D 01 02 00 00 00 00 B8 [19:26:10]Write i2c OK [19:26:10]MH_I2C_Read... [19:26:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:26:11]Read from MH i2c: E2 [19:26:11]MH_I2C_Read... [19:26:11]Read from MH i2c: E2 03 00 [19:26:11]MH_I2C_Read... [19:26:11]Read from MH i2c: E2 03 00 E3 5C 00 90 00 B3 [19:26:11]RAPDU: 90 00 [19:26:11]wFMCommunicate OK [19:26:11]wFMCommunicate request_size=255 [19:26:11]MH_SAM_APDU [19:26:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 58 9B A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 3D 08 00 00 35 04 06 00 21 [19:26:11]Write to MH i2c: E2 02 01 E4 5C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 58 9B A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 3D 08 00 00 35 04 06 00 21 00 00 4F [19:26:11]Write i2c OK [19:26:11]MH_I2C_Read... [19:26:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:11]Read from MH i2c: E2 [19:26:11]MH_I2C_Read... [19:26:11]Read from MH i2c: E2 03 00 [19:26:11]MH_I2C_Read... [19:26:11]Read from MH i2c: E2 03 00 E4 5C 00 90 00 B4 [19:26:11]RAPDU: 90 00 [19:26:11]wFMCommunicate OK [19:26:11]wFMCommunicate request_size=10 [19:26:11]MH_SAM_APDU [19:26:11]CAPDU: 80 0D 02 02 05 A3 A8 7E 9C 4A [19:26:11]Write to MH i2c: E2 0D 00 E5 5C 80 0D 02 02 05 00 A3 A8 7E 9C 4A 00 00 74 [19:26:11]Write i2c OK [19:26:11]MH_I2C_Read... [19:26:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:11]Read from MH i2c: E2 [19:26:11]MH_I2C_Read... [19:26:11]Read from MH i2c: E2 03 00 [19:26:11]MH_I2C_Read... [19:26:11]Read from MH i2c: E2 03 00 E5 5C 00 90 00 B5 [19:26:11]RAPDU: 90 00 [19:26:11]wFMCommunicate OK [19:26:11]wFMCommunicate request_size=4 [19:26:11]MH_SAM_APDU [19:26:11]CAPDU: 80 0D 03 02 [19:26:11]Write to MH i2c: E2 08 00 E6 5C 80 0D 03 02 00 00 00 00 BD [19:26:11]Write i2c OK [19:26:11]MH_I2C_Read... [19:26:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:26:11]Read from MH i2c: E2 [19:26:11]MH_I2C_Read... [19:26:11]Read from MH i2c: E2 0B 00 [19:26:11]MH_I2C_Read... [19:26:11]Read from MH i2c: E2 0B 00 E6 5C 00 F2 6A E1 7E 7D 2C 02 7B 90 00 9F [19:26:11]RAPDU: F2 6A E1 7E 7D 2C 02 7B 90 00 [19:26:11]wFMCommunicate OK [19:26:11]SAM_PROTO_SignData done [19:26:11]FM_MakeSignedData done [19:26:11]CreateOFDProtocolMessage [19:26:11]wFMCommunicate request_size=4 [19:26:11]MH_SAM_APDU [19:26:11]CAPDU: 80 11 00 00 [19:26:11]Write to MH i2c: E2 08 00 E7 5C 80 11 00 00 00 00 00 00 BD [19:26:11]Write i2c OK [19:26:11]MH_I2C_Read... [19:26:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:11]Read from MH i2c: E2 [19:26:11]MH_I2C_Read... [19:26:11]Read from MH i2c: E2 17 00 [19:26:11]MH_I2C_Read... [19:26:11]Read from MH i2c: E2 17 00 E7 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 0D [19:26:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [19:26:11]wFMCommunicate OK [19:26:11]CreateOFDProtocolMessage done [19:26:11]OFDSenderStorePacket 2109 [19:26:11]StoreOFDPacket docnum=2109 [19:26:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 FB 36 07 01 0F 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 58 9B A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 3D 08 00 00 35 04 06 00 21 A3 A8 7E 9C 4A F2 6A E1 7E 7D 2C 02 7B [19:26:11]CheckFolder [19:26:11]dirname=/storage/ofd_packets [19:26:11]CheckFolder done [19:26:11]ProducePacketName [19:26:11]name=ofd_packets/00002109 [19:26:11]NVStorageSaveData ofd_packets/00002109 [19:26:11]File name is /storage/ofd_packets/00002109 [19:26:11]Write 301 bytes [19:26:11]NVStorageSaveData done [19:26:11]OFDSenderStorePacket done [19:26:11]KKMCreateOFDPacket done [19:26:11]NVStorageSaveData kkm_last_timestamp [19:26:11]File name is /storage/kkm_last_timestamp [19:26:11]Write 4 bytes [19:26:11]NVStorageSaveData done [19:26:11]ExternCall_PrintAddStr [19:26:11]wPrintStart [19:26:11]Write to MH i2c: 01 00 00 E8 5C 44 [19:26:11]Write i2c OK [19:26:11]MH_I2C_Read... [19:26:11]Read from MH i2c: 01 [19:26:11]MH_I2C_Read... [19:26:11]Read from MH i2c: 01 07 00 [19:26:11]MH_I2C_Read... [19:26:11]Read from MH i2c: 01 07 00 E8 5C 00 00 00 00 00 FF 0F 59 [19:26:11]RasterBufferAndPrint [19:26:11]line Счет N : (1)609442 [19:26:11]line ИНН: 02508201610067 [19:26:11]line Контрольно-Кассовый Чек [19:26:11]line ПРОДАЖА [19:26:11]line ТРК (МРК, ГНК) : 62 [19:26:11]line Товар: 2710124130 [19:26:11]line Аи-92-К-2 [19:26:11]line 7.380 * 67.80 [19:26:11]line = 500.36 [19:26:11]line НДС 12% НСП 1% [19:26:11]line > о реализуемом товаре [19:26:11]line ОКРУГЛЕНИЕ: -0.36 [19:26:11]line ИТОГО: 500.00 [19:26:11]line Внесено: 500.00 [19:26:11]line СДАЧА: 0.00 [19:26:11]line НСП 1% : 4.43 [19:26:11]line НДС 12% : 53.14 [19:26:11]line Наличными: 500.00 [19:26:11]line Безнал.: 0.00 [19:26:11]line Место: АЗС № 127 "Партнер Нефть" [19:26:11]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [19:26:11]line СНО: Общий режим [19:26:11]line Чек 160 28.07.2024 19:26 [19:26:11]line Смена: 13 ФФД: 1.0 [19:26:11]line ЗНМ: 0300000161 [19:26:11]line РНМ: 0000000000189667 [19:26:11]line Версия ККМ: v1.0 [19:26:11]line ФМ: 0000000002094248 [19:26:11]line ФД: 2109 [19:26:11]line ФПД: 36986790255690 [19:26:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T192616&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2109&fm=36986790255690&tin=02508201610067®Number=0000000000189667&sum=50000 [19:26:11]OFD Sender: Processing packet 2109 [packets to send 1, broken 0] [19:26:11]ProducePacketName [19:26:11]name=ofd_packets/00002109 [19:26:11]OFD Sender: To server: pG, [19:26:11]CommunicateWithHost lk.salyk.kg:30040 [19:26:11]ConnectInit lk.salyk.kg [19:26:11]written 0, free lines is 4095 [19:26:11]Connected sock=10 [19:26:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 FB 36 07 01 0F 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 58 9B A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 3D 08 00 00 35 04 06 00 21 A3 A8 7E 9C 4A F2 6A E1 7E 7D 2C 02 7B [19:26:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 4F CA 47 00 5D 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 3D 08 00 00 F4 03 04 00 C7 46 A6 66 B6 04 01 00 00 9C B9 4B E8 71 A2 0D 14 [19:26:12]CommunicateWithHost err = 0 [19:26:12]CheckOFDResponse [19:26:12]1017 (14) - 77093643461234 [19:26:12]1041 (16) - 0000000002094248 [19:26:12]1040 (4) - 2109 [19:26:12]1012 (4) - 28.07.2024 13:25 [19:26:12]1206 (1) - 0 [19:26:12]OFD Sender: Remove packet 2109 [19:26:12]ProducePacketName [19:26:12]name=ofd_packets/00002109 [19:26:12]NVStorageDeleteData [19:26:12]Write to MH i2c: 01 00 00 13 5D 70 [19:26:12]Write i2c OK [19:26:12]MH_I2C_Read... [19:26:12]Read from MH i2c: 01 [19:26:12]MH_I2C_Read... [19:26:12]Read from MH i2c: 01 07 00 [19:26:12]MH_I2C_Read... [19:26:12]Read from MH i2c: 01 07 00 13 5D 00 00 00 00 00 E4 0C 67 [19:26:12]RasterBufferAndPrint [19:26:12]line [19:26:12]line [19:26:12]line [19:26:12]line [19:26:12]line [19:26:12]written 0, free lines is 3306 [19:26:12]MH_Cut [19:26:12]Write to MH i2c: D1 01 00 1A 5D 01 49 [19:26:12]Write i2c OK [19:26:12]MH_I2C_Read... [19:26:12]Read from MH i2c: D1 [19:26:12]MH_I2C_Read... [19:26:12]Read from MH i2c: D1 01 00 [19:26:12]MH_I2C_Read... [19:26:12]Read from MH i2c: D1 01 00 1A 5D 00 48 [19:26:12]Write to MH i2c: 01 00 00 1B 5D 78 [19:26:12]Write i2c OK [19:26:12]MH_I2C_Read... [19:26:12]OFD Sender: No OFD packet to send [19:26:12]*** Cut start [19:26:12]*** Partial cut [19:26:12]*** CUTSNS_PIN = 1 [19:26:13]*** CUTSNS_PIN = 0 [19:26:13]*** Brake cut motor [19:26:13]Read from MH i2c: 01 [19:26:13]MH_I2C_Read... [19:26:13]*** Stop cut motor [19:26:13]*** Cut end [19:26:13]Read from MH i2c: 01 07 00 [19:26:13]MH_I2C_Read... [19:26:13]Read from MH i2c: 01 07 00 1B 5D 00 00 00 00 00 FF 0F 8D [19:26:13]process_action close_receipt done [19:26:13]requested_data is exist [19:26:13]produce_requested_data [19:26:13]requested_item fm.sn is exist - process it [19:26:13]wFMCommunicate request_size=4 [19:26:13]MH_SAM_APDU [19:26:13]CAPDU: 80 11 00 00 [19:26:13]Write to MH i2c: E2 08 00 1C 5D 80 11 00 00 00 00 00 00 F3 [19:26:13]Write i2c OK [19:26:13]MH_I2C_Read... [19:26:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:13]Read from MH i2c: E2 [19:26:13]MH_I2C_Read... [19:26:13]Read from MH i2c: E2 17 00 [19:26:13]MH_I2C_Read... [19:26:13]Read from MH i2c: E2 17 00 1C 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 43 [19:26:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [19:26:13]wFMCommunicate OK [19:26:13]requested_item fd.num is exist - process it [19:26:13]SAM_PROTO_GetFieldsCounters [19:26:13]wFMCommunicate request_size=4 [19:26:13]MH_SAM_APDU [19:26:13]CAPDU: 80 13 00 00 [19:26:13]Write to MH i2c: E2 08 00 1D 5D 80 13 00 00 00 00 00 00 F6 [19:26:13]Write i2c OK [19:26:13]MH_I2C_Read... [19:26:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:26:13]Read from MH i2c: E2 [19:26:13]MH_I2C_Read... [19:26:13]Read from MH i2c: E2 62 00 [19:26:13]MH_I2C_Read... [19:26:13]Read from MH i2c: E2 62 00 1D 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 3D 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 52 [19:26:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 3D 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:26:13]wFMCommunicate OK [19:26:13]SAM_PROTO_GetFieldsCounters done [19:26:13]requested_item shift.num is exist - process it [19:26:13]requested_item shift.opened is exist - process it [19:26:13]req_shift_opened [19:26:13]FM_GetShiftState [19:26:13]SAM_PROTO_GetShiftState [19:26:13]wFMCommunicate request_size=4 [19:26:13]MH_SAM_APDU [19:26:13]CAPDU: 80 13 01 00 [19:26:13]Write to MH i2c: E2 08 00 1E 5D 80 13 01 00 00 00 00 00 F8 [19:26:13]Write i2c OK [19:26:13]MH_I2C_Read... [19:26:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:13]Read from MH i2c: E2 [19:26:13]MH_I2C_Read... [19:26:13]Read from MH i2c: E2 0E 00 [19:26:13]MH_I2C_Read... [19:26:13]Read from MH i2c: E2 0E 00 1E 5D 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 EC [19:26:13]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [19:26:13]wFMCommunicate OK [19:26:13]SAM_PROTO_GetShiftState done [19:26:13]FM_GetShiftState done [19:26:13]req_shift_opened done [19:26:13]requested_item shift.open_date is exist - process it [19:26:13]req_shift_open_date [19:26:13]req_shift_open_date done [19:26:13]produce_requested_data done [19:26:13]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2109,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [19:26:13]process_action_free close_receipt [19:26:13]json_value_free [19:26:13]json_value_free done [19:26:13]process_json_proto returns [19:26:13]Send response to host [19:26:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2109,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [19:26:13]free response buf [19:26:13]execute_script done [19:26:13]execute_script returns [19:26:13]free content buf [19:26:13]Sock 8.Close socket [19:26:13]Sock 8.Thread stoped [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:53]OFD Sender: No OFD packet to send [19:32:58]OFD Sender: No OFD packet to send [19:33:03]OFD Sender: No OFD packet to send [19:33:08]OFD Sender: No OFD packet to send [19:33:13]OFD Sender: No OFD packet to send [19:33:18]OFD Sender: No OFD packet to send [19:33:23]OFD Sender: No OFD packet to send [19:33:28]OFD Sender: No OFD packet to send [19:33:33]OFD Sender: No OFD packet to send [19:33:38]OFD Sender: No OFD packet to send [19:33:43]OFD Sender: No OFD packet to send [19:33:48]OFD Sender: No OFD packet to send [19:33:53]OFD Sender: No OFD packet to send [19:33:58]OFD Sender: No OFD packet to send [19:34:03]OFD Sender: No OFD packet to send [19:34:08]OFD Sender: No OFD packet to send [19:34:13]OFD Sender: No OFD packet to send [19:34:18]OFD Sender: No OFD packet to send [19:34:23]OFD Sender: No OFD packet to send [19:34:28]OFD Sender: No OFD packet to send [19:34:33]OFD Sender: No OFD packet to send [19:34:34]accept exits with 9 [19:34:34]New connection [19:34:34]New thread 3067317604 created [19:34:34]Thread 3067460964 joined [19:34:34]Waiting for new connection... [19:34:34] Sock 9.Parse request [19:34:34]Sock 9.Check first char [19:34:34]Sock 9.First char is OK [19:34:34]request: POST /json_proto HTTP/1.0 [19:34:34]Method: POST [19:34:34]URL: /json_proto [19:34:34]Method is POST - this is cgi request [19:34:34]url: /json_proto [19:34:34]query_string will be loaded in cgi processing [19:34:34]execute_cgi json_proto POST (null) [19:34:34]execute_cgi path=json_proto method=POST [19:34:34]POST find Content-Length [19:34:34]Host: 172.17.45.132:8080 [19:34:34]Content-Length: 683 [19:34:34]Content-Type: application/json [19:34:34] [19:34:34]POST finish read [19:34:34]Found Content-Length = 683 [19:34:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126406", "tax_sys" : 0, "items" : [ { "code": "4870002328398", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043C\u044F\u0442\u0430 \u041F\u042D\u0422 1\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:34:34]execute_script... [19:34: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)126406", "tax_sys" : 0, "items" : [ { "code": "4870002328398", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043C\u044F\u0442\u0430 \u041F\u042D\u0422 1\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:34:34]POST & json_proto [19:34:34]process_json_proto [19:34:34]json parsed OK: [19:34:34]protocol is kg_v1.0 [19:34:34]action value=close_receipt [19:34:34]process_action close_receipt [19:34:34]cmd_close_receipt [19:34:34]MH_GetDate [19:34:34]Write to MH i2c: F0 00 00 1F 5D 6B [19:34:34]Write i2c OK [19:34:34]MH_I2C_Read... [19:34:34]Read from MH i2c: F0 [19:34:34]MH_I2C_Read... [19:34:34]Read from MH i2c: F0 09 00 [19:34:34]MH_I2C_Read... [19:34:34]Read from MH i2c: F0 09 00 1F 5D 00 51 9D A6 66 E3 0B 90 66 52 [19:34:34]GetLastDocTimeStamp 1722194776 [19:34:34]current date 1722195281 [19:34:34]FM_GetShiftState [19:34:34]SAM_PROTO_GetShiftState [19:34:34]wFMCommunicate request_size=4 [19:34:34]MH_SAM_APDU [19:34:34]CAPDU: 80 13 01 00 [19:34:34]Write to MH i2c: E2 08 00 20 5D 80 13 01 00 00 00 00 00 FA [19:34:34]Write i2c OK [19:34:34]MH_I2C_Read... [19:34:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:34]Read from MH i2c: E2 [19:34:34]MH_I2C_Read... [19:34:34]Read from MH i2c: E2 0E 00 [19:34:34]MH_I2C_Read... [19:34:34]Read from MH i2c: E2 0E 00 20 5D 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 EE [19:34:34]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [19:34:34]wFMCommunicate OK [19:34:34]SAM_PROTO_GetShiftState done [19:34:34]FM_GetShiftState done [19:34:34]opened in 1722125648 [19:34:34]opened+sec_in_day 1722212048 [19:34:34]quantity*price = 10000 [19:34:34]sum+1 = 10001 [19:34:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 100.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 161 28.07.2024 19:34 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2110 ФПД: 267980590189866 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T193441&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2110&fm=267980590189866&tin=02508201610067®Number=0000000000189667&sum=10000 0 [19:34:35]StoreToDocumentArchive [19:34:35]shift 13 fd 2110 [19:34:35]save to /storage/0013/doc_00002110 [19:34:35]save last doc name /storage/0013/doc_00002110 to /storage/kkm_last_doc_name [19:34:35]save OK [19:34:35]Clear old archive folders... [19:34:35]ProcessDocumentItem done err = 0, tmpTLVsize=291 [19:34:35]tlvbuf is 020AE960 [19:34:35]SAM_PROTO_ClearQueue [19:34:35]wFMCommunicate request_size=4 [19:34:35]MH_SAM_APDU [19:34:35]CAPDU: 80 09 00 00 [19:34:35]Write to MH i2c: E2 08 00 2D 5D 80 09 00 00 00 00 00 00 FC [19:34:35]Write i2c OK [19:34:35]MH_I2C_Read... [19:34:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:34:35]Read from MH i2c: E2 [19:34:35]MH_I2C_Read... [19:34:35]Read from MH i2c: E2 03 00 [19:34:35]MH_I2C_Read... [19:34:35]Read from MH i2c: E2 03 00 2D 5D 00 90 00 FE [19:34:35]RAPDU: 90 00 [19:34:35]wFMCommunicate OK [19:34:35]SAM_PROTO_ClearQueue done [19:34:35]KKMCreateOFDPacket [19:34:35]OFDProtocolAddRootSTLVToBuf [19:34:35]FM_MakeSignedData [19:34:35]FM_MakeSignedData [19:34:35]SAM_PROTO_SignData [19:34:35]wFMCommunicate request_size=4 [19:34:35]MH_SAM_APDU [19:34:35]CAPDU: 80 0D 01 02 [19:34:35]Write to MH i2c: E2 08 00 2E 5D 80 0D 01 02 00 00 00 00 04 [19:34:35]Write i2c OK [19:34:35]MH_I2C_Read... [19:34:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:34:35]Read from MH i2c: E2 [19:34:35]MH_I2C_Read... [19:34:35]Read from MH i2c: E2 03 00 [19:34:35]MH_I2C_Read... [19:34:35]Read from MH i2c: E2 03 00 2E 5D 00 90 00 FF [19:34:35]RAPDU: 90 00 [19:34:35]wFMCommunicate OK [19:34:35]wFMCommunicate request_size=255 [19:34:35]MH_SAM_APDU [19:34:35]CAPDU: 80 0D 02 02 FA 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 33 39 38 06 04 31 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 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 51 9D A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 [19:34:35]Write to MH i2c: E2 02 01 2F 5D 80 0D 02 02 FA 00 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 33 39 38 06 04 31 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 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 51 9D A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 00 00 D0 [19:34:35]Write i2c OK [19:34:35]MH_I2C_Read... [19:34:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:35]Read from MH i2c: E2 [19:34:35]MH_I2C_Read... [19:34:35]Read from MH i2c: E2 03 00 [19:34:35]MH_I2C_Read... [19:34:35]Read from MH i2c: E2 03 00 2F 5D 00 90 00 00 [19:34:35]RAPDU: 90 00 [19:34:35]wFMCommunicate OK [19:34:35]wFMCommunicate request_size=50 [19:34:35]MH_SAM_APDU [19:34:35]CAPDU: 80 0D 02 02 2D 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 3E 08 00 00 35 04 06 00 F3 BA 17 E2 8D 2A [19:34:35]Write to MH i2c: E2 35 00 30 5D 80 0D 02 02 2D 00 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 3E 08 00 00 35 04 06 00 F3 BA 17 E2 8D 2A 00 00 12 [19:34:35]Write i2c OK [19:34:35]MH_I2C_Read... [19:34:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:35]Read from MH i2c: E2 [19:34:35]MH_I2C_Read... [19:34:35]Read from MH i2c: E2 03 00 [19:34:35]MH_I2C_Read... [19:34:35]Read from MH i2c: E2 03 00 30 5D 00 90 00 01 [19:34:35]RAPDU: 90 00 [19:34:35]wFMCommunicate OK [19:34:35]wFMCommunicate request_size=4 [19:34:35]MH_SAM_APDU [19:34:35]CAPDU: 80 0D 03 02 [19:34:35]Write to MH i2c: E2 08 00 31 5D 80 0D 03 02 00 00 00 00 09 [19:34:35]Write i2c OK [19:34:35]MH_I2C_Read... [19:34:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:34:35]Read from MH i2c: E2 [19:34:35]MH_I2C_Read... [19:34:35]Read from MH i2c: E2 0B 00 [19:34:35]MH_I2C_Read... [19:34:35]Read from MH i2c: E2 0B 00 31 5D 00 37 57 7C 9D 23 6A BF BF 90 00 BC [19:34:35]RAPDU: 37 57 7C 9D 23 6A BF BF 90 00 [19:34:35]wFMCommunicate OK [19:34:35]SAM_PROTO_SignData done [19:34:35]FM_MakeSignedData done [19:34:35]CreateOFDProtocolMessage [19:34:35]wFMCommunicate request_size=4 [19:34:35]MH_SAM_APDU [19:34:35]CAPDU: 80 11 00 00 [19:34:35]Write to MH i2c: E2 08 00 32 5D 80 11 00 00 00 00 00 00 09 [19:34:35]Write i2c OK [19:34:35]MH_I2C_Read... [19:34:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:35]Read from MH i2c: E2 [19:34:35]MH_I2C_Read... [19:34:35]Read from MH i2c: E2 17 00 [19:34:35]MH_I2C_Read... [19:34:35]Read from MH i2c: E2 17 00 32 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 59 [19:34:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [19:34:35]wFMCommunicate OK [19:34:35]CreateOFDProtocolMessage done [19:34:35]OFDSenderStorePacket 2110 [19:34:35]StoreOFDPacket docnum=2110 [19:34:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 37 01 00 00 7E AA 2F 01 2E 83 5A 03 01 00 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 33 39 38 06 04 31 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 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 51 9D A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 3E 08 00 00 35 04 06 00 F3 BA 17 E2 8D 2A 37 57 7C 9D 23 6A BF BF [19:34:35]CheckFolder [19:34:35]dirname=/storage/ofd_packets [19:34:35]CheckFolder done [19:34:35]ProducePacketName [19:34:35]name=ofd_packets/00002110 [19:34:35]NVStorageSaveData ofd_packets/00002110 [19:34:35]File name is /storage/ofd_packets/00002110 [19:34:35]Write 341 bytes [19:34:35]NVStorageSaveData done [19:34:35]OFDSenderStorePacket done [19:34:35]KKMCreateOFDPacket done [19:34:35]NVStorageSaveData kkm_last_timestamp [19:34:35]File name is /storage/kkm_last_timestamp [19:34:35]Write 4 bytes [19:34:35]NVStorageSaveData done [19:34:35]ExternCall_PrintAddStr [19:34:35]wPrintStart [19:34:35]Write to MH i2c: 01 00 00 33 5D 90 [19:34:35]Write i2c OK [19:34:35]MH_I2C_Read... [19:34:35]Read from MH i2c: 01 [19:34:35]MH_I2C_Read... [19:34:35]Read from MH i2c: 01 07 00 [19:34:35]MH_I2C_Read... [19:34:35]Read from MH i2c: 01 07 00 33 5D 00 00 00 00 00 FF 0F A5 [19:34:35]RasterBufferAndPrint [19:34:35]line Счет N : (3)126406 [19:34:35]line ИНН: 02508201610067 [19:34:35]line Контрольно-Кассовый Чек [19:34:35]line ПРОДАЖА [19:34:35]line Товар: 4870002328398 [19:34:35]line Вода ASU пит н.газ мята ПЭТ 1л [19:34:35]line 1.000 * 100.00 [19:34:35]line = 100.00 [19:34:35]line НДС 12% НСП 1% [19:34:35]line > о реализуемом товаре [19:34:35]line ИТОГО: 100.00 [19:34:35]line НСП 1% : 0.88 [19:34:35]line НДС 12% : 10.62 [19:34:35]line Наличными: 100.00 [19:34:35]line Безнал.: 0.00 [19:34:35]line Место: АЗС № 127 "Партнер Нефть" [19:34:35]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [19:34:35]line СНО: Общий режим [19:34:35]line Чек 161 28.07.2024 19:34 [19:34:35]line Смена: 13 ФФД: 1.0 [19:34:35]line ЗНМ: 0300000161 [19:34:35]line РНМ: 0000000000189667 [19:34:35]line Версия ККМ: v1.0 [19:34:35]line ФМ: 0000000002094248 [19:34:35]line ФД: 2110 [19:34:35]line ФПД: 267980590189866 [19:34:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T193441&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2110&fm=267980590189866&tin=02508201610067®Number=0000000000189667&sum=10000 [19:34:36]line 0 [19:34:36]OFD Sender: Processing packet 2110 [packets to send 1, broken 0] [19:34:36]ProducePacketName [19:34:36]name=ofd_packets/00002110 [19:34:36]OFD Sender: To server: pG, [19:34:36]CommunicateWithHost lk.salyk.kg:30040 [19:34:36]ConnectInit lk.salyk.kg [19:34:36]written 0, free lines is 4095 [19:34:36]Connected sock=10 [19:34:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 37 01 00 00 7E AA 2F 01 2E 83 5A 03 01 00 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 33 39 38 06 04 31 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 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 51 9D A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 3E 08 00 00 35 04 06 00 F3 BA 17 E2 8D 2A 37 57 7C 9D 23 6A BF BF [19:34:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 71 C7 47 00 78 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 3E 08 00 00 F4 03 04 00 C0 48 A6 66 B6 04 01 00 00 4C 76 ED 5A 7C 89 1B 72 [19:34:36]CommunicateWithHost err = 0 [19:34:36]CheckOFDResponse [19:34:36]1017 (14) - 77093643461234 [19:34:36]1041 (16) - 0000000002094248 [19:34:36]1040 (4) - 2110 [19:34:36]1012 (4) - 28.07.2024 13:33 [19:34:36]1206 (1) - 0 [19:34:36]OFD Sender: Remove packet 2110 [19:34:36]ProducePacketName [19:34:36]name=ofd_packets/00002110 [19:34:36]NVStorageDeleteData [19:34:36]Write to MH i2c: 01 00 00 5C 5D B9 [19:34:36]Write i2c OK [19:34:36]MH_I2C_Read... [19:34:36]Read from MH i2c: 01 [19:34:36]MH_I2C_Read... [19:34:36]Read from MH i2c: 01 07 00 [19:34:36]MH_I2C_Read... [19:34:36]Read from MH i2c: 01 07 00 5C 5D 00 00 00 00 00 01 0D CE [19:34:36]RasterBufferAndPrint [19:34:36]line [19:34:36]line [19:34:36]line [19:34:36]line [19:34:36]line [19:34:36]written 0, free lines is 3338 [19:34:36]MH_Cut [19:34:36]Write to MH i2c: D1 01 00 63 5D 01 92 [19:34:36]Write i2c OK [19:34:36]MH_I2C_Read... [19:34:36]Read from MH i2c: D1 [19:34:36]MH_I2C_Read... [19:34:36]Read from MH i2c: D1 01 00 [19:34:36]MH_I2C_Read... [19:34:36]Read from MH i2c: D1 01 00 63 5D 00 91 [19:34:36]Write to MH i2c: 01 00 00 64 5D C1 [19:34:36]Write i2c OK [19:34:36]MH_I2C_Read... [19:34:37]OFD Sender: No OFD packet to send [19:34:37]*** Cut start [19:34:37]*** Partial cut [19:34:37]*** CUTSNS_PIN = 1 [19:34:37]*** CUTSNS_PIN = 0 [19:34:37]*** Brake cut motor [19:34:37]Read from MH i2c: 01 [19:34:37]MH_I2C_Read... [19:34:37]*** Stop cut motor [19:34:37]*** Cut end [19:34:37]Read from MH i2c: 01 07 00 [19:34:37]MH_I2C_Read... [19:34:37]Read from MH i2c: 01 07 00 64 5D 00 00 00 00 00 FF 0F D6 [19:34:37]process_action close_receipt done [19:34:37]requested_data is exist [19:34:37]produce_requested_data [19:34:37]requested_item fm.sn is exist - process it [19:34:37]wFMCommunicate request_size=4 [19:34:37]MH_SAM_APDU [19:34:37]CAPDU: 80 11 00 00 [19:34:37]Write to MH i2c: E2 08 00 65 5D 80 11 00 00 00 00 00 00 3C [19:34:37]Write i2c OK [19:34:37]MH_I2C_Read... [19:34:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:38]Read from MH i2c: E2 [19:34:38]MH_I2C_Read... [19:34:38]Read from MH i2c: E2 17 00 [19:34:38]MH_I2C_Read... [19:34:38]Read from MH i2c: E2 17 00 65 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 8C [19:34:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [19:34:38]wFMCommunicate OK [19:34:38]requested_item fd.num is exist - process it [19:34:38]SAM_PROTO_GetFieldsCounters [19:34:38]wFMCommunicate request_size=4 [19:34:38]MH_SAM_APDU [19:34:38]CAPDU: 80 13 00 00 [19:34:38]Write to MH i2c: E2 08 00 66 5D 80 13 00 00 00 00 00 00 3F [19:34:38]Write i2c OK [19:34:38]MH_I2C_Read... [19:34:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:34:38]Read from MH i2c: E2 [19:34:38]MH_I2C_Read... [19:34:38]Read from MH i2c: E2 62 00 [19:34:38]MH_I2C_Read... [19:34:38]Read from MH i2c: E2 62 00 66 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 3E 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 9F [19:34:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 3E 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:34:38]wFMCommunicate OK [19:34:38]SAM_PROTO_GetFieldsCounters done [19:34:38]requested_item shift.num is exist - process it [19:34:38]requested_item shift.opened is exist - process it [19:34:38]req_shift_opened [19:34:38]FM_GetShiftState [19:34:38]SAM_PROTO_GetShiftState [19:34:38]wFMCommunicate request_size=4 [19:34:38]MH_SAM_APDU [19:34:38]CAPDU: 80 13 01 00 [19:34:38]Write to MH i2c: E2 08 00 67 5D 80 13 01 00 00 00 00 00 41 [19:34:38]Write i2c OK [19:34:38]MH_I2C_Read... [19:34:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:38]Read from MH i2c: E2 [19:34:38]MH_I2C_Read... [19:34:38]Read from MH i2c: E2 0E 00 [19:34:38]MH_I2C_Read... [19:34:38]Read from MH i2c: E2 0E 00 67 5D 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 35 [19:34:38]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [19:34:38]wFMCommunicate OK [19:34:38]SAM_PROTO_GetShiftState done [19:34:38]FM_GetShiftState done [19:34:38]req_shift_opened done [19:34:38]requested_item shift.open_date is exist - process it [19:34:38]req_shift_open_date [19:34:38]req_shift_open_date done [19:34:38]produce_requested_data done [19:34:38]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2110,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [19:34:38]process_action_free close_receipt [19:34:38]json_value_free [19:34:38]json_value_free done [19:34:38]process_json_proto returns [19:34:38]Send response to host [19:34:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2110,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [19:34:38]free response buf [19:34:38]execute_script done [19:34:38]execute_script returns [19:34:38]free content buf [19:34:38]Sock 9.Close socket [19:34:38]Sock 9.Thread stoped [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:32]OFD Sender: No OFD packet to send [19:36:37]OFD Sender: No OFD packet to send [19:36:42]OFD Sender: No OFD packet to send [19:36:47]OFD Sender: No OFD packet to send [19:36:52]OFD Sender: No OFD packet to send [19:36:57]OFD Sender: No OFD packet to send [19:37:02]OFD Sender: No OFD packet to send [19:37:07]OFD Sender: No OFD packet to send [19:37:12]OFD Sender: No OFD packet to send [19:37:17]OFD Sender: No OFD packet to send [19:37:22]OFD Sender: No OFD packet to send [19:37:27]OFD Sender: No OFD packet to send [19:37:32]OFD Sender: No OFD packet to send [19:37:37]OFD Sender: No OFD packet to send [19:37:42]OFD Sender: No OFD packet to send [19:37:47]OFD Sender: No OFD packet to send [19:37: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:53]accept exits with 8 [19:38:53]New connection [19:38:53]New thread 3067460964 created [19:38:53]Thread 3067317604 joined [19:38:53]Waiting for new connection... [19:38:53] Sock 8.Parse request [19:38:53]Sock 8.Check first char [19:38:53]Sock 8.First char is OK [19:38:53]request: POST /json_proto HTTP/1.0 [19:38:53]Method: POST [19:38:53]URL: /json_proto [19:38:53]Method is POST - this is cgi request [19:38:53]url: /json_proto [19:38:53]query_string will be loaded in cgi processing [19:38:53]execute_cgi json_proto POST (null) [19:38:53]execute_cgi path=json_proto method=POST [19:38:53]POST find Content-Length [19:38:53]Host: 172.17.45.132:8080 [19:38:53]Content-Length: 895 [19:38:53]Content-Type: application/json [19:38:53] [19:38:53]POST finish read [19:38:53]Found Content-Length = 895 [19:38:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126407", "tax_sys" : 0, "items" : [ { "code": "4700000160044", "name": "\u0412\u043E\u0434\u0430 \u042B\u0441\u0441\u044B\u043A \u0410\u0442\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 165.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:38:53]execute_script... [19:38: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)126407", "tax_sys" : 0, "items" : [ { "code": "4700000160044", "name": "\u0412\u043E\u0434\u0430 \u042B\u0441\u0441\u044B\u043A \u0410\u0442\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 165.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:38:53]POST & json_proto [19:38:53]process_json_proto [19:38:53]json parsed OK: [19:38:53]protocol is kg_v1.0 [19:38:53]action value=close_receipt [19:38:53]process_action close_receipt [19:38:53]cmd_close_receipt [19:38:53]MH_GetDate [19:38:53]Write to MH i2c: F0 00 00 68 5D B4 [19:38:53]Write i2c OK [19:38:53]MH_I2C_Read... [19:38:53]Read from MH i2c: F0 [19:38:53]MH_I2C_Read... [19:38:53]Read from MH i2c: F0 09 00 [19:38:53]MH_I2C_Read... [19:38:53]Read from MH i2c: F0 09 00 68 5D 00 54 9E A6 66 E3 0B 90 66 9F [19:38:53]GetLastDocTimeStamp 1722195281 [19:38:53]current date 1722195540 [19:38:53]FM_GetShiftState [19:38:53]SAM_PROTO_GetShiftState [19:38:53]wFMCommunicate request_size=4 [19:38:53]MH_SAM_APDU [19:38:53]CAPDU: 80 13 01 00 [19:38:53]Write to MH i2c: E2 08 00 69 5D 80 13 01 00 00 00 00 00 43 [19:38:53]Write i2c OK [19:38:53]MH_I2C_Read... [19:38:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:38:53]Read from MH i2c: E2 [19:38:53]MH_I2C_Read... [19:38:53]Read from MH i2c: E2 0E 00 [19:38:53]MH_I2C_Read... [19:38:53]Read from MH i2c: E2 0E 00 69 5D 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 37 [19:38:53]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [19:38:53]wFMCommunicate OK [19:38:53]SAM_PROTO_GetShiftState done [19:38:53]FM_GetShiftState done [19:38:53]opened in 1722125648 [19:38:53]opened+sec_in_day 1722212048 [19:38:53]quantity*price = 4000 [19:38:53]sum+1 = 4001 [19:38:53]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000006271 Напиток Фанта 1л 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 165.00 НСП 1% : 1.46 НДС 12% : 17.52 Наличными: 165.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 162 28.07.2024 19:39 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2111 ФПД: 200622915168146 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T193900&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2111&fm=200622915168146&tin=02508201610067®Number=0000000000189667&sum=16500 0 [19:38:54]StoreToDocumentArchive [19:38:54]shift 13 fd 2111 [19:38:54]save to /storage/0013/doc_00002111 [19:38:54]save last doc name /storage/0013/doc_00002111 to /storage/kkm_last_doc_name [19:38:54]save OK [19:38:54]Clear old archive folders... [19:38:54]ProcessDocumentItem done err = 0, tmpTLVsize=375 [19:38:54]tlvbuf is 0217C3C0 [19:38:54]SAM_PROTO_ClearQueue [19:38:54]wFMCommunicate request_size=4 [19:38:54]MH_SAM_APDU [19:38:54]CAPDU: 80 09 00 00 [19:38:54]Write to MH i2c: E2 08 00 76 5D 80 09 00 00 00 00 00 00 45 [19:38:54]Write i2c OK [19:38:54]MH_I2C_Read... [19:38:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:38:54]Read from MH i2c: E2 [19:38:54]MH_I2C_Read... [19:38:54]Read from MH i2c: E2 03 00 [19:38:54]MH_I2C_Read... [19:38:54]Read from MH i2c: E2 03 00 76 5D 00 90 00 47 [19:38:54]RAPDU: 90 00 [19:38:54]wFMCommunicate OK [19:38:54]SAM_PROTO_ClearQueue done [19:38:54]KKMCreateOFDPacket [19:38:54]OFDProtocolAddRootSTLVToBuf [19:38:54]FM_MakeSignedData [19:38:54]FM_MakeSignedData [19:38:54]SAM_PROTO_SignData [19:38:54]wFMCommunicate request_size=4 [19:38:54]MH_SAM_APDU [19:38:54]CAPDU: 80 0D 01 02 [19:38:54]Write to MH i2c: E2 08 00 77 5D 80 0D 01 02 00 00 00 00 4D [19:38:54]Write i2c OK [19:38:54]MH_I2C_Read... [19:38:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:38:54]Read from MH i2c: E2 [19:38:54]MH_I2C_Read... [19:38:54]Read from MH i2c: E2 03 00 [19:38:54]MH_I2C_Read... [19:38:54]Read from MH i2c: E2 03 00 77 5D 00 90 00 48 [19:38:54]RAPDU: 90 00 [19:38:54]wFMCommunicate OK [19:38:54]wFMCommunicate request_size=255 [19:38:54]MH_SAM_APDU [19:38:54]CAPDU: 80 0D 02 02 FA 03 00 77 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 34 34 06 04 20 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 00 00 00 00 00 EE 03 0F [19:38:54]Write to MH i2c: E2 02 01 78 5D 80 0D 02 02 FA 00 03 00 77 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 34 34 06 04 20 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 00 00 00 00 00 EE 03 0F 00 00 D9 [19:38:54]Write i2c OK [19:38:54]MH_I2C_Read... [19:38:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:38:54]Read from MH i2c: E2 [19:38:54]MH_I2C_Read... [19:38:54]Read from MH i2c: E2 03 00 [19:38:54]MH_I2C_Read... [19:38:54]Read from MH i2c: E2 03 00 78 5D 00 90 00 49 [19:38:54]RAPDU: 90 00 [19:38:54]wFMCommunicate OK [19:38:54]wFMCommunicate request_size=134 [19:38:54]MH_SAM_APDU [19:38:54]CAPDU: 80 0D 02 02 81 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 74 40 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 54 9E A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 3F 08 00 00 35 04 06 00 B6 77 29 97 A7 92 [19:38:54]Write to MH i2c: E2 89 00 79 5D 80 0D 02 02 81 00 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 74 40 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 54 9E A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 3F 08 00 00 35 04 06 00 B6 77 29 97 A7 92 00 00 34 [19:38:54]Write i2c OK [19:38:54]MH_I2C_Read... [19:38:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:38:54]Read from MH i2c: E2 [19:38:54]MH_I2C_Read... [19:38:54]Read from MH i2c: E2 03 00 [19:38:54]MH_I2C_Read... [19:38:54]Read from MH i2c: E2 03 00 79 5D 00 90 00 4A [19:38:54]RAPDU: 90 00 [19:38:54]wFMCommunicate OK [19:38:54]wFMCommunicate request_size=4 [19:38:54]MH_SAM_APDU [19:38:54]CAPDU: 80 0D 03 02 [19:38:54]Write to MH i2c: E2 08 00 7A 5D 80 0D 03 02 00 00 00 00 52 [19:38:54]Write i2c OK [19:38:54]MH_I2C_Read... [19:38:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:38:54]Read from MH i2c: E2 [19:38:54]MH_I2C_Read... [19:38:55]Read from MH i2c: E2 0B 00 [19:38:55]MH_I2C_Read... [19:38:55]Read from MH i2c: E2 0B 00 7A 5D 00 9F 9C 16 C6 55 15 56 33 90 00 5D [19:38:55]RAPDU: 9F 9C 16 C6 55 15 56 33 90 00 [19:38:55]wFMCommunicate OK [19:38:55]SAM_PROTO_SignData done [19:38:55]FM_MakeSignedData done [19:38:55]CreateOFDProtocolMessage [19:38:55]wFMCommunicate request_size=4 [19:38:55]MH_SAM_APDU [19:38:55]CAPDU: 80 11 00 00 [19:38:55]Write to MH i2c: E2 08 00 7B 5D 80 11 00 00 00 00 00 00 52 [19:38:55]Write i2c OK [19:38:55]MH_I2C_Read... [19:38:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:38:55]Read from MH i2c: E2 [19:38:55]MH_I2C_Read... [19:38:55]Read from MH i2c: E2 17 00 [19:38:55]MH_I2C_Read... [19:38:55]Read from MH i2c: E2 17 00 7B 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 A2 [19:38:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [19:38:55]wFMCommunicate OK [19:38:55]CreateOFDProtocolMessage done [19:38:55]OFDSenderStorePacket 2111 [19:38:55]StoreOFDPacket docnum=2111 [19:38:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 8B 01 00 00 41 C2 83 01 0F 94 5A 03 01 00 03 00 77 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 34 34 06 04 20 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 74 40 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 54 9E A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 3F 08 00 00 35 04 06 00 B6 77 29 97 A7 92 9F 9C 16 C6 55 15 56 33 [19:38:55]CheckFolder [19:38:55]dirname=/storage/ofd_packets [19:38:55]CheckFolder done [19:38:55]ProducePacketName [19:38:55]name=ofd_packets/00002111 [19:38:55]NVStorageSaveData ofd_packets/00002111 [19:38:55]File name is /storage/ofd_packets/00002111 [19:38:55]Write 425 bytes [19:38:55]NVStorageSaveData done [19:38:55]OFDSenderStorePacket done [19:38:55]KKMCreateOFDPacket done [19:38:55]NVStorageSaveData kkm_last_timestamp [19:38:55]File name is /storage/kkm_last_timestamp [19:38:55]Write 4 bytes [19:38:55]NVStorageSaveData done [19:38:55]ExternCall_PrintAddStr [19:38:55]wPrintStart [19:38:55]Write to MH i2c: 01 00 00 7C 5D D9 [19:38:55]Write i2c OK [19:38:55]MH_I2C_Read... [19:38:55]Read from MH i2c: 01 [19:38:55]MH_I2C_Read... [19:38:55]Read from MH i2c: 01 07 00 [19:38:55]MH_I2C_Read... [19:38:55]Read from MH i2c: 01 07 00 7C 5D 00 00 00 00 00 FF 0F EE [19:38:55]RasterBufferAndPrint [19:38:55]line Счет N : (3)126407 [19:38:55]line ИНН: 02508201610067 [19:38:55]line Контрольно-Кассовый Чек [19:38:55]line ПРОДАЖА [19:38:55]line Товар: 4700000160044 [19:38:55]line Вода Ыссык Ата 0,5л [19:38:55]line 1.000 * 40.00 [19:38:55]line = 40.00 [19:38:55]line НДС 12% НСП 1% [19:38:55]line > о реализуемом товаре [19:38:55]line Товар: 5449000006271 [19:38:55]line Напиток Фанта 1л [19:38:55]line 1.000 * 125.00 [19:38:55]line = 125.00 [19:38:55]line НДС 12% НСП 1% [19:38:55]line > о реализуемом товаре [19:38:55]line ИТОГО: 165.00 [19:38:55]line НСП 1% : 1.46 [19:38:55]line НДС 12% : 17.52 [19:38:55]line Наличными: 165.00 [19:38:55]line Безнал.: 0.00 [19:38:55]line Место: АЗС № 127 "Партнер Нефть" [19:38:55]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [19:38:55]line СНО: Общий режим [19:38:55]line Чек 162 28.07.2024 19:39 [19:38:55]line Смена: 13 ФФД: 1.0 [19:38:55]line ЗНМ: 0300000161 [19:38:55]line РНМ: 0000000000189667 [19:38:55]line Версия ККМ: v1.0 [19:38:55]line ФМ: 0000000002094248 [19:38:55]line ФД: 2111 [19:38:55]line ФПД: 200622915168146 [19:38:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T193900&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2111&fm=200622915168146&tin=02508201610067®Number=0000000000189667&sum=16500 [19:38:55]OFD Sender: Processing packet 2111 [packets to send 1, broken 0] [19:38:55]ProducePacketName [19:38:55]name=ofd_packets/00002111 [19:38:55]OFD Sender: To server: pG, [19:38:55]CommunicateWithHost lk.salyk.kg:30040 [19:38:55]ConnectInit lk.salyk.kg [19:38:55]line 0 [19:38:55]written 0, free lines is 4095 [19:38:55]Connected sock=10 [19:38:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 8B 01 00 00 41 C2 83 01 0F 94 5A 03 01 00 03 00 77 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 34 34 06 04 20 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 74 40 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 54 9E A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 3F 08 00 00 35 04 06 00 B6 77 29 97 A7 92 9F 9C 16 C6 55 15 56 33 [19:38:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 39 6E 47 00 78 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 3F 08 00 00 F4 03 04 00 C3 49 A6 66 B6 04 01 00 00 D3 32 1C 97 45 52 25 23 [19:38:55]CommunicateWithHost err = 0 [19:38:55]CheckOFDResponse [19:38:55]1017 (14) - 77093643461234 [19:38:55]1041 (16) - 0000000002094248 [19:38:55]1040 (4) - 2111 [19:38:55]1012 (4) - 28.07.2024 13:38 [19:38:55]1206 (1) - 0 [19:38:55]OFD Sender: Remove packet 2111 [19:38:55]ProducePacketName [19:38:55]name=ofd_packets/00002111 [19:38:55]NVStorageDeleteData [19:38:55]Write to MH i2c: 01 00 00 AA 5D 07 [19:38:55]Write i2c OK [19:38:55]MH_I2C_Read... [19:38:55]Read from MH i2c: 01 [19:38:55]MH_I2C_Read... [19:38:55]Read from MH i2c: 01 07 00 [19:38:55]MH_I2C_Read... [19:38:55]Read from MH i2c: 01 07 00 AA 5D 00 00 00 00 00 CD 0C E7 [19:38:55]RasterBufferAndPrint [19:38:55]line [19:38:55]line [19:38:55]line [19:38:55]line [19:38:55]line [19:38:55]written 0, free lines is 3283 [19:38:55]MH_Cut [19:38:55]Write to MH i2c: D1 01 00 B1 5D 01 E0 [19:38:55]Write i2c OK [19:38:55]MH_I2C_Read... [19:38:55]Read from MH i2c: D1 [19:38:55]MH_I2C_Read... [19:38:55]Read from MH i2c: D1 01 00 [19:38:55]MH_I2C_Read... [19:38:55]Read from MH i2c: D1 01 00 B1 5D 00 DF [19:38:55]Write to MH i2c: 01 00 00 B2 5D 0F [19:38:55]Write i2c OK [19:38:55]MH_I2C_Read... [19:38:56]OFD Sender: No OFD packet to send [19:38:56]*** Cut start [19:38:56]*** Partial cut [19:38:56]*** CUTSNS_PIN = 1 [19:38:56]*** CUTSNS_PIN = 0 [19:38:56]*** Brake cut motor [19:38:57]Read from MH i2c: 01 [19:38:57]MH_I2C_Read... [19:38:57]*** Stop cut motor [19:38:57]*** Cut end [19:38:57]Read from MH i2c: 01 07 00 [19:38:57]MH_I2C_Read... [19:38:57]Read from MH i2c: 01 07 00 B2 5D 00 00 00 00 00 FF 0F 24 [19:38:57]process_action close_receipt done [19:38:57]requested_data is exist [19:38:57]produce_requested_data [19:38:57]requested_item fm.sn is exist - process it [19:38:57]wFMCommunicate request_size=4 [19:38:57]MH_SAM_APDU [19:38:57]CAPDU: 80 11 00 00 [19:38:57]Write to MH i2c: E2 08 00 B3 5D 80 11 00 00 00 00 00 00 8A [19:38:57]Write i2c OK [19:38:57]MH_I2C_Read... [19:38:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:38:57]Read from MH i2c: E2 [19:38:57]MH_I2C_Read... [19:38:57]Read from MH i2c: E2 17 00 [19:38:57]MH_I2C_Read... [19:38:57]Read from MH i2c: E2 17 00 B3 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 DA [19:38:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [19:38:57]wFMCommunicate OK [19:38:57]requested_item fd.num is exist - process it [19:38:57]SAM_PROTO_GetFieldsCounters [19:38:57]wFMCommunicate request_size=4 [19:38:57]MH_SAM_APDU [19:38:57]CAPDU: 80 13 00 00 [19:38:57]Write to MH i2c: E2 08 00 B4 5D 80 13 00 00 00 00 00 00 8D [19:38:57]Write i2c OK [19:38:57]MH_I2C_Read... [19:38:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:38:57]Read from MH i2c: E2 [19:38:57]MH_I2C_Read... [19:38:57]Read from MH i2c: E2 62 00 [19:38:57]MH_I2C_Read... [19:38:57]Read from MH i2c: E2 62 00 B4 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 3F 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 F1 [19:38:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 3F 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:38:57]wFMCommunicate OK [19:38:57]SAM_PROTO_GetFieldsCounters done [19:38:57]requested_item shift.num is exist - process it [19:38:57]requested_item shift.opened is exist - process it [19:38:57]req_shift_opened [19:38:57]FM_GetShiftState [19:38:57]SAM_PROTO_GetShiftState [19:38:57]wFMCommunicate request_size=4 [19:38:57]MH_SAM_APDU [19:38:57]CAPDU: 80 13 01 00 [19:38:57]Write to MH i2c: E2 08 00 B5 5D 80 13 01 00 00 00 00 00 8F [19:38:57]Write i2c OK [19:38:57]MH_I2C_Read... [19:38:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:38:57]Read from MH i2c: E2 [19:38:57]MH_I2C_Read... [19:38:57]Read from MH i2c: E2 0E 00 [19:38:57]MH_I2C_Read... [19:38:57]Read from MH i2c: E2 0E 00 B5 5D 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 83 [19:38:57]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [19:38:57]wFMCommunicate OK [19:38:57]SAM_PROTO_GetShiftState done [19:38:57]FM_GetShiftState done [19:38:57]req_shift_opened done [19:38:57]requested_item shift.open_date is exist - process it [19:38:57]req_shift_open_date [19:38:57]req_shift_open_date done [19:38:57]produce_requested_data done [19:38:57]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2111,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [19:38:57]process_action_free close_receipt [19:38:57]json_value_free [19:38:57]json_value_free done [19:38:57]process_json_proto returns [19:38:57]Send response to host [19:38:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2111,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [19:38:57]free response buf [19:38:57]execute_script done [19:38:57]execute_script returns [19:38:57]free content buf [19:38:57]Sock 8.Close socket [19:38:57]Sock 8.Thread stoped [19:39:01]OFD Sender: No OFD packet to send [19:39:06]OFD Sender: No OFD packet to send [19:39:11]OFD Sender: No OFD packet to send [19:39:16]OFD Sender: No OFD packet to send [19:39:21]OFD Sender: No OFD packet to send [19:39:26]OFD Sender: No OFD packet to send [19:39:31]OFD Sender: No OFD packet to send [19:39:36]OFD Sender: No OFD packet to send [19:39:41]OFD Sender: No OFD packet to send [19:39:46]OFD Sender: No OFD packet to send [19:39:51]OFD Sender: No OFD packet to send [19:39:56]OFD Sender: No OFD packet to send [19:40:01]OFD Sender: No OFD packet to send [19:40:06]OFD Sender: No OFD packet to send [19:40:11]OFD Sender: No OFD packet to send [19:40:16]OFD Sender: No OFD packet to send [19:40:21]OFD Sender: No OFD packet to send [19:40:26]OFD Sender: No OFD packet to send [19:40:31]OFD Sender: No OFD packet to send [19:40:36]OFD Sender: No OFD packet to send [19:40:41]OFD Sender: No OFD packet to send [19:40:46]OFD Sender: No OFD packet to send [19:40:51]OFD Sender: No OFD packet to send [19:40:56]OFD Sender: No OFD packet to send [19:41:01]OFD Sender: No OFD packet to send [19:41:06]OFD Sender: No OFD packet to send [19:41:11]OFD Sender: No OFD packet to send [19:41:16]OFD Sender: No OFD packet to send [19:41:21]OFD Sender: No OFD packet to send [19:41:26]OFD Sender: No OFD packet to send [19:41:31]OFD Sender: No OFD packet to send [19:41:36]OFD Sender: No OFD packet to send [19:41:41]OFD Sender: No OFD packet to send [19:41:46]OFD Sender: No OFD packet to send [19:41:51]OFD Sender: No OFD packet to send [19:41:56]OFD Sender: No OFD packet to send [19:42:01]OFD Sender: No OFD packet to send [19:42:05]accept exits with 9 [19:42:05]New connection [19:42:05]New thread 3067317604 created [19:42:05]Thread 3067460964 joined [19:42:05]Waiting for new connection... [19:42:05] Sock 9.Parse request [19:42:05]Sock 9.Check first char [19:42:05]Sock 9.First char is OK [19:42:05]request: POST /json_proto HTTP/1.0 [19:42:05]Method: POST [19:42:05]URL: /json_proto [19:42:05]Method is POST - this is cgi request [19:42:05]url: /json_proto [19:42:05]query_string will be loaded in cgi processing [19:42:05]execute_cgi json_proto POST (null) [19:42:05]execute_cgi path=json_proto method=POST [19:42:05]POST find Content-Length [19:42:05]Host: 172.17.45.132:8080 [19:42:05]Content-Length: 959 [19:42:05]Content-Type: application/json [19:42:05] [19:42:05]POST finish read [19:42:05]Found Content-Length = 959 [19:42:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126408", "tax_sys" : 0, "items" : [ { "code": "4600080322106", "name": "\u0412\u0430\u0444 \u041A\u043E\u0440\u043E\u0432\u043A\u0430 \u0442\u043E\u043F\u043B\u0451\u043D\u043E\u0435 \u043C\u043E\u043B\u043E\u043A\u043E 150\u0433", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700007690018", "name": "\u041D\u0435\u0433\u0430\u0437 \u0432\u043E\u0434\u0430 Pamir 0,5 \u043B", "price" : 30.00, "quantity" : 1.000, "sum" : 30.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 145.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:42:05]execute_script... [19:42:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126408", "tax_sys" : 0, "items" : [ { "code": "4600080322106", "name": "\u0412\u0430\u0444 \u041A\u043E\u0440\u043E\u0432\u043A\u0430 \u0442\u043E\u043F\u043B\u0451\u043D\u043E\u0435 \u043C\u043E\u043B\u043E\u043A\u043E 150\u0433", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700007690018", "name": "\u041D\u0435\u0433\u0430\u0437 \u0432\u043E\u0434\u0430 Pamir 0,5 \u043B", "price" : 30.00, "quantity" : 1.000, "sum" : 30.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 145.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:42:05]POST & json_proto [19:42:05]process_json_proto [19:42:05]json parsed OK: [19:42:05]protocol is kg_v1.0 [19:42:05]action value=close_receipt [19:42:05]process_action close_receipt [19:42:05]cmd_close_receipt [19:42:05]MH_GetDate [19:42:05]Write to MH i2c: F0 00 00 B6 5D 02 [19:42:05]Write i2c OK [19:42:05]MH_I2C_Read... [19:42:05]Read from MH i2c: F0 [19:42:05]MH_I2C_Read... [19:42:05]Read from MH i2c: F0 09 00 [19:42:05]MH_I2C_Read... [19:42:05]Read from MH i2c: F0 09 00 B6 5D 00 14 9F A6 66 E3 0B 90 66 AE [19:42:05]GetLastDocTimeStamp 1722195540 [19:42:05]current date 1722195732 [19:42:05]FM_GetShiftState [19:42:05]SAM_PROTO_GetShiftState [19:42:05]wFMCommunicate request_size=4 [19:42:05]MH_SAM_APDU [19:42:05]CAPDU: 80 13 01 00 [19:42:05]Write to MH i2c: E2 08 00 B7 5D 80 13 01 00 00 00 00 00 91 [19:42:05]Write i2c OK [19:42:05]MH_I2C_Read... [19:42:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:42:05]Read from MH i2c: E2 [19:42:05]MH_I2C_Read... [19:42:05]Read from MH i2c: E2 0E 00 [19:42:05]MH_I2C_Read... [19:42:05]Read from MH i2c: E2 0E 00 B7 5D 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 85 [19:42:05]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [19:42:05]wFMCommunicate OK [19:42:05]SAM_PROTO_GetShiftState done [19:42:05]FM_GetShiftState done [19:42:05]opened in 1722125648 [19:42:05]opened+sec_in_day 1722212048 [19:42:05]quantity*price = 11500 [19:42:05]sum+1 = 11501 [19:42:05]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700007690018 Негаз вода Pamir 0,5 л 1.000 * 30.00 = 30.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 145.00 НСП 1% : 1.28 НДС 12% : 15.40 Наличными: 145.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 163 28.07.2024 19:42 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2112 ФПД: 63210565369927 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T194212&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2112&fm=63210565369927&tin=02508201610067®Number=0000000000189667&sum=14500 0 [19:42:06]StoreToDocumentArchive [19:42:06]shift 13 fd 2112 [19:42:06]save to /storage/0013/doc_00002112 [19:42:06]save last doc name /storage/0013/doc_00002112 to /storage/kkm_last_doc_name [19:42:06]save OK [19:42:06]Clear old archive folders... [19:42:06]ProcessDocumentItem done err = 0, tmpTLVsize=403 [19:42:06]tlvbuf is 0200E5C0 [19:42:06]SAM_PROTO_ClearQueue [19:42:06]wFMCommunicate request_size=4 [19:42:06]MH_SAM_APDU [19:42:06]CAPDU: 80 09 00 00 [19:42:06]Write to MH i2c: E2 08 00 C4 5D 80 09 00 00 00 00 00 00 93 [19:42:06]Write i2c OK [19:42:06]MH_I2C_Read... [19:42:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:42:06]Read from MH i2c: E2 [19:42:06]MH_I2C_Read... [19:42:06]Read from MH i2c: E2 03 00 [19:42:06]MH_I2C_Read... [19:42:06]Read from MH i2c: E2 03 00 C4 5D 00 90 00 95 [19:42:06]RAPDU: 90 00 [19:42:06]wFMCommunicate OK [19:42:06]SAM_PROTO_ClearQueue done [19:42:06]KKMCreateOFDPacket [19:42:06]OFDProtocolAddRootSTLVToBuf [19:42:06]FM_MakeSignedData [19:42:06]FM_MakeSignedData [19:42:06]SAM_PROTO_SignData [19:42:06]wFMCommunicate request_size=4 [19:42:06]MH_SAM_APDU [19:42:06]CAPDU: 80 0D 01 02 [19:42:06]Write to MH i2c: E2 08 00 C5 5D 80 0D 01 02 00 00 00 00 9B [19:42:06]Write i2c OK [19:42:06]MH_I2C_Read... [19:42:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:42:06]Read from MH i2c: E2 [19:42:06]MH_I2C_Read... [19:42:06]Read from MH i2c: E2 03 00 [19:42:06]MH_I2C_Read... [19:42:06]Read from MH i2c: E2 03 00 C5 5D 00 90 00 96 [19:42:06]RAPDU: 90 00 [19:42:06]wFMCommunicate OK [19:42:06]wFMCommunicate request_size=255 [19:42:06]MH_SAM_APDU [19:42:06]CAPDU: 80 0D 02 02 FA 03 00 93 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 30 30 30 38 30 33 32 32 31 30 36 06 04 39 00 D0 92 D0 B0 D1 84 20 D0 9A D0 BE D1 80 D0 BE D0 B2 D0 BA D0 B0 20 D1 82 D0 BE D0 BF D0 BB D1 91 D0 BD D0 BE D0 B5 20 D0 BC D0 BE D0 BB D0 BE D0 BA D0 BE 20 31 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 37 36 39 30 30 31 38 06 04 20 00 D0 9D D0 B5 D0 B3 D0 B0 D0 B7 20 D0 B2 D0 BE D0 B4 D0 B0 20 50 61 6D 69 72 20 30 2C 35 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 38 00 00 [19:42:06]Write to MH i2c: E2 02 01 C6 5D 80 0D 02 02 FA 00 03 00 93 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 30 30 30 38 30 33 32 32 31 30 36 06 04 39 00 D0 92 D0 B0 D1 84 20 D0 9A D0 BE D1 80 D0 BE D0 B2 D0 BA D0 B0 20 D1 82 D0 BE D0 BF D0 BB D1 91 D0 BD D0 BE D0 B5 20 D0 BC D0 BE D0 BB D0 BE D0 BA D0 BE 20 31 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 37 36 39 30 30 31 38 06 04 20 00 D0 9D D0 B5 D0 B3 D0 B0 D0 B7 20 D0 B2 D0 BE D0 B4 D0 B0 20 50 61 6D 69 72 20 30 2C 35 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 38 00 00 00 00 94 [19:42:06]Write i2c OK [19:42:06]MH_I2C_Read... [19:42:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:42:06]Read from MH i2c: E2 [19:42:06]MH_I2C_Read... [19:42:06]Read from MH i2c: E2 03 00 [19:42:06]MH_I2C_Read... [19:42:06]Read from MH i2c: E2 03 00 C6 5D 00 90 00 97 [19:42:06]RAPDU: 90 00 [19:42:06]wFMCommunicate OK [19:42:06]wFMCommunicate request_size=162 [19:42:06]MH_SAM_APDU [19:42:06]CAPDU: 80 0D 02 02 9D 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 06 00 00 00 00 07 04 06 00 A4 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 14 9F A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 40 08 00 00 35 04 06 00 39 7D 5B 4B 80 47 [19:42:06]Write to MH i2c: E2 A5 00 C7 5D 80 0D 02 02 9D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 06 00 00 00 00 07 04 06 00 A4 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 14 9F A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 40 08 00 00 35 04 06 00 39 7D 5B 4B 80 47 00 00 5E [19:42:06]Write i2c OK [19:42:06]MH_I2C_Read... [19:42:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:42:07]Read from MH i2c: E2 [19:42:07]MH_I2C_Read... [19:42:07]Read from MH i2c: E2 03 00 [19:42:07]MH_I2C_Read... [19:42:07]Read from MH i2c: E2 03 00 C7 5D 00 90 00 98 [19:42:07]RAPDU: 90 00 [19:42:07]wFMCommunicate OK [19:42:07]wFMCommunicate request_size=4 [19:42:07]MH_SAM_APDU [19:42:07]CAPDU: 80 0D 03 02 [19:42:07]Write to MH i2c: E2 08 00 C8 5D 80 0D 03 02 00 00 00 00 A0 [19:42:07]Write i2c OK [19:42:07]MH_I2C_Read... [19:42:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:42:07]Read from MH i2c: E2 [19:42:07]MH_I2C_Read... [19:42:07]Read from MH i2c: E2 0B 00 [19:42:07]MH_I2C_Read... [19:42:07]Read from MH i2c: E2 0B 00 C8 5D 00 B4 9B 2E 14 3D 2A 14 6F 90 00 1C [19:42:07]RAPDU: B4 9B 2E 14 3D 2A 14 6F 90 00 [19:42:07]wFMCommunicate OK [19:42:07]SAM_PROTO_SignData done [19:42:07]FM_MakeSignedData done [19:42:07]CreateOFDProtocolMessage [19:42:07]wFMCommunicate request_size=4 [19:42:07]MH_SAM_APDU [19:42:07]CAPDU: 80 11 00 00 [19:42:07]Write to MH i2c: E2 08 00 C9 5D 80 11 00 00 00 00 00 00 A0 [19:42:07]Write i2c OK [19:42:07]MH_I2C_Read... [19:42:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:42:07]Read from MH i2c: E2 [19:42:07]MH_I2C_Read... [19:42:07]Read from MH i2c: E2 17 00 [19:42:07]MH_I2C_Read... [19:42:07]Read from MH i2c: E2 17 00 C9 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 F0 [19:42:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [19:42:07]wFMCommunicate OK [19:42:07]CreateOFDProtocolMessage done [19:42:07]OFDSenderStorePacket 2112 [19:42:07]StoreOFDPacket docnum=2112 [19:42:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 A7 01 00 00 C5 14 9F 01 C4 43 5A 03 01 00 03 00 93 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 30 30 30 38 30 33 32 32 31 30 36 06 04 39 00 D0 92 D0 B0 D1 84 20 D0 9A D0 BE D1 80 D0 BE D0 B2 D0 BA D0 B0 20 D1 82 D0 BE D0 BF D0 BB D1 91 D0 BD D0 BE D0 B5 20 D0 BC D0 BE D0 BB D0 BE D0 BA D0 BE 20 31 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 37 36 39 30 30 31 38 06 04 20 00 D0 9D D0 B5 D0 B3 D0 B0 D0 B7 20 D0 B2 D0 BE D0 B4 D0 B0 20 50 61 6D 69 72 20 30 2C 35 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 06 00 00 00 00 07 04 06 00 A4 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 14 9F A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 40 08 00 00 35 04 06 00 39 7D 5B 4B 80 47 B4 9B 2E 14 3D 2A 14 6F [19:42:07]CheckFolder [19:42:07]dirname=/storage/ofd_packets [19:42:07]CheckFolder done [19:42:07]ProducePacketName [19:42:07]name=ofd_packets/00002112 [19:42:07]NVStorageSaveData ofd_packets/00002112 [19:42:07]File name is /storage/ofd_packets/00002112 [19:42:07]Write 453 bytes [19:42:07]NVStorageSaveData done [19:42:07]OFDSenderStorePacket done [19:42:07]KKMCreateOFDPacket done [19:42:07]NVStorageSaveData kkm_last_timestamp [19:42:07]File name is /storage/kkm_last_timestamp [19:42:07]Write 4 bytes [19:42:07]NVStorageSaveData done [19:42:07]ExternCall_PrintAddStr [19:42:07]wPrintStart [19:42:07]Write to MH i2c: 01 00 00 CA 5D 27 [19:42:07]Write i2c OK [19:42:07]MH_I2C_Read... [19:42:07]Read from MH i2c: 01 [19:42:07]MH_I2C_Read... [19:42:07]OFD Sender: Processing packet 2112 [packets to send 1, broken 0] [19:42:07]ProducePacketName [19:42:07]name=ofd_packets/00002112 [19:42:07]OFD Sender: To server: pG, [19:42:07]CommunicateWithHost lk.salyk.kg:30040 [19:42:07]ConnectInit lk.salyk.kg [19:42:07]Read from MH i2c: 01 07 00 [19:42:07]MH_I2C_Read... [19:42:07]Read from MH i2c: 01 07 00 CA 5D 00 00 00 00 00 FF 0F 3C [19:42:07]RasterBufferAndPrint [19:42:07]line Счет N : (3)126408 [19:42:07]line ИНН: 02508201610067 [19:42:07]line Контрольно-Кассовый Чек [19:42:07]line ПРОДАЖА [19:42:07]line Товар: 4600080322106 [19:42:07]line Ваф Коровка топлёное молоко 150г [19:42:07]line 1.000 * 115.00 [19:42:07]line = 115.00 [19:42:07]line НДС 12% НСП 1% [19:42:07]line > о реализуемом товаре [19:42:07]line Товар: 4700007690018 [19:42:07]line Негаз вода Pamir 0,5 л [19:42:07]line 1.000 * 30.00 [19:42:07]line = 30.00 [19:42:07]line НДС 12% НСП 1% [19:42:07]line > о реализуемом товаре [19:42:07]line ИТОГО: 145.00 [19:42:07]line НСП 1% : 1.28 [19:42:07]line НДС 12% : 15.40 [19:42:07]line Наличными: 145.00 [19:42:07]line Безнал.: 0.00 [19:42:07]line Место: АЗС № 127 "Партнер Нефть" [19:42:07]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [19:42:07]line СНО: Общий режим [19:42:07]line Чек 163 28.07.2024 19:42 [19:42:07]line Смена: 13 ФФД: 1.0 [19:42:07]line ЗНМ: 0300000161 [19:42:07]line РНМ: 0000000000189667 [19:42:07]line Версия ККМ: v1.0 [19:42:07]line ФМ: 0000000002094248 [19:42:07]line ФД: 2112 [19:42:07]line ФПД: 63210565369927 [19:42:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T194212&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2112&fm=63210565369927&tin=02508201610067®Number=0000000000189667&sum=14500 [19:42:07]line 0 [19:42:07]written 0, free lines is 4095 [19:42:07]Connected sock=10 [19:42:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 A7 01 00 00 C5 14 9F 01 C4 43 5A 03 01 00 03 00 93 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 30 30 30 38 30 33 32 32 31 30 36 06 04 39 00 D0 92 D0 B0 D1 84 20 D0 9A D0 BE D1 80 D0 BE D0 B2 D0 BA D0 B0 20 D1 82 D0 BE D0 BF D0 BB D1 91 D0 BD D0 BE D0 B5 20 D0 BC D0 BE D0 BB D0 BE D0 BA D0 BE 20 31 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 37 36 39 30 30 31 38 06 04 20 00 D0 9D D0 B5 D0 B3 D0 B0 D0 B7 20 D0 B2 D0 BE D0 B4 D0 B0 20 50 61 6D 69 72 20 30 2C 35 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 06 00 00 00 00 07 04 06 00 A4 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 14 9F A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 40 08 00 00 35 04 06 00 39 7D 5B 4B 80 47 B4 9B 2E 14 3D 2A 14 6F [19:42:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 37 9F 47 00 A1 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 32 30 39 34 32 34 38 10 04 04 00 40 08 00 00 F4 03 04 00 83 4A A6 66 B6 04 01 00 00 61 D2 EC 7F 74 6B 8D 18 [19:42:07]CommunicateWithHost err = 0 [19:42:07]CheckOFDResponse [19:42:07]1017 (14) - 77093643461234 [19:42:07]1041 (16) - 0000000002094248 [19:42:07]1040 (4) - 2112 [19:42:07]1012 (4) - 28.07.2024 13:41 [19:42:07]1206 (1) - 0 [19:42:07]OFD Sender: Remove packet 2112 [19:42:07]ProducePacketName [19:42:07]name=ofd_packets/00002112 [19:42:07]NVStorageDeleteData [19:42:08]Write to MH i2c: 01 00 00 F9 5D 56 [19:42:08]Write i2c OK [19:42:08]MH_I2C_Read... [19:42:08]Read from MH i2c: 01 [19:42:08]MH_I2C_Read... [19:42:08]Read from MH i2c: 01 07 00 [19:42:08]MH_I2C_Read... [19:42:08]Read from MH i2c: 01 07 00 F9 5D 00 00 00 00 00 B8 0C 21 [19:42:08]RasterBufferAndPrint [19:42:08]line [19:42:08]line [19:42:08]line [19:42:08]line [19:42:08]line [19:42:08]written 0, free lines is 3264 [19:42:08]MH_Cut [19:42:08]Write to MH i2c: D1 01 00 00 5E 01 30 [19:42:08]Write i2c OK [19:42:08]MH_I2C_Read... [19:42:08]Read from MH i2c: D1 [19:42:08]MH_I2C_Read... [19:42:08]Read from MH i2c: D1 01 00 [19:42:08]MH_I2C_Read... [19:42:08]Read from MH i2c: D1 01 00 00 5E 00 2F [19:42:08]Write to MH i2c: 01 00 00 01 5E 5F [19:42:08]Write i2c OK [19:42:08]MH_I2C_Read... [19:42:08]OFD Sender: No OFD packet to send [19:42:08]*** Cut start [19:42:08]*** Partial cut [19:42:08]*** CUTSNS_PIN = 1 [19:42:08]*** CUTSNS_PIN = 0 [19:42:09]*** Brake cut motor [19:42:09]Read from MH i2c: 01 [19:42:09]MH_I2C_Read... [19:42:09]*** Stop cut motor [19:42:09]*** Cut end [19:42:09]Read from MH i2c: 01 07 00 [19:42:09]MH_I2C_Read... [19:42:09]Read from MH i2c: 01 07 00 01 5E 00 00 00 00 00 FF 0F 74 [19:42:09]process_action close_receipt done [19:42:09]requested_data is exist [19:42:09]produce_requested_data [19:42:09]requested_item fm.sn is exist - process it [19:42:09]wFMCommunicate request_size=4 [19:42:09]MH_SAM_APDU [19:42:09]CAPDU: 80 11 00 00 [19:42:09]Write to MH i2c: E2 08 00 02 5E 80 11 00 00 00 00 00 00 DA [19:42:09]Write i2c OK [19:42:09]MH_I2C_Read... [19:42:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:42:09]Read from MH i2c: E2 [19:42:09]MH_I2C_Read... [19:42:09]Read from MH i2c: E2 17 00 [19:42:09]MH_I2C_Read... [19:42:09]Read from MH i2c: E2 17 00 02 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 2A [19:42:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [19:42:09]wFMCommunicate OK [19:42:09]requested_item fd.num is exist - process it [19:42:09]SAM_PROTO_GetFieldsCounters [19:42:09]wFMCommunicate request_size=4 [19:42:09]MH_SAM_APDU [19:42:09]CAPDU: 80 13 00 00 [19:42:09]Write to MH i2c: E2 08 00 03 5E 80 13 00 00 00 00 00 00 DD [19:42:09]Write i2c OK [19:42:09]MH_I2C_Read... [19:42:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:42:09]Read from MH i2c: E2 [19:42:09]MH_I2C_Read... [19:42:09]Read from MH i2c: E2 62 00 [19:42:09]MH_I2C_Read... [19:42:09]Read from MH i2c: E2 62 00 03 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 40 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 45 [19:42:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 40 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:42:09]wFMCommunicate OK [19:42:09]SAM_PROTO_GetFieldsCounters done [19:42:09]requested_item shift.num is exist - process it [19:42:09]requested_item shift.opened is exist - process it [19:42:09]req_shift_opened [19:42:09]FM_GetShiftState [19:42:09]SAM_PROTO_GetShiftState [19:42:09]wFMCommunicate request_size=4 [19:42:09]MH_SAM_APDU [19:42:09]CAPDU: 80 13 01 00 [19:42:09]Write to MH i2c: E2 08 00 04 5E 80 13 01 00 00 00 00 00 DF [19:42:09]Write i2c OK [19:42:09]MH_I2C_Read... [19:42:09]Read from MH i2c: E2 [19:42:09]MH_I2C_Read... [19:42:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:42:09]Read from MH i2c: E2 0E 00 [19:42:09]MH_I2C_Read... [19:42:09]Read from MH i2c: E2 0E 00 04 5E 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 D3 [19:42:09]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [19:42:09]wFMCommunicate OK [19:42:09]SAM_PROTO_GetShiftState done [19:42:09]FM_GetShiftState done [19:42:09]req_shift_opened done [19:42:09]requested_item shift.open_date is exist - process it [19:42:09]req_shift_open_date [19:42:09]req_shift_open_date done [19:42:09]produce_requested_data done [19:42:09]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2112,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [19:42:09]process_action_free close_receipt [19:42:09]json_value_free [19:42:09]json_value_free done [19:42:09]process_json_proto returns [19:42:09]Send response to host [19:42:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2112,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [19:42:09]free response buf [19:42:09]execute_script done [19:42:09]execute_script returns [19:42:09]free content buf [19:42:09]Sock 9.Close socket [19:42:09]Sock 9.Thread stoped [19:42:13]OFD Sender: No OFD packet to send [19:42:18]OFD Sender: No OFD packet to send [19:42:23]OFD Sender: No OFD packet to send [19:42:28]OFD Sender: No OFD packet to send [19:42:33]OFD Sender: No OFD packet to send [19:42:38]OFD Sender: No OFD packet to send [19:42:43]OFD Sender: No OFD packet to send [19:42:48]OFD Sender: No OFD packet to send [19:42:53]OFD Sender: No OFD packet to send [19:42:58]OFD Sender: No OFD packet to send [19:43:03]OFD Sender: No OFD packet to send [19:43:08]OFD Sender: No OFD packet to send [19:43:13]OFD Sender: No OFD packet to send [19:43:18]OFD Sender: No OFD packet to send [19:43:23]OFD Sender: No OFD packet to send [19:43:28]OFD Sender: No OFD packet to send [19:43:33]OFD Sender: No OFD packet to send [19:43:38]OFD Sender: No OFD packet to send [19:43:43]OFD Sender: No OFD packet to send [19:43:48]OFD Sender: No OFD packet to send [19:43:53]OFD Sender: No OFD packet to send [19:43:58]OFD Sender: No OFD packet to send [19:44:03]OFD Sender: No OFD packet to send [19:44:08]OFD Sender: No OFD packet to send [19:44:13]OFD Sender: No OFD packet to send [19:44:18]OFD Sender: No OFD packet to send [19:44:23]OFD Sender: No OFD packet to send [19:44:28]OFD Sender: No OFD packet to send [19:44:33]OFD Sender: No OFD packet to send [19:44:38]OFD Sender: No OFD packet to send [19:44:43]OFD Sender: No OFD packet to send [19:44:48]OFD Sender: No OFD packet to send [19:44:53]OFD Sender: No OFD packet to send [19:44:58]OFD Sender: No OFD packet to send [19:45:03]OFD Sender: No OFD packet to send [19:45:08]OFD Sender: No OFD packet to send [19:45:13]OFD Sender: No OFD packet to send [19:45:18]OFD Sender: No OFD packet to send [19:45:23]OFD Sender: No OFD packet to send [19:45:28]OFD Sender: No OFD packet to send [19:45:33]OFD Sender: No OFD packet to send [19:45:38]OFD Sender: No OFD packet to send [19:45:43]OFD Sender: No OFD packet to send [19:45:48]OFD Sender: No OFD packet to send [19:45:53]OFD Sender: No OFD packet to send [19:45:58]OFD Sender: No OFD packet to send [19:46:03]OFD Sender: No OFD packet to send [19:46:08]OFD Sender: No OFD packet to send [19:46:13]OFD Sender: No OFD packet to send [19:46:18]OFD Sender: No OFD packet to send [19:46:23]OFD Sender: No OFD packet to send [19:46:28]OFD Sender: No OFD packet to send [19:46:33]OFD Sender: No OFD packet to send [19:46:38]OFD Sender: No OFD packet to send [19:46:43]OFD Sender: No OFD packet to send [19:46:48]OFD Sender: No OFD packet to send [19:46:53]OFD Sender: No OFD packet to send [19:46:58]OFD Sender: No OFD packet to send [19:47: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:52]accept exits with 8 [19:52:52]New connection [19:52:52]New thread 3067460964 created [19:52:52]Thread 3067317604 joined [19:52:52]Waiting for new connection... [19:52:52] Sock 8.Parse request [19:52:52]Sock 8.Check first char [19:52:52]Sock 8.First char is OK [19:52:52]request: POST /json_proto HTTP/1.0 [19:52:52]Method: POST [19:52:52]URL: /json_proto [19:52:52]Method is POST - this is cgi request [19:52:52]url: /json_proto [19:52:52]query_string will be loaded in cgi processing [19:52:52]execute_cgi json_proto POST (null) [19:52:52]execute_cgi path=json_proto method=POST [19:52:52]POST find Content-Length [19:52:52]Host: 172.17.45.132:8080 [19:52:52]Content-Length: 622 [19:52:52]Content-Type: application/json [19:52:52] [19:52:52]POST finish read [19:52:52]Found Content-Length = 622 [19:52:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126409", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:52:52]execute_script... [19:52: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)126409", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:52:52]POST & json_proto [19:52:52]process_json_proto [19:52:52]json parsed OK: [19:52:52]protocol is kg_v1.0 [19:52:52]action value=close_receipt [19:52:52]process_action close_receipt [19:52:52]cmd_close_receipt [19:52:52]MH_GetDate [19:52:52]Write to MH i2c: F0 00 00 05 5E 52 [19:52:52]Write i2c OK [19:52:52]MH_I2C_Read... [19:52:52]Read from MH i2c: F0 [19:52:52]MH_I2C_Read... [19:52:52]Read from MH i2c: F0 09 00 [19:52:52]MH_I2C_Read... [19:52:52]Read from MH i2c: F0 09 00 05 5E 00 9B A1 A6 66 E3 0B 90 66 87 [19:52:52]GetLastDocTimeStamp 1722195732 [19:52:52]current date 1722196379 [19:52:52]FM_GetShiftState [19:52:52]SAM_PROTO_GetShiftState [19:52:52]wFMCommunicate request_size=4 [19:52:52]MH_SAM_APDU [19:52:52]CAPDU: 80 13 01 00 [19:52:52]Write to MH i2c: E2 08 00 06 5E 80 13 01 00 00 00 00 00 E1 [19:52:52]Write i2c OK [19:52:52]MH_I2C_Read... [19:52:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:52:52]Read from MH i2c: E2 [19:52:52]MH_I2C_Read... [19:52:52]Read from MH i2c: E2 0E 00 [19:52:52]MH_I2C_Read... [19:52:52]Read from MH i2c: E2 0E 00 06 5E 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 D5 [19:52:52]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [19:52:52]wFMCommunicate OK [19:52:52]SAM_PROTO_GetShiftState done [19:52:52]FM_GetShiftState done [19:52:52]opened in 1722125648 [19:52:52]opened+sec_in_day 1722212048 [19:52:52]quantity*price = 15000 [19:52:52]sum+1 = 15001 [19:52:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 164 28.07.2024 19:52 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2113 ФПД: 71921574346268 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T195259&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2113&fm=71921574346268&tin=02508201610067®Number=0000000000189667&sum=15000 0 [19:52:53]StoreToDocumentArchive [19:52:53]shift 13 fd 2113 [19:52:53]save to /storage/0013/doc_00002113 [19:52:53]save last doc name /storage/0013/doc_00002113 to /storage/kkm_last_doc_name [19:52:53]save OK [19:52:53]Clear old archive folders... [19:52:53]ProcessDocumentItem done err = 0, tmpTLVsize=274 [19:52:53]tlvbuf is 0200E560 [19:52:53]SAM_PROTO_ClearQueue [19:52:53]wFMCommunicate request_size=4 [19:52:53]MH_SAM_APDU [19:52:53]CAPDU: 80 09 00 00 [19:52:53]Write to MH i2c: E2 08 00 13 5E 80 09 00 00 00 00 00 00 E3 [19:52:53]Write i2c OK [19:52:53]MH_I2C_Read... [19:52:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:52:53]Read from MH i2c: E2 [19:52:53]MH_I2C_Read... [19:52:53]Read from MH i2c: E2 03 00 [19:52:53]MH_I2C_Read... [19:52:53]Read from MH i2c: E2 03 00 13 5E 00 90 00 E5 [19:52:53]RAPDU: 90 00 [19:52:53]wFMCommunicate OK [19:52:53]SAM_PROTO_ClearQueue done [19:52:53]KKMCreateOFDPacket [19:52:53]OFDProtocolAddRootSTLVToBuf [19:52:53]FM_MakeSignedData [19:52:53]FM_MakeSignedData [19:52:53]SAM_PROTO_SignData [19:52:53]wFMCommunicate request_size=4 [19:52:53]MH_SAM_APDU [19:52:53]CAPDU: 80 0D 01 02 [19:52:53]Write to MH i2c: E2 08 00 14 5E 80 0D 01 02 00 00 00 00 EB [19:52:53]Write i2c OK [19:52:53]MH_I2C_Read... [19:52:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:52:53]Read from MH i2c: E2 [19:52:53]MH_I2C_Read... [19:52:53]Read from MH i2c: E2 03 00 [19:52:53]MH_I2C_Read... [19:52:53]Read from MH i2c: E2 03 00 14 5E 00 90 00 E6 [19:52:53]RAPDU: 90 00 [19:52:53]wFMCommunicate OK [19:52:53]wFMCommunicate request_size=255 [19:52:53]MH_SAM_APDU [19:52:53]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 9B A1 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 [19:52:53]Write to MH i2c: E2 02 01 15 5E 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 9B A1 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 00 00 8D [19:52:53]Write i2c OK [19:52:53]MH_I2C_Read... [19:52:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:52:53]Read from MH i2c: E2 [19:52:53]MH_I2C_Read... [19:52:53]Read from MH i2c: E2 03 00 [19:52:53]MH_I2C_Read... [19:52:53]Read from MH i2c: E2 03 00 15 5E 00 90 00 E7 [19:52:53]RAPDU: 90 00 [19:52:53]wFMCommunicate OK [19:52:53]wFMCommunicate request_size=33 [19:52:53]MH_SAM_APDU [19:52:53]CAPDU: 80 0D 02 02 1C 30 30 30 32 30 39 34 32 34 38 10 04 04 00 41 08 00 00 35 04 06 00 41 69 8B E3 FE 1C [19:52:53]Write to MH i2c: E2 24 00 16 5E 80 0D 02 02 1C 00 30 30 30 32 30 39 34 32 34 38 10 04 04 00 41 08 00 00 35 04 06 00 41 69 8B E3 FE 1C 00 00 F5 [19:52:53]Write i2c OK [19:52:53]MH_I2C_Read... [19:52:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:52:53]Read from MH i2c: E2 [19:52:53]MH_I2C_Read... [19:52:53]Read from MH i2c: E2 03 00 [19:52:53]MH_I2C_Read... [19:52:53]Read from MH i2c: E2 03 00 16 5E 00 90 00 E8 [19:52:53]RAPDU: 90 00 [19:52:53]wFMCommunicate OK [19:52:53]wFMCommunicate request_size=4 [19:52:53]MH_SAM_APDU [19:52:53]CAPDU: 80 0D 03 02 [19:52:53]Write to MH i2c: E2 08 00 17 5E 80 0D 03 02 00 00 00 00 F0 [19:52:53]Write i2c OK [19:52:53]MH_I2C_Read... [19:52:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:52:53]Read from MH i2c: E2 [19:52:53]MH_I2C_Read... [19:52:53]Read from MH i2c: E2 0B 00 [19:52:53]MH_I2C_Read... [19:52:53]Read from MH i2c: E2 0B 00 17 5E 00 00 E4 21 C8 55 C8 A6 5C 90 00 DD [19:52:53]RAPDU: 00 E4 21 C8 55 C8 A6 5C 90 00 [19:52:53]wFMCommunicate OK [19:52:53]SAM_PROTO_SignData done [19:52:53]FM_MakeSignedData done [19:52:53]CreateOFDProtocolMessage [19:52:53]wFMCommunicate request_size=4 [19:52:53]MH_SAM_APDU [19:52:53]CAPDU: 80 11 00 00 [19:52:53]Write to MH i2c: E2 08 00 18 5E 80 11 00 00 00 00 00 00 F0 [19:52:53]Write i2c OK [19:52:53]MH_I2C_Read... [19:52:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:52:53]Read from MH i2c: E2 [19:52:53]MH_I2C_Read... [19:52:53]Read from MH i2c: E2 17 00 [19:52:53]MH_I2C_Read... [19:52:53]Read from MH i2c: E2 17 00 18 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 40 [19:52:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [19:52:53]wFMCommunicate OK [19:52:53]CreateOFDProtocolMessage done [19:52:53]OFDSenderStorePacket 2113 [19:52:53]StoreOFDPacket docnum=2113 [19:52:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 26 01 00 00 5A 8D 1E 01 40 5B 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 9B A1 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 41 08 00 00 35 04 06 00 41 69 8B E3 FE 1C 00 E4 21 C8 55 C8 A6 5C [19:52:53]CheckFolder [19:52:53]dirname=/storage/ofd_packets [19:52:53]CheckFolder done [19:52:53]ProducePacketName [19:52:53]name=ofd_packets/00002113 [19:52:53]NVStorageSaveData ofd_packets/00002113 [19:52:53]File name is /storage/ofd_packets/00002113 [19:52:53]Write 324 bytes [19:52:53]NVStorageSaveData done [19:52:53]OFDSenderStorePacket done [19:52:53]KKMCreateOFDPacket done [19:52:53]NVStorageSaveData kkm_last_timestamp [19:52:53]File name is /storage/kkm_last_timestamp [19:52:53]Write 4 bytes [19:52:53]NVStorageSaveData done [19:52:53]ExternCall_PrintAddStr [19:52:53]wPrintStart [19:52:53]Write to MH i2c: 01 00 00 19 5E 77 [19:52:53]Write i2c OK [19:52:53]MH_I2C_Read... [19:52:53]Read from MH i2c: 01 [19:52:53]MH_I2C_Read... [19:52:53]Read from MH i2c: 01 07 00 [19:52:53]MH_I2C_Read... [19:52:53]Read from MH i2c: 01 07 00 19 5E 00 00 00 00 00 FF 0F 8C [19:52:53]RasterBufferAndPrint [19:52:53]line Счет N : (3)126409 [19:52:53]line ИНН: 02508201610067 [19:52:53]line Контрольно-Кассовый Чек [19:52:53]line ПРОДАЖА [19:52:53]line Товар: 4640030091645 [19:52:53]line Сигареты ESSE Exchange M [19:52:53]line 1.000 * 150.00 [19:52:53]line = 150.00 [19:52:53]line НДС 12% НСП 1% [19:52:53]line > о реализуемом товаре [19:52:53]line ИТОГО: 150.00 [19:52:53]line НСП 1% : 1.33 [19:52:53]line НДС 12% : 15.93 [19:52:53]line Наличными: 150.00 [19:52:53]line Безнал.: 0.00 [19:52:53]line Место: АЗС № 127 "Партнер Нефть" [19:52:53]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [19:52:53]line СНО: Общий режим [19:52:53]line Чек 164 28.07.2024 19:52 [19:52:53]line Смена: 13 ФФД: 1.0 [19:52:53]line ЗНМ: 0300000161 [19:52:53]line РНМ: 0000000000189667 [19:52:53]line Версия ККМ: v1.0 [19:52:53]line ФМ: 0000000002094248 [19:52:53]line ФД: 2113 [19:52:53]line ФПД: 71921574346268 [19:52:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T195259&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2113&fm=71921574346268&tin=02508201610067®Number=0000000000189667&sum=15000 [19:52:54]line 0 [19:52:54]OFD Sender: Processing packet 2113 [packets to send 1, broken 0] [19:52:54]ProducePacketName [19:52:54]name=ofd_packets/00002113 [19:52:54]OFD Sender: To server: pG, [19:52:54]CommunicateWithHost lk.salyk.kg:30040 [19:52:54]ConnectInit lk.salyk.kg [19:52:54]written 0, free lines is 4095 [19:52:54]Connected sock=9 [19:52:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 26 01 00 00 5A 8D 1E 01 40 5B 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 9B A1 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 41 08 00 00 35 04 06 00 41 69 8B E3 FE 1C 00 E4 21 C8 55 C8 A6 5C [19:52:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 78 19 47 00 0E 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 41 08 00 00 F4 03 04 00 09 4D A6 66 B6 04 01 00 00 CF 4D 13 96 24 E2 E6 B6 [19:52:54]CommunicateWithHost err = 0 [19:52:54]CheckOFDResponse [19:52:54]1017 (14) - 77093643461234 [19:52:54]1041 (16) - 0000000002094248 [19:52:54]1040 (4) - 2113 [19:52:54]1012 (4) - 28.07.2024 13:52 [19:52:54]1206 (1) - 0 [19:52:54]OFD Sender: Remove packet 2113 [19:52:54]ProducePacketName [19:52:54]name=ofd_packets/00002113 [19:52:54]NVStorageDeleteData [19:52:54]Write to MH i2c: 01 00 00 41 5E 9F [19:52:54]Write i2c OK [19:52:54]MH_I2C_Read... [19:52:54]Read from MH i2c: 01 [19:52:54]MH_I2C_Read... [19:52:54]Read from MH i2c: 01 07 00 [19:52:54]MH_I2C_Read... [19:52:54]Read from MH i2c: 01 07 00 41 5E 00 00 00 00 00 19 0D CC [19:52:54]RasterBufferAndPrint [19:52:54]line [19:52:54]line [19:52:54]line [19:52:54]line [19:52:54]line [19:52:54]written 0, free lines is 3363 [19:52:54]MH_Cut [19:52:54]Write to MH i2c: D1 01 00 48 5E 01 78 [19:52:54]Write i2c OK [19:52:54]MH_I2C_Read... [19:52:54]Read from MH i2c: D1 [19:52:54]MH_I2C_Read... [19:52:54]Read from MH i2c: D1 01 00 [19:52:54]MH_I2C_Read... [19:52:54]Read from MH i2c: D1 01 00 48 5E 00 77 [19:52:54]Write to MH i2c: 01 00 00 49 5E A7 [19:52:54]Write i2c OK [19:52:54]MH_I2C_Read... [19:52:54]OFD Sender: No OFD packet to send [19:52:55]*** Cut start [19:52:55]*** Partial cut [19:52:55]*** CUTSNS_PIN = 1 [19:52:55]*** CUTSNS_PIN = 0 [19:52:55]*** Brake cut motor [19:52:55]Read from MH i2c: 01 [19:52:55]MH_I2C_Read... [19:52:55]*** Stop cut motor [19:52:55]*** Cut end [19:52:55]Read from MH i2c: 01 07 00 [19:52:55]MH_I2C_Read... [19:52:55]Read from MH i2c: 01 07 00 49 5E 00 00 00 00 00 FF 0F BC [19:52:55]process_action close_receipt done [19:52:55]requested_data is exist [19:52:55]produce_requested_data [19:52:55]requested_item fm.sn is exist - process it [19:52:55]wFMCommunicate request_size=4 [19:52:55]MH_SAM_APDU [19:52:55]CAPDU: 80 11 00 00 [19:52:55]Write to MH i2c: E2 08 00 4A 5E 80 11 00 00 00 00 00 00 22 [19:52:55]Write i2c OK [19:52:55]MH_I2C_Read... [19:52:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:52:55]Read from MH i2c: E2 [19:52:55]MH_I2C_Read... [19:52:55]Read from MH i2c: E2 17 00 [19:52:55]MH_I2C_Read... [19:52:55]Read from MH i2c: E2 17 00 4A 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 72 [19:52:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [19:52:55]wFMCommunicate OK [19:52:55]requested_item fd.num is exist - process it [19:52:55]SAM_PROTO_GetFieldsCounters [19:52:55]wFMCommunicate request_size=4 [19:52:55]MH_SAM_APDU [19:52:55]CAPDU: 80 13 00 00 [19:52:55]Write to MH i2c: E2 08 00 4B 5E 80 13 00 00 00 00 00 00 25 [19:52:55]Write i2c OK [19:52:55]MH_I2C_Read... [19:52:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:52:55]Read from MH i2c: E2 [19:52:55]MH_I2C_Read... [19:52:55]Read from MH i2c: E2 62 00 [19:52:55]MH_I2C_Read... [19:52:55]Read from MH i2c: E2 62 00 4B 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 41 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 91 [19:52:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 41 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:52:56]wFMCommunicate OK [19:52:56]SAM_PROTO_GetFieldsCounters done [19:52:56]requested_item shift.num is exist - process it [19:52:56]requested_item shift.opened is exist - process it [19:52:56]req_shift_opened [19:52:56]FM_GetShiftState [19:52:56]SAM_PROTO_GetShiftState [19:52:56]wFMCommunicate request_size=4 [19:52:56]MH_SAM_APDU [19:52:56]CAPDU: 80 13 01 00 [19:52:56]Write to MH i2c: E2 08 00 4C 5E 80 13 01 00 00 00 00 00 27 [19:52:56]Write i2c OK [19:52:56]MH_I2C_Read... [19:52:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:52:56]Read from MH i2c: E2 [19:52:56]MH_I2C_Read... [19:52:56]Read from MH i2c: E2 0E 00 [19:52:56]MH_I2C_Read... [19:52:56]Read from MH i2c: E2 0E 00 4C 5E 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 1B [19:52:56]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [19:52:56]wFMCommunicate OK [19:52:56]SAM_PROTO_GetShiftState done [19:52:56]FM_GetShiftState done [19:52:56]req_shift_opened done [19:52:56]requested_item shift.open_date is exist - process it [19:52:56]req_shift_open_date [19:52:56]req_shift_open_date done [19:52:56]produce_requested_data done [19:52:56]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2113,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [19:52:56]process_action_free close_receipt [19:52:56]json_value_free [19:52:56]json_value_free done [19:52:56]process_json_proto returns [19:52:56]Send response to host [19:52:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2113,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [19:52:56]free response buf [19:52:56]execute_script done [19:52:56]execute_script returns [19:52:56]free content buf [19:52:56]Sock 8.Close socket [19:52:56]Sock 8.Thread stoped [19:52:59]OFD Sender: No OFD packet to send [19:53:04]OFD Sender: No OFD packet to send [19:53:09]OFD Sender: No OFD packet to send [19:53:14]OFD Sender: No OFD packet to send [19:53:19]OFD Sender: No OFD packet to send [19:53:24]OFD Sender: No OFD packet to send [19:53:29]OFD Sender: No OFD packet to send [19:53:34]OFD Sender: No OFD packet to send [19:53:39]OFD Sender: No OFD packet to send [19:53:44]OFD Sender: No OFD packet to send [19:53:49]OFD Sender: No OFD packet to send [19:53:54]OFD Sender: No OFD packet to send [19:53:59]OFD Sender: No OFD packet to send [19:54:04]OFD Sender: No OFD packet to send [19:54:10]OFD Sender: No OFD packet to send [19:54:15]OFD Sender: No OFD packet to send [19:54:20]OFD Sender: No OFD packet to send [19:54:25]OFD Sender: No OFD packet to send [19:54:30]OFD Sender: No OFD packet to send [19:54:35]OFD Sender: No OFD packet to send [19:54:40]OFD Sender: No OFD packet to send [19:54:45]OFD Sender: No OFD packet to send [19:54:50]OFD Sender: No OFD packet to send [19:54:55]OFD Sender: No OFD packet to send [19:55:00]OFD Sender: No OFD packet to send [19:55:05]OFD Sender: No OFD packet to send [19:55:10]OFD Sender: No OFD packet to send [19:55:15]OFD Sender: No OFD packet to send [19:55:20]OFD Sender: No OFD packet to send [19:55:25]OFD Sender: No OFD packet to send [19:55:30]OFD Sender: No OFD packet to send [19:55:35]OFD Sender: No OFD packet to send [19:55:40]OFD Sender: No OFD packet to send [19:55:45]OFD Sender: No OFD packet to send [19:55:50]OFD Sender: No OFD packet to send [19:55:55]OFD Sender: No OFD packet to send [19:56:00]OFD Sender: No OFD packet to send [19:56:05]OFD Sender: No OFD packet to send [19:56:10]OFD Sender: No OFD packet to send [19:56:15]OFD Sender: No OFD packet to send [19:56:20]OFD Sender: No OFD packet to send [19:56:25]OFD Sender: No OFD packet to send [19:56:30]OFD Sender: No OFD packet to send [19:56:35]OFD Sender: No OFD packet to send [19:56:40]OFD Sender: No OFD packet to send [19:56:45]OFD Sender: No OFD packet to send [19:56:50]OFD Sender: No OFD packet to send [19:56:55]OFD Sender: No OFD packet to send [19:57:00]OFD Sender: No OFD packet to send [19:57:05]OFD Sender: No OFD packet to send [19:57:10]OFD Sender: No OFD packet to send [19:57:15]OFD Sender: No OFD packet to send [19:57:20]OFD Sender: No OFD packet to send [19:57:25]OFD Sender: No OFD packet to send [19:57:30]OFD Sender: No OFD packet to send [19:57:35]OFD Sender: No OFD packet to send [19:57:40]OFD Sender: No OFD packet to send [19:57:45]OFD Sender: No OFD packet to send [19:57:50]OFD Sender: No OFD packet to send [19:57:55]OFD Sender: No OFD packet to send [19:58:00]OFD Sender: No OFD packet to send [19:58:05]OFD Sender: No OFD packet to send [19:58:10]OFD Sender: No OFD packet to send [19:58:15]OFD Sender: No OFD packet to send [19:58:20]OFD Sender: No OFD packet to send [19:58:25]OFD Sender: No OFD packet to send [19:58:30]OFD Sender: No OFD packet to send [19:58:35]OFD Sender: No OFD packet to send [19:58:40]OFD Sender: No OFD packet to send [19:58:45]OFD Sender: No OFD packet to send [19:58:50]OFD Sender: No OFD packet to send [19:58:55]OFD Sender: No OFD packet to send [19:59:00]OFD Sender: No OFD packet to send [19:59:05]OFD Sender: No OFD packet to send [19:59:10]OFD Sender: No OFD packet to send [19:59:15]OFD Sender: No OFD packet to send [19:59:20]OFD Sender: No OFD packet to send [19:59:25]OFD Sender: No OFD packet to send [19:59:30]OFD Sender: No OFD packet to send [19:59:35]OFD Sender: No OFD packet to send [19:59:40]OFD Sender: No OFD packet to send [19:59:45]OFD Sender: No OFD packet to send [19:59:50]OFD Sender: No OFD packet to send [19:59:55]OFD Sender: No OFD packet to send [20:00:00]OFD Sender: No OFD packet to send [20:00:05]OFD Sender: No OFD packet to send [20:00:10]OFD Sender: No OFD packet to send [20:00:15]OFD Sender: No OFD packet to send [20:00:20]OFD Sender: No OFD packet to send [20:00:25]OFD Sender: No OFD packet to send [20:00:30]OFD Sender: No OFD packet to send [20:00:35]OFD Sender: No OFD packet to send [20:00:40]OFD Sender: No OFD packet to send [20:00:45]OFD Sender: No OFD packet to send [20:00:50]OFD Sender: No OFD packet to send [20:00:55]OFD Sender: No OFD packet to send [20:01:00]OFD Sender: No OFD packet to send [20:01:05]OFD Sender: No OFD packet to send [20:01:10]OFD Sender: No OFD packet to send [20:01:15]OFD Sender: No OFD packet to send [20:01:20]OFD Sender: No OFD packet to send [20:01:25]OFD Sender: No OFD packet to send [20:01:30]OFD Sender: No OFD packet to send [20:01:35]OFD Sender: No OFD packet to send [20:01:40]OFD Sender: No OFD packet to send [20:01:45]OFD Sender: No OFD packet to send [20:01:50]OFD Sender: No OFD packet to send [20:01:55]OFD Sender: No OFD packet to send [20:02:00]OFD Sender: No OFD packet to send [20:02:05]OFD Sender: No OFD packet to send [20:02:10]OFD Sender: No OFD packet to send [20:02:15]OFD Sender: No OFD packet to send [20:02:20]OFD Sender: No OFD packet to send [20:02:25]OFD Sender: No OFD packet to send [20:02:30]OFD Sender: No OFD packet to send [20:02:35]OFD Sender: No OFD packet to send [20:02:40]OFD Sender: No OFD packet to send [20:02:45]OFD Sender: No OFD packet to send [20:02:50]OFD Sender: No OFD packet to send [20:02:54]accept exits with 10 [20:02:54]New connection [20:02:54]New thread 3067317604 created [20:02:54]Thread 3067460964 joined [20:02:54]Waiting for new connection... [20:02:54] Sock 10.Parse request [20:02:54]Sock 10.Check first char [20:02:54]Sock 10.First char is OK [20:02:54]request: POST /json_proto HTTP/1.0 [20:02:54]Method: POST [20:02:54]URL: /json_proto [20:02:54]Method is POST - this is cgi request [20:02:54]url: /json_proto [20:02:54]query_string will be loaded in cgi processing [20:02:54]execute_cgi json_proto POST (null) [20:02:54]execute_cgi path=json_proto method=POST [20:02:54]POST find Content-Length [20:02:54]Host: 172.17.45.132:8080 [20:02:54]Content-Length: 655 [20:02:54]Content-Type: application/json [20:02:54] [20:02:54]POST finish read [20:02:54]Found Content-Length = 655 [20:02:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126410", "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" ] } } [20:02:54]execute_script... [20:02:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126410", "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" ] } } [20:02:54]POST & json_proto [20:02:54]process_json_proto [20:02:54]json parsed OK: [20:02:54]protocol is kg_v1.0 [20:02:54]action value=close_receipt [20:02:54]process_action close_receipt [20:02:54]cmd_close_receipt [20:02:54]MH_GetDate [20:02:54]Write to MH i2c: F0 00 00 4D 5E 9A [20:02:54]Write i2c OK [20:02:54]MH_I2C_Read... [20:02:54]Read from MH i2c: F0 [20:02:54]MH_I2C_Read... [20:02:54]Read from MH i2c: F0 09 00 [20:02:54]MH_I2C_Read... [20:02:54]Read from MH i2c: F0 09 00 4D 5E 00 F5 A3 A6 66 E3 0B 90 66 2B [20:02:54]GetLastDocTimeStamp 1722196379 [20:02:54]current date 1722196981 [20:02:54]FM_GetShiftState [20:02:54]SAM_PROTO_GetShiftState [20:02:54]wFMCommunicate request_size=4 [20:02:54]MH_SAM_APDU [20:02:54]CAPDU: 80 13 01 00 [20:02:54]Write to MH i2c: E2 08 00 4E 5E 80 13 01 00 00 00 00 00 29 [20:02:54]Write i2c OK [20:02:54]MH_I2C_Read... [20:02:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:02:54]Read from MH i2c: E2 [20:02:54]MH_I2C_Read... [20:02:54]Read from MH i2c: E2 0E 00 [20:02:54]MH_I2C_Read... [20:02:54]Read from MH i2c: E2 0E 00 4E 5E 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 1D [20:02:54]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [20:02:54]wFMCommunicate OK [20:02:54]SAM_PROTO_GetShiftState done [20:02:54]FM_GetShiftState done [20:02:54]opened in 1722125648 [20:02:54]opened+sec_in_day 1722212048 [20:02:54]quantity*price = 26000 [20:02:54]sum+1 = 26001 [20:02:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 165 28.07.2024 20:03 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2114 ФПД: 255034603431427 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T200301&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2114&fm=255034603431427&tin=02508201610067®Number=0000000000189667&sum=26000 0 [20:02:55]StoreToDocumentArchive [20:02:55]shift 13 fd 2114 [20:02:55]save to /storage/0013/doc_00002114 [20:02:55]save last doc name /storage/0013/doc_00002114 to /storage/kkm_last_doc_name [20:02:55]save OK [20:02:55]Clear old archive folders... [20:02:55]ProcessDocumentItem done err = 0, tmpTLVsize=279 [20:02:55]tlvbuf is 02161B10 [20:02:55]SAM_PROTO_ClearQueue [20:02:55]wFMCommunicate request_size=4 [20:02:55]MH_SAM_APDU [20:02:55]CAPDU: 80 09 00 00 [20:02:55]Write to MH i2c: E2 08 00 5B 5E 80 09 00 00 00 00 00 00 2B [20:02:55]Write i2c OK [20:02:55]MH_I2C_Read... [20:02:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:02:55]Read from MH i2c: E2 [20:02:55]MH_I2C_Read... [20:02:55]Read from MH i2c: E2 03 00 [20:02:55]MH_I2C_Read... [20:02:55]Read from MH i2c: E2 03 00 5B 5E 00 90 00 2D [20:02:55]RAPDU: 90 00 [20:02:55]wFMCommunicate OK [20:02:55]SAM_PROTO_ClearQueue done [20:02:55]KKMCreateOFDPacket [20:02:55]OFDProtocolAddRootSTLVToBuf [20:02:55]FM_MakeSignedData [20:02:55]FM_MakeSignedData [20:02:55]SAM_PROTO_SignData [20:02:55]wFMCommunicate request_size=4 [20:02:55]MH_SAM_APDU [20:02:55]CAPDU: 80 0D 01 02 [20:02:55]Write to MH i2c: E2 08 00 5C 5E 80 0D 01 02 00 00 00 00 33 [20:02:55]Write i2c OK [20:02:55]MH_I2C_Read... [20:02:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:02:55]Read from MH i2c: E2 [20:02:55]MH_I2C_Read... [20:02:55]Read from MH i2c: E2 03 00 [20:02:55]MH_I2C_Read... [20:02:55]Read from MH i2c: E2 03 00 5C 5E 00 90 00 2E [20:02:55]RAPDU: 90 00 [20:02:55]wFMCommunicate OK [20:02:55]wFMCommunicate request_size=255 [20:02:55]MH_SAM_APDU [20:02:55]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 A5 00 00 00 F4 03 04 00 F5 A3 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 [20:02:55]Write to MH i2c: E2 02 01 5D 5E 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 A5 00 00 00 F4 03 04 00 F5 A3 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 00 00 8F [20:02:55]Write i2c OK [20:02:55]MH_I2C_Read... [20:02:55]OFD Sender: No OFD packet to send [20:02:55]Read from MH i2c: E2 [20:02:55]MH_I2C_Read... [20:02:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:02:55]Read from MH i2c: E2 03 00 [20:02:55]MH_I2C_Read... [20:02:55]Read from MH i2c: E2 03 00 5D 5E 00 90 00 2F [20:02:55]RAPDU: 90 00 [20:02:55]wFMCommunicate OK [20:02:55]wFMCommunicate request_size=38 [20:02:55]MH_SAM_APDU [20:02:55]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 42 08 00 00 35 04 06 00 E7 F3 DE F1 66 03 [20:02:55]Write to MH i2c: E2 29 00 5E 5E 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 42 08 00 00 35 04 06 00 E7 F3 DE F1 66 03 00 00 18 [20:02:55]Write i2c OK [20:02:55]MH_I2C_Read... [20:02:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:02:55]Read from MH i2c: E2 [20:02:55]MH_I2C_Read... [20:02:55]Read from MH i2c: E2 03 00 [20:02:55]MH_I2C_Read... [20:02:55]Read from MH i2c: E2 03 00 5E 5E 00 90 00 30 [20:02:55]RAPDU: 90 00 [20:02:55]wFMCommunicate OK [20:02:55]wFMCommunicate request_size=4 [20:02:55]MH_SAM_APDU [20:02:55]CAPDU: 80 0D 03 02 [20:02:55]Write to MH i2c: E2 08 00 5F 5E 80 0D 03 02 00 00 00 00 38 [20:02:55]Write i2c OK [20:02:55]MH_I2C_Read... [20:02:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:02:55]Read from MH i2c: E2 [20:02:55]MH_I2C_Read... [20:02:55]Read from MH i2c: E2 0B 00 [20:02:55]MH_I2C_Read... [20:02:55]Read from MH i2c: E2 0B 00 5F 5E 00 37 0E CE DB 17 1A 83 E2 90 00 BD [20:02:55]RAPDU: 37 0E CE DB 17 1A 83 E2 90 00 [20:02:55]wFMCommunicate OK [20:02:55]SAM_PROTO_SignData done [20:02:55]FM_MakeSignedData done [20:02:55]CreateOFDProtocolMessage [20:02:55]wFMCommunicate request_size=4 [20:02:55]MH_SAM_APDU [20:02:55]CAPDU: 80 11 00 00 [20:02:55]Write to MH i2c: E2 08 00 60 5E 80 11 00 00 00 00 00 00 38 [20:02:55]Write i2c OK [20:02:55]MH_I2C_Read... [20:02:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:02:55]Read from MH i2c: E2 [20:02:55]MH_I2C_Read... [20:02:55]Read from MH i2c: E2 17 00 [20:02:55]MH_I2C_Read... [20:02:55]Read from MH i2c: E2 17 00 60 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 88 [20:02:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:02:55]wFMCommunicate OK [20:02:55]CreateOFDProtocolMessage done [20:02:55]OFDSenderStorePacket 2114 [20:02:55]StoreOFDPacket docnum=2114 [20:02:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2B 01 00 00 98 18 23 01 22 23 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 A5 00 00 00 F4 03 04 00 F5 A3 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 42 08 00 00 35 04 06 00 E7 F3 DE F1 66 03 37 0E CE DB 17 1A 83 E2 [20:02:55]CheckFolder [20:02:55]dirname=/storage/ofd_packets [20:02:55]CheckFolder done [20:02:55]ProducePacketName [20:02:55]name=ofd_packets/00002114 [20:02:55]NVStorageSaveData ofd_packets/00002114 [20:02:55]File name is /storage/ofd_packets/00002114 [20:02:55]Write 329 bytes [20:02:55]NVStorageSaveData done [20:02:55]OFDSenderStorePacket done [20:02:55]KKMCreateOFDPacket done [20:02:55]NVStorageSaveData kkm_last_timestamp [20:02:55]File name is /storage/kkm_last_timestamp [20:02:55]Write 4 bytes [20:02:55]NVStorageSaveData done [20:02:55]ExternCall_PrintAddStr [20:02:55]wPrintStart [20:02:55]Write to MH i2c: 01 00 00 61 5E BF [20:02:55]Write i2c OK [20:02:55]MH_I2C_Read... [20:02:55]Read from MH i2c: 01 [20:02:55]MH_I2C_Read... [20:02:55]Read from MH i2c: 01 07 00 [20:02:55]MH_I2C_Read... [20:02:55]Read from MH i2c: 01 07 00 61 5E 00 00 00 00 00 FF 0F D4 [20:02:55]RasterBufferAndPrint [20:02:55]line Счет N : (3)126410 [20:02:55]line ИНН: 02508201610067 [20:02:55]line Контрольно-Кассовый Чек [20:02:55]line ПРОДАЖА [20:02:55]line Товар: 4700002083914 [20:02:55]line Водка Сары челек 0,35л [20:02:55]line 1.000 * 260.00 [20:02:55]line = 260.00 [20:02:55]line НДС 12% НСП 1% [20:02:55]line > о реализуемом товаре [20:02:55]line ИТОГО: 260.00 [20:02:55]line НСП 1% : 2.30 [20:02:55]line НДС 12% : 27.61 [20:02:55]line Наличными: 260.00 [20:02:55]line Безнал.: 0.00 [20:02:55]line Место: АЗС № 127 "Партнер Нефть" [20:02:55]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [20:02:55]line СНО: Общий режим [20:02:55]line Чек 165 28.07.2024 20:03 [20:02:55]line Смена: 13 ФФД: 1.0 [20:02:55]line ЗНМ: 0300000161 [20:02:55]line РНМ: 0000000000189667 [20:02:55]line Версия ККМ: v1.0 [20:02:55]line ФМ: 0000000002094248 [20:02:55]line ФД: 2114 [20:02:55]line ФПД: 255034603431427 [20:02:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T200301&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2114&fm=255034603431427&tin=02508201610067®Number=0000000000189667&sum=26000 [20:02:56]line 0 [20:02:56]OFD Sender: Processing packet 2114 [packets to send 1, broken 0] [20:02:56]ProducePacketName [20:02:56]name=ofd_packets/00002114 [20:02:56]OFD Sender: To server: pG, [20:02:56]CommunicateWithHost lk.salyk.kg:30040 [20:02:56]ConnectInit lk.salyk.kg [20:02:56]written 0, free lines is 4095 [20:02:56]Connected sock=9 [20:02:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2B 01 00 00 98 18 23 01 22 23 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 A5 00 00 00 F4 03 04 00 F5 A3 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 42 08 00 00 35 04 06 00 E7 F3 DE F1 66 03 37 0E CE DB 17 1A 83 E2 [20:02:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 87 8C 47 00 63 C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 42 08 00 00 F4 03 04 00 64 4F A6 66 B6 04 01 00 00 88 CC 82 16 88 39 D4 83 [20:02:56]CommunicateWithHost err = 0 [20:02:56]CheckOFDResponse [20:02:56]1017 (14) - 77093643461234 [20:02:56]1041 (16) - 0000000002094248 [20:02:56]1040 (4) - 2114 [20:02:56]1012 (4) - 28.07.2024 14:02 [20:02:56]1206 (1) - 0 [20:02:56]OFD Sender: Remove packet 2114 [20:02:56]ProducePacketName [20:02:56]name=ofd_packets/00002114 [20:02:56]NVStorageDeleteData [20:02:56]Write to MH i2c: 01 00 00 89 5E E7 [20:02:56]Write i2c OK [20:02:56]MH_I2C_Read... [20:02:56]Read from MH i2c: 01 [20:02:56]MH_I2C_Read... [20:02:56]Read from MH i2c: 01 07 00 [20:02:56]MH_I2C_Read... [20:02:56]Read from MH i2c: 01 07 00 89 5E 00 00 00 00 00 16 0D 11 [20:02:56]RasterBufferAndPrint [20:02:56]line [20:02:56]line [20:02:56]line [20:02:56]line [20:02:56]line [20:02:56]written 0, free lines is 3358 [20:02:56]MH_Cut [20:02:56]Write to MH i2c: D1 01 00 90 5E 01 C0 [20:02:56]Write i2c OK [20:02:56]MH_I2C_Read... [20:02:56]Read from MH i2c: D1 [20:02:56]MH_I2C_Read... [20:02:56]Read from MH i2c: D1 01 00 [20:02:56]MH_I2C_Read... [20:02:56]Read from MH i2c: D1 01 00 90 5E 00 BF [20:02:56]Write to MH i2c: 01 00 00 91 5E EF [20:02:56]Write i2c OK [20:02:56]MH_I2C_Read... [20:02:56]OFD Sender: No OFD packet to send [20:02:57]*** Cut start [20:02:57]*** Partial cut [20:02:57]*** CUTSNS_PIN = 1 [20:02:57]*** CUTSNS_PIN = 0 [20:02:57]*** Brake cut motor [20:02:57]Read from MH i2c: 01 [20:02:57]MH_I2C_Read... [20:02:57]*** Stop cut motor [20:02:57]*** Cut end [20:02:57]Read from MH i2c: 01 07 00 [20:02:57]MH_I2C_Read... [20:02:57]Read from MH i2c: 01 07 00 91 5E 00 00 00 00 00 FF 0F 04 [20:02:57]process_action close_receipt done [20:02:57]requested_data is exist [20:02:57]produce_requested_data [20:02:57]requested_item fm.sn is exist - process it [20:02:57]wFMCommunicate request_size=4 [20:02:57]MH_SAM_APDU [20:02:57]CAPDU: 80 11 00 00 [20:02:57]Write to MH i2c: E2 08 00 92 5E 80 11 00 00 00 00 00 00 6A [20:02:57]Write i2c OK [20:02:57]MH_I2C_Read... [20:02:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:02:57]Read from MH i2c: E2 [20:02:57]MH_I2C_Read... [20:02:57]Read from MH i2c: E2 17 00 [20:02:57]MH_I2C_Read... [20:02:57]Read from MH i2c: E2 17 00 92 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 BA [20:02:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:02:57]wFMCommunicate OK [20:02:57]requested_item fd.num is exist - process it [20:02:57]SAM_PROTO_GetFieldsCounters [20:02:57]wFMCommunicate request_size=4 [20:02:57]MH_SAM_APDU [20:02:57]CAPDU: 80 13 00 00 [20:02:57]Write to MH i2c: E2 08 00 93 5E 80 13 00 00 00 00 00 00 6D [20:02:57]Write i2c OK [20:02:57]MH_I2C_Read... [20:02:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:02:57]Read from MH i2c: E2 [20:02:57]MH_I2C_Read... [20:02:57]Read from MH i2c: E2 62 00 [20:02:57]MH_I2C_Read... [20:02:57]Read from MH i2c: E2 62 00 93 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 42 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [20:02:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 42 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:02:58]wFMCommunicate OK [20:02:58]SAM_PROTO_GetFieldsCounters done [20:02:58]requested_item shift.num is exist - process it [20:02:58]requested_item shift.opened is exist - process it [20:02:58]req_shift_opened [20:02:58]FM_GetShiftState [20:02:58]SAM_PROTO_GetShiftState [20:02:58]wFMCommunicate request_size=4 [20:02:58]MH_SAM_APDU [20:02:58]CAPDU: 80 13 01 00 [20:02:58]Write to MH i2c: E2 08 00 94 5E 80 13 01 00 00 00 00 00 6F [20:02:58]Write i2c OK [20:02:58]MH_I2C_Read... [20:02:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:02:58]Read from MH i2c: E2 [20:02:58]MH_I2C_Read... [20:02:58]Read from MH i2c: E2 0E 00 [20:02:58]MH_I2C_Read... [20:02:58]Read from MH i2c: E2 0E 00 94 5E 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 63 [20:02:58]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [20:02:58]wFMCommunicate OK [20:02:58]SAM_PROTO_GetShiftState done [20:02:58]FM_GetShiftState done [20:02:58]req_shift_opened done [20:02:58]requested_item shift.open_date is exist - process it [20:02:58]req_shift_open_date [20:02:58]req_shift_open_date done [20:02:58]produce_requested_data done [20:02:58]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2114,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [20:02:58]process_action_free close_receipt [20:02:58]json_value_free [20:02:58]json_value_free done [20:02:58]process_json_proto returns [20:02:58]Send response to host [20:02:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2114,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [20:02:58]free response buf [20:02:58]execute_script done [20:02:58]execute_script returns [20:02:58]free content buf [20:02:58]Sock 10.Close socket [20:02:58]Sock 10.Thread stoped [20:03:01]OFD Sender: No OFD packet to send [20:03:06]OFD Sender: No OFD packet to send [20:03:11]OFD Sender: No OFD packet to send [20:03:16]OFD Sender: No OFD packet to send [20:03:21]OFD Sender: No OFD packet to send [20:03:26]OFD Sender: No OFD packet to send [20:03:31]OFD Sender: No OFD packet to send [20:03:36]OFD Sender: No OFD packet to send [20:03:41]OFD Sender: No OFD packet to send [20:03:46]OFD Sender: No OFD packet to send [20:03:52]OFD Sender: No OFD packet to send [20:03:57]OFD Sender: No OFD packet to send [20:04:02]OFD Sender: No OFD packet to send [20:04:07]OFD Sender: No OFD packet to send [20:04:12]OFD Sender: No OFD packet to send [20:04:17]OFD Sender: No OFD packet to send [20:04:22]OFD Sender: No OFD packet to send [20:04:27]OFD Sender: No OFD packet to send [20:04:31]accept exits with 8 [20:04:31]New connection [20:04:31]New thread 3067460964 created [20:04:31]Thread 3067317604 joined [20:04:31]Waiting for new connection... [20:04:31] Sock 8.Parse request [20:04:31]Sock 8.Check first char [20:04:31]Sock 8.First char is OK [20:04:31]request: POST /json_proto HTTP/1.0 [20:04:31]Method: POST [20:04:31]URL: /json_proto [20:04:31]Method is POST - this is cgi request [20:04:31]url: /json_proto [20:04:31]query_string will be loaded in cgi processing [20:04:31]execute_cgi json_proto POST (null) [20:04:31]execute_cgi path=json_proto method=POST [20:04:31]POST find Content-Length [20:04:31]Host: 172.17.45.132:8080 [20:04:31]Content-Length: 670 [20:04:31]Content-Type: application/json [20:04:31] [20:04:31]POST finish read [20:04:31]Found Content-Length = 670 [20:04:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126411", "tax_sys" : 0, "items" : [ { "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:04:31]execute_script... [20:04:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126411", "tax_sys" : 0, "items" : [ { "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:04:31]POST & json_proto [20:04:31]process_json_proto [20:04:31]json parsed OK: [20:04:31]protocol is kg_v1.0 [20:04:31]action value=close_receipt [20:04:31]process_action close_receipt [20:04:31]cmd_close_receipt [20:04:31]MH_GetDate [20:04:31]Write to MH i2c: F0 00 00 95 5E E2 [20:04:31]Write i2c OK [20:04:31]MH_I2C_Read... [20:04:31]Read from MH i2c: F0 [20:04:31]MH_I2C_Read... [20:04:31]Read from MH i2c: F0 09 00 [20:04:31]MH_I2C_Read... [20:04:31]Read from MH i2c: F0 09 00 95 5E 00 56 A4 A6 66 E3 0B 90 66 D5 [20:04:31]GetLastDocTimeStamp 1722196981 [20:04:31]current date 1722197078 [20:04:31]FM_GetShiftState [20:04:31]SAM_PROTO_GetShiftState [20:04:31]wFMCommunicate request_size=4 [20:04:31]MH_SAM_APDU [20:04:31]CAPDU: 80 13 01 00 [20:04:31]Write to MH i2c: E2 08 00 96 5E 80 13 01 00 00 00 00 00 71 [20:04:31]Write i2c OK [20:04:31]MH_I2C_Read... [20:04:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:04:31]Read from MH i2c: E2 [20:04:31]MH_I2C_Read... [20:04:31]Read from MH i2c: E2 0E 00 [20:04:31]MH_I2C_Read... [20:04:31]Read from MH i2c: E2 0E 00 96 5E 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 65 [20:04:31]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [20:04:31]wFMCommunicate OK [20:04:31]SAM_PROTO_GetShiftState done [20:04:31]FM_GetShiftState done [20:04:31]opened in 1722125648 [20:04:31]opened+sec_in_day 1722212048 [20:04:31]quantity*price = 17000 [20:04:31]sum+1 = 17001 [20:04:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 170.00 НСП 1% : 1.50 НДС 12% : 18.05 Наличными: 170.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 166 28.07.2024 20:04 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2115 ФПД: 171978588966589 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T200438&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2115&fm=171978588966589&tin=02508201610067®Number=0000000000189667&sum=17000 0 [20:04:32]StoreToDocumentArchive [20:04:32]shift 13 fd 2115 [20:04:32]save to /storage/0013/doc_00002115 [20:04:32]save last doc name /storage/0013/doc_00002115 to /storage/kkm_last_doc_name [20:04:32]save OK [20:04:32]Clear old archive folders... [20:04:32]ProcessDocumentItem done err = 0, tmpTLVsize=282 [20:04:32]tlvbuf is 02046780 [20:04:32]SAM_PROTO_ClearQueue [20:04:32]wFMCommunicate request_size=4 [20:04:32]MH_SAM_APDU [20:04:32]CAPDU: 80 09 00 00 [20:04:32]Write to MH i2c: E2 08 00 A3 5E 80 09 00 00 00 00 00 00 73 [20:04:32]Write i2c OK [20:04:32]MH_I2C_Read... [20:04:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:04:32]Read from MH i2c: E2 [20:04:32]MH_I2C_Read... [20:04:32]Read from MH i2c: E2 03 00 [20:04:32]MH_I2C_Read... [20:04:32]Read from MH i2c: E2 03 00 A3 5E 00 90 00 75 [20:04:32]RAPDU: 90 00 [20:04:32]wFMCommunicate OK [20:04:32]SAM_PROTO_ClearQueue done [20:04:32]KKMCreateOFDPacket [20:04:32]OFDProtocolAddRootSTLVToBuf [20:04:32]FM_MakeSignedData [20:04:32]FM_MakeSignedData [20:04:32]SAM_PROTO_SignData [20:04:32]wFMCommunicate request_size=4 [20:04:32]MH_SAM_APDU [20:04:32]CAPDU: 80 0D 01 02 [20:04:32]Write to MH i2c: E2 08 00 A4 5E 80 0D 01 02 00 00 00 00 7B [20:04:32]Write i2c OK [20:04:32]MH_I2C_Read... [20:04:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:04:32]Read from MH i2c: E2 [20:04:32]MH_I2C_Read... [20:04:32]Read from MH i2c: E2 03 00 [20:04:32]MH_I2C_Read... [20:04:32]Read from MH i2c: E2 03 00 A4 5E 00 90 00 76 [20:04:32]RAPDU: 90 00 [20:04:32]wFMCommunicate OK [20:04:32]wFMCommunicate request_size=255 [20:04:32]MH_SAM_APDU [20:04:32]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 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 56 A4 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 [20:04:32]Write to MH i2c: E2 02 01 A5 5E 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 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 56 A4 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 00 00 4E [20:04:32]Write i2c OK [20:04:32]MH_I2C_Read... [20:04:32]Read from MH i2c: E2 [20:04:32]MH_I2C_Read... [20:04:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:04:32]Read from MH i2c: E2 03 00 [20:04:32]MH_I2C_Read... [20:04:32]Read from MH i2c: E2 03 00 A5 5E 00 90 00 77 [20:04:32]RAPDU: 90 00 [20:04:32]wFMCommunicate OK [20:04:32]wFMCommunicate request_size=41 [20:04:32]MH_SAM_APDU [20:04:32]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 43 08 00 00 35 04 06 00 9C 69 E2 B4 4E BD [20:04:32]Write to MH i2c: E2 2C 00 A6 5E 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 43 08 00 00 35 04 06 00 9C 69 E2 B4 4E BD 00 00 3B [20:04:32]Write i2c OK [20:04:32]MH_I2C_Read... [20:04:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:04:32]Read from MH i2c: E2 [20:04:32]MH_I2C_Read... [20:04:32]Read from MH i2c: E2 03 00 [20:04:32]MH_I2C_Read... [20:04:32]Read from MH i2c: E2 03 00 A6 5E 00 90 00 78 [20:04:32]RAPDU: 90 00 [20:04:32]wFMCommunicate OK [20:04:32]wFMCommunicate request_size=4 [20:04:32]MH_SAM_APDU [20:04:32]CAPDU: 80 0D 03 02 [20:04:32]Write to MH i2c: E2 08 00 A7 5E 80 0D 03 02 00 00 00 00 80 [20:04:32]Write i2c OK [20:04:32]MH_I2C_Read... [20:04:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:04:32]Read from MH i2c: E2 [20:04:32]MH_I2C_Read... [20:04:32]Read from MH i2c: E2 0B 00 [20:04:32]MH_I2C_Read... [20:04:32]Read from MH i2c: E2 0B 00 A7 5E 00 1F DC 9F 22 F8 AE 19 D7 90 00 D3 [20:04:32]RAPDU: 1F DC 9F 22 F8 AE 19 D7 90 00 [20:04:32]wFMCommunicate OK [20:04:32]SAM_PROTO_SignData done [20:04:32]FM_MakeSignedData done [20:04:32]CreateOFDProtocolMessage [20:04:32]wFMCommunicate request_size=4 [20:04:32]MH_SAM_APDU [20:04:32]CAPDU: 80 11 00 00 [20:04:32]Write to MH i2c: E2 08 00 A8 5E 80 11 00 00 00 00 00 00 80 [20:04:32]Write i2c OK [20:04:32]MH_I2C_Read... [20:04:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:04:32]Read from MH i2c: E2 [20:04:32]MH_I2C_Read... [20:04:32]Read from MH i2c: E2 17 00 [20:04:32]MH_I2C_Read... [20:04:32]Read from MH i2c: E2 17 00 A8 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 D0 [20:04:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:04:32]wFMCommunicate OK [20:04:32]CreateOFDProtocolMessage done [20:04:32]OFDSenderStorePacket 2115 [20:04:32]StoreOFDPacket docnum=2115 [20:04:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2E 01 00 00 50 3B 26 01 35 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 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 56 A4 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 43 08 00 00 35 04 06 00 9C 69 E2 B4 4E BD 1F DC 9F 22 F8 AE 19 D7 [20:04:32]CheckFolder [20:04:32]dirname=/storage/ofd_packets [20:04:32]CheckFolder done [20:04:32]ProducePacketName [20:04:32]name=ofd_packets/00002115 [20:04:32]NVStorageSaveData ofd_packets/00002115 [20:04:32]File name is /storage/ofd_packets/00002115 [20:04:32]Write 332 bytes [20:04:32]NVStorageSaveData done [20:04:32]OFDSenderStorePacket done [20:04:32]KKMCreateOFDPacket done [20:04:32]NVStorageSaveData kkm_last_timestamp [20:04:32]File name is /storage/kkm_last_timestamp [20:04:32]Write 4 bytes [20:04:32]NVStorageSaveData done [20:04:32]ExternCall_PrintAddStr [20:04:32]wPrintStart [20:04:32]Write to MH i2c: 01 00 00 A9 5E 07 [20:04:32]Write i2c OK [20:04:32]MH_I2C_Read... [20:04:32]Read from MH i2c: 01 [20:04:32]MH_I2C_Read... [20:04:32]Read from MH i2c: 01 07 00 [20:04:32]MH_I2C_Read... [20:04:32]Read from MH i2c: 01 07 00 A9 5E 00 00 00 00 00 FF 0F 1C [20:04:32]RasterBufferAndPrint [20:04:32]line Счет N : (3)126411 [20:04:32]line ИНН: 02508201610067 [20:04:32]line Контрольно-Кассовый Чек [20:04:32]line ПРОДАЖА [20:04:32]line Товар: 4700000480357 [20:04:32]line Пиво шахтерское 1л ПЭТ [20:04:32]line 1.000 * 170.00 [20:04:32]line = 170.00 [20:04:32]line НДС 12% НСП 1% [20:04:32]line > о реализуемом товаре [20:04:32]line ИТОГО: 170.00 [20:04:32]line НСП 1% : 1.50 [20:04:32]line НДС 12% : 18.05 [20:04:32]line Наличными: 170.00 [20:04:32]line Безнал.: 0.00 [20:04:32]line Место: АЗС № 127 "Партнер Нефть" [20:04:32]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [20:04:32]line СНО: Общий режим [20:04:32]line Чек 166 28.07.2024 20:04 [20:04:32]line Смена: 13 ФФД: 1.0 [20:04:32]line ЗНМ: 0300000161 [20:04:32]line РНМ: 0000000000189667 [20:04:32]line Версия ККМ: v1.0 [20:04:32]line ФМ: 0000000002094248 [20:04:32]line ФД: 2115 [20:04:32]line ФПД: 171978588966589 [20:04:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T200438&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2115&fm=171978588966589&tin=02508201610067®Number=0000000000189667&sum=17000 [20:04:33]line 0 [20:04:33]OFD Sender: Processing packet 2115 [packets to send 1, broken 0] [20:04:33]ProducePacketName [20:04:33]name=ofd_packets/00002115 [20:04:33]OFD Sender: To server: pG, [20:04:33]CommunicateWithHost lk.salyk.kg:30040 [20:04:33]ConnectInit lk.salyk.kg [20:04:33]written 0, free lines is 4095 [20:04:33]Connected sock=10 [20:04:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2E 01 00 00 50 3B 26 01 35 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 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 56 A4 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 43 08 00 00 35 04 06 00 9C 69 E2 B4 4E BD 1F DC 9F 22 F8 AE 19 D7 [20:04:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 87 C7 47 00 15 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 43 08 00 00 F4 03 04 00 C5 4F A6 66 B6 04 01 00 00 98 0E 14 5D 61 71 2D B2 [20:04:33]CommunicateWithHost err = 0 [20:04:33]CheckOFDResponse [20:04:33]1017 (14) - 77093643461234 [20:04:33]1041 (16) - 0000000002094248 [20:04:33]1040 (4) - 2115 [20:04:33]1012 (4) - 28.07.2024 14:03 [20:04:33]1206 (1) - 0 [20:04:33]OFD Sender: Remove packet 2115 [20:04:33]ProducePacketName [20:04:33]name=ofd_packets/00002115 [20:04:33]NVStorageDeleteData [20:04:33]Write to MH i2c: 01 00 00 D1 5E 2F [20:04:33]Write i2c OK [20:04:33]MH_I2C_Read... [20:04:33]Read from MH i2c: 01 [20:04:33]MH_I2C_Read... [20:04:33]Read from MH i2c: 01 07 00 [20:04:33]MH_I2C_Read... [20:04:33]Read from MH i2c: 01 07 00 D1 5E 00 00 00 00 00 14 0D 57 [20:04:33]RasterBufferAndPrint [20:04:33]line [20:04:33]line [20:04:33]line [20:04:33]line [20:04:33]line [20:04:33]written 0, free lines is 3354 [20:04:33]MH_Cut [20:04:33]Write to MH i2c: D1 01 00 D8 5E 01 08 [20:04:33]Write i2c OK [20:04:33]MH_I2C_Read... [20:04:33]Read from MH i2c: D1 [20:04:33]MH_I2C_Read... [20:04:33]Read from MH i2c: D1 01 00 [20:04:33]MH_I2C_Read... [20:04:33]Read from MH i2c: D1 01 00 D8 5E 00 07 [20:04:33]Write to MH i2c: 01 00 00 D9 5E 37 [20:04:33]Write i2c OK [20:04:33]MH_I2C_Read... [20:04:33]OFD Sender: No OFD packet to send [20:04:34]*** Cut start [20:04:34]*** Partial cut [20:04:34]*** CUTSNS_PIN = 1 [20:04:34]*** CUTSNS_PIN = 0 [20:04:34]*** Brake cut motor [20:04:34]Read from MH i2c: 01 [20:04:34]MH_I2C_Read... [20:04:34]*** Stop cut motor [20:04:34]*** Cut end [20:04:34]Read from MH i2c: 01 07 00 [20:04:34]MH_I2C_Read... [20:04:34]Read from MH i2c: 01 07 00 D9 5E 00 00 00 00 00 FF 0F 4C [20:04:34]process_action close_receipt done [20:04:34]requested_data is exist [20:04:34]produce_requested_data [20:04:34]requested_item fm.sn is exist - process it [20:04:34]wFMCommunicate request_size=4 [20:04:34]MH_SAM_APDU [20:04:34]CAPDU: 80 11 00 00 [20:04:34]Write to MH i2c: E2 08 00 DA 5E 80 11 00 00 00 00 00 00 B2 [20:04:34]Write i2c OK [20:04:34]MH_I2C_Read... [20:04:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:04:34]Read from MH i2c: E2 [20:04:34]MH_I2C_Read... [20:04:34]Read from MH i2c: E2 17 00 [20:04:34]MH_I2C_Read... [20:04:34]Read from MH i2c: E2 17 00 DA 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 02 [20:04:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:04:34]wFMCommunicate OK [20:04:34]requested_item fd.num is exist - process it [20:04:34]SAM_PROTO_GetFieldsCounters [20:04:34]wFMCommunicate request_size=4 [20:04:34]MH_SAM_APDU [20:04:34]CAPDU: 80 13 00 00 [20:04:34]Write to MH i2c: E2 08 00 DB 5E 80 13 00 00 00 00 00 00 B5 [20:04:34]Write i2c OK [20:04:34]MH_I2C_Read... [20:04:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:04:35]Read from MH i2c: E2 [20:04:35]MH_I2C_Read... [20:04:35]Read from MH i2c: E2 62 00 [20:04:35]MH_I2C_Read... [20:04:35]Read from MH i2c: E2 62 00 DB 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 43 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 29 [20:04:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 43 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:04:35]wFMCommunicate OK [20:04:35]SAM_PROTO_GetFieldsCounters done [20:04:35]requested_item shift.num is exist - process it [20:04:35]requested_item shift.opened is exist - process it [20:04:35]req_shift_opened [20:04:35]FM_GetShiftState [20:04:35]SAM_PROTO_GetShiftState [20:04:35]wFMCommunicate request_size=4 [20:04:35]MH_SAM_APDU [20:04:35]CAPDU: 80 13 01 00 [20:04:35]Write to MH i2c: E2 08 00 DC 5E 80 13 01 00 00 00 00 00 B7 [20:04:35]Write i2c OK [20:04:35]MH_I2C_Read... [20:04:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:04:35]Read from MH i2c: E2 [20:04:35]MH_I2C_Read... [20:04:35]Read from MH i2c: E2 0E 00 [20:04:35]MH_I2C_Read... [20:04:35]Read from MH i2c: E2 0E 00 DC 5E 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 AB [20:04:35]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [20:04:35]wFMCommunicate OK [20:04:35]SAM_PROTO_GetShiftState done [20:04:35]FM_GetShiftState done [20:04:35]req_shift_opened done [20:04:35]requested_item shift.open_date is exist - process it [20:04:35]req_shift_open_date [20:04:35]req_shift_open_date done [20:04:35]produce_requested_data done [20:04:35]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2115,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [20:04:35]process_action_free close_receipt [20:04:35]json_value_free [20:04:35]json_value_free done [20:04:35]process_json_proto returns [20:04:35]Send response to host [20:04:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2115,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [20:04:35]free response buf [20:04:35]execute_script done [20:04:35]execute_script returns [20:04:35]free content buf [20:04:35]Sock 8.Close socket [20:04:35]Sock 8.Thread stoped [20:04:38]OFD Sender: No OFD packet to send [20:04:43]OFD Sender: No OFD packet to send [20:04:48]OFD Sender: No OFD packet to send [20:04:53]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:04]accept exits with 9 [20:08:04]New connection [20:08:04]New thread 3067317604 created [20:08:04]Thread 3067460964 joined [20:08:04]Waiting for new connection... [20:08:04] Sock 9.Parse request [20:08:04]Sock 9.Check first char [20:08:04]Sock 9.First char is OK [20:08:04]request: POST /json_proto HTTP/1.0 [20:08:04]Method: POST [20:08:04]URL: /json_proto [20:08:04]Method is POST - this is cgi request [20:08:04]url: /json_proto [20:08:04]query_string will be loaded in cgi processing [20:08:04]execute_cgi json_proto POST (null) [20:08:04]execute_cgi path=json_proto method=POST [20:08:04]POST find Content-Length [20:08:04]Host: 172.17.45.132:8080 [20:08:04]Content-Length: 650 [20:08:04]Content-Type: application/json [20:08:04] [20:08:04]POST finish read [20:08:04]Found Content-Length = 650 [20:08:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126412", "tax_sys" : 0, "items" : [ { "code": "8591207777724", "name": "\u041F\u0440\u0435\u0437\u0435\u0440\u0432\u0430\u0442\u0438\u0432\u044B Datex 3\u0448\u0442", "price" : 143.00, "quantity" : 1.000, "sum" : 143.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 143.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:08:04]execute_script... [20:08: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)126412", "tax_sys" : 0, "items" : [ { "code": "8591207777724", "name": "\u041F\u0440\u0435\u0437\u0435\u0440\u0432\u0430\u0442\u0438\u0432\u044B Datex 3\u0448\u0442", "price" : 143.00, "quantity" : 1.000, "sum" : 143.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 143.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:08:04]POST & json_proto [20:08:04]process_json_proto [20:08:04]json parsed OK: [20:08:04]protocol is kg_v1.0 [20:08:04]action value=close_receipt [20:08:04]process_action close_receipt [20:08:04]cmd_close_receipt [20:08:04]MH_GetDate [20:08:04]Write to MH i2c: F0 00 00 DD 5E 2A [20:08:04]Write i2c OK [20:08:04]MH_I2C_Read... [20:08:04]Read from MH i2c: F0 [20:08:04]MH_I2C_Read... [20:08:04]Read from MH i2c: F0 09 00 [20:08:04]MH_I2C_Read... [20:08:04]Read from MH i2c: F0 09 00 DD 5E 00 2B A5 A6 66 E3 0B 90 66 F3 [20:08:04]GetLastDocTimeStamp 1722197078 [20:08:04]current date 1722197291 [20:08:04]FM_GetShiftState [20:08:04]SAM_PROTO_GetShiftState [20:08:04]wFMCommunicate request_size=4 [20:08:04]MH_SAM_APDU [20:08:04]CAPDU: 80 13 01 00 [20:08:04]Write to MH i2c: E2 08 00 DE 5E 80 13 01 00 00 00 00 00 B9 [20:08:04]Write i2c OK [20:08:04]MH_I2C_Read... [20:08:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:08:04]Read from MH i2c: E2 [20:08:04]MH_I2C_Read... [20:08:04]Read from MH i2c: E2 0E 00 [20:08:04]MH_I2C_Read... [20:08:04]Read from MH i2c: E2 0E 00 DE 5E 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 AD [20:08:04]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [20:08:04]wFMCommunicate OK [20:08:04]SAM_PROTO_GetShiftState done [20:08:04]FM_GetShiftState done [20:08:04]opened in 1722125648 [20:08:04]opened+sec_in_day 1722212048 [20:08:04]quantity*price = 14300 [20:08:04]sum+1 = 14301 [20:08:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 143.00 НСП 1% : 1.26 НДС 12% : 15.19 Наличными: 143.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 167 28.07.2024 20:08 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2116 ФПД: 64900210240903 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T200811&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2116&fm=64900210240903&tin=02508201610067®Number=0000000000189667&sum=14300 0 [20:08:05]StoreToDocumentArchive [20:08:05]shift 13 fd 2116 [20:08:05]save to /storage/0013/doc_00002116 [20:08:05]save last doc name /storage/0013/doc_00002116 to /storage/kkm_last_doc_name [20:08:05]save OK [20:08:05]Clear old archive folders... [20:08:05]ProcessDocumentItem done err = 0, tmpTLVsize=278 [20:08:05]tlvbuf is 02035D30 [20:08:05]SAM_PROTO_ClearQueue [20:08:05]wFMCommunicate request_size=4 [20:08:05]MH_SAM_APDU [20:08:05]CAPDU: 80 09 00 00 [20:08:05]Write to MH i2c: E2 08 00 EB 5E 80 09 00 00 00 00 00 00 BB [20:08:05]Write i2c OK [20:08:05]MH_I2C_Read... [20:08:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:08:05]Read from MH i2c: E2 [20:08:05]MH_I2C_Read... [20:08:05]Read from MH i2c: E2 03 00 [20:08:05]MH_I2C_Read... [20:08:05]Read from MH i2c: E2 03 00 EB 5E 00 90 00 BD [20:08:05]RAPDU: 90 00 [20:08:05]wFMCommunicate OK [20:08:05]SAM_PROTO_ClearQueue done [20:08:05]KKMCreateOFDPacket [20:08:05]OFDProtocolAddRootSTLVToBuf [20:08:05]FM_MakeSignedData [20:08:05]FM_MakeSignedData [20:08:05]SAM_PROTO_SignData [20:08:05]wFMCommunicate request_size=4 [20:08:05]MH_SAM_APDU [20:08:05]CAPDU: 80 0D 01 02 [20:08:05]Write to MH i2c: E2 08 00 EC 5E 80 0D 01 02 00 00 00 00 C3 [20:08:05]Write i2c OK [20:08:05]MH_I2C_Read... [20:08:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:08:05]Read from MH i2c: E2 [20:08:05]MH_I2C_Read... [20:08:05]Read from MH i2c: E2 03 00 [20:08:05]MH_I2C_Read... [20:08:05]Read from MH i2c: E2 03 00 EC 5E 00 90 00 BE [20:08:05]RAPDU: 90 00 [20:08:05]wFMCommunicate OK [20:08:05]wFMCommunicate request_size=255 [20:08:05]MH_SAM_APDU [20:08:05]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 38 35 39 31 32 30 37 37 37 37 37 32 34 06 04 24 00 D0 9F D1 80 D0 B5 D0 B7 D0 B5 D1 80 D0 B2 D0 B0 D1 82 D0 B8 D0 B2 D1 8B 20 44 61 74 65 78 20 33 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 05 00 00 00 00 07 04 06 00 DC 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 2B A5 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 [20:08:05]Write to MH i2c: E2 02 01 ED 5E 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 38 35 39 31 32 30 37 37 37 37 37 32 34 06 04 24 00 D0 9F D1 80 D0 B5 D0 B7 D0 B5 D1 80 D0 B2 D0 B0 D1 82 D0 B8 D0 B2 D1 8B 20 44 61 74 65 78 20 33 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 05 00 00 00 00 07 04 06 00 DC 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 2B A5 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 00 00 03 [20:08:05]Write i2c OK [20:08:05]MH_I2C_Read... [20:08:05]Read from MH i2c: E2 [20:08:05]MH_I2C_Read... [20:08:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:08:05]Read from MH i2c: E2 03 00 [20:08:05]MH_I2C_Read... [20:08:05]Read from MH i2c: E2 03 00 ED 5E 00 90 00 BF [20:08:05]RAPDU: 90 00 [20:08:05]wFMCommunicate OK [20:08:05]wFMCommunicate request_size=37 [20:08:05]MH_SAM_APDU [20:08:05]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 44 08 00 00 35 04 06 00 3B 06 C1 FA 2D 87 [20:08:05]Write to MH i2c: E2 28 00 EE 5E 80 0D 02 02 20 00 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 44 08 00 00 35 04 06 00 3B 06 C1 FA 2D 87 00 00 16 [20:08:05]Write i2c OK [20:08:05]MH_I2C_Read... [20:08:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:08:05]Read from MH i2c: E2 [20:08:05]MH_I2C_Read... [20:08:05]Read from MH i2c: E2 03 00 [20:08:05]MH_I2C_Read... [20:08:05]Read from MH i2c: E2 03 00 EE 5E 00 90 00 C0 [20:08:05]RAPDU: 90 00 [20:08:05]wFMCommunicate OK [20:08:05]wFMCommunicate request_size=4 [20:08:05]MH_SAM_APDU [20:08:05]CAPDU: 80 0D 03 02 [20:08:05]Write to MH i2c: E2 08 00 EF 5E 80 0D 03 02 00 00 00 00 C8 [20:08:05]Write i2c OK [20:08:05]MH_I2C_Read... [20:08:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:08:05]Read from MH i2c: E2 [20:08:05]MH_I2C_Read... [20:08:05]Read from MH i2c: E2 0B 00 [20:08:05]MH_I2C_Read... [20:08:05]Read from MH i2c: E2 0B 00 EF 5E 00 5D 91 7E 52 CE 06 0A D8 90 00 3D [20:08:05]RAPDU: 5D 91 7E 52 CE 06 0A D8 90 00 [20:08:05]wFMCommunicate OK [20:08:05]SAM_PROTO_SignData done [20:08:05]FM_MakeSignedData done [20:08:05]CreateOFDProtocolMessage [20:08:05]wFMCommunicate request_size=4 [20:08:05]MH_SAM_APDU [20:08:05]CAPDU: 80 11 00 00 [20:08:05]Write to MH i2c: E2 08 00 F0 5E 80 11 00 00 00 00 00 00 C8 [20:08:05]Write i2c OK [20:08:05]MH_I2C_Read... [20:08:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:08:05]Read from MH i2c: E2 [20:08:05]MH_I2C_Read... [20:08:05]Read from MH i2c: E2 17 00 [20:08:05]MH_I2C_Read... [20:08:05]Read from MH i2c: E2 17 00 F0 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 18 [20:08:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:08:05]wFMCommunicate OK [20:08:05]CreateOFDProtocolMessage done [20:08:05]OFDSenderStorePacket 2116 [20:08:05]StoreOFDPacket docnum=2116 [20:08:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2A 01 00 00 EA 51 22 01 67 88 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 38 35 39 31 32 30 37 37 37 37 37 32 34 06 04 24 00 D0 9F D1 80 D0 B5 D0 B7 D0 B5 D1 80 D0 B2 D0 B0 D1 82 D0 B8 D0 B2 D1 8B 20 44 61 74 65 78 20 33 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 05 00 00 00 00 07 04 06 00 DC 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 2B A5 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 44 08 00 00 35 04 06 00 3B 06 C1 FA 2D 87 5D 91 7E 52 CE 06 0A D8 [20:08:05]CheckFolder [20:08:05]dirname=/storage/ofd_packets [20:08:05]CheckFolder done [20:08:05]ProducePacketName [20:08:05]name=ofd_packets/00002116 [20:08:05]NVStorageSaveData ofd_packets/00002116 [20:08:05]File name is /storage/ofd_packets/00002116 [20:08:05]Write 328 bytes [20:08:05]NVStorageSaveData done [20:08:05]OFDSenderStorePacket done [20:08:05]KKMCreateOFDPacket done [20:08:05]NVStorageSaveData kkm_last_timestamp [20:08:05]File name is /storage/kkm_last_timestamp [20:08:05]Write 4 bytes [20:08:05]NVStorageSaveData done [20:08:05]ExternCall_PrintAddStr [20:08:05]wPrintStart [20:08:05]Write to MH i2c: 01 00 00 F1 5E 4F [20:08:05]Write i2c OK [20:08:05]MH_I2C_Read... [20:08:05]Read from MH i2c: 01 [20:08:05]MH_I2C_Read... [20:08:05]Read from MH i2c: 01 07 00 [20:08:05]MH_I2C_Read... [20:08:05]Read from MH i2c: 01 07 00 F1 5E 00 00 00 00 00 FF 0F 64 [20:08:05]RasterBufferAndPrint [20:08:05]line Счет N : (3)126412 [20:08:05]line ИНН: 02508201610067 [20:08:05]line Контрольно-Кассовый Чек [20:08:05]line ПРОДАЖА [20:08:05]line Товар: 8591207777724 [20:08:05]line Презервативы Datex 3шт [20:08:05]line 1.000 * 143.00 [20:08:05]line = 143.00 [20:08:05]line НДС 12% НСП 1% [20:08:05]line > о реализуемом товаре [20:08:05]line ИТОГО: 143.00 [20:08:05]line НСП 1% : 1.26 [20:08:05]line НДС 12% : 15.19 [20:08:05]line Наличными: 143.00 [20:08:05]line Безнал.: 0.00 [20:08:05]line Место: АЗС № 127 "Партнер Нефть" [20:08:05]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [20:08:05]line СНО: Общий режим [20:08:05]line Чек 167 28.07.2024 20:08 [20:08:05]line Смена: 13 ФФД: 1.0 [20:08:05]line ЗНМ: 0300000161 [20:08:05]line РНМ: 0000000000189667 [20:08:05]line Версия ККМ: v1.0 [20:08:05]line ФМ: 0000000002094248 [20:08:05]line ФД: 2116 [20:08:05]line ФПД: 64900210240903 [20:08:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T200811&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2116&fm=64900210240903&tin=02508201610067®Number=0000000000189667&sum=14300 [20:08:06]line 0 [20:08:06]OFD Sender: Processing packet 2116 [packets to send 1, broken 0] [20:08:06]ProducePacketName [20:08:06]name=ofd_packets/00002116 [20:08:06]OFD Sender: To server: pG, [20:08:06]CommunicateWithHost lk.salyk.kg:30040 [20:08:06]ConnectInit lk.salyk.kg [20:08:06]written 0, free lines is 4095 [20:08:06]Connected sock=10 [20:08:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2A 01 00 00 EA 51 22 01 67 88 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 38 35 39 31 32 30 37 37 37 37 37 32 34 06 04 24 00 D0 9F D1 80 D0 B5 D0 B7 D0 B5 D1 80 D0 B2 D0 B0 D1 82 D0 B8 D0 B2 D1 8B 20 44 61 74 65 78 20 33 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 05 00 00 00 00 07 04 06 00 DC 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 2B A5 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 44 08 00 00 35 04 06 00 3B 06 C1 FA 2D 87 5D 91 7E 52 CE 06 0A D8 [20:08:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 29 C9 47 00 7F 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 32 30 39 34 32 34 38 10 04 04 00 44 08 00 00 F4 03 04 00 9A 50 A6 66 B6 04 01 00 00 FE 4C D9 A4 44 35 D9 56 [20:08:06]CommunicateWithHost err = 0 [20:08:06]CheckOFDResponse [20:08:06]1017 (14) - 77093643461234 [20:08:06]1041 (16) - 0000000002094248 [20:08:06]1040 (4) - 2116 [20:08:06]1012 (4) - 28.07.2024 14:07 [20:08:06]1206 (1) - 0 [20:08:06]OFD Sender: Remove packet 2116 [20:08:06]ProducePacketName [20:08:06]name=ofd_packets/00002116 [20:08:06]NVStorageDeleteData [20:08:06]Write to MH i2c: 01 00 00 19 5F 78 [20:08:06]Write i2c OK [20:08:06]MH_I2C_Read... [20:08:06]Read from MH i2c: 01 [20:08:06]MH_I2C_Read... [20:08:06]Read from MH i2c: 01 07 00 [20:08:06]MH_I2C_Read... [20:08:06]Read from MH i2c: 01 07 00 19 5F 00 00 00 00 00 20 0D AC [20:08:06]RasterBufferAndPrint [20:08:06]line [20:08:06]line [20:08:06]line [20:08:06]line [20:08:06]line [20:08:06]written 0, free lines is 3366 [20:08:06]MH_Cut [20:08:06]Write to MH i2c: D1 01 00 20 5F 01 51 [20:08:06]Write i2c OK [20:08:06]MH_I2C_Read... [20:08:06]Read from MH i2c: D1 [20:08:06]MH_I2C_Read... [20:08:06]Read from MH i2c: D1 01 00 [20:08:06]MH_I2C_Read... [20:08:06]Read from MH i2c: D1 01 00 20 5F 00 50 [20:08:06]Write to MH i2c: 01 00 00 21 5F 80 [20:08:06]Write i2c OK [20:08:06]MH_I2C_Read... [20:08:07]OFD Sender: No OFD packet to send [20:08:07]*** Cut start [20:08:07]*** Partial cut [20:08:07]*** CUTSNS_PIN = 1 [20:08:07]*** CUTSNS_PIN = 0 [20:08:07]*** Brake cut motor [20:08:07]Read from MH i2c: 01 [20:08:07]MH_I2C_Read... [20:08:07]*** Stop cut motor [20:08:07]*** Cut end [20:08:07]Read from MH i2c: 01 07 00 [20:08:07]MH_I2C_Read... [20:08:07]Read from MH i2c: 01 07 00 21 5F 00 00 00 00 00 FF 0F 95 [20:08:07]process_action close_receipt done [20:08:07]requested_data is exist [20:08:07]produce_requested_data [20:08:07]requested_item fm.sn is exist - process it [20:08:07]wFMCommunicate request_size=4 [20:08:07]MH_SAM_APDU [20:08:07]CAPDU: 80 11 00 00 [20:08:07]Write to MH i2c: E2 08 00 22 5F 80 11 00 00 00 00 00 00 FB [20:08:07]Write i2c OK [20:08:07]MH_I2C_Read... [20:08:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:08:07]Read from MH i2c: E2 [20:08:07]MH_I2C_Read... [20:08:07]Read from MH i2c: E2 17 00 [20:08:07]MH_I2C_Read... [20:08:07]Read from MH i2c: E2 17 00 22 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 4B [20:08:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:08:07]wFMCommunicate OK [20:08:07]requested_item fd.num is exist - process it [20:08:07]SAM_PROTO_GetFieldsCounters [20:08:07]wFMCommunicate request_size=4 [20:08:07]MH_SAM_APDU [20:08:07]CAPDU: 80 13 00 00 [20:08:07]Write to MH i2c: E2 08 00 23 5F 80 13 00 00 00 00 00 00 FE [20:08:07]Write i2c OK [20:08:07]MH_I2C_Read... [20:08:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:08:08]Read from MH i2c: E2 [20:08:08]MH_I2C_Read... [20:08:08]Read from MH i2c: E2 62 00 [20:08:08]MH_I2C_Read... [20:08:08]Read from MH i2c: E2 62 00 23 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 44 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 76 [20:08:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 44 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:08:08]wFMCommunicate OK [20:08:08]SAM_PROTO_GetFieldsCounters done [20:08:08]requested_item shift.num is exist - process it [20:08:08]requested_item shift.opened is exist - process it [20:08:08]req_shift_opened [20:08:08]FM_GetShiftState [20:08:08]SAM_PROTO_GetShiftState [20:08:08]wFMCommunicate request_size=4 [20:08:08]MH_SAM_APDU [20:08:08]CAPDU: 80 13 01 00 [20:08:08]Write to MH i2c: E2 08 00 24 5F 80 13 01 00 00 00 00 00 00 [20:08:08]Write i2c OK [20:08:08]MH_I2C_Read... [20:08:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:08:08]Read from MH i2c: E2 [20:08:08]MH_I2C_Read... [20:08:08]Read from MH i2c: E2 0E 00 [20:08:08]MH_I2C_Read... [20:08:08]Read from MH i2c: E2 0E 00 24 5F 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 F4 [20:08:08]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [20:08:08]wFMCommunicate OK [20:08:08]SAM_PROTO_GetShiftState done [20:08:08]FM_GetShiftState done [20:08:08]req_shift_opened done [20:08:08]requested_item shift.open_date is exist - process it [20:08:08]req_shift_open_date [20:08:08]req_shift_open_date done [20:08:08]produce_requested_data done [20:08:08]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2116,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [20:08:08]process_action_free close_receipt [20:08:08]json_value_free [20:08:08]json_value_free done [20:08:08]process_json_proto returns [20:08:08]Send response to host [20:08:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2116,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [20:08:08]free response buf [20:08:08]execute_script done [20:08:08]execute_script returns [20:08:08]free content buf [20:08:08]Sock 9.Close socket [20:08:08]Sock 9.Thread stoped [20:08:12]OFD Sender: No OFD packet to send [20:08:17]OFD Sender: No OFD packet to send [20:08:22]OFD Sender: No OFD packet to send [20:08:27]OFD Sender: No OFD packet to send [20:08:32]OFD Sender: No OFD packet to send [20:08:37]OFD Sender: No OFD packet to send [20:08:42]OFD Sender: No OFD packet to send [20:08:47]OFD Sender: No OFD packet to send [20:08:52]OFD Sender: No OFD packet to send [20:08:57]OFD Sender: No OFD packet to send [20:09:02]OFD Sender: No OFD packet to send [20:09:07]OFD Sender: No OFD packet to send [20:09:12]OFD Sender: No OFD packet to send [20:09:17]OFD Sender: No OFD packet to send [20:09:22]OFD Sender: No OFD packet to send [20:09:27]OFD Sender: No OFD packet to send [20:09:28]accept exits with 8 [20:09:28]New connection [20:09:28]New thread 3067460964 created [20:09:28]Thread 3067317604 joined [20:09:28]Waiting for new connection... [20:09:28] Sock 8.Parse request [20:09:28]Sock 8.Check first char [20:09:28]Sock 8.First char is OK [20:09:28]request: POST /json_proto HTTP/1.0 [20:09:28]Method: POST [20:09:28]URL: /json_proto [20:09:28]Method is POST - this is cgi request [20:09:28]url: /json_proto [20:09:28]query_string will be loaded in cgi processing [20:09:28]execute_cgi json_proto POST (null) [20:09:28]execute_cgi path=json_proto method=POST [20:09:28]POST find Content-Length [20:09:28]Host: 172.17.45.132:8080 [20:09:28]Content-Length: 711 [20:09:28]Content-Type: application/json [20:09:28] [20:09:28]POST finish read [20:09:28]Found Content-Length = 711 [20:09:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126413", "tax_sys" : 0, "items" : [ { "code": "4870202521216", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0437\u0435\u043B.\u043B\u0438\u043C\u043E\u043D (\u043D\u043E\u0432\u044B\u0439)", "price" : 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:09:28]execute_script... [20:09: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)126413", "tax_sys" : 0, "items" : [ { "code": "4870202521216", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0437\u0435\u043B.\u043B\u0438\u043C\u043E\u043D (\u043D\u043E\u0432\u044B\u0439)", "price" : 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:09:28]POST & json_proto [20:09:28]process_json_proto [20:09:28]json parsed OK: [20:09:28]protocol is kg_v1.0 [20:09:28]action value=close_receipt [20:09:28]process_action close_receipt [20:09:28]cmd_close_receipt [20:09:28]MH_GetDate [20:09:28]Write to MH i2c: F0 00 00 25 5F 73 [20:09:28]Write i2c OK [20:09:28]MH_I2C_Read... [20:09:28]Read from MH i2c: F0 [20:09:28]MH_I2C_Read... [20:09:28]Read from MH i2c: F0 09 00 [20:09:28]MH_I2C_Read... [20:09:28]Read from MH i2c: F0 09 00 25 5F 00 7F A5 A6 66 E3 0B 90 66 90 [20:09:28]GetLastDocTimeStamp 1722197291 [20:09:28]current date 1722197375 [20:09:28]FM_GetShiftState [20:09:28]SAM_PROTO_GetShiftState [20:09:28]wFMCommunicate request_size=4 [20:09:28]MH_SAM_APDU [20:09:28]CAPDU: 80 13 01 00 [20:09:28]Write to MH i2c: E2 08 00 26 5F 80 13 01 00 00 00 00 00 02 [20:09:28]Write i2c OK [20:09:28]MH_I2C_Read... [20:09:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:09:28]Read from MH i2c: E2 [20:09:28]MH_I2C_Read... [20:09:28]Read from MH i2c: E2 0E 00 [20:09:28]MH_I2C_Read... [20:09:28]Read from MH i2c: E2 0E 00 26 5F 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 F6 [20:09:28]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [20:09:28]wFMCommunicate OK [20:09:28]SAM_PROTO_GetShiftState done [20:09:28]FM_GetShiftState done [20:09:28]opened in 1722125648 [20:09:28]opened+sec_in_day 1722212048 [20:09:28]quantity*price = 11000 [20:09:28]sum+1 = 11001 [20:09:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 168 28.07.2024 20:09 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2117 ФПД: 280933578194184 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T200935&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2117&fm=280933578194184&tin=02508201610067®Number=0000000000189667&sum=11000 0 [20:09:29]StoreToDocumentArchive [20:09:29]shift 13 fd 2117 [20:09:29]save to /storage/0013/doc_00002117 [20:09:29]save last doc name /storage/0013/doc_00002117 to /storage/kkm_last_doc_name [20:09:29]save OK [20:09:29]Clear old archive folders... [20:09:29]ProcessDocumentItem done err = 0, tmpTLVsize=303 [20:09:29]tlvbuf is 0217C6B0 [20:09:29]SAM_PROTO_ClearQueue [20:09:29]wFMCommunicate request_size=4 [20:09:29]MH_SAM_APDU [20:09:29]CAPDU: 80 09 00 00 [20:09:29]Write to MH i2c: E2 08 00 33 5F 80 09 00 00 00 00 00 00 04 [20:09:29]Write i2c OK [20:09:29]MH_I2C_Read... [20:09:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:09:29]Read from MH i2c: E2 [20:09:29]MH_I2C_Read... [20:09:29]Read from MH i2c: E2 03 00 [20:09:29]MH_I2C_Read... [20:09:29]Read from MH i2c: E2 03 00 33 5F 00 90 00 06 [20:09:29]RAPDU: 90 00 [20:09:29]wFMCommunicate OK [20:09:29]SAM_PROTO_ClearQueue done [20:09:29]KKMCreateOFDPacket [20:09:29]OFDProtocolAddRootSTLVToBuf [20:09:29]FM_MakeSignedData [20:09:29]FM_MakeSignedData [20:09:29]SAM_PROTO_SignData [20:09:29]wFMCommunicate request_size=4 [20:09:29]MH_SAM_APDU [20:09:29]CAPDU: 80 0D 01 02 [20:09:29]Write to MH i2c: E2 08 00 34 5F 80 0D 01 02 00 00 00 00 0C [20:09:29]Write i2c OK [20:09:29]MH_I2C_Read... [20:09:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:09:29]Read from MH i2c: E2 [20:09:29]MH_I2C_Read... [20:09:29]Read from MH i2c: E2 03 00 [20:09:29]MH_I2C_Read... [20:09:29]Read from MH i2c: E2 03 00 34 5F 00 90 00 07 [20:09:29]RAPDU: 90 00 [20:09:29]wFMCommunicate OK [20:09:29]wFMCommunicate request_size=255 [20:09:29]MH_SAM_APDU [20:09:29]CAPDU: 80 0D 02 02 FA 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 A8 00 00 00 F4 03 04 00 7F A5 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D [20:09:29]Write to MH i2c: E2 02 01 35 5F 80 0D 02 02 FA 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 A8 00 00 00 F4 03 04 00 7F A5 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 00 00 E1 [20:09:29]Write i2c OK [20:09:29]MH_I2C_Read... [20:09:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:09:29]Read from MH i2c: E2 [20:09:29]MH_I2C_Read... [20:09:29]Read from MH i2c: E2 03 00 [20:09:29]MH_I2C_Read... [20:09:29]Read from MH i2c: E2 03 00 35 5F 00 90 00 08 [20:09:29]RAPDU: 90 00 [20:09:29]wFMCommunicate OK [20:09:29]wFMCommunicate request_size=62 [20:09:29]MH_SAM_APDU [20:09:29]CAPDU: 80 0D 02 02 39 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 45 08 00 00 35 04 06 00 FF 81 F2 22 3D 08 [20:09:29]Write to MH i2c: E2 41 00 36 5F 80 0D 02 02 39 00 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 45 08 00 00 35 04 06 00 FF 81 F2 22 3D 08 00 00 79 [20:09:29]Write i2c OK [20:09:29]MH_I2C_Read... [20:09:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:09:29]Read from MH i2c: E2 [20:09:29]MH_I2C_Read... [20:09:29]Read from MH i2c: E2 03 00 [20:09:29]MH_I2C_Read... [20:09:29]Read from MH i2c: E2 03 00 36 5F 00 90 00 09 [20:09:29]RAPDU: 90 00 [20:09:29]wFMCommunicate OK [20:09:29]wFMCommunicate request_size=4 [20:09:29]MH_SAM_APDU [20:09:29]CAPDU: 80 0D 03 02 [20:09:29]Write to MH i2c: E2 08 00 37 5F 80 0D 03 02 00 00 00 00 11 [20:09:29]Write i2c OK [20:09:29]MH_I2C_Read... [20:09:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:09:29]Read from MH i2c: E2 [20:09:29]MH_I2C_Read... [20:09:29]Read from MH i2c: E2 0B 00 [20:09:29]MH_I2C_Read... [20:09:29]Read from MH i2c: E2 0B 00 37 5F 00 B0 9C 33 4C 21 BB E3 8A 90 00 26 [20:09:29]RAPDU: B0 9C 33 4C 21 BB E3 8A 90 00 [20:09:29]wFMCommunicate OK [20:09:29]SAM_PROTO_SignData done [20:09:29]FM_MakeSignedData done [20:09:29]CreateOFDProtocolMessage [20:09:29]wFMCommunicate request_size=4 [20:09:29]MH_SAM_APDU [20:09:29]CAPDU: 80 11 00 00 [20:09:29]Write to MH i2c: E2 08 00 38 5F 80 11 00 00 00 00 00 00 11 [20:09:29]Write i2c OK [20:09:29]MH_I2C_Read... [20:09:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:09:29]Read from MH i2c: E2 [20:09:29]MH_I2C_Read... [20:09:29]Read from MH i2c: E2 17 00 [20:09:29]MH_I2C_Read... [20:09:29]Read from MH i2c: E2 17 00 38 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 61 [20:09:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:09:29]wFMCommunicate OK [20:09:29]CreateOFDProtocolMessage done [20:09:29]OFDSenderStorePacket 2117 [20:09:29]StoreOFDPacket docnum=2117 [20:09:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 43 01 00 00 B8 2B 3B 01 04 C5 5A 03 01 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 A8 00 00 00 F4 03 04 00 7F A5 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 45 08 00 00 35 04 06 00 FF 81 F2 22 3D 08 B0 9C 33 4C 21 BB E3 8A [20:09:29]CheckFolder [20:09:29]dirname=/storage/ofd_packets [20:09:29]CheckFolder done [20:09:29]ProducePacketName [20:09:29]name=ofd_packets/00002117 [20:09:29]NVStorageSaveData ofd_packets/00002117 [20:09:29]File name is /storage/ofd_packets/00002117 [20:09:29]Write 353 bytes [20:09:29]NVStorageSaveData done [20:09:29]OFDSenderStorePacket done [20:09:29]KKMCreateOFDPacket done [20:09:29]NVStorageSaveData kkm_last_timestamp [20:09:29]File name is /storage/kkm_last_timestamp [20:09:29]Write 4 bytes [20:09:29]NVStorageSaveData done [20:09:29]ExternCall_PrintAddStr [20:09:29]wPrintStart [20:09:29]Write to MH i2c: 01 00 00 39 5F 98 [20:09:29]OFD Sender: Processing packet 2117 [packets to send 1, broken 0] [20:09:29]ProducePacketName [20:09:29]name=ofd_packets/00002117 [20:09:29]OFD Sender: To server: pG, [20:09:29]CommunicateWithHost lk.salyk.kg:30040 [20:09:29]ConnectInit lk.salyk.kg [20:09:29]Write i2c OK [20:09:29]MH_I2C_Read... [20:09:29]Read from MH i2c: 01 [20:09:29]MH_I2C_Read... [20:09:29]Read from MH i2c: 01 07 00 [20:09:29]MH_I2C_Read... [20:09:29]Read from MH i2c: 01 07 00 39 5F 00 00 00 00 00 FF 0F AD [20:09:29]RasterBufferAndPrint [20:09:29]line Счет N : (3)126413 [20:09:29]line ИНН: 02508201610067 [20:09:29]line Контрольно-Кассовый Чек [20:09:29]line ПРОДАЖА [20:09:29]line Товар: 4870202521216 [20:09:29]line Напиток MAXI чай 1,2 зел.лимон (новый) [20:09:29]line 1.000 * 110.00 [20:09:29]line = 110.00 [20:09:29]line НДС 12% НСП 1% [20:09:29]line > о реализуемом товаре [20:09:29]line ИТОГО: 110.00 [20:09:29]line НСП 1% : 0.97 [20:09:29]line НДС 12% : 11.68 [20:09:29]line Наличными: 110.00 [20:09:29]line Безнал.: 0.00 [20:09:29]line Место: АЗС № 127 "Партнер Нефть" [20:09:29]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [20:09:29]line СНО: Общий режим [20:09:29]line Чек 168 28.07.2024 20:09 [20:09:29]line Смена: 13 ФФД: 1.0 [20:09:29]line ЗНМ: 0300000161 [20:09:30]line РНМ: 0000000000189667 [20:09:30]line Версия ККМ: v1.0 [20:09:30]line ФМ: 0000000002094248 [20:09:30]line ФД: 2117 [20:09:30]line ФПД: 280933578194184 [20:09:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T200935&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2117&fm=280933578194184&tin=02508201610067®Number=0000000000189667&sum=11000 [20:09:30]line 0 [20:09:30]written 0, free lines is 4095 [20:09:30]Write to MH i2c: 01 00 00 62 5F C1 [20:09:30]Write i2c OK [20:09:30]MH_I2C_Read... [20:09:30]Read from MH i2c: 01 [20:09:30]MH_I2C_Read... [20:09:30]Read from MH i2c: 01 07 00 [20:09:30]MH_I2C_Read... [20:09:30]Read from MH i2c: 01 07 00 62 5F 00 00 00 00 00 01 0D D6 [20:09:30]RasterBufferAndPrint [20:09:30]line [20:09:30]line [20:09:30]line [20:09:30]line [20:09:30]line [20:09:30]written 0, free lines is 3335 [20:09:30]MH_Cut [20:09:30]Write to MH i2c: D1 01 00 69 5F 01 9A [20:09:30]Write i2c OK [20:09:30]MH_I2C_Read... [20:09:30]Read from MH i2c: D1 [20:09:30]MH_I2C_Read... [20:09:30]Read from MH i2c: D1 01 00 [20:09:30]MH_I2C_Read... [20:09:30]Read from MH i2c: D1 01 00 69 5F 00 99 [20:09:30]Write to MH i2c: 01 00 00 6A 5F C9 [20:09:30]Write i2c OK [20:09:30]MH_I2C_Read... [20:09:31]*** Cut start [20:09:31]*** Partial cut [20:09:31]*** CUTSNS_PIN = 1 [20:09:31]*** CUTSNS_PIN = 0 [20:09:31]*** Brake cut motor [20:09:31]Read from MH i2c: 01 [20:09:32]MH_I2C_Read... [20:09:32]*** Stop cut motor [20:09:32]*** Cut end [20:09:32]Read from MH i2c: 01 07 00 [20:09:32]MH_I2C_Read... [20:09:32]Read from MH i2c: 01 07 00 6A 5F 00 00 00 00 00 FF 0F DE [20:09:32]process_action close_receipt done [20:09:32]requested_data is exist [20:09:32]produce_requested_data [20:09:32]requested_item fm.sn is exist - process it [20:09:32]wFMCommunicate request_size=4 [20:09:32]MH_SAM_APDU [20:09:32]CAPDU: 80 11 00 00 [20:09:32]Write to MH i2c: E2 08 00 6B 5F 80 11 00 00 00 00 00 00 44 [20:09:32]Write i2c OK [20:09:32]MH_I2C_Read... [20:09:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:09:32]Read from MH i2c: E2 [20:09:32]MH_I2C_Read... [20:09:32]Read from MH i2c: E2 17 00 [20:09:32]MH_I2C_Read... [20:09:32]Read from MH i2c: E2 17 00 6B 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 94 [20:09:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:09:32]wFMCommunicate OK [20:09:32]requested_item fd.num is exist - process it [20:09:32]SAM_PROTO_GetFieldsCounters [20:09:32]wFMCommunicate request_size=4 [20:09:32]MH_SAM_APDU [20:09:32]CAPDU: 80 13 00 00 [20:09:32]Write to MH i2c: E2 08 00 6C 5F 80 13 00 00 00 00 00 00 47 [20:09:32]Write i2c OK [20:09:32]MH_I2C_Read... [20:09:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:09:32]Read from MH i2c: E2 [20:09:32]MH_I2C_Read... [20:09:32]Read from MH i2c: E2 62 00 [20:09:32]MH_I2C_Read... [20:09:32]Read from MH i2c: E2 62 00 6C 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 45 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 C3 [20:09:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 45 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:09:32]wFMCommunicate OK [20:09:32]SAM_PROTO_GetFieldsCounters done [20:09:32]requested_item shift.num is exist - process it [20:09:32]requested_item shift.opened is exist - process it [20:09:32]req_shift_opened [20:09:32]FM_GetShiftState [20:09:32]SAM_PROTO_GetShiftState [20:09:32]wFMCommunicate request_size=4 [20:09:32]MH_SAM_APDU [20:09:32]CAPDU: 80 13 01 00 [20:09:32]Write to MH i2c: E2 08 00 6D 5F 80 13 01 00 00 00 00 00 49 [20:09:32]Write i2c OK [20:09:32]MH_I2C_Read... [20:09:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:09:32]Read from MH i2c: E2 [20:09:32]MH_I2C_Read... [20:09:32]Read from MH i2c: E2 0E 00 [20:09:32]MH_I2C_Read... [20:09:32]Read from MH i2c: E2 0E 00 6D 5F 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 3D [20:09:32]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [20:09:32]wFMCommunicate OK [20:09:32]SAM_PROTO_GetShiftState done [20:09:32]FM_GetShiftState done [20:09:32]req_shift_opened done [20:09:32]requested_item shift.open_date is exist - process it [20:09:32]req_shift_open_date [20:09:32]req_shift_open_date done [20:09:32]produce_requested_data done [20:09:32]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2117,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [20:09:32]process_action_free close_receipt [20:09:32]json_value_free [20:09:32]json_value_free done [20:09:32]process_json_proto returns [20:09:32]Send response to host [20:09:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2117,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [20:09:32]free response buf [20:09:32]execute_script done [20:09:32]execute_script returns [20:09:32]free content buf [20:09:32]Sock 8.Close socket [20:09:32]Sock 8.Thread stoped [20:09:34]ConnectInit Can't take IP for lk.salyk.kg [20:09:34]CommunicateWithHost connect error [20:09:34]CommunicateWithHost err = -1 [20:09:34]OFD Sender: Server communicate error [20:09:39]OFD Sender: Processing packet 2117 [packets to send 1, broken 0] [20:09:39]ProducePacketName [20:09:39]name=ofd_packets/00002117 [20:09:39]OFD Sender: To server: pG, [20:09:39]CommunicateWithHost lk.salyk.kg:30040 [20:09:39]ConnectInit lk.salyk.kg [20:09:44]ConnectInit Can't take IP for lk.salyk.kg [20:09:44]CommunicateWithHost connect error [20:09:44]CommunicateWithHost err = -1 [20:09:44]OFD Sender: Server communicate error [20:09:49]OFD Sender: Processing packet 2117 [packets to send 1, broken 0] [20:09:49]ProducePacketName [20:09:49]name=ofd_packets/00002117 [20:09:49]OFD Sender: To server: pG, [20:09:49]CommunicateWithHost lk.salyk.kg:30040 [20:09:49]ConnectInit lk.salyk.kg [20:09:53]Connected sock=9 [20:09:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 43 01 00 00 B8 2B 3B 01 04 C5 5A 03 01 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 A8 00 00 00 F4 03 04 00 7F A5 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 45 08 00 00 35 04 06 00 FF 81 F2 22 3D 08 B0 9C 33 4C 21 BB E3 8A [20:09:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 DC 27 47 00 F2 A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 45 08 00 00 F4 03 04 00 05 51 A6 66 B6 04 01 00 00 65 C2 1F FF 40 E8 0A E0 [20:09:54]CommunicateWithHost err = 0 [20:09:54]CheckOFDResponse [20:09:54]1017 (14) - 77093643461234 [20:09:54]1041 (16) - 0000000002094248 [20:09:54]1040 (4) - 2117 [20:09:54]1012 (4) - 28.07.2024 14:09 [20:09:54]1206 (1) - 0 [20:09:54]OFD Sender: Remove packet 2117 [20:09:54]ProducePacketName [20:09:54]name=ofd_packets/00002117 [20:09:54]NVStorageDeleteData [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:10]accept exits with 10 [20:14:10]New connection [20:14:10]New thread 3067317604 created [20:14:10]Thread 3067460964 joined [20:14:10]Waiting for new connection... [20:14:10] Sock 10.Parse request [20:14:10]Sock 10.Check first char [20:14:10]Sock 10.First char is OK [20:14:10]request: POST /json_proto HTTP/1.0 [20:14:10]Method: POST [20:14:10]URL: /json_proto [20:14:10]Method is POST - this is cgi request [20:14:10]url: /json_proto [20:14:10]query_string will be loaded in cgi processing [20:14:10]execute_cgi json_proto POST (null) [20:14:10]execute_cgi path=json_proto method=POST [20:14:10]POST find Content-Length [20:14:10]Host: 172.17.45.132:8080 [20:14:10]Content-Length: 641 [20:14:10]Content-Type: application/json [20:14:10] [20:14:10]POST finish read [20:14:10]Found Content-Length = 641 [20:14:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126414", "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" ] } } [20:14:10]execute_script... [20:14: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)126414", "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" ] } } [20:14:10]POST & json_proto [20:14:10]process_json_proto [20:14:10]json parsed OK: [20:14:10]protocol is kg_v1.0 [20:14:10]action value=close_receipt [20:14:10]process_action close_receipt [20:14:10]cmd_close_receipt [20:14:10]MH_GetDate [20:14:10]Write to MH i2c: F0 00 00 6E 5F BC [20:14:10]Write i2c OK [20:14:10]MH_I2C_Read... [20:14:10]Read from MH i2c: F0 [20:14:10]MH_I2C_Read... [20:14:10]Read from MH i2c: F0 09 00 [20:14:10]MH_I2C_Read... [20:14:10]Read from MH i2c: F0 09 00 6E 5F 00 99 A6 A6 66 E3 0B 90 66 F4 [20:14:10]GetLastDocTimeStamp 1722197375 [20:14:10]current date 1722197657 [20:14:10]FM_GetShiftState [20:14:10]SAM_PROTO_GetShiftState [20:14:10]wFMCommunicate request_size=4 [20:14:10]MH_SAM_APDU [20:14:10]CAPDU: 80 13 01 00 [20:14:10]Write to MH i2c: E2 08 00 6F 5F 80 13 01 00 00 00 00 00 4B [20:14:10]Write i2c OK [20:14:10]MH_I2C_Read... [20:14:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:14:10]Read from MH i2c: E2 [20:14:10]MH_I2C_Read... [20:14:10]Read from MH i2c: E2 0E 00 [20:14:10]MH_I2C_Read... [20:14:10]Read from MH i2c: E2 0E 00 6F 5F 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 3F [20:14:10]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [20:14:10]wFMCommunicate OK [20:14:10]SAM_PROTO_GetShiftState done [20:14:10]FM_GetShiftState done [20:14:10]opened in 1722125648 [20:14:10]opened+sec_in_day 1722212048 [20:14:10]quantity*price = 70000 [20:14:10]sum+1 = 70001 [20:14:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.00 НСП 1% : 6.19 НДС 12% : 74.34 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 169 28.07.2024 20:14 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2118 ФПД: 137358798793677 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T201417&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2118&fm=137358798793677&tin=02508201610067®Number=0000000000189667&sum=70000 0 [20:14:11]StoreToDocumentArchive [20:14:11]shift 13 fd 2118 [20:14:11]save to /storage/0013/doc_00002118 [20:14:11]save last doc name /storage/0013/doc_00002118 to /storage/kkm_last_doc_name [20:14:11]save OK [20:14:11]Clear old archive folders... [20:14:11]ProcessDocumentItem done err = 0, tmpTLVsize=281 [20:14:11]tlvbuf is 01F946A0 [20:14:11]SAM_PROTO_ClearQueue [20:14:11]wFMCommunicate request_size=4 [20:14:11]MH_SAM_APDU [20:14:11]CAPDU: 80 09 00 00 [20:14:11]Write to MH i2c: E2 08 00 7C 5F 80 09 00 00 00 00 00 00 4D [20:14:11]Write i2c OK [20:14:11]MH_I2C_Read... [20:14:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:14:11]Read from MH i2c: E2 [20:14:11]MH_I2C_Read... [20:14:11]Read from MH i2c: E2 03 00 [20:14:11]MH_I2C_Read... [20:14:11]Read from MH i2c: E2 03 00 7C 5F 00 90 00 4F [20:14:11]RAPDU: 90 00 [20:14:11]wFMCommunicate OK [20:14:11]SAM_PROTO_ClearQueue done [20:14:11]KKMCreateOFDPacket [20:14:11]OFDProtocolAddRootSTLVToBuf [20:14:11]FM_MakeSignedData [20:14:11]FM_MakeSignedData [20:14:11]SAM_PROTO_SignData [20:14:11]wFMCommunicate request_size=4 [20:14:11]MH_SAM_APDU [20:14:11]CAPDU: 80 0D 01 02 [20:14:11]Write to MH i2c: E2 08 00 7D 5F 80 0D 01 02 00 00 00 00 55 [20:14:11]Write i2c OK [20:14:11]MH_I2C_Read... [20:14:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:14:11]Read from MH i2c: E2 [20:14:11]MH_I2C_Read... [20:14:11]Read from MH i2c: E2 03 00 [20:14:11]MH_I2C_Read... [20:14:11]Read from MH i2c: E2 03 00 7D 5F 00 90 00 50 [20:14:11]RAPDU: 90 00 [20:14:11]wFMCommunicate OK [20:14:11]wFMCommunicate request_size=255 [20:14:11]MH_SAM_APDU [20:14:11]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 A9 00 00 00 F4 03 04 00 99 A6 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 [20:14:11]Write to MH i2c: E2 02 01 7E 5F 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 A9 00 00 00 F4 03 04 00 99 A6 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 00 C6 [20:14:11]Write i2c OK [20:14:11]MH_I2C_Read... [20:14:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:14:11]Read from MH i2c: E2 [20:14:11]MH_I2C_Read... [20:14:11]Read from MH i2c: E2 03 00 [20:14:11]MH_I2C_Read... [20:14:11]Read from MH i2c: E2 03 00 7E 5F 00 90 00 51 [20:14:11]RAPDU: 90 00 [20:14:11]wFMCommunicate OK [20:14:11]wFMCommunicate request_size=40 [20:14:11]MH_SAM_APDU [20:14:11]CAPDU: 80 0D 02 02 23 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 46 08 00 00 35 04 06 00 7C ED 56 68 AB CD [20:14:11]Write to MH i2c: E2 2B 00 7F 5F 80 0D 02 02 23 00 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 46 08 00 00 35 04 06 00 7C ED 56 68 AB CD 00 00 FF [20:14:11]Write i2c OK [20:14:11]MH_I2C_Read... [20:14:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:14:11]Read from MH i2c: E2 [20:14:11]MH_I2C_Read... [20:14:11]Read from MH i2c: E2 03 00 [20:14:11]MH_I2C_Read... [20:14:11]Read from MH i2c: E2 03 00 7F 5F 00 90 00 52 [20:14:11]RAPDU: 90 00 [20:14:11]wFMCommunicate OK [20:14:11]wFMCommunicate request_size=4 [20:14:11]MH_SAM_APDU [20:14:11]CAPDU: 80 0D 03 02 [20:14:11]Write to MH i2c: E2 08 00 80 5F 80 0D 03 02 00 00 00 00 5A [20:14:11]Write i2c OK [20:14:11]MH_I2C_Read... [20:14:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:14:11]Read from MH i2c: E2 [20:14:11]MH_I2C_Read... [20:14:11]Read from MH i2c: E2 0B 00 [20:14:11]MH_I2C_Read... [20:14:11]Read from MH i2c: E2 0B 00 80 5F 00 FD C4 6C A1 96 37 43 B2 90 00 EB [20:14:11]RAPDU: FD C4 6C A1 96 37 43 B2 90 00 [20:14:11]wFMCommunicate OK [20:14:11]SAM_PROTO_SignData done [20:14:11]FM_MakeSignedData done [20:14:11]CreateOFDProtocolMessage [20:14:11]wFMCommunicate request_size=4 [20:14:11]MH_SAM_APDU [20:14:11]CAPDU: 80 11 00 00 [20:14:11]Write to MH i2c: E2 08 00 81 5F 80 11 00 00 00 00 00 00 5A [20:14:11]Write i2c OK [20:14:11]MH_I2C_Read... [20:14:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:14:11]Read from MH i2c: E2 [20:14:11]MH_I2C_Read... [20:14:11]Read from MH i2c: E2 17 00 [20:14:11]MH_I2C_Read... [20:14:11]Read from MH i2c: E2 17 00 81 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 AA [20:14:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:14:11]wFMCommunicate OK [20:14:11]CreateOFDProtocolMessage done [20:14:11]OFDSenderStorePacket 2118 [20:14:11]StoreOFDPacket docnum=2118 [20:14:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2D 01 00 00 E5 48 25 01 79 B9 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 A9 00 00 00 F4 03 04 00 99 A6 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 46 08 00 00 35 04 06 00 7C ED 56 68 AB CD FD C4 6C A1 96 37 43 B2 [20:14:11]CheckFolder [20:14:11]dirname=/storage/ofd_packets [20:14:11]CheckFolder done [20:14:11]ProducePacketName [20:14:11]name=ofd_packets/00002118 [20:14:11]NVStorageSaveData ofd_packets/00002118 [20:14:11]File name is /storage/ofd_packets/00002118 [20:14:11]Write 331 bytes [20:14:11]NVStorageSaveData done [20:14:11]OFDSenderStorePacket done [20:14:11]KKMCreateOFDPacket done [20:14:11]NVStorageSaveData kkm_last_timestamp [20:14:11]File name is /storage/kkm_last_timestamp [20:14:11]Write 4 bytes [20:14:11]NVStorageSaveData done [20:14:11]ExternCall_PrintAddStr [20:14:11]wPrintStart [20:14:11]Write to MH i2c: 01 00 00 82 5F E1 [20:14:11]Write i2c OK [20:14:11]MH_I2C_Read... [20:14:11]Read from MH i2c: 01 [20:14:11]MH_I2C_Read... [20:14:11]Read from MH i2c: 01 07 00 [20:14:11]MH_I2C_Read... [20:14:11]Read from MH i2c: 01 07 00 82 5F 00 00 00 00 00 FF 0F F6 [20:14:11]RasterBufferAndPrint [20:14:11]line Счет N : (3)126414 [20:14:11]line ИНН: 02508201610067 [20:14:11]line Контрольно-Кассовый Чек [20:14:11]line ПРОДАЖА [20:14:11]line Товар: 4700003150929 [20:14:11]line Новая Водка Organic 40% 0,7л [20:14:11]line 1.000 * 700.00 [20:14:11]line = 700.00 [20:14:11]line НДС 12% НСП 1% [20:14:11]line > о реализуемом товаре [20:14:11]line ИТОГО: 700.00 [20:14:11]line НСП 1% : 6.19 [20:14:11]line НДС 12% : 74.34 [20:14:11]line Наличными: 700.00 [20:14:11]line Безнал.: 0.00 [20:14:11]line Место: АЗС № 127 "Партнер Нефть" [20:14:11]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [20:14:11]line СНО: Общий режим [20:14:11]line Чек 169 28.07.2024 20:14 [20:14:11]line Смена: 13 ФФД: 1.0 [20:14:11]line ЗНМ: 0300000161 [20:14:11]line РНМ: 0000000000189667 [20:14:11]line Версия ККМ: v1.0 [20:14:11]line ФМ: 0000000002094248 [20:14:11]line ФД: 2118 [20:14:11]line ФПД: 137358798793677 [20:14:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T201417&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2118&fm=137358798793677&tin=02508201610067®Number=0000000000189667&sum=70000 [20:14:11]line 0 [20:14:11]written 0, free lines is 4095 [20:14:11]OFD Sender: Processing packet 2118 [packets to send 1, broken 0] [20:14:11]ProducePacketName [20:14:11]name=ofd_packets/00002118 [20:14:11]OFD Sender: To server: pG, [20:14:11]CommunicateWithHost lk.salyk.kg:30040 [20:14:11]ConnectInit lk.salyk.kg [20:14:12]Connected sock=9 [20:14:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2D 01 00 00 E5 48 25 01 79 B9 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 A9 00 00 00 F4 03 04 00 99 A6 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 46 08 00 00 35 04 06 00 7C ED 56 68 AB CD FD C4 6C A1 96 37 43 B2 [20:14:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 3D AF 47 00 14 C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 46 08 00 00 F4 03 04 00 07 52 A6 66 B6 04 01 00 00 71 6F C9 B1 26 59 27 A0 [20:14:12]CommunicateWithHost err = 0 [20:14:12]CheckOFDResponse [20:14:12]1017 (14) - 77093643461234 [20:14:12]1041 (16) - 0000000002094248 [20:14:12]1040 (4) - 2118 [20:14:12]1012 (4) - 28.07.2024 14:13 [20:14:12]1206 (1) - 0 [20:14:12]OFD Sender: Remove packet 2118 [20:14:12]ProducePacketName [20:14:12]name=ofd_packets/00002118 [20:14:12]NVStorageDeleteData [20:14:12]Write to MH i2c: 01 00 00 AA 5F 09 [20:14:12]Write i2c OK [20:14:12]MH_I2C_Read... [20:14:12]Read from MH i2c: 01 [20:14:12]MH_I2C_Read... [20:14:12]Read from MH i2c: 01 07 00 [20:14:12]MH_I2C_Read... [20:14:12]Read from MH i2c: 01 07 00 AA 5F 00 00 00 00 00 25 0D 42 [20:14:12]RasterBufferAndPrint [20:14:12]line [20:14:12]line [20:14:12]line [20:14:12]line [20:14:12]line [20:14:12]written 0, free lines is 3372 [20:14:12]MH_Cut [20:14:12]Write to MH i2c: D1 01 00 B1 5F 01 E2 [20:14:12]Write i2c OK [20:14:12]MH_I2C_Read... [20:14:12]Read from MH i2c: D1 [20:14:12]MH_I2C_Read... [20:14:12]Read from MH i2c: D1 01 00 [20:14:12]MH_I2C_Read... [20:14:12]Read from MH i2c: D1 01 00 B1 5F 00 E1 [20:14:12]Write to MH i2c: 01 00 00 B2 5F 11 [20:14:12]Write i2c OK [20:14:12]MH_I2C_Read... [20:14:12]OFD Sender: No OFD packet to send [20:14:12]*** Cut start [20:14:12]*** Partial cut [20:14:12]*** CUTSNS_PIN = 1 [20:14:13]*** CUTSNS_PIN = 0 [20:14:13]*** Brake cut motor [20:14:13]Read from MH i2c: 01 [20:14:13]MH_I2C_Read... [20:14:13]*** Stop cut motor [20:14:13]*** Cut end [20:14:13]Read from MH i2c: 01 07 00 [20:14:13]MH_I2C_Read... [20:14:13]Read from MH i2c: 01 07 00 B2 5F 00 00 00 00 00 FF 0F 26 [20:14:13]process_action close_receipt done [20:14:13]requested_data is exist [20:14:13]produce_requested_data [20:14:13]requested_item fm.sn is exist - process it [20:14:13]wFMCommunicate request_size=4 [20:14:13]MH_SAM_APDU [20:14:13]CAPDU: 80 11 00 00 [20:14:13]Write to MH i2c: E2 08 00 B3 5F 80 11 00 00 00 00 00 00 8C [20:14:13]Write i2c OK [20:14:13]MH_I2C_Read... [20:14:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:14:13]Read from MH i2c: E2 [20:14:13]MH_I2C_Read... [20:14:13]Read from MH i2c: E2 17 00 [20:14:13]MH_I2C_Read... [20:14:13]Read from MH i2c: E2 17 00 B3 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 DC [20:14:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:14:13]wFMCommunicate OK [20:14:13]requested_item fd.num is exist - process it [20:14:13]SAM_PROTO_GetFieldsCounters [20:14:13]wFMCommunicate request_size=4 [20:14:13]MH_SAM_APDU [20:14:13]CAPDU: 80 13 00 00 [20:14:13]Write to MH i2c: E2 08 00 B4 5F 80 13 00 00 00 00 00 00 8F [20:14:13]Write i2c OK [20:14:13]MH_I2C_Read... [20:14:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:14:13]Read from MH i2c: E2 [20:14:13]MH_I2C_Read... [20:14:13]Read from MH i2c: E2 62 00 [20:14:13]MH_I2C_Read... [20:14:13]Read from MH i2c: E2 62 00 B4 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 46 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 0F [20:14:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 46 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:14:13]wFMCommunicate OK [20:14:13]SAM_PROTO_GetFieldsCounters done [20:14:13]requested_item shift.num is exist - process it [20:14:13]requested_item shift.opened is exist - process it [20:14:13]req_shift_opened [20:14:13]FM_GetShiftState [20:14:13]SAM_PROTO_GetShiftState [20:14:13]wFMCommunicate request_size=4 [20:14:13]MH_SAM_APDU [20:14:13]CAPDU: 80 13 01 00 [20:14:13]Write to MH i2c: E2 08 00 B5 5F 80 13 01 00 00 00 00 00 91 [20:14:13]Write i2c OK [20:14:13]MH_I2C_Read... [20:14:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:14:13]Read from MH i2c: E2 [20:14:13]MH_I2C_Read... [20:14:13]Read from MH i2c: E2 0E 00 [20:14:13]MH_I2C_Read... [20:14:13]Read from MH i2c: E2 0E 00 B5 5F 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 85 [20:14:13]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [20:14:13]wFMCommunicate OK [20:14:13]SAM_PROTO_GetShiftState done [20:14:13]FM_GetShiftState done [20:14:13]req_shift_opened done [20:14:13]requested_item shift.open_date is exist - process it [20:14:13]req_shift_open_date [20:14:13]req_shift_open_date done [20:14:13]produce_requested_data done [20:14:13]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2118,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [20:14:13]process_action_free close_receipt [20:14:13]json_value_free [20:14:13]json_value_free done [20:14:13]process_json_proto returns [20:14:13]Send response to host [20:14:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2118,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [20:14:13]free response buf [20:14:13]execute_script done [20:14:13]execute_script returns [20:14:13]free content buf [20:14:13]Sock 10.Close socket [20:14:13]Sock 10.Thread stoped [20:14:17]OFD Sender: No OFD packet to send [20:14:22]OFD Sender: No OFD packet to send [20:14:25]accept exits with 8 [20:14:25]New connection [20:14:25]New thread 3067460964 created [20:14:25]Thread 3067317604 joined [20:14:25]Waiting for new connection... [20:14:25] Sock 8.Parse request [20:14:25]Sock 8.Check first char [20:14:25]Sock 8.First char is OK [20:14:25]request: POST /json_proto HTTP/1.0 [20:14:25]Method: POST [20:14:25]URL: /json_proto [20:14:25]Method is POST - this is cgi request [20:14:25]url: /json_proto [20:14:25]query_string will be loaded in cgi processing [20:14:25]execute_cgi json_proto POST (null) [20:14:25]execute_cgi path=json_proto method=POST [20:14:25]POST find Content-Length [20:14:25]Host: 172.17.45.132:8080 [20:14:25]Content-Length: 630 [20:14:25]Content-Type: application/json [20:14:25] [20:14:25]POST finish read [20:14:25]Found Content-Length = 630 [20:14:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126415", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:14:25]execute_script... [20:14: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)126415", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:14:25]POST & json_proto [20:14:25]process_json_proto [20:14:25]json parsed OK: [20:14:25]protocol is kg_v1.0 [20:14:25]action value=close_receipt [20:14:25]process_action close_receipt [20:14:25]cmd_close_receipt [20:14:25]MH_GetDate [20:14:25]Write to MH i2c: F0 00 00 B6 5F 04 [20:14:25]Write i2c OK [20:14:25]MH_I2C_Read... [20:14:25]Read from MH i2c: F0 [20:14:25]MH_I2C_Read... [20:14:25]Read from MH i2c: F0 09 00 [20:14:25]MH_I2C_Read... [20:14:25]Read from MH i2c: F0 09 00 B6 5F 00 A8 A6 A6 66 E3 0B 90 66 4B [20:14:25]GetLastDocTimeStamp 1722197657 [20:14:25]current date 1722197672 [20:14:25]FM_GetShiftState [20:14:25]SAM_PROTO_GetShiftState [20:14:25]wFMCommunicate request_size=4 [20:14:25]MH_SAM_APDU [20:14:25]CAPDU: 80 13 01 00 [20:14:25]Write to MH i2c: E2 08 00 B7 5F 80 13 01 00 00 00 00 00 93 [20:14:25]Write i2c OK [20:14:25]MH_I2C_Read... [20:14:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:14:25]Read from MH i2c: E2 [20:14:25]MH_I2C_Read... [20:14:25]Read from MH i2c: E2 0E 00 [20:14:25]MH_I2C_Read... [20:14:25]Read from MH i2c: E2 0E 00 B7 5F 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 87 [20:14:25]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [20:14:25]wFMCommunicate OK [20:14:25]SAM_PROTO_GetShiftState done [20:14:25]FM_GetShiftState done [20:14:25]opened in 1722125648 [20:14:25]opened+sec_in_day 1722212048 [20:14:25]quantity*price = 5000 [20:14:25]sum+1 = 5001 [20:14:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 170 28.07.2024 20:14 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2119 ФПД: 279187136987663 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T201432&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2119&fm=279187136987663&tin=02508201610067®Number=0000000000189667&sum=5000 0 [20:14:26]StoreToDocumentArchive [20:14:26]shift 13 fd 2119 [20:14:26]save to /storage/0013/doc_00002119 [20:14:26]save last doc name /storage/0013/doc_00002119 to /storage/kkm_last_doc_name [20:14:26]save OK [20:14:26]Clear old archive folders... [20:14:26]ProcessDocumentItem done err = 0, tmpTLVsize=269 [20:14:26]tlvbuf is 01F48590 [20:14:26]SAM_PROTO_ClearQueue [20:14:26]wFMCommunicate request_size=4 [20:14:26]MH_SAM_APDU [20:14:26]CAPDU: 80 09 00 00 [20:14:26]Write to MH i2c: E2 08 00 C4 5F 80 09 00 00 00 00 00 00 95 [20:14:26]Write i2c OK [20:14:26]MH_I2C_Read... [20:14:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:14:26]Read from MH i2c: E2 [20:14:26]MH_I2C_Read... [20:14:26]Read from MH i2c: E2 03 00 [20:14:26]MH_I2C_Read... [20:14:26]Read from MH i2c: E2 03 00 C4 5F 00 90 00 97 [20:14:26]RAPDU: 90 00 [20:14:26]wFMCommunicate OK [20:14:26]SAM_PROTO_ClearQueue done [20:14:26]KKMCreateOFDPacket [20:14:26]OFDProtocolAddRootSTLVToBuf [20:14:26]FM_MakeSignedData [20:14:26]FM_MakeSignedData [20:14:26]SAM_PROTO_SignData [20:14:26]wFMCommunicate request_size=4 [20:14:26]MH_SAM_APDU [20:14:26]CAPDU: 80 0D 01 02 [20:14:26]Write to MH i2c: E2 08 00 C5 5F 80 0D 01 02 00 00 00 00 9D [20:14:26]Write i2c OK [20:14:26]MH_I2C_Read... [20:14:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:14:26]Read from MH i2c: E2 [20:14:26]MH_I2C_Read... [20:14:26]Read from MH i2c: E2 03 00 [20:14:26]MH_I2C_Read... [20:14:26]Read from MH i2c: E2 03 00 C5 5F 00 90 00 98 [20:14:26]RAPDU: 90 00 [20:14:26]wFMCommunicate OK [20:14:26]wFMCommunicate request_size=255 [20:14:26]MH_SAM_APDU [20:14:26]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 A8 A6 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 [20:14:26]Write to MH i2c: E2 02 01 C6 5F 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 A8 A6 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 00 00 CB [20:14:26]Write i2c OK [20:14:26]MH_I2C_Read... [20:14:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:14:26]Read from MH i2c: E2 [20:14:26]MH_I2C_Read... [20:14:26]Read from MH i2c: E2 03 00 [20:14:26]MH_I2C_Read... [20:14:26]Read from MH i2c: E2 03 00 C6 5F 00 90 00 99 [20:14:26]RAPDU: 90 00 [20:14:26]wFMCommunicate OK [20:14:26]wFMCommunicate request_size=28 [20:14:26]MH_SAM_APDU [20:14:26]CAPDU: 80 0D 02 02 17 39 34 32 34 38 10 04 04 00 47 08 00 00 35 04 06 00 FD EB 52 20 42 0F [20:14:26]Write to MH i2c: E2 1F 00 C7 5F 80 0D 02 02 17 00 39 34 32 34 38 10 04 04 00 47 08 00 00 35 04 06 00 FD EB 52 20 42 0F 00 00 2A [20:14:26]Write i2c OK [20:14:26]MH_I2C_Read... [20:14:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:14:26]Read from MH i2c: E2 [20:14:26]MH_I2C_Read... [20:14:26]Read from MH i2c: E2 03 00 [20:14:26]MH_I2C_Read... [20:14:26]Read from MH i2c: E2 03 00 C7 5F 00 90 00 9A [20:14:26]RAPDU: 90 00 [20:14:26]wFMCommunicate OK [20:14:26]wFMCommunicate request_size=4 [20:14:26]MH_SAM_APDU [20:14:26]CAPDU: 80 0D 03 02 [20:14:26]Write to MH i2c: E2 08 00 C8 5F 80 0D 03 02 00 00 00 00 A2 [20:14:26]Write i2c OK [20:14:26]MH_I2C_Read... [20:14:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:14:26]Read from MH i2c: E2 [20:14:26]MH_I2C_Read... [20:14:26]Read from MH i2c: E2 0B 00 [20:14:26]MH_I2C_Read... [20:14:26]Read from MH i2c: E2 0B 00 C8 5F 00 C4 E1 20 AB E5 2A 28 D5 90 00 1F [20:14:26]RAPDU: C4 E1 20 AB E5 2A 28 D5 90 00 [20:14:26]wFMCommunicate OK [20:14:26]SAM_PROTO_SignData done [20:14:26]FM_MakeSignedData done [20:14:26]CreateOFDProtocolMessage [20:14:26]wFMCommunicate request_size=4 [20:14:26]MH_SAM_APDU [20:14:26]CAPDU: 80 11 00 00 [20:14:26]Write to MH i2c: E2 08 00 C9 5F 80 11 00 00 00 00 00 00 A2 [20:14:27]Write i2c OK [20:14:27]MH_I2C_Read... [20:14:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:14:27]Read from MH i2c: E2 [20:14:27]MH_I2C_Read... [20:14:27]Read from MH i2c: E2 17 00 [20:14:27]MH_I2C_Read... [20:14:27]Read from MH i2c: E2 17 00 C9 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 F2 [20:14:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:14:27]wFMCommunicate OK [20:14:27]CreateOFDProtocolMessage done [20:14:27]OFDSenderStorePacket 2119 [20:14:27]StoreOFDPacket docnum=2119 [20:14:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 21 01 00 00 A0 A2 19 01 4C 6E 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 A8 A6 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 47 08 00 00 35 04 06 00 FD EB 52 20 42 0F C4 E1 20 AB E5 2A 28 D5 [20:14:27]CheckFolder [20:14:27]dirname=/storage/ofd_packets [20:14:27]CheckFolder done [20:14:27]ProducePacketName [20:14:27]name=ofd_packets/00002119 [20:14:27]NVStorageSaveData ofd_packets/00002119 [20:14:27]File name is /storage/ofd_packets/00002119 [20:14:27]Write 319 bytes [20:14:27]NVStorageSaveData done [20:14:27]OFDSenderStorePacket done [20:14:27]KKMCreateOFDPacket done [20:14:27]NVStorageSaveData kkm_last_timestamp [20:14:27]File name is /storage/kkm_last_timestamp [20:14:27]Write 4 bytes [20:14:27]NVStorageSaveData done [20:14:27]ExternCall_PrintAddStr [20:14:27]wPrintStart [20:14:27]Write to MH i2c: 01 00 00 CA 5F 29 [20:14:27]Write i2c OK [20:14:27]MH_I2C_Read... [20:14:27]Read from MH i2c: 01 [20:14:27]MH_I2C_Read... [20:14:27]Read from MH i2c: 01 07 00 [20:14:27]MH_I2C_Read... [20:14:27]Read from MH i2c: 01 07 00 CA 5F 00 00 00 00 00 FF 0F 3E [20:14:27]RasterBufferAndPrint [20:14:27]line Счет N : (3)126415 [20:14:27]line ИНН: 02508201610067 [20:14:27]line Контрольно-Кассовый Чек [20:14:27]line ПРОДАЖА [20:14:27]line Товар: 4700000160358 [20:14:27]line Вода Легенда 1л [20:14:27]line 1.000 * 50.00 [20:14:27]line = 50.00 [20:14:27]line НДС 12% НСП 1% [20:14:27]line > о реализуемом товаре [20:14:27]line ИТОГО: 50.00 [20:14:27]line НСП 1% : 0.44 [20:14:27]line НДС 12% : 5.31 [20:14:27]line Наличными: 50.00 [20:14:27]line Безнал.: 0.00 [20:14:27]line Место: АЗС № 127 "Партнер Нефть" [20:14:27]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [20:14:27]line СНО: Общий режим [20:14:27]line Чек 170 28.07.2024 20:14 [20:14:27]line Смена: 13 ФФД: 1.0 [20:14:27]line ЗНМ: 0300000161 [20:14:27]line РНМ: 0000000000189667 [20:14:27]line Версия ККМ: v1.0 [20:14:27]line ФМ: 0000000002094248 [20:14:27]line ФД: 2119 [20:14:27]line ФПД: 279187136987663 [20:14:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T201432&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2119&fm=279187136987663&tin=02508201610067®Number=0000000000189667&sum=5000 [20:14:27]line 0 [20:14:27]written 0, free lines is 4095 [20:14:27]OFD Sender: Processing packet 2119 [packets to send 1, broken 0] [20:14:27]ProducePacketName [20:14:27]name=ofd_packets/00002119 [20:14:27]OFD Sender: To server: pG, [20:14:27]CommunicateWithHost lk.salyk.kg:30040 [20:14:27]ConnectInit lk.salyk.kg [20:14:27]Write to MH i2c: 01 00 00 F2 5F 51 [20:14:27]Write i2c OK [20:14:27]MH_I2C_Read... [20:14:27]Read from MH i2c: 01 [20:14:27]MH_I2C_Read... [20:14:27]Read from MH i2c: 01 07 00 [20:14:27]MH_I2C_Read... [20:14:27]Read from MH i2c: 01 07 00 F2 5F 00 00 00 00 00 08 0D 6D [20:14:27]RasterBufferAndPrint [20:14:27]line [20:14:27]line [20:14:27]line [20:14:27]line [20:14:27]line [20:14:27]written 0, free lines is 3343 [20:14:27]MH_Cut [20:14:27]Write to MH i2c: D1 01 00 F9 5F 01 2A [20:14:27]Write i2c OK [20:14:27]MH_I2C_Read... [20:14:27]Read from MH i2c: D1 [20:14:27]MH_I2C_Read... [20:14:27]Read from MH i2c: D1 01 00 [20:14:27]MH_I2C_Read... [20:14:27]Read from MH i2c: D1 01 00 F9 5F 00 29 [20:14:27]Write to MH i2c: 01 00 00 FA 5F 59 [20:14:27]Write i2c OK [20:14:27]MH_I2C_Read... [20:14:27]Connected sock=10 [20:14:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 21 01 00 00 A0 A2 19 01 4C 6E 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 A8 A6 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 47 08 00 00 35 04 06 00 FD EB 52 20 42 0F C4 E1 20 AB E5 2A 28 D5 [20:14:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 E0 E1 47 00 23 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 47 08 00 00 F4 03 04 00 17 52 A6 66 B6 04 01 00 00 ED 52 3C 2C A6 10 66 F6 [20:14:27]CommunicateWithHost err = 0 [20:14:27]CheckOFDResponse [20:14:27]1017 (14) - 77093643461234 [20:14:27]1041 (16) - 0000000002094248 [20:14:27]1040 (4) - 2119 [20:14:27]1012 (4) - 28.07.2024 14:13 [20:14:27]1206 (1) - 0 [20:14:27]OFD Sender: Remove packet 2119 [20:14:27]ProducePacketName [20:14:27]name=ofd_packets/00002119 [20:14:27]NVStorageDeleteData [20:14:28]*** Cut start [20:14:28]*** Partial cut [20:14:28]*** CUTSNS_PIN = 1 [20:14:28]*** CUTSNS_PIN = 0 [20:14:28]OFD Sender: No OFD packet to send [20:14:28]*** Brake cut motor [20:14:28]Read from MH i2c: 01 [20:14:28]MH_I2C_Read... [20:14:28]*** Stop cut motor [20:14:28]*** Cut end [20:14:28]Read from MH i2c: 01 07 00 [20:14:28]MH_I2C_Read... [20:14:28]Read from MH i2c: 01 07 00 FA 5F 00 00 00 00 00 FF 0F 6E [20:14:28]process_action close_receipt done [20:14:28]requested_data is exist [20:14:28]produce_requested_data [20:14:28]requested_item fm.sn is exist - process it [20:14:28]wFMCommunicate request_size=4 [20:14:28]MH_SAM_APDU [20:14:28]CAPDU: 80 11 00 00 [20:14:28]Write to MH i2c: E2 08 00 FB 5F 80 11 00 00 00 00 00 00 D4 [20:14:28]Write i2c OK [20:14:28]MH_I2C_Read... [20:14:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:14:28]Read from MH i2c: E2 [20:14:28]MH_I2C_Read... [20:14:28]Read from MH i2c: E2 17 00 [20:14:28]MH_I2C_Read... [20:14:28]Read from MH i2c: E2 17 00 FB 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 24 [20:14:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:14:28]wFMCommunicate OK [20:14:28]requested_item fd.num is exist - process it [20:14:28]SAM_PROTO_GetFieldsCounters [20:14:28]wFMCommunicate request_size=4 [20:14:28]MH_SAM_APDU [20:14:28]CAPDU: 80 13 00 00 [20:14:28]Write to MH i2c: E2 08 00 FC 5F 80 13 00 00 00 00 00 00 D7 [20:14:28]Write i2c OK [20:14:28]MH_I2C_Read... [20:14:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:14:29]Read from MH i2c: E2 [20:14:29]MH_I2C_Read... [20:14:29]Read from MH i2c: E2 62 00 [20:14:29]MH_I2C_Read... [20:14:29]Read from MH i2c: E2 62 00 FC 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 47 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 5B [20:14:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 47 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:14:29]wFMCommunicate OK [20:14:29]SAM_PROTO_GetFieldsCounters done [20:14:29]requested_item shift.num is exist - process it [20:14:29]requested_item shift.opened is exist - process it [20:14:29]req_shift_opened [20:14:29]FM_GetShiftState [20:14:29]SAM_PROTO_GetShiftState [20:14:29]wFMCommunicate request_size=4 [20:14:29]MH_SAM_APDU [20:14:29]CAPDU: 80 13 01 00 [20:14:29]Write to MH i2c: E2 08 00 FD 5F 80 13 01 00 00 00 00 00 D9 [20:14:29]Write i2c OK [20:14:29]MH_I2C_Read... [20:14:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:14:29]Read from MH i2c: E2 [20:14:29]MH_I2C_Read... [20:14:29]Read from MH i2c: E2 0E 00 [20:14:29]MH_I2C_Read... [20:14:29]Read from MH i2c: E2 0E 00 FD 5F 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 CD [20:14:29]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [20:14:29]wFMCommunicate OK [20:14:29]SAM_PROTO_GetShiftState done [20:14:29]FM_GetShiftState done [20:14:29]req_shift_opened done [20:14:29]requested_item shift.open_date is exist - process it [20:14:29]req_shift_open_date [20:14:29]req_shift_open_date done [20:14:29]produce_requested_data done [20:14:29]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2119,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [20:14:29]process_action_free close_receipt [20:14:29]json_value_free [20:14:29]json_value_free done [20:14:29]process_json_proto returns [20:14:29]Send response to host [20:14:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2119,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [20:14:29]free response buf [20:14:29]execute_script done [20:14:29]execute_script returns [20:14:29]free content buf [20:14:29]Sock 8.Close socket [20:14:29]Sock 8.Thread stoped [20:14:33]OFD Sender: No OFD packet to send [20:14:38]OFD Sender: No OFD packet to send [20:14:43]OFD Sender: No OFD packet to send [20:14:48]OFD Sender: No OFD packet to send [20:14:53]OFD Sender: No OFD packet to send [20:14:58]OFD Sender: No OFD packet to send [20:15:03]OFD Sender: No OFD packet to send [20:15:08]OFD Sender: No OFD packet to send [20:15:13]OFD Sender: No OFD packet to send [20:15:18]OFD Sender: No OFD packet to send [20:15:23]OFD Sender: No OFD packet to send [20:15:28]OFD Sender: No OFD packet to send [20:15:33]OFD Sender: No OFD packet to send [20:15:38]OFD Sender: No OFD packet to send [20:15:43]OFD Sender: No OFD packet to send [20:15:48]OFD Sender: No OFD packet to send [20:15:53]OFD Sender: No OFD packet to send [20:15:58]OFD Sender: No OFD packet to send [20:16:03]OFD Sender: No OFD packet to send [20:16:08]OFD Sender: No OFD packet to send [20:16:13]OFD Sender: No OFD packet to send [20:16:18]OFD Sender: No OFD packet to send [20:16:23]OFD Sender: No OFD packet to send [20:16:28]OFD Sender: No OFD packet to send [20:16:33]OFD Sender: No OFD packet to send [20:16:38]OFD Sender: No OFD packet to send [20:16:43]OFD Sender: No OFD packet to send [20:16:48]OFD Sender: No OFD packet to send [20:16:53]OFD Sender: No OFD packet to send [20:16:58]OFD Sender: No OFD packet to send [20:17:03]OFD Sender: No OFD packet to send [20:17:08]OFD Sender: No OFD packet to send [20:17:13]OFD Sender: No OFD packet to send [20:17:18]OFD Sender: No OFD packet to send [20:17:23]OFD Sender: No OFD packet to send [20:17:28]OFD Sender: No OFD packet to send [20:17:33]OFD Sender: No OFD packet to send [20:17:38]OFD Sender: No OFD packet to send [20:17:43]OFD Sender: No OFD packet to send [20:17:48]OFD Sender: No OFD packet to send [20:17:53]OFD Sender: No OFD packet to send [20:17:58]accept exits with 9 [20:17:58]New connection [20:17:58]New thread 3067317604 created [20:17:58]Thread 3067460964 joined [20:17:58]Waiting for new connection... [20:17:58] Sock 9.Parse request [20:17:58]Sock 9.Check first char [20:17:58]Sock 9.First char is OK [20:17:58]request: POST /json_proto HTTP/1.0 [20:17:58]Method: POST [20:17:58]URL: /json_proto [20:17:58]Method is POST - this is cgi request [20:17:58]url: /json_proto [20:17:58]query_string will be loaded in cgi processing [20:17:58]execute_cgi json_proto POST (null) [20:17:58]execute_cgi path=json_proto method=POST [20:17:58]POST find Content-Length [20:17:58]Host: 172.17.45.132:8080 [20:17:58]Content-Length: 660 [20:17:58]Content-Type: application/json [20:17:58] [20:17:58]POST finish read [20:17:58]Found Content-Length = 660 [20:17:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126416", "tax_sys" : 0, "items" : [ { "code": "5449000000439", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1,5\u043B", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:17:58]execute_script... [20:17:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126416", "tax_sys" : 0, "items" : [ { "code": "5449000000439", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1,5\u043B", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:17:58]POST & json_proto [20:17:58]process_json_proto [20:17:58]json parsed OK: [20:17:58]protocol is kg_v1.0 [20:17:58]action value=close_receipt [20:17:58]process_action close_receipt [20:17:58]cmd_close_receipt [20:17:58]MH_GetDate [20:17:58]Write to MH i2c: F0 00 00 FE 5F 4C [20:17:58]Write i2c OK [20:17:58]MH_I2C_Read... [20:17:58]Read from MH i2c: F0 [20:17:58]MH_I2C_Read... [20:17:58]Read from MH i2c: F0 09 00 [20:17:58]MH_I2C_Read... [20:17:58]Read from MH i2c: F0 09 00 FE 5F 00 7D A7 A6 66 E3 0B 90 66 69 [20:17:58]GetLastDocTimeStamp 1722197672 [20:17:58]current date 1722197885 [20:17:58]FM_GetShiftState [20:17:58]SAM_PROTO_GetShiftState [20:17:58]wFMCommunicate request_size=4 [20:17:58]MH_SAM_APDU [20:17:58]CAPDU: 80 13 01 00 [20:17:58]Write to MH i2c: E2 08 00 FF 5F 80 13 01 00 00 00 00 00 DB [20:17:58]Write i2c OK [20:17:58]MH_I2C_Read... [20:17:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:17:58]Read from MH i2c: E2 [20:17:58]MH_I2C_Read... [20:17:58]Read from MH i2c: E2 0E 00 [20:17:58]MH_I2C_Read... [20:17:58]Read from MH i2c: E2 0E 00 FF 5F 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 CF [20:17:58]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [20:17:58]wFMCommunicate OK [20:17:58]SAM_PROTO_GetShiftState done [20:17:58]FM_GetShiftState done [20:17:58]opened in 1722125648 [20:17:58]opened+sec_in_day 1722212048 [20:17:58]quantity*price = 15500 [20:17:58]sum+1 = 15501 [20:17:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 155.00 НСП 1% : 1.37 НДС 12% : 16.46 Наличными: 155.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 171 28.07.2024 20:18 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2120 ФПД: 40291383901637 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T201805&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2120&fm=40291383901637&tin=02508201610067®Number=0000000000189667&sum=15500 0 [20:17:59]StoreToDocumentArchive [20:17:59]shift 13 fd 2120 [20:17:59]save to /storage/0013/doc_00002120 [20:17:59]save last doc name /storage/0013/doc_00002120 to /storage/kkm_last_doc_name [20:17:59]save OK [20:17:59]Clear old archive folders... [20:17:59]ProcessDocumentItem done err = 0, tmpTLVsize=280 [20:17:59]tlvbuf is 0217C3C0 [20:17:59]SAM_PROTO_ClearQueue [20:17:59]wFMCommunicate request_size=4 [20:17:59]MH_SAM_APDU [20:17:59]CAPDU: 80 09 00 00 [20:17:59]Write to MH i2c: E2 08 00 0C 60 80 09 00 00 00 00 00 00 DE [20:17:59]Write i2c OK [20:17:59]MH_I2C_Read... [20:17:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:17:59]Read from MH i2c: E2 [20:17:59]MH_I2C_Read... [20:17:59]Read from MH i2c: E2 03 00 [20:17:59]MH_I2C_Read... [20:17:59]Read from MH i2c: E2 03 00 0C 60 00 90 00 E0 [20:17:59]RAPDU: 90 00 [20:17:59]wFMCommunicate OK [20:17:59]SAM_PROTO_ClearQueue done [20:17:59]KKMCreateOFDPacket [20:17:59]OFDProtocolAddRootSTLVToBuf [20:17:59]FM_MakeSignedData [20:17:59]FM_MakeSignedData [20:17:59]SAM_PROTO_SignData [20:17:59]wFMCommunicate request_size=4 [20:17:59]MH_SAM_APDU [20:17:59]CAPDU: 80 0D 01 02 [20:17:59]Write to MH i2c: E2 08 00 0D 60 80 0D 01 02 00 00 00 00 E6 [20:17:59]Write i2c OK [20:17:59]MH_I2C_Read... [20:17:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:17:59]Read from MH i2c: E2 [20:17:59]MH_I2C_Read... [20:17:59]Read from MH i2c: E2 03 00 [20:17:59]MH_I2C_Read... [20:17:59]Read from MH i2c: E2 03 00 0D 60 00 90 00 E1 [20:17:59]RAPDU: 90 00 [20:17:59]wFMCommunicate OK [20:17:59]wFMCommunicate request_size=255 [20:17:59]MH_SAM_APDU [20:17:59]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 7D A7 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 [20:17:59]Write to MH i2c: E2 02 01 0E 60 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 7D A7 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 00 00 F3 [20:17:59]Write i2c OK [20:17:59]MH_I2C_Read... [20:17:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:17:59]Read from MH i2c: E2 [20:17:59]MH_I2C_Read... [20:17:59]Read from MH i2c: E2 03 00 [20:17:59]MH_I2C_Read... [20:17:59]Read from MH i2c: E2 03 00 0E 60 00 90 00 E2 [20:17:59]RAPDU: 90 00 [20:17:59]wFMCommunicate OK [20:17:59]wFMCommunicate request_size=39 [20:17:59]MH_SAM_APDU [20:17:59]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 48 08 00 00 35 04 06 00 24 A5 11 9F FD C5 [20:17:59]Write to MH i2c: E2 2A 00 0F 60 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 48 08 00 00 35 04 06 00 24 A5 11 9F FD C5 00 00 2C [20:17:59]Write i2c OK [20:17:59]MH_I2C_Read... [20:17:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:17:59]Read from MH i2c: E2 [20:17:59]MH_I2C_Read... [20:17:59]Read from MH i2c: E2 03 00 [20:17:59]MH_I2C_Read... [20:17:59]Read from MH i2c: E2 03 00 0F 60 00 90 00 E3 [20:17:59]RAPDU: 90 00 [20:17:59]wFMCommunicate OK [20:17:59]wFMCommunicate request_size=4 [20:17:59]MH_SAM_APDU [20:17:59]CAPDU: 80 0D 03 02 [20:17:59]Write to MH i2c: E2 08 00 10 60 80 0D 03 02 00 00 00 00 EB [20:17:59]Write i2c OK [20:17:59]MH_I2C_Read... [20:17:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:17:59]Read from MH i2c: E2 [20:17:59]MH_I2C_Read... [20:17:59]Read from MH i2c: E2 0B 00 [20:17:59]MH_I2C_Read... [20:17:59]Read from MH i2c: E2 0B 00 10 60 00 42 C0 95 78 D8 09 7E AE 90 00 08 [20:17:59]RAPDU: 42 C0 95 78 D8 09 7E AE 90 00 [20:17:59]wFMCommunicate OK [20:17:59]SAM_PROTO_SignData done [20:17:59]FM_MakeSignedData done [20:17:59]CreateOFDProtocolMessage [20:17:59]wFMCommunicate request_size=4 [20:17:59]MH_SAM_APDU [20:17:59]CAPDU: 80 11 00 00 [20:17:59]Write to MH i2c: E2 08 00 11 60 80 11 00 00 00 00 00 00 EB [20:17:59]Write i2c OK [20:17:59]MH_I2C_Read... [20:17:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:17:59]Read from MH i2c: E2 [20:17:59]MH_I2C_Read... [20:17:59]Read from MH i2c: E2 17 00 [20:17:59]MH_I2C_Read... [20:17:59]Read from MH i2c: E2 17 00 11 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 3B [20:17:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:17:59]wFMCommunicate OK [20:17:59]CreateOFDProtocolMessage done [20:17:59]OFDSenderStorePacket 2120 [20:17:59]StoreOFDPacket docnum=2120 [20:17:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2C 01 00 00 CF DE 24 01 43 3A 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 7D A7 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 48 08 00 00 35 04 06 00 24 A5 11 9F FD C5 42 C0 95 78 D8 09 7E AE [20:17:59]CheckFolder [20:17:59]dirname=/storage/ofd_packets [20:17:59]CheckFolder done [20:17:59]ProducePacketName [20:17:59]name=ofd_packets/00002120 [20:17:59]NVStorageSaveData ofd_packets/00002120 [20:17:59]File name is /storage/ofd_packets/00002120 [20:17:59]Write 330 bytes [20:17:59]NVStorageSaveData done [20:17:59]OFDSenderStorePacket done [20:17:59]KKMCreateOFDPacket done [20:17:59]NVStorageSaveData kkm_last_timestamp [20:17:59]File name is /storage/kkm_last_timestamp [20:17:59]Write 4 bytes [20:17:59]NVStorageSaveData done [20:17:59]ExternCall_PrintAddStr [20:17:59]wPrintStart [20:17:59]Write to MH i2c: 01 00 00 12 60 72 [20:17:59]Write i2c OK [20:17:59]MH_I2C_Read... [20:17:59]Read from MH i2c: 01 [20:17:59]MH_I2C_Read... [20:17:59]Read from MH i2c: 01 07 00 [20:17:59]MH_I2C_Read... [20:17:59]Read from MH i2c: 01 07 00 12 60 00 00 00 00 00 FF 0F 87 [20:17:59]RasterBufferAndPrint [20:17:59]line Счет N : (3)126416 [20:17:59]line ИНН: 02508201610067 [20:17:59]line Контрольно-Кассовый Чек [20:17:59]line ПРОДАЖА [20:17:59]line Товар: 5449000000439 [20:17:59]line Напиток Кока-Кола 1,5л [20:17:59]line 1.000 * 155.00 [20:17:59]line = 155.00 [20:17:59]line НДС 12% НСП 1% [20:17:59]line > о реализуемом товаре [20:17:59]line ИТОГО: 155.00 [20:17:59]line НСП 1% : 1.37 [20:17:59]line НДС 12% : 16.46 [20:17:59]line Наличными: 155.00 [20:17:59]line Безнал.: 0.00 [20:17:59]line Место: АЗС № 127 "Партнер Нефть" [20:17:59]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [20:17:59]line СНО: Общий режим [20:17:59]line Чек 171 28.07.2024 20:18 [20:17:59]line Смена: 13 ФФД: 1.0 [20:17:59]line ЗНМ: 0300000161 [20:17:59]line РНМ: 0000000000189667 [20:17:59]line Версия ККМ: v1.0 [20:17:59]line ФМ: 0000000002094248 [20:17:59]line ФД: 2120 [20:17:59]line ФПД: 40291383901637 [20:18:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T201805&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2120&fm=40291383901637&tin=02508201610067®Number=0000000000189667&sum=15500 [20:18:00]line 0 [20:18:00]OFD Sender: Processing packet 2120 [packets to send 1, broken 0] [20:18:00]ProducePacketName [20:18:00]name=ofd_packets/00002120 [20:18:00]OFD Sender: To server: pG, [20:18:00]CommunicateWithHost lk.salyk.kg:30040 [20:18:00]ConnectInit lk.salyk.kg [20:18:00]written 0, free lines is 4095 [20:18:00]Connected sock=10 [20:18:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2C 01 00 00 CF DE 24 01 43 3A 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 7D A7 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 48 08 00 00 35 04 06 00 24 A5 11 9F FD C5 42 C0 95 78 D8 09 7E AE [20:18:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 83 3A 47 00 0E 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 32 30 39 34 32 34 38 10 04 04 00 48 08 00 00 F4 03 04 00 EC 52 A6 66 B6 04 01 00 00 FB 20 AC D1 6F 87 AA BF [20:18:00]CommunicateWithHost err = 0 [20:18:00]CheckOFDResponse [20:18:00]1017 (14) - 77093643461234 [20:18:00]1041 (16) - 0000000002094248 [20:18:00]1040 (4) - 2120 [20:18:00]1012 (4) - 28.07.2024 14:17 [20:18:00]1206 (1) - 0 [20:18:00]OFD Sender: Remove packet 2120 [20:18:00]ProducePacketName [20:18:00]name=ofd_packets/00002120 [20:18:00]NVStorageDeleteData [20:18:00]Write to MH i2c: 01 00 00 3A 60 9A [20:18:00]Write i2c OK [20:18:00]MH_I2C_Read... [20:18:00]Read from MH i2c: 01 [20:18:00]MH_I2C_Read... [20:18:00]Read from MH i2c: 01 07 00 [20:18:00]MH_I2C_Read... [20:18:00]Read from MH i2c: 01 07 00 3A 60 00 00 00 00 00 12 0D C0 [20:18:00]RasterBufferAndPrint [20:18:00]line [20:18:00]line [20:18:00]line [20:18:00]line [20:18:00]line [20:18:00]written 0, free lines is 3353 [20:18:00]MH_Cut [20:18:00]Write to MH i2c: D1 01 00 41 60 01 73 [20:18:00]Write i2c OK [20:18:00]MH_I2C_Read... [20:18:00]Read from MH i2c: D1 [20:18:00]MH_I2C_Read... [20:18:00]Read from MH i2c: D1 01 00 [20:18:00]MH_I2C_Read... [20:18:00]Read from MH i2c: D1 01 00 41 60 00 72 [20:18:00]Write to MH i2c: 01 00 00 42 60 A2 [20:18:00]Write i2c OK [20:18:00]MH_I2C_Read... [20:18:00]OFD Sender: No OFD packet to send [20:18:01]*** Cut start [20:18:01]*** Partial cut [20:18:01]*** CUTSNS_PIN = 1 [20:18:01]*** CUTSNS_PIN = 0 [20:18:01]*** Brake cut motor [20:18:01]Read from MH i2c: 01 [20:18:01]MH_I2C_Read... [20:18:01]*** Stop cut motor [20:18:01]*** Cut end [20:18:01]Read from MH i2c: 01 07 00 [20:18:01]MH_I2C_Read... [20:18:01]Read from MH i2c: 01 07 00 42 60 00 00 00 00 00 FF 0F B7 [20:18:01]process_action close_receipt done [20:18:01]requested_data is exist [20:18:01]produce_requested_data [20:18:01]requested_item fm.sn is exist - process it [20:18:01]wFMCommunicate request_size=4 [20:18:01]MH_SAM_APDU [20:18:01]CAPDU: 80 11 00 00 [20:18:01]Write to MH i2c: E2 08 00 43 60 80 11 00 00 00 00 00 00 1D [20:18:01]Write i2c OK [20:18:01]MH_I2C_Read... [20:18:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:01]Read from MH i2c: E2 [20:18:01]MH_I2C_Read... [20:18:01]Read from MH i2c: E2 17 00 [20:18:01]MH_I2C_Read... [20:18:01]Read from MH i2c: E2 17 00 43 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 6D [20:18:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:18:01]wFMCommunicate OK [20:18:01]requested_item fd.num is exist - process it [20:18:01]SAM_PROTO_GetFieldsCounters [20:18:01]wFMCommunicate request_size=4 [20:18:01]MH_SAM_APDU [20:18:01]CAPDU: 80 13 00 00 [20:18:01]Write to MH i2c: E2 08 00 44 60 80 13 00 00 00 00 00 00 20 [20:18:01]Write i2c OK [20:18:01]MH_I2C_Read... [20:18:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:18:01]Read from MH i2c: E2 [20:18:01]MH_I2C_Read... [20:18:01]Read from MH i2c: E2 62 00 [20:18:01]MH_I2C_Read... [20:18:01]Read from MH i2c: E2 62 00 44 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 48 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 A8 [20:18:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 48 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:18:01]wFMCommunicate OK [20:18:01]SAM_PROTO_GetFieldsCounters done [20:18:01]requested_item shift.num is exist - process it [20:18:01]requested_item shift.opened is exist - process it [20:18:01]req_shift_opened [20:18:01]FM_GetShiftState [20:18:01]SAM_PROTO_GetShiftState [20:18:01]wFMCommunicate request_size=4 [20:18:01]MH_SAM_APDU [20:18:01]CAPDU: 80 13 01 00 [20:18:01]Write to MH i2c: E2 08 00 45 60 80 13 01 00 00 00 00 00 22 [20:18:01]Write i2c OK [20:18:02]MH_I2C_Read... [20:18:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:02]Read from MH i2c: E2 [20:18:02]MH_I2C_Read... [20:18:02]Read from MH i2c: E2 0E 00 [20:18:02]MH_I2C_Read... [20:18:02]Read from MH i2c: E2 0E 00 45 60 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 16 [20:18:02]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [20:18:02]wFMCommunicate OK [20:18:02]SAM_PROTO_GetShiftState done [20:18:02]FM_GetShiftState done [20:18:02]req_shift_opened done [20:18:02]requested_item shift.open_date is exist - process it [20:18:02]req_shift_open_date [20:18:02]req_shift_open_date done [20:18:02]produce_requested_data done [20:18:02]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2120,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [20:18:02]process_action_free close_receipt [20:18:02]json_value_free [20:18:02]json_value_free done [20:18:02]process_json_proto returns [20:18:02]Send response to host [20:18:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2120,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [20:18:02]free response buf [20:18:02]execute_script done [20:18:02]execute_script returns [20:18:02]free content buf [20:18:02]Sock 9.Close socket [20:18:02]Sock 9.Thread stoped [20:18:05]OFD Sender: No OFD packet to send [20:18:10]OFD Sender: No OFD packet to send [20:18:15]OFD Sender: No OFD packet to send [20:18:20]OFD Sender: No OFD packet to send [20:18:25]OFD Sender: No OFD packet to send [20:18:30]OFD Sender: No OFD packet to send [20:18:35]OFD Sender: No OFD packet to send [20:18:40]OFD Sender: No OFD packet to send [20:18:45]OFD Sender: No OFD packet to send [20:18:50]OFD Sender: No OFD packet to send [20:18:55]OFD Sender: No OFD packet to send [20:19:00]OFD Sender: No OFD packet to send [20:19:05]OFD Sender: No OFD packet to send [20:19:10]OFD Sender: No OFD packet to send [20:19:15]OFD Sender: No OFD packet to send [20:19:21]OFD Sender: No OFD packet to send [20:19:26]OFD Sender: No OFD packet to send [20:19:31]OFD Sender: No OFD packet to send [20:19:36]OFD Sender: No OFD packet to send [20:19:41]OFD Sender: No OFD packet to send [20:19:46]OFD Sender: No OFD packet to send [20:19:51]OFD Sender: No OFD packet to send [20:19:56]OFD Sender: No OFD packet to send [20:20:01]OFD Sender: No OFD packet to send [20:20:06]OFD Sender: No OFD packet to send [20:20:11]OFD Sender: No OFD packet to send [20:20:16]OFD Sender: No OFD packet to send [20:20:18]accept exits with 8 [20:20:18]New connection [20:20:18]New thread 3067460964 created [20:20:18]Thread 3067317604 joined [20:20:18]Waiting for new connection... [20:20:18] Sock 8.Parse request [20:20:18]Sock 8.Check first char [20:20:18]Sock 8.First char is OK [20:20:18]request: POST /json_proto HTTP/1.0 [20:20:18]Method: POST [20:20:18]URL: /json_proto [20:20:18]Method is POST - this is cgi request [20:20:18]url: /json_proto [20:20:18]query_string will be loaded in cgi processing [20:20:18]execute_cgi json_proto POST (null) [20:20:18]execute_cgi path=json_proto method=POST [20:20:18]POST find Content-Length [20:20:18]Host: 172.17.45.132:8080 [20:20:18]Content-Length: 1363 [20:20:18]Content-Type: application/json [20:20:18] [20:20:18]POST finish read [20:20:18]Found Content-Length = 1363 [20:20:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126417", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4860019001810", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 \u043C\u0438\u043D\u0435\u0440\u0430\u043B\u044C\u043D\u0430\u044F \u0436/\u0431 0,33\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 150.00, "quantity" : 3.000, "sum" : 450.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" : 610.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:20:18]execute_script... [20:20:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126417", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4860019001810", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 \u043C\u0438\u043D\u0435\u0440\u0430\u043B\u044C\u043D\u0430\u044F \u0436/\u0431 0,33\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 150.00, "quantity" : 3.000, "sum" : 450.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" : 610.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:20:18]POST & json_proto [20:20:18]process_json_proto [20:20:18]json parsed OK: [20:20:18]protocol is kg_v1.0 [20:20:18]action value=close_receipt [20:20:18]process_action close_receipt [20:20:18]cmd_close_receipt [20:20:18]MH_GetDate [20:20:18]Write to MH i2c: F0 00 00 46 60 95 [20:20:18]Write i2c OK [20:20:18]MH_I2C_Read... [20:20:18]Read from MH i2c: F0 [20:20:18]MH_I2C_Read... [20:20:18]Read from MH i2c: F0 09 00 [20:20:18]MH_I2C_Read... [20:20:18]Read from MH i2c: F0 09 00 46 60 00 09 A8 A6 66 E3 0B 90 66 3F [20:20:18]GetLastDocTimeStamp 1722197885 [20:20:18]current date 1722198025 [20:20:18]FM_GetShiftState [20:20:18]SAM_PROTO_GetShiftState [20:20:18]wFMCommunicate request_size=4 [20:20:18]MH_SAM_APDU [20:20:18]CAPDU: 80 13 01 00 [20:20:18]Write to MH i2c: E2 08 00 47 60 80 13 01 00 00 00 00 00 24 [20:20:18]Write i2c OK [20:20:18]MH_I2C_Read... [20:20:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:20:18]Read from MH i2c: E2 [20:20:18]MH_I2C_Read... [20:20:18]Read from MH i2c: E2 0E 00 [20:20:18]MH_I2C_Read... [20:20:18]Read from MH i2c: E2 0E 00 47 60 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 18 [20:20:18]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [20:20:18]wFMCommunicate OK [20:20:18]SAM_PROTO_GetShiftState done [20:20:18]FM_GetShiftState done [20:20:18]opened in 1722125648 [20:20:18]opened+sec_in_day 1722212048 [20:20:18]quantity*price = 6000 [20:20:18]sum+1 = 6001 [20:20:18]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4860019001810 Вода Боржоми минеральная ж/б 0,33л 1.000 * 100.00 = 100.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4640030091607 Сигареты ESSE Exchange 3.000 * 150.00 = 450.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 610.00 НСП 1% : 5.39 НДС 12% : 64.78 Наличными: 0.00 Безнал.: 610.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 172 28.07.2024 20:20 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2121 ФПД: 113658867037280 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T202026&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2121&fm=113658867037280&tin=02508201610067®Number=0000000000189667&sum=61000 0 [20:20:19]StoreToDocumentArchive [20:20:19]shift 13 fd 2121 [20:20:19]save to /storage/0013/doc_00002121 [20:20:19]save last doc name /storage/0013/doc_00002121 to /storage/kkm_last_doc_name [20:20:19]save OK [20:20:19]Clear old archive folders... [20:20:19]ProcessDocumentItem done err = 0, tmpTLVsize=504 [20:20:19]tlvbuf is 01F38250 [20:20:19]SAM_PROTO_ClearQueue [20:20:19]wFMCommunicate request_size=4 [20:20:19]MH_SAM_APDU [20:20:19]CAPDU: 80 09 00 00 [20:20:19]Write to MH i2c: E2 08 00 54 60 80 09 00 00 00 00 00 00 26 [20:20:19]Write i2c OK [20:20:19]MH_I2C_Read... [20:20:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:20:19]Read from MH i2c: E2 [20:20:19]MH_I2C_Read... [20:20:19]Read from MH i2c: E2 03 00 [20:20:19]MH_I2C_Read... [20:20:19]Read from MH i2c: E2 03 00 54 60 00 90 00 28 [20:20:19]RAPDU: 90 00 [20:20:19]wFMCommunicate OK [20:20:19]SAM_PROTO_ClearQueue done [20:20:19]KKMCreateOFDPacket [20:20:19]OFDProtocolAddRootSTLVToBuf [20:20:19]FM_MakeSignedData [20:20:19]FM_MakeSignedData [20:20:19]SAM_PROTO_SignData [20:20:19]wFMCommunicate request_size=4 [20:20:19]MH_SAM_APDU [20:20:19]CAPDU: 80 0D 01 02 [20:20:19]Write to MH i2c: E2 08 00 55 60 80 0D 01 02 00 00 00 00 2E [20:20:19]Write i2c OK [20:20:19]MH_I2C_Read... [20:20:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:20:19]Read from MH i2c: E2 [20:20:19]MH_I2C_Read... [20:20:19]Read from MH i2c: E2 03 00 [20:20:19]MH_I2C_Read... [20:20:19]Read from MH i2c: E2 03 00 55 60 00 90 00 29 [20:20:19]RAPDU: 90 00 [20:20:19]wFMCommunicate OK [20:20:19]wFMCommunicate request_size=255 [20:20:19]MH_SAM_APDU [20:20:19]CAPDU: 80 0D 02 02 FA 03 00 F8 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 30 34 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 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 38 31 30 06 04 3B 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 D0 BC D0 B8 D0 BD D0 B5 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 B6 2F D0 B1 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 [20:20:20]Write to MH i2c: E2 02 01 56 60 80 0D 02 02 FA 00 03 00 F8 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 30 34 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 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 38 31 30 06 04 3B 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 D0 BC D0 B8 D0 BD D0 B5 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 B6 2F D0 B1 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 00 00 A0 [20:20:20]Write i2c OK [20:20:20]MH_I2C_Read... [20:20:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:20:20]Read from MH i2c: E2 [20:20:20]MH_I2C_Read... [20:20:20]Read from MH i2c: E2 03 00 [20:20:20]MH_I2C_Read... [20:20:20]Read from MH i2c: E2 03 00 56 60 00 90 00 2A [20:20:20]RAPDU: 90 00 [20:20:20]wFMCommunicate OK [20:20:20]wFMCommunicate request_size=255 [20:20:20]MH_SAM_APDU [20:20:20]CAPDU: 80 0D 02 02 FA 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 98 3A 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 48 EE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 19 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 48 EE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 0A A8 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 49 08 00 00 35 04 [20:20:20]Write to MH i2c: E2 02 01 57 60 80 0D 02 02 FA 00 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 98 3A 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 48 EE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 19 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 48 EE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 0A A8 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 49 08 00 00 35 04 00 00 EE [20:20:20]Write i2c OK [20:20:20]MH_I2C_Read... [20:20:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:20:20]Read from MH i2c: E2 [20:20:20]MH_I2C_Read... [20:20:20]Read from MH i2c: E2 03 00 [20:20:20]MH_I2C_Read... [20:20:20]Read from MH i2c: E2 03 00 57 60 00 90 00 2B [20:20:20]RAPDU: 90 00 [20:20:20]wFMCommunicate OK [20:20:20]wFMCommunicate request_size=13 [20:20:20]MH_SAM_APDU [20:20:20]CAPDU: 80 0D 02 02 08 06 00 67 5F 44 65 34 60 [20:20:20]Write to MH i2c: E2 10 00 58 60 80 0D 02 02 08 00 06 00 67 5F 44 65 34 60 00 00 4B [20:20:20]Write i2c OK [20:20:20]MH_I2C_Read... [20:20:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:20:20]Read from MH i2c: E2 [20:20:20]MH_I2C_Read... [20:20:20]Read from MH i2c: E2 03 00 [20:20:20]MH_I2C_Read... [20:20:20]Read from MH i2c: E2 03 00 58 60 00 90 00 2C [20:20:20]RAPDU: 90 00 [20:20:20]wFMCommunicate OK [20:20:20]wFMCommunicate request_size=4 [20:20:20]MH_SAM_APDU [20:20:20]CAPDU: 80 0D 03 02 [20:20:20]Write to MH i2c: E2 08 00 59 60 80 0D 03 02 00 00 00 00 34 [20:20:20]Write i2c OK [20:20:20]MH_I2C_Read... [20:20:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:20:20]Read from MH i2c: E2 [20:20:20]MH_I2C_Read... [20:20:20]Read from MH i2c: E2 0B 00 [20:20:20]MH_I2C_Read... [20:20:20]Read from MH i2c: E2 0B 00 59 60 00 79 4D 5F 5A 5C 9E 07 81 90 00 36 [20:20:20]RAPDU: 79 4D 5F 5A 5C 9E 07 81 90 00 [20:20:20]wFMCommunicate OK [20:20:20]SAM_PROTO_SignData done [20:20:20]FM_MakeSignedData done [20:20:20]CreateOFDProtocolMessage [20:20:20]wFMCommunicate request_size=4 [20:20:20]MH_SAM_APDU [20:20:20]CAPDU: 80 11 00 00 [20:20:20]Write to MH i2c: E2 08 00 5A 60 80 11 00 00 00 00 00 00 34 [20:20:20]Write i2c OK [20:20:20]MH_I2C_Read... [20:20:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:20:20]Read from MH i2c: E2 [20:20:20]MH_I2C_Read... [20:20:20]Read from MH i2c: E2 17 00 [20:20:20]MH_I2C_Read... [20:20:20]Read from MH i2c: E2 17 00 5A 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 84 [20:20:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:20:20]wFMCommunicate OK [20:20:20]CreateOFDProtocolMessage done [20:20:20]OFDSenderStorePacket 2121 [20:20:20]StoreOFDPacket docnum=2121 [20:20:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0C 02 00 00 DB 04 04 02 12 31 5A 03 01 00 03 00 F8 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 30 34 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 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 38 31 30 06 04 3B 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 D0 BC D0 B8 D0 BD D0 B5 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 B6 2F D0 B1 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 98 3A 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 48 EE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 19 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 48 EE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 0A A8 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 49 08 00 00 35 04 06 00 67 5F 44 65 34 60 79 4D 5F 5A 5C 9E 07 81 [20:20:20]CheckFolder [20:20:20]dirname=/storage/ofd_packets [20:20:20]CheckFolder done [20:20:20]ProducePacketName [20:20:20]name=ofd_packets/00002121 [20:20:20]NVStorageSaveData ofd_packets/00002121 [20:20:20]File name is /storage/ofd_packets/00002121 [20:20:20]Write 554 bytes [20:20:20]NVStorageSaveData done [20:20:20]OFDSenderStorePacket done [20:20:20]KKMCreateOFDPacket done [20:20:20]NVStorageSaveData kkm_last_timestamp [20:20:20]File name is /storage/kkm_last_timestamp [20:20:20]Write 4 bytes [20:20:20]NVStorageSaveData done [20:20:20]ExternCall_PrintAddStr [20:20:20]wPrintStart [20:20:20]Write to MH i2c: 01 00 00 5B 60 BB [20:20:20]Write i2c OK [20:20:20]MH_I2C_Read... [20:20:20]Read from MH i2c: 01 [20:20:20]MH_I2C_Read... [20:20:20]Read from MH i2c: 01 07 00 [20:20:20]MH_I2C_Read... [20:20:20]Read from MH i2c: 01 07 00 5B 60 00 00 00 00 00 FF 0F D0 [20:20:20]RasterBufferAndPrint [20:20:20]line Счет N : (3)126417 [20:20:20]line ИНН: 02508201610067 [20:20:20]line Контрольно-Кассовый Чек [20:20:20]line ПРОДАЖА [20:20:20]line Товар: 4700000160204 [20:20:20]line Вода Легенда 1,5л [20:20:20]line 1.000 * 60.00 [20:20:20]line = 60.00 [20:20:20]line НДС 12% НСП 1% [20:20:20]line > о реализуемом товаре [20:20:20]line Товар: 4860019001810 [20:20:20]line Вода Боржоми минеральная ж/б 0,33л [20:20:20]line 1.000 * 100.00 [20:20:20]line = 100.00 [20:20:20]line НДС 12% НСП 1% [20:20:20]line > о реализуемом товаре [20:20:20]line Товар: 4640030091607 [20:20:20]line Сигареты ESSE Exchange [20:20:20]line 3.000 * 150.00 [20:20:20]line = 450.00 [20:20:20]line НДС 12% НСП 1% [20:20:20]line > о реализуемом товаре [20:20:20]line ИТОГО: 610.00 [20:20:20]line НСП 1% : 5.39 [20:20:20]line НДС 12% : 64.78 [20:20:20]line Наличными: 0.00 [20:20:20]line Безнал.: 610.00 [20:20:20]line Место: АЗС № 127 "Партнер Нефть" [20:20:20]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [20:20:20]line СНО: Общий режим [20:20:20]line Чек 172 28.07.2024 20:20 [20:20:20]line Смена: 13 ФФД: 1.0 [20:20:20]line ЗНМ: 0300000161 [20:20:20]line РНМ: 0000000000189667 [20:20:20]line Версия ККМ: v1.0 [20:20:20]line Платежная система: O! деньги [20:20:20]line ФМ: 0000000002094248 [20:20:20]line ФД: 2121 [20:20:20]line ФПД: 113658867037280 [20:20:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T202026&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2121&fm=113658867037280&tin=02508201610067®Number=0000000000189667&sum=61000 [20:20:21]line 0 [20:20:21]OFD Sender: Processing packet 2121 [packets to send 1, broken 0] [20:20:21]ProducePacketName [20:20:21]name=ofd_packets/00002121 [20:20:21]OFD Sender: To server: pG, [20:20:21]CommunicateWithHost lk.salyk.kg:30040 [20:20:21]ConnectInit lk.salyk.kg [20:20:21]written 0, free lines is 4095 [20:20:21]Connected sock=10 [20:20:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0C 02 00 00 DB 04 04 02 12 31 5A 03 01 00 03 00 F8 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 30 34 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 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 38 31 30 06 04 3B 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 D0 BC D0 B8 D0 BD D0 B5 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 B6 2F D0 B1 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 98 3A 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 48 EE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 19 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 48 EE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 0A A8 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 49 08 00 00 35 04 06 00 67 5F 44 65 34 60 79 4D 5F 5A 5C 9E 07 81 [20:20:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 CA 89 47 00 DF DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 49 08 00 00 F4 03 04 00 79 53 A6 66 B6 04 01 00 00 DD 76 24 AE 15 08 79 B0 [20:20:21]CommunicateWithHost err = 0 [20:20:21]CheckOFDResponse [20:20:21]1017 (14) - 77093643461234 [20:20:21]1041 (16) - 0000000002094248 [20:20:21]1040 (4) - 2121 [20:20:21]1012 (4) - 28.07.2024 14:19 [20:20:21]1206 (1) - 0 [20:20:21]OFD Sender: Remove packet 2121 [20:20:21]ProducePacketName [20:20:21]name=ofd_packets/00002121 [20:20:21]NVStorageDeleteData [20:20:21]Write to MH i2c: 01 00 00 92 60 F2 [20:20:21]Write i2c OK [20:20:21]MH_I2C_Read... [20:20:21]Read from MH i2c: 01 [20:20:21]MH_I2C_Read... [20:20:21]Read from MH i2c: 01 07 00 [20:20:21]MH_I2C_Read... [20:20:21]Read from MH i2c: 01 07 00 92 60 00 00 00 00 00 51 0C 56 [20:20:21]RasterBufferAndPrint [20:20:21]line [20:20:21]line [20:20:21]line [20:20:21]line [20:20:21]line [20:20:21]written 0, free lines is 3163 [20:20:21]MH_Cut [20:20:21]Write to MH i2c: D1 01 00 99 60 01 CB [20:20:21]Write i2c OK [20:20:21]MH_I2C_Read... [20:20:21]Read from MH i2c: D1 [20:20:21]MH_I2C_Read... [20:20:21]Read from MH i2c: D1 01 00 [20:20:21]MH_I2C_Read... [20:20:21]Read from MH i2c: D1 01 00 99 60 00 CA [20:20:21]Write to MH i2c: 01 00 00 9A 60 FA [20:20:21]Write i2c OK [20:20:21]MH_I2C_Read... [20:20:22]OFD Sender: No OFD packet to send [20:20:22]*** Cut start [20:20:22]*** Partial cut [20:20:22]*** CUTSNS_PIN = 1 [20:20:22]*** CUTSNS_PIN = 0 [20:20:22]*** Brake cut motor [20:20:23]Read from MH i2c: 01 [20:20:23]MH_I2C_Read... [20:20:23]*** Stop cut motor [20:20:23]*** Cut end [20:20:23]Read from MH i2c: 01 07 00 [20:20:23]MH_I2C_Read... [20:20:23]Read from MH i2c: 01 07 00 9A 60 00 00 00 00 00 FF 0F 0F [20:20:23]process_action close_receipt done [20:20:23]requested_data is exist [20:20:23]produce_requested_data [20:20:23]requested_item fm.sn is exist - process it [20:20:23]wFMCommunicate request_size=4 [20:20:23]MH_SAM_APDU [20:20:23]CAPDU: 80 11 00 00 [20:20:23]Write to MH i2c: E2 08 00 9B 60 80 11 00 00 00 00 00 00 75 [20:20:23]Write i2c OK [20:20:23]MH_I2C_Read... [20:20:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:20:23]Read from MH i2c: E2 [20:20:23]MH_I2C_Read... [20:20:23]Read from MH i2c: E2 17 00 [20:20:23]MH_I2C_Read... [20:20:23]Read from MH i2c: E2 17 00 9B 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 C5 [20:20:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:20:23]wFMCommunicate OK [20:20:23]requested_item fd.num is exist - process it [20:20:23]SAM_PROTO_GetFieldsCounters [20:20:23]wFMCommunicate request_size=4 [20:20:23]MH_SAM_APDU [20:20:23]CAPDU: 80 13 00 00 [20:20:23]Write to MH i2c: E2 08 00 9C 60 80 13 00 00 00 00 00 00 78 [20:20:23]Write i2c OK [20:20:23]MH_I2C_Read... [20:20:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:20:23]Read from MH i2c: E2 [20:20:23]MH_I2C_Read... [20:20:23]Read from MH i2c: E2 62 00 [20:20:23]MH_I2C_Read... [20:20:23]Read from MH i2c: E2 62 00 9C 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 49 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [20:20:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 49 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:20:23]wFMCommunicate OK [20:20:23]SAM_PROTO_GetFieldsCounters done [20:20:23]requested_item shift.num is exist - process it [20:20:23]requested_item shift.opened is exist - process it [20:20:23]req_shift_opened [20:20:23]FM_GetShiftState [20:20:23]SAM_PROTO_GetShiftState [20:20:23]wFMCommunicate request_size=4 [20:20:23]MH_SAM_APDU [20:20:23]CAPDU: 80 13 01 00 [20:20:23]Write to MH i2c: E2 08 00 9D 60 80 13 01 00 00 00 00 00 7A [20:20:23]Write i2c OK [20:20:23]MH_I2C_Read... [20:20:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:20:23]Read from MH i2c: E2 [20:20:23]MH_I2C_Read... [20:20:23]Read from MH i2c: E2 0E 00 [20:20:23]MH_I2C_Read... [20:20:23]Read from MH i2c: E2 0E 00 9D 60 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 6E [20:20:23]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [20:20:23]wFMCommunicate OK [20:20:23]SAM_PROTO_GetShiftState done [20:20:23]FM_GetShiftState done [20:20:23]req_shift_opened done [20:20:23]requested_item shift.open_date is exist - process it [20:20:23]req_shift_open_date [20:20:23]req_shift_open_date done [20:20:23]produce_requested_data done [20:20:23]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2121,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [20:20:23]process_action_free close_receipt [20:20:23]json_value_free [20:20:23]json_value_free done [20:20:23]process_json_proto returns [20:20:23]Send response to host [20:20:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2121,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [20:20:23]free response buf [20:20:23]execute_script done [20:20:23]execute_script returns [20:20:23]free content buf [20:20:23]Sock 8.Close socket [20:20:23]Sock 8.Thread stoped [20:20:27]OFD Sender: No OFD packet to send [20:20:32]OFD Sender: No OFD packet to send [20:20:37]OFD Sender: No OFD packet to send [20:20:42]OFD Sender: No OFD packet to send [20:20:47]OFD Sender: No OFD packet to send [20:20:52]OFD Sender: No OFD packet to send [20:20:57]OFD Sender: No OFD packet to send [20:21:02]OFD Sender: No OFD packet to send [20:21:07]OFD Sender: No OFD packet to send [20:21:12]OFD Sender: No OFD packet to send [20:21:17]OFD Sender: No OFD packet to send [20:21:22]OFD Sender: No OFD packet to send [20:21:27]OFD Sender: No OFD packet to send [20:21:32]OFD Sender: No OFD packet to send [20:21:37]OFD Sender: No OFD packet to send [20:21:42]OFD Sender: No OFD packet to send [20:21:47]OFD Sender: No OFD packet to send [20:21:52]OFD Sender: No OFD packet to send [20:21:57]OFD Sender: No OFD packet to send [20:22:02]OFD Sender: No OFD packet to send [20:22:07]OFD Sender: No OFD packet to send [20:22:12]OFD Sender: No OFD packet to send [20:22:17]OFD Sender: No OFD packet to send [20:22:22]OFD Sender: No OFD packet to send [20:22:27]OFD Sender: No OFD packet to send [20:22:32]OFD Sender: No OFD packet to send [20:22:37]OFD Sender: No OFD packet to send [20:22:42]OFD Sender: No OFD packet to send [20:22:47]OFD Sender: No OFD packet to send [20:22:52]OFD Sender: No OFD packet to send [20:22:57]OFD Sender: No OFD packet to send [20:23:02]OFD Sender: No OFD packet to send [20:23:07]OFD Sender: No OFD packet to send [20:23:12]OFD Sender: No OFD packet to send [20:23:17]OFD Sender: No OFD packet to send [20:23:22]OFD Sender: No OFD packet to send [20:23:27]OFD Sender: No OFD packet to send [20:23:32]OFD Sender: No OFD packet to send [20:23:37]OFD Sender: No OFD packet to send [20:23:42]OFD Sender: No OFD packet to send [20:23:47]OFD Sender: No OFD packet to send [20:23:52]OFD Sender: No OFD packet to send [20:23:57]OFD Sender: No OFD packet to send [20:24:02]OFD Sender: No OFD packet to send [20:24:07]OFD Sender: No OFD packet to send [20:24:12]OFD Sender: No OFD packet to send [20:24:17]OFD Sender: No OFD packet to send [20:24:22]OFD Sender: No OFD packet to send [20:24:27]OFD Sender: No OFD packet to send [20:24:32]OFD Sender: No OFD packet to send [20:24:37]OFD Sender: No OFD packet to send [20:24:42]OFD Sender: No OFD packet to send [20:24:47]OFD Sender: No OFD packet to send [20:24:52]OFD Sender: No OFD packet to send [20:24:57]OFD Sender: No OFD packet to send [20:25:02]OFD Sender: No OFD packet to send [20:25:07]OFD Sender: No OFD packet to send [20:25:12]OFD Sender: No OFD packet to send [20:25:17]OFD Sender: No OFD packet to send [20:25:22]OFD Sender: No OFD packet to send [20:25:27]OFD Sender: No OFD packet to send [20:25:32]OFD Sender: No OFD packet to send [20:25:37]OFD Sender: No OFD packet to send [20:25:42]OFD Sender: No OFD packet to send [20:25:47]OFD Sender: No OFD packet to send [20:25:52]OFD Sender: No OFD packet to send [20:25:57]OFD Sender: No OFD packet to send [20:26:02]OFD Sender: No OFD packet to send [20:26:07]OFD Sender: No OFD packet to send [20:26:12]OFD Sender: No OFD packet to send [20:26:17]OFD Sender: No OFD packet to send [20:26:22]OFD Sender: No OFD packet to send [20:26:27]OFD Sender: No OFD packet to send [20:26:32]OFD Sender: No OFD packet to send [20:26:37]OFD Sender: No OFD packet to send [20:26:42]OFD Sender: No OFD packet to send [20:26:47]OFD Sender: No OFD packet to send [20:26:52]OFD Sender: No OFD packet to send [20:26:57]OFD Sender: No OFD packet to send [20:27:02]OFD Sender: No OFD packet to send [20:27:07]OFD Sender: No OFD packet to send [20:27:12]OFD Sender: No OFD packet to send [20:27:17]OFD Sender: No OFD packet to send [20:27:22]OFD Sender: No OFD packet to send [20:27:27]OFD Sender: No OFD packet to send [20:27:32]OFD Sender: No OFD packet to send [20:27:37]OFD Sender: No OFD packet to send [20:27:42]OFD Sender: No OFD packet to send [20:27:47]OFD Sender: No OFD packet to send [20:27:52]OFD Sender: No OFD packet to send [20:27:57]OFD Sender: No OFD packet to send [20:28:02]OFD Sender: No OFD packet to send [20:28:07]OFD Sender: No OFD packet to send [20:28:10]accept exits with 9 [20:28:10]New connection [20:28:10]New thread 3067317604 created [20:28:10]Thread 3067460964 joined [20:28:10]Waiting for new connection... [20:28:10] Sock 9.Parse request [20:28:10]Sock 9.Check first char [20:28:10]Sock 9.First char is OK [20:28:10]request: POST /json_proto HTTP/1.0 [20:28:10]Method: POST [20:28:10]URL: /json_proto [20:28:10]Method is POST - this is cgi request [20:28:10]url: /json_proto [20:28:10]query_string will be loaded in cgi processing [20:28:10]execute_cgi json_proto POST (null) [20:28:10]execute_cgi path=json_proto method=POST [20:28:10]POST find Content-Length [20:28:10]Host: 172.17.45.132:8080 [20:28:10]Content-Length: 1369 [20:28:10]Content-Type: application/json [20:28:10] [20:28:10]POST finish read [20:28:10]Found Content-Length = 1369 [20:28:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126418", "tax_sys" : 0, "items" : [ { "code": "4700003150714", "name": "\u0412\u043E\u0434\u043A\u0430 FAVORIT 0,7", "price" : 780.00, "quantity" : 1.000, "sum" : 780.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" : 4.000, "sum" : 28.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000000286", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 2\u043B", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 1058.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:28:10]execute_script... [20:28: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)126418", "tax_sys" : 0, "items" : [ { "code": "4700003150714", "name": "\u0412\u043E\u0434\u043A\u0430 FAVORIT 0,7", "price" : 780.00, "quantity" : 1.000, "sum" : 780.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" : 4.000, "sum" : 28.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000000286", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 2\u043B", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 1058.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:28:10]POST & json_proto [20:28:10]process_json_proto [20:28:10]json parsed OK: [20:28:10]protocol is kg_v1.0 [20:28:10]action value=close_receipt [20:28:10]process_action close_receipt [20:28:10]cmd_close_receipt [20:28:10]MH_GetDate [20:28:10]Write to MH i2c: F0 00 00 9E 60 ED [20:28:10]Write i2c OK [20:28:10]MH_I2C_Read... [20:28:10]Read from MH i2c: F0 [20:28:10]MH_I2C_Read... [20:28:10]Read from MH i2c: F0 09 00 [20:28:10]MH_I2C_Read... [20:28:10]Read from MH i2c: F0 09 00 9E 60 00 E1 A9 A6 66 E3 0B 90 66 70 [20:28:10]GetLastDocTimeStamp 1722198026 [20:28:10]current date 1722198497 [20:28:10]FM_GetShiftState [20:28:10]SAM_PROTO_GetShiftState [20:28:10]wFMCommunicate request_size=4 [20:28:10]MH_SAM_APDU [20:28:10]CAPDU: 80 13 01 00 [20:28:10]Write to MH i2c: E2 08 00 9F 60 80 13 01 00 00 00 00 00 7C [20:28:10]Write i2c OK [20:28:10]MH_I2C_Read... [20:28:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:28:10]Read from MH i2c: E2 [20:28:10]MH_I2C_Read... [20:28:10]Read from MH i2c: E2 0E 00 [20:28:10]MH_I2C_Read... [20:28:10]Read from MH i2c: E2 0E 00 9F 60 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 70 [20:28:10]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [20:28:10]wFMCommunicate OK [20:28:10]SAM_PROTO_GetShiftState done [20:28:10]FM_GetShiftState done [20:28:10]opened in 1722125648 [20:28:10]opened+sec_in_day 1722212048 [20:28:10]quantity*price = 78000 [20:28:11]sum+1 = 78001 [20:28:11]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000053020015 Бумажные стаканы 250мл 1шт 4.000 * 7.00 = 28.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000000286 Напиток Кока-Кола 2л 1.000 * 205.00 = 205.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 50173617 Жев Orbit Eucalyptus 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 1058.00 НСП 1% : 9.36 НДС 12% : 112.35 Наличными: 1058.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 173 28.07.2024 20:28 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2122 ФПД: 63012049765921 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T202818&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2122&fm=63012049765921&tin=02508201610067®Number=0000000000189667&sum=105800 0 [20:28:12]StoreToDocumentArchive [20:28:12]shift 13 fd 2122 [20:28:12]save to /storage/0013/doc_00002122 [20:28:12]save last doc name /storage/0013/doc_00002122 to /storage/kkm_last_doc_name [20:28:12]save OK [20:28:12]Clear old archive folders... [20:28:12]ProcessDocumentItem done err = 0, tmpTLVsize=579 [20:28:12]tlvbuf is 020A6F80 [20:28:12]SAM_PROTO_ClearQueue [20:28:12]wFMCommunicate request_size=4 [20:28:12]MH_SAM_APDU [20:28:12]CAPDU: 80 09 00 00 [20:28:12]Write to MH i2c: E2 08 00 AC 60 80 09 00 00 00 00 00 00 7E [20:28:12]Write i2c OK [20:28:12]MH_I2C_Read... [20:28:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:28:12]Read from MH i2c: E2 [20:28:12]MH_I2C_Read... [20:28:12]Read from MH i2c: E2 03 00 [20:28:12]MH_I2C_Read... [20:28:12]Read from MH i2c: E2 03 00 AC 60 00 90 00 80 [20:28:12]RAPDU: 90 00 [20:28:12]wFMCommunicate OK [20:28:12]SAM_PROTO_ClearQueue done [20:28:12]KKMCreateOFDPacket [20:28:12]OFDProtocolAddRootSTLVToBuf [20:28:12]FM_MakeSignedData [20:28:12]FM_MakeSignedData [20:28:12]SAM_PROTO_SignData [20:28:12]wFMCommunicate request_size=4 [20:28:12]MH_SAM_APDU [20:28:12]CAPDU: 80 0D 01 02 [20:28:12]Write to MH i2c: E2 08 00 AD 60 80 0D 01 02 00 00 00 00 86 [20:28:12]Write i2c OK [20:28:12]MH_I2C_Read... [20:28:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:28:12]Read from MH i2c: E2 [20:28:12]MH_I2C_Read... [20:28:12]Read from MH i2c: E2 03 00 [20:28:12]MH_I2C_Read... [20:28:12]Read from MH i2c: E2 03 00 AD 60 00 90 00 81 [20:28:12]RAPDU: 90 00 [20:28:12]wFMCommunicate OK [20:28:12]wFMCommunicate request_size=255 [20:28:12]MH_SAM_APDU [20:28:12]CAPDU: 80 0D 02 02 FA 03 00 43 02 1E 04 01 00 01 23 04 5A 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 37 31 34 06 04 16 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 46 41 56 4F 52 49 54 20 30 2C 37 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 30 01 00 00 00 13 04 06 00 B0 30 01 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 A0 0F 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 F0 0A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 32 38 36 06 04 24 00 D0 9D D0 B0 D0 [20:28:12]Write to MH i2c: E2 02 01 AE 60 80 0D 02 02 FA 00 03 00 43 02 1E 04 01 00 01 23 04 5A 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 37 31 34 06 04 16 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 46 41 56 4F 52 49 54 20 30 2C 37 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 30 01 00 00 00 13 04 06 00 B0 30 01 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 A0 0F 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 F0 0A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 32 38 36 06 04 24 00 D0 9D D0 B0 D0 00 00 C2 [20:28:12]Write i2c OK [20:28:12]MH_I2C_Read... [20:28:12]OFD Sender: No OFD packet to send [20:28:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:28:12]Read from MH i2c: E2 [20:28:12]MH_I2C_Read... [20:28:12]Read from MH i2c: E2 03 00 [20:28:12]MH_I2C_Read... [20:28:12]Read from MH i2c: E2 03 00 AE 60 00 90 00 82 [20:28:12]RAPDU: 90 00 [20:28:12]wFMCommunicate OK [20:28:12]wFMCommunicate request_size=255 [20:28:12]MH_SAM_APDU [20:28:12]CAPDU: 80 0D 02 02 FA 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 32 D0 BB 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 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 48 9D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 2B 00 00 00 00 07 04 06 00 48 9D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 [20:28:12]Write to MH i2c: E2 02 01 AF 60 80 0D 02 02 FA 00 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 32 D0 BB 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 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 48 9D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 2B 00 00 00 00 07 04 06 00 48 9D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 00 54 [20:28:12]Write i2c OK [20:28:12]MH_I2C_Read... [20:28:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:28:12]Read from MH i2c: E2 [20:28:12]MH_I2C_Read... [20:28:12]Read from MH i2c: E2 03 00 [20:28:12]MH_I2C_Read... [20:28:12]Read from MH i2c: E2 03 00 AF 60 00 90 00 83 [20:28:12]RAPDU: 90 00 [20:28:12]wFMCommunicate OK [20:28:12]wFMCommunicate request_size=88 [20:28:12]MH_SAM_APDU [20:28:12]CAPDU: 80 0D 02 02 53 AD 00 00 00 F4 03 04 00 E2 A9 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 4A 08 00 00 35 04 06 00 39 4F 22 D7 C6 21 [20:28:12]Write to MH i2c: E2 5B 00 B0 60 80 0D 02 02 53 00 AD 00 00 00 F4 03 04 00 E2 A9 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 4A 08 00 00 35 04 06 00 39 4F 22 D7 C6 21 00 00 EA [20:28:12]Write i2c OK [20:28:12]MH_I2C_Read... [20:28:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:28:12]Read from MH i2c: E2 [20:28:12]MH_I2C_Read... [20:28:12]Read from MH i2c: E2 03 00 [20:28:12]MH_I2C_Read... [20:28:12]Read from MH i2c: E2 03 00 B0 60 00 90 00 84 [20:28:12]RAPDU: 90 00 [20:28:12]wFMCommunicate OK [20:28:12]wFMCommunicate request_size=4 [20:28:12]MH_SAM_APDU [20:28:12]CAPDU: 80 0D 03 02 [20:28:12]Write to MH i2c: E2 08 00 B1 60 80 0D 03 02 00 00 00 00 8C [20:28:12]Write i2c OK [20:28:12]MH_I2C_Read... [20:28:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:28:12]Read from MH i2c: E2 [20:28:12]MH_I2C_Read... [20:28:12]Read from MH i2c: E2 0B 00 [20:28:12]MH_I2C_Read... [20:28:12]Read from MH i2c: E2 0B 00 B1 60 00 A9 E1 9A 00 51 07 62 96 90 00 01 [20:28:12]RAPDU: A9 E1 9A 00 51 07 62 96 90 00 [20:28:12]wFMCommunicate OK [20:28:12]SAM_PROTO_SignData done [20:28:12]FM_MakeSignedData done [20:28:12]CreateOFDProtocolMessage [20:28:12]wFMCommunicate request_size=4 [20:28:12]MH_SAM_APDU [20:28:12]CAPDU: 80 11 00 00 [20:28:12]Write to MH i2c: E2 08 00 B2 60 80 11 00 00 00 00 00 00 8C [20:28:12]Write i2c OK [20:28:12]MH_I2C_Read... [20:28:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:28:13]Read from MH i2c: E2 [20:28:13]MH_I2C_Read... [20:28:13]Read from MH i2c: E2 17 00 [20:28:13]MH_I2C_Read... [20:28:13]Read from MH i2c: E2 17 00 B2 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 DC [20:28:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:28:13]wFMCommunicate OK [20:28:13]CreateOFDProtocolMessage done [20:28:13]OFDSenderStorePacket 2122 [20:28:13]StoreOFDPacket docnum=2122 [20:28:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 57 02 00 00 7B 1D 4F 02 B6 79 5A 03 01 00 03 00 43 02 1E 04 01 00 01 23 04 5A 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 37 31 34 06 04 16 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 46 41 56 4F 52 49 54 20 30 2C 37 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 30 01 00 00 00 13 04 06 00 B0 30 01 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 A0 0F 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 F0 0A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 32 38 36 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 32 D0 BB 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 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 48 9D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 2B 00 00 00 00 07 04 06 00 48 9D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 E2 A9 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 4A 08 00 00 35 04 06 00 39 4F 22 D7 C6 21 A9 E1 9A 00 51 07 62 96 [20:28:13]CheckFolder [20:28:13]dirname=/storage/ofd_packets [20:28:13]CheckFolder done [20:28:13]ProducePacketName [20:28:13]name=ofd_packets/00002122 [20:28:13]NVStorageSaveData ofd_packets/00002122 [20:28:13]File name is /storage/ofd_packets/00002122 [20:28:13]Write 629 bytes [20:28:13]NVStorageSaveData done [20:28:13]OFDSenderStorePacket done [20:28:13]KKMCreateOFDPacket done [20:28:13]NVStorageSaveData kkm_last_timestamp [20:28:13]File name is /storage/kkm_last_timestamp [20:28:13]Write 4 bytes [20:28:13]NVStorageSaveData done [20:28:13]ExternCall_PrintAddStr [20:28:13]wPrintStart [20:28:13]Write to MH i2c: 01 00 00 B3 60 13 [20:28:13]Write i2c OK [20:28:13]MH_I2C_Read... [20:28:13]Read from MH i2c: 01 [20:28:13]MH_I2C_Read... [20:28:13]Read from MH i2c: 01 07 00 [20:28:13]MH_I2C_Read... [20:28:13]Read from MH i2c: 01 07 00 B3 60 00 00 00 00 00 FF 0F 28 [20:28:13]RasterBufferAndPrint [20:28:13]line Счет N : (3)126418 [20:28:13]line ИНН: 02508201610067 [20:28:13]line Контрольно-Кассовый Чек [20:28:13]line ПРОДАЖА [20:28:13]line Товар: 4700003150714 [20:28:13]line Водка FAVORIT 0,7 [20:28:13]line 1.000 * 780.00 [20:28:13]line = 780.00 [20:28:13]line НДС 12% НСП 1% [20:28:13]line > о реализуемом товаре [20:28:13]line Товар: 2000053020015 [20:28:13]line Бумажные стаканы 250мл 1шт [20:28:13]line 4.000 * 7.00 [20:28:13]line = 28.00 [20:28:13]line НДС 12% НСП 1% [20:28:13]line > о реализуемом товаре [20:28:13]line Товар: 5449000000286 [20:28:13]line Напиток Кока-Кола 2л [20:28:13]line 1.000 * 205.00 [20:28:13]line = 205.00 [20:28:13]line НДС 12% НСП 1% [20:28:13]line > о реализуемом товаре [20:28:13]line Товар: 50173617 [20:28:13]line Жев Orbit Eucalyptus [20:28:13]line 1.000 * 45.00 [20:28:13]line = 45.00 [20:28:13]line НДС 12% НСП 1% [20:28:13]line > о реализуемом товаре [20:28:13]line ИТОГО: 1058.00 [20:28:13]line НСП 1% : 9.36 [20:28:13]line НДС 12% : 112.35 [20:28:13]line Наличными: 1058.00 [20:28:13]line Безнал.: 0.00 [20:28:13]line Место: АЗС № 127 "Партнер Нефть" [20:28:13]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [20:28:13]line СНО: Общий режим [20:28:13]line Чек 173 28.07.2024 20:28 [20:28:13]line Смена: 13 ФФД: 1.0 [20:28:13]line ЗНМ: 0300000161 [20:28:13]line РНМ: 0000000000189667 [20:28:13]line Версия ККМ: v1.0 [20:28:13]line ФМ: 0000000002094248 [20:28:13]line ФД: 2122 [20:28:13]line ФПД: 63012049765921 [20:28:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T202818&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2122&fm=63012049765921&tin=02508201610067®Number=0000000000189667&sum=105800 [20:28:13]line 0 [20:28:13]OFD Sender: Processing packet 2122 [packets to send 1, broken 0] [20:28:13]ProducePacketName [20:28:13]name=ofd_packets/00002122 [20:28:13]OFD Sender: To server: pG, [20:28:13]CommunicateWithHost lk.salyk.kg:30040 [20:28:13]ConnectInit lk.salyk.kg [20:28:13]written 0, free lines is 4095 [20:28:13]Connected sock=10 [20:28:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 57 02 00 00 7B 1D 4F 02 B6 79 5A 03 01 00 03 00 43 02 1E 04 01 00 01 23 04 5A 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 37 31 34 06 04 16 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 46 41 56 4F 52 49 54 20 30 2C 37 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 30 01 00 00 00 13 04 06 00 B0 30 01 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 A0 0F 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 F0 0A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 32 38 36 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 32 D0 BB 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 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 48 9D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 2B 00 00 00 00 07 04 06 00 48 9D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 E2 A9 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 4A 08 00 00 35 04 06 00 39 4F 22 D7 C6 21 A9 E1 9A 00 51 07 62 96 [20:28:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 C9 43 47 00 7E 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 32 30 39 34 32 34 38 10 04 04 00 4A 08 00 00 F4 03 04 00 51 55 A6 66 B6 04 01 00 00 D4 82 05 16 30 A3 40 80 [20:28:13]CommunicateWithHost err = 0 [20:28:13]CheckOFDResponse [20:28:13]1017 (14) - 77093643461234 [20:28:13]1041 (16) - 0000000002094248 [20:28:13]1040 (4) - 2122 [20:28:13]1012 (4) - 28.07.2024 14:27 [20:28:13]1206 (1) - 0 [20:28:13]OFD Sender: Remove packet 2122 [20:28:13]ProducePacketName [20:28:13]name=ofd_packets/00002122 [20:28:13]NVStorageDeleteData [20:28:14]Write to MH i2c: 01 00 00 EE 60 4E [20:28:14]Write i2c OK [20:28:14]MH_I2C_Read... [20:28:14]Read from MH i2c: 01 [20:28:14]MH_I2C_Read... [20:28:14]Read from MH i2c: 01 07 00 [20:28:14]MH_I2C_Read... [20:28:14]Read from MH i2c: 01 07 00 EE 60 00 00 00 00 00 36 0C 97 [20:28:14]RasterBufferAndPrint [20:28:14]line [20:28:14]line [20:28:14]line [20:28:14]line [20:28:14]line [20:28:14]written 0, free lines is 3137 [20:28:14]MH_Cut [20:28:14]Write to MH i2c: D1 01 00 F5 60 01 27 [20:28:14]Write i2c OK [20:28:14]MH_I2C_Read... [20:28:14]Read from MH i2c: D1 [20:28:14]MH_I2C_Read... [20:28:14]Read from MH i2c: D1 01 00 [20:28:14]MH_I2C_Read... [20:28:14]Read from MH i2c: D1 01 00 F5 60 00 26 [20:28:14]Write to MH i2c: 01 00 00 F6 60 56 [20:28:14]Write i2c OK [20:28:14]MH_I2C_Read... [20:28:14]OFD Sender: No OFD packet to send [20:28:14]*** Cut start [20:28:14]*** Partial cut [20:28:14]*** CUTSNS_PIN = 1 [20:28:14]*** CUTSNS_PIN = 0 [20:28:15]*** Brake cut motor [20:28:15]Read from MH i2c: 01 [20:28:15]MH_I2C_Read... [20:28:15]*** Stop cut motor [20:28:15]*** Cut end [20:28:15]Read from MH i2c: 01 07 00 [20:28:15]MH_I2C_Read... [20:28:15]Read from MH i2c: 01 07 00 F6 60 00 00 00 00 00 FF 0F 6B [20:28:15]process_action close_receipt done [20:28:15]requested_data is exist [20:28:15]produce_requested_data [20:28:15]requested_item fm.sn is exist - process it [20:28:15]wFMCommunicate request_size=4 [20:28:15]MH_SAM_APDU [20:28:15]CAPDU: 80 11 00 00 [20:28:15]Write to MH i2c: E2 08 00 F7 60 80 11 00 00 00 00 00 00 D1 [20:28:15]Write i2c OK [20:28:15]MH_I2C_Read... [20:28:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:28:15]Read from MH i2c: E2 [20:28:15]MH_I2C_Read... [20:28:15]Read from MH i2c: E2 17 00 [20:28:15]MH_I2C_Read... [20:28:15]Read from MH i2c: E2 17 00 F7 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 21 [20:28:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:28:15]wFMCommunicate OK [20:28:15]requested_item fd.num is exist - process it [20:28:15]SAM_PROTO_GetFieldsCounters [20:28:15]wFMCommunicate request_size=4 [20:28:15]MH_SAM_APDU [20:28:15]CAPDU: 80 13 00 00 [20:28:15]Write to MH i2c: E2 08 00 F8 60 80 13 00 00 00 00 00 00 D4 [20:28:15]Write i2c OK [20:28:15]MH_I2C_Read... [20:28:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:28:15]Read from MH i2c: E2 [20:28:15]MH_I2C_Read... [20:28:15]Read from MH i2c: E2 62 00 [20:28:15]MH_I2C_Read... [20:28:15]Read from MH i2c: E2 62 00 F8 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 4A 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 64 [20:28:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 4A 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:28:15]wFMCommunicate OK [20:28:15]SAM_PROTO_GetFieldsCounters done [20:28:15]requested_item shift.num is exist - process it [20:28:15]requested_item shift.opened is exist - process it [20:28:15]req_shift_opened [20:28:15]FM_GetShiftState [20:28:15]SAM_PROTO_GetShiftState [20:28:15]wFMCommunicate request_size=4 [20:28:15]MH_SAM_APDU [20:28:15]CAPDU: 80 13 01 00 [20:28:15]Write to MH i2c: E2 08 00 F9 60 80 13 01 00 00 00 00 00 D6 [20:28:15]Write i2c OK [20:28:15]MH_I2C_Read... [20:28:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:28:15]Read from MH i2c: E2 [20:28:15]MH_I2C_Read... [20:28:15]Read from MH i2c: E2 0E 00 [20:28:15]MH_I2C_Read... [20:28:15]Read from MH i2c: E2 0E 00 F9 60 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 CA [20:28:15]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [20:28:15]wFMCommunicate OK [20:28:15]SAM_PROTO_GetShiftState done [20:28:15]FM_GetShiftState done [20:28:15]req_shift_opened done [20:28:15]requested_item shift.open_date is exist - process it [20:28:15]req_shift_open_date [20:28:15]req_shift_open_date done [20:28:15]produce_requested_data done [20:28:15]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2122,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [20:28:15]process_action_free close_receipt [20:28:15]json_value_free [20:28:15]json_value_free done [20:28:15]process_json_proto returns [20:28:15]Send response to host [20:28:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2122,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [20:28:15]free response buf [20:28:15]execute_script done [20:28:15]execute_script returns [20:28:15]free content buf [20:28:15]Sock 9.Close socket [20:28:15]Sock 9.Thread stoped [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:57]accept exits with 8 [20:28:57]New connection [20:28:57]New thread 3067460964 created [20:28:57]Thread 3067317604 joined [20:28:57]Waiting for new connection... [20:28:57] Sock 8.Parse request [20:28:57]Sock 8.Check first char [20:28:57]Sock 8.First char is OK [20:28:57]request: POST /json_proto HTTP/1.0 [20:28:57]Method: POST [20:28:57]URL: /json_proto [20:28:57]Method is POST - this is cgi request [20:28:57]url: /json_proto [20:28:57]query_string will be loaded in cgi processing [20:28:57]execute_cgi json_proto POST (null) [20:28:57]execute_cgi path=json_proto method=POST [20:28:57]POST find Content-Length [20:28:57]Host: 172.17.45.132:8080 [20:28:57]Content-Length: 621 [20:28:57]Content-Type: application/json [20:28:57] [20:28:57]POST finish read [20:28:57]Found Content-Length = 621 [20:28:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126419", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "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" ] } } [20:28:57]execute_script... [20:28: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)126419", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "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" ] } } [20:28:57]POST & json_proto [20:28:57]process_json_proto [20:28:57]json parsed OK: [20:28:57]protocol is kg_v1.0 [20:28:57]action value=close_receipt [20:28:57]process_action close_receipt [20:28:57]cmd_close_receipt [20:28:57]MH_GetDate [20:28:57]Write to MH i2c: F0 00 00 FA 60 49 [20:28:57]Write i2c OK [20:28:57]MH_I2C_Read... [20:28:57]Read from MH i2c: F0 [20:28:57]MH_I2C_Read... [20:28:57]Read from MH i2c: F0 09 00 [20:28:57]MH_I2C_Read... [20:28:57]Read from MH i2c: F0 09 00 FA 60 00 10 AA A6 66 E3 0B 90 66 FC [20:28:57]GetLastDocTimeStamp 1722198498 [20:28:57]current date 1722198544 [20:28:57]FM_GetShiftState [20:28:57]SAM_PROTO_GetShiftState [20:28:57]wFMCommunicate request_size=4 [20:28:57]MH_SAM_APDU [20:28:57]CAPDU: 80 13 01 00 [20:28:57]Write to MH i2c: E2 08 00 FB 60 80 13 01 00 00 00 00 00 D8 [20:28:57]Write i2c OK [20:28:57]MH_I2C_Read... [20:28:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:28:57]Read from MH i2c: E2 [20:28:57]MH_I2C_Read... [20:28:57]Read from MH i2c: E2 0E 00 [20:28:57]MH_I2C_Read... [20:28:57]Read from MH i2c: E2 0E 00 FB 60 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 CC [20:28:57]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [20:28:57]wFMCommunicate OK [20:28:57]SAM_PROTO_GetShiftState done [20:28:57]FM_GetShiftState done [20:28:57]opened in 1722125648 [20:28:57]opened+sec_in_day 1722212048 [20:28:57]quantity*price = 28000 [20:28:57]sum+1 = 28001 [20:28:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 280.00 НСП 1% : 2.48 НДС 12% : 29.73 Наличными: 280.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 174 28.07.2024 20:29 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2123 ФПД: 52933818443632 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T202904&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2123&fm=52933818443632&tin=02508201610067®Number=0000000000189667&sum=28000 0 [20:28:58]StoreToDocumentArchive [20:28:58]shift 13 fd 2123 [20:28:58]save to /storage/0013/doc_00002123 [20:28:58]save last doc name /storage/0013/doc_00002123 to /storage/kkm_last_doc_name [20:28:58]save OK [20:28:58]Clear old archive folders... [20:28:58]ProcessDocumentItem done err = 0, tmpTLVsize=273 [20:28:58]tlvbuf is 01FE8530 [20:28:58]SAM_PROTO_ClearQueue [20:28:58]wFMCommunicate request_size=4 [20:28:58]MH_SAM_APDU [20:28:58]CAPDU: 80 09 00 00 [20:28:58]Write to MH i2c: E2 08 00 08 61 80 09 00 00 00 00 00 00 DB [20:28:58]Write i2c OK [20:28:58]MH_I2C_Read... [20:28:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:28:58]Read from MH i2c: E2 [20:28:58]MH_I2C_Read... [20:28:58]Read from MH i2c: E2 03 00 [20:28:58]MH_I2C_Read... [20:28:58]Read from MH i2c: E2 03 00 08 61 00 90 00 DD [20:28:58]RAPDU: 90 00 [20:28:58]wFMCommunicate OK [20:28:58]SAM_PROTO_ClearQueue done [20:28:58]KKMCreateOFDPacket [20:28:58]OFDProtocolAddRootSTLVToBuf [20:28:58]FM_MakeSignedData [20:28:58]FM_MakeSignedData [20:28:58]SAM_PROTO_SignData [20:28:58]wFMCommunicate request_size=4 [20:28:58]MH_SAM_APDU [20:28:58]CAPDU: 80 0D 01 02 [20:28:58]Write to MH i2c: E2 08 00 09 61 80 0D 01 02 00 00 00 00 E3 [20:28:58]Write i2c OK [20:28:58]MH_I2C_Read... [20:28:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:28:58]Read from MH i2c: E2 [20:28:58]MH_I2C_Read... [20:28:58]Read from MH i2c: E2 03 00 [20:28:58]MH_I2C_Read... [20:28:58]Read from MH i2c: E2 03 00 09 61 00 90 00 DE [20:28:58]RAPDU: 90 00 [20:28:58]wFMCommunicate OK [20:28:58]wFMCommunicate request_size=255 [20:28:58]MH_SAM_APDU [20:28:58]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 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 AE 00 00 00 F4 03 04 00 10 AA A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 [20:28:58]Write to MH i2c: E2 02 01 0A 61 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 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 AE 00 00 00 F4 03 04 00 10 AA A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 00 00 42 [20:28:58]Write i2c OK [20:28:58]MH_I2C_Read... [20:28:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:28:58]Read from MH i2c: E2 [20:28:58]MH_I2C_Read... [20:28:58]Read from MH i2c: E2 03 00 [20:28:58]MH_I2C_Read... [20:28:58]Read from MH i2c: E2 03 00 0A 61 00 90 00 DF [20:28:58]RAPDU: 90 00 [20:28:58]wFMCommunicate OK [20:28:58]wFMCommunicate request_size=32 [20:28:58]MH_SAM_APDU [20:28:58]CAPDU: 80 0D 02 02 1B 30 30 32 30 39 34 32 34 38 10 04 04 00 4B 08 00 00 35 04 06 00 30 24 9D 71 E7 70 [20:28:58]Write to MH i2c: E2 23 00 0B 61 80 0D 02 02 1B 00 30 30 32 30 39 34 32 34 38 10 04 04 00 4B 08 00 00 35 04 06 00 30 24 9D 71 E7 70 00 00 4C [20:28:58]Write i2c OK [20:28:58]MH_I2C_Read... [20:28:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:28:58]Read from MH i2c: E2 [20:28:58]MH_I2C_Read... [20:28:58]Read from MH i2c: E2 03 00 [20:28:58]MH_I2C_Read... [20:28:58]Read from MH i2c: E2 03 00 0B 61 00 90 00 E0 [20:28:58]RAPDU: 90 00 [20:28:58]wFMCommunicate OK [20:28:58]wFMCommunicate request_size=4 [20:28:58]MH_SAM_APDU [20:28:58]CAPDU: 80 0D 03 02 [20:28:58]Write to MH i2c: E2 08 00 0C 61 80 0D 03 02 00 00 00 00 E8 [20:28:58]Write i2c OK [20:28:58]MH_I2C_Read... [20:28:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:28:58]Read from MH i2c: E2 [20:28:58]MH_I2C_Read... [20:28:58]Read from MH i2c: E2 0B 00 [20:28:58]MH_I2C_Read... [20:28:58]Read from MH i2c: E2 0B 00 0C 61 00 57 D2 BD 24 D5 47 3A C2 90 00 0B [20:28:58]RAPDU: 57 D2 BD 24 D5 47 3A C2 90 00 [20:28:58]wFMCommunicate OK [20:28:58]SAM_PROTO_SignData done [20:28:58]FM_MakeSignedData done [20:28:58]CreateOFDProtocolMessage [20:28:58]wFMCommunicate request_size=4 [20:28:58]MH_SAM_APDU [20:28:58]CAPDU: 80 11 00 00 [20:28:58]Write to MH i2c: E2 08 00 0D 61 80 11 00 00 00 00 00 00 E8 [20:28:58]Write i2c OK [20:28:58]MH_I2C_Read... [20:28:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:28:58]Read from MH i2c: E2 [20:28:58]MH_I2C_Read... [20:28:58]Read from MH i2c: E2 17 00 [20:28:58]MH_I2C_Read... [20:28:58]Read from MH i2c: E2 17 00 0D 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 38 [20:28:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:28:58]wFMCommunicate OK [20:28:58]CreateOFDProtocolMessage done [20:28:58]OFDSenderStorePacket 2123 [20:28:58]StoreOFDPacket docnum=2123 [20:28:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 25 01 00 00 38 C4 1D 01 7A F7 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 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 AE 00 00 00 F4 03 04 00 10 AA A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 4B 08 00 00 35 04 06 00 30 24 9D 71 E7 70 57 D2 BD 24 D5 47 3A C2 [20:28:58]CheckFolder [20:28:58]dirname=/storage/ofd_packets [20:28:58]CheckFolder done [20:28:58]ProducePacketName [20:28:58]name=ofd_packets/00002123 [20:28:58]NVStorageSaveData ofd_packets/00002123 [20:28:58]File name is /storage/ofd_packets/00002123 [20:28:58]Write 323 bytes [20:28:58]NVStorageSaveData done [20:28:58]OFDSenderStorePacket done [20:28:58]KKMCreateOFDPacket done [20:28:58]NVStorageSaveData kkm_last_timestamp [20:28:58]File name is /storage/kkm_last_timestamp [20:28:58]Write 4 bytes [20:28:58]NVStorageSaveData done [20:28:58]ExternCall_PrintAddStr [20:28:58]wPrintStart [20:28:58]Write to MH i2c: 01 00 00 0E 61 6F [20:28:58]Write i2c OK [20:28:58]MH_I2C_Read... [20:28:58]Read from MH i2c: 01 [20:28:58]MH_I2C_Read... [20:28:58]Read from MH i2c: 01 07 00 [20:28:58]MH_I2C_Read... [20:28:58]Read from MH i2c: 01 07 00 0E 61 00 00 00 00 00 FF 0F 84 [20:28:58]RasterBufferAndPrint [20:28:58]line Счет N : (3)126419 [20:28:58]line ИНН: 02508201610067 [20:28:58]line Контрольно-Кассовый Чек [20:28:58]line ПРОДАЖА [20:28:58]line Товар: 48747059 [20:28:58]line Сигареты Winston Legend Blue [20:28:58]line 2.000 * 140.00 [20:28:58]line = 280.00 [20:28:58]line НДС 12% НСП 1% [20:28:58]line > о реализуемом товаре [20:28:58]line ИТОГО: 280.00 [20:28:58]line НСП 1% : 2.48 [20:28:58]line НДС 12% : 29.73 [20:28:58]line Наличными: 280.00 [20:28:58]line Безнал.: 0.00 [20:28:58]line Место: АЗС № 127 "Партнер Нефть" [20:28:58]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [20:28:58]line СНО: Общий режим [20:28:58]line Чек 174 28.07.2024 20:29 [20:28:58]line Смена: 13 ФФД: 1.0 [20:28:58]line ЗНМ: 0300000161 [20:28:58]line РНМ: 0000000000189667 [20:28:58]line Версия ККМ: v1.0 [20:28:58]line ФМ: 0000000002094248 [20:28:58]line ФД: 2123 [20:28:58]line ФПД: 52933818443632 [20:28:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T202904&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2123&fm=52933818443632&tin=02508201610067®Number=0000000000189667&sum=28000 [20:28:59]line 0 [20:28:59]OFD Sender: Processing packet 2123 [packets to send 1, broken 0] [20:28:59]ProducePacketName [20:28:59]name=ofd_packets/00002123 [20:28:59]OFD Sender: To server: pG, [20:28:59]CommunicateWithHost lk.salyk.kg:30040 [20:28:59]ConnectInit lk.salyk.kg [20:28:59]written 0, free lines is 4095 [20:28:59]Connected sock=10 [20:28:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 25 01 00 00 38 C4 1D 01 7A F7 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 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 AE 00 00 00 F4 03 04 00 10 AA A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 4B 08 00 00 35 04 06 00 30 24 9D 71 E7 70 57 D2 BD 24 D5 47 3A C2 [20:28:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 A2 E2 47 00 61 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 32 30 39 34 32 34 38 10 04 04 00 4B 08 00 00 F4 03 04 00 7F 55 A6 66 B6 04 01 00 00 34 91 F4 73 E0 CF 99 1D [20:28:59]CommunicateWithHost err = 0 [20:28:59]CheckOFDResponse [20:28:59]1017 (14) - 77093643461234 [20:28:59]1041 (16) - 0000000002094248 [20:28:59]1040 (4) - 2123 [20:28:59]1012 (4) - 28.07.2024 14:28 [20:28:59]1206 (1) - 0 [20:28:59]OFD Sender: Remove packet 2123 [20:28:59]ProducePacketName [20:28:59]name=ofd_packets/00002123 [20:28:59]NVStorageDeleteData [20:28:59]Write to MH i2c: 01 00 00 37 61 98 [20:28:59]Write i2c OK [20:28:59]MH_I2C_Read... [20:28:59]Read from MH i2c: 01 [20:28:59]MH_I2C_Read... [20:28:59]Read from MH i2c: 01 07 00 [20:28:59]MH_I2C_Read... [20:28:59]Read from MH i2c: 01 07 00 37 61 00 00 00 00 00 11 0D BD [20:28:59]RasterBufferAndPrint [20:28:59]line [20:28:59]line [20:28:59]line [20:28:59]line [20:28:59]line [20:28:59]written 0, free lines is 3353 [20:28:59]MH_Cut [20:28:59]Write to MH i2c: D1 01 00 3E 61 01 71 [20:28:59]Write i2c OK [20:28:59]MH_I2C_Read... [20:28:59]Read from MH i2c: D1 [20:28:59]MH_I2C_Read... [20:28:59]Read from MH i2c: D1 01 00 [20:28:59]MH_I2C_Read... [20:28:59]Read from MH i2c: D1 01 00 3E 61 00 70 [20:28:59]Write to MH i2c: 01 00 00 3F 61 A0 [20:28:59]Write i2c OK [20:28:59]MH_I2C_Read... [20:28:59]OFD Sender: No OFD packet to send [20:29:00]*** Cut start [20:29:00]*** Partial cut [20:29:00]*** CUTSNS_PIN = 1 [20:29:00]*** CUTSNS_PIN = 0 [20:29:00]*** Brake cut motor [20:29:00]Read from MH i2c: 01 [20:29:00]MH_I2C_Read... [20:29:00]*** Stop cut motor [20:29:00]*** Cut end [20:29:00]Read from MH i2c: 01 07 00 [20:29:00]MH_I2C_Read... [20:29:00]Read from MH i2c: 01 07 00 3F 61 00 00 00 00 00 FF 0F B5 [20:29:00]process_action close_receipt done [20:29:00]requested_data is exist [20:29:00]produce_requested_data [20:29:00]requested_item fm.sn is exist - process it [20:29:00]wFMCommunicate request_size=4 [20:29:00]MH_SAM_APDU [20:29:00]CAPDU: 80 11 00 00 [20:29:00]Write to MH i2c: E2 08 00 40 61 80 11 00 00 00 00 00 00 1B [20:29:00]Write i2c OK [20:29:00]MH_I2C_Read... [20:29:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:29:00]Read from MH i2c: E2 [20:29:00]MH_I2C_Read... [20:29:00]Read from MH i2c: E2 17 00 [20:29:00]MH_I2C_Read... [20:29:00]Read from MH i2c: E2 17 00 40 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 6B [20:29:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:29:00]wFMCommunicate OK [20:29:00]requested_item fd.num is exist - process it [20:29:00]SAM_PROTO_GetFieldsCounters [20:29:00]wFMCommunicate request_size=4 [20:29:00]MH_SAM_APDU [20:29:00]CAPDU: 80 13 00 00 [20:29:00]Write to MH i2c: E2 08 00 41 61 80 13 00 00 00 00 00 00 1E [20:29:00]Write i2c OK [20:29:00]MH_I2C_Read... [20:29:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:29:01]Read from MH i2c: E2 [20:29:01]MH_I2C_Read... [20:29:01]Read from MH i2c: E2 62 00 [20:29:01]MH_I2C_Read... [20:29:01]Read from MH i2c: E2 62 00 41 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 4B 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 B2 [20:29:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 4B 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:29:01]wFMCommunicate OK [20:29:01]SAM_PROTO_GetFieldsCounters done [20:29:01]requested_item shift.num is exist - process it [20:29:01]requested_item shift.opened is exist - process it [20:29:01]req_shift_opened [20:29:01]FM_GetShiftState [20:29:01]SAM_PROTO_GetShiftState [20:29:01]wFMCommunicate request_size=4 [20:29:01]MH_SAM_APDU [20:29:01]CAPDU: 80 13 01 00 [20:29:01]Write to MH i2c: E2 08 00 42 61 80 13 01 00 00 00 00 00 20 [20:29:01]Write i2c OK [20:29:01]MH_I2C_Read... [20:29:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:29:01]Read from MH i2c: E2 [20:29:01]MH_I2C_Read... [20:29:01]Read from MH i2c: E2 0E 00 [20:29:01]MH_I2C_Read... [20:29:01]Read from MH i2c: E2 0E 00 42 61 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 14 [20:29:01]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [20:29:01]wFMCommunicate OK [20:29:01]SAM_PROTO_GetShiftState done [20:29:01]FM_GetShiftState done [20:29:01]req_shift_opened done [20:29:01]requested_item shift.open_date is exist - process it [20:29:01]req_shift_open_date [20:29:01]req_shift_open_date done [20:29:01]produce_requested_data done [20:29:01]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2123,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [20:29:01]process_action_free close_receipt [20:29:01]json_value_free [20:29:01]json_value_free done [20:29:01]process_json_proto returns [20:29:01]Send response to host [20:29:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2123,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [20:29:01]free response buf [20:29:01]execute_script done [20:29:01]execute_script returns [20:29:01]free content buf [20:29:01]Sock 8.Close socket [20:29:01]Sock 8.Thread stoped [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:25]OFD Sender: No OFD packet to send [20:30:30]OFD Sender: No OFD packet to send [20:30:35]OFD Sender: No OFD packet to send [20:30:40]OFD Sender: No OFD packet to send [20:30:45]OFD Sender: No OFD packet to send [20:30:50]OFD Sender: No OFD packet to send [20:30:55]OFD Sender: No OFD packet to send [20:31:00]OFD Sender: No OFD packet to send [20:31:05]OFD Sender: No OFD packet to send [20:31:10]OFD Sender: No OFD packet to send [20:31:15]OFD Sender: No OFD packet to send [20:31:20]OFD Sender: No OFD packet to send [20:31:25]OFD Sender: No OFD packet to send [20:31:30]OFD Sender: No OFD packet to send [20:31:35]OFD Sender: No OFD packet to send [20:31:40]OFD Sender: No OFD packet to send [20:31:45]OFD Sender: No OFD packet to send [20:31:47]accept exits with 9 [20:31:47]New connection [20:31:47]New thread 3067317604 created [20:31:47]Thread 3067460964 joined [20:31:47]Waiting for new connection... [20:31:47] Sock 9.Parse request [20:31:47]Sock 9.Check first char [20:31:47]Sock 9.First char is OK [20:31:47]request: POST /json_proto HTTP/1.0 [20:31:47]Method: POST [20:31:47]URL: /json_proto [20:31:47]Method is POST - this is cgi request [20:31:47]url: /json_proto [20:31:47]query_string will be loaded in cgi processing [20:31:47]execute_cgi json_proto POST (null) [20:31:47]execute_cgi path=json_proto method=POST [20:31:47]POST find Content-Length [20:31:47]Host: 172.17.45.132:8080 [20:31:47]Content-Length: 631 [20:31:47]Content-Type: application/json [20:31:47] [20:31:47]POST finish read [20:31:47]Found Content-Length = 631 [20:31:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126420", "tax_sys" : 0, "items" : [ { "code": "50173822", "name": "\u0420/\u0436 Orbit \u0431/\u0441\u0430\u0445 \u043C\u044F\u0442\u0430 13,6\u0433", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:31:47]execute_script... [20:31: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)126420", "tax_sys" : 0, "items" : [ { "code": "50173822", "name": "\u0420/\u0436 Orbit \u0431/\u0441\u0430\u0445 \u043C\u044F\u0442\u0430 13,6\u0433", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:31:47]POST & json_proto [20:31:47]process_json_proto [20:31:47]json parsed OK: [20:31:47]protocol is kg_v1.0 [20:31:47]action value=close_receipt [20:31:47]process_action close_receipt [20:31:47]cmd_close_receipt [20:31:47]MH_GetDate [20:31:47]Write to MH i2c: F0 00 00 43 61 93 [20:31:47]Write i2c OK [20:31:47]MH_I2C_Read... [20:31:47]Read from MH i2c: F0 [20:31:47]MH_I2C_Read... [20:31:47]Read from MH i2c: F0 09 00 [20:31:47]MH_I2C_Read... [20:31:47]Read from MH i2c: F0 09 00 43 61 00 BA AA A6 66 E3 0B 90 66 F0 [20:31:47]GetLastDocTimeStamp 1722198544 [20:31:47]current date 1722198714 [20:31:47]FM_GetShiftState [20:31:47]SAM_PROTO_GetShiftState [20:31:47]wFMCommunicate request_size=4 [20:31:47]MH_SAM_APDU [20:31:47]CAPDU: 80 13 01 00 [20:31:47]Write to MH i2c: E2 08 00 44 61 80 13 01 00 00 00 00 00 22 [20:31:47]Write i2c OK [20:31:47]MH_I2C_Read... [20:31:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:31:47]Read from MH i2c: E2 [20:31:47]MH_I2C_Read... [20:31:47]Read from MH i2c: E2 0E 00 [20:31:47]MH_I2C_Read... [20:31:47]Read from MH i2c: E2 0E 00 44 61 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 16 [20:31:47]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [20:31:47]wFMCommunicate OK [20:31:47]SAM_PROTO_GetShiftState done [20:31:47]FM_GetShiftState done [20:31:47]opened in 1722125648 [20:31:47]opened+sec_in_day 1722212048 [20:31:47]quantity*price = 4500 [20:31:47]sum+1 = 4501 [20:31:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 45.00 НСП 1% : 0.40 НДС 12% : 4.78 Наличными: 45.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 175 28.07.2024 20:31 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2124 ФПД: 205211987421995 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T203154&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2124&fm=205211987421995&tin=02508201610067®Number=0000000000189667&sum=4500 0 [20:31:48]StoreToDocumentArchive [20:31:48]shift 13 fd 2124 [20:31:48]save to /storage/0013/doc_00002124 [20:31:48]save last doc name /storage/0013/doc_00002124 to /storage/kkm_last_doc_name [20:31:48]save OK [20:31:48]Clear old archive folders... [20:31:48]ProcessDocumentItem done err = 0, tmpTLVsize=274 [20:31:48]tlvbuf is 020109B0 [20:31:48]SAM_PROTO_ClearQueue [20:31:48]wFMCommunicate request_size=4 [20:31:48]MH_SAM_APDU [20:31:48]CAPDU: 80 09 00 00 [20:31:48]Write to MH i2c: E2 08 00 51 61 80 09 00 00 00 00 00 00 24 [20:31:48]Write i2c OK [20:31:48]MH_I2C_Read... [20:31:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:31:48]Read from MH i2c: E2 [20:31:48]MH_I2C_Read... [20:31:48]Read from MH i2c: E2 03 00 [20:31:48]MH_I2C_Read... [20:31:48]Read from MH i2c: E2 03 00 51 61 00 90 00 26 [20:31:48]RAPDU: 90 00 [20:31:48]wFMCommunicate OK [20:31:48]SAM_PROTO_ClearQueue done [20:31:48]KKMCreateOFDPacket [20:31:48]OFDProtocolAddRootSTLVToBuf [20:31:48]FM_MakeSignedData [20:31:48]FM_MakeSignedData [20:31:48]SAM_PROTO_SignData [20:31:48]wFMCommunicate request_size=4 [20:31:48]MH_SAM_APDU [20:31:48]CAPDU: 80 0D 01 02 [20:31:48]Write to MH i2c: E2 08 00 52 61 80 0D 01 02 00 00 00 00 2C [20:31:48]Write i2c OK [20:31:48]MH_I2C_Read... [20:31:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:31:48]Read from MH i2c: E2 [20:31:48]MH_I2C_Read... [20:31:48]Read from MH i2c: E2 03 00 [20:31:48]MH_I2C_Read... [20:31:48]Read from MH i2c: E2 03 00 52 61 00 90 00 27 [20:31:48]RAPDU: 90 00 [20:31:48]wFMCommunicate OK [20:31:48]wFMCommunicate request_size=255 [20:31:48]MH_SAM_APDU [20:31:48]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 35 30 31 37 33 38 32 32 06 04 25 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 D0 B1 2F D1 81 D0 B0 D1 85 20 D0 BC D1 8F D1 82 D0 B0 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 BA AA A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 [20:31:48]Write to MH i2c: E2 02 01 53 61 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 35 30 31 37 33 38 32 32 06 04 25 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 D0 B1 2F D1 81 D0 B0 D1 85 20 D0 BC D1 8F D1 82 D0 B0 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 BA AA A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 00 00 96 [20:31:48]Write i2c OK [20:31:48]MH_I2C_Read... [20:31:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:31:48]Read from MH i2c: E2 [20:31:48]MH_I2C_Read... [20:31:48]Read from MH i2c: E2 03 00 [20:31:48]MH_I2C_Read... [20:31:48]Read from MH i2c: E2 03 00 53 61 00 90 00 28 [20:31:48]RAPDU: 90 00 [20:31:48]wFMCommunicate OK [20:31:48]wFMCommunicate request_size=33 [20:31:48]MH_SAM_APDU [20:31:48]CAPDU: 80 0D 02 02 1C 30 30 30 32 30 39 34 32 34 38 10 04 04 00 4C 08 00 00 35 04 06 00 BA A3 A3 9D 2B 2B [20:31:48]Write to MH i2c: E2 24 00 54 61 80 0D 02 02 1C 00 30 30 30 32 30 39 34 32 34 38 10 04 04 00 4C 08 00 00 35 04 06 00 BA A3 A3 9D 2B 2B 00 00 02 [20:31:48]Write i2c OK [20:31:48]MH_I2C_Read... [20:31:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:31:48]Read from MH i2c: E2 [20:31:48]MH_I2C_Read... [20:31:48]Read from MH i2c: E2 03 00 [20:31:48]MH_I2C_Read... [20:31:48]Read from MH i2c: E2 03 00 54 61 00 90 00 29 [20:31:48]RAPDU: 90 00 [20:31:48]wFMCommunicate OK [20:31:48]wFMCommunicate request_size=4 [20:31:48]MH_SAM_APDU [20:31:48]CAPDU: 80 0D 03 02 [20:31:48]Write to MH i2c: E2 08 00 55 61 80 0D 03 02 00 00 00 00 31 [20:31:48]Write i2c OK [20:31:48]MH_I2C_Read... [20:31:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:31:48]Read from MH i2c: E2 [20:31:48]MH_I2C_Read... [20:31:48]Read from MH i2c: E2 0B 00 [20:31:48]MH_I2C_Read... [20:31:48]Read from MH i2c: E2 0B 00 55 61 00 A1 D1 92 D7 9E 20 8F CF 90 00 29 [20:31:48]RAPDU: A1 D1 92 D7 9E 20 8F CF 90 00 [20:31:48]wFMCommunicate OK [20:31:48]SAM_PROTO_SignData done [20:31:48]FM_MakeSignedData done [20:31:48]CreateOFDProtocolMessage [20:31:48]wFMCommunicate request_size=4 [20:31:48]MH_SAM_APDU [20:31:48]CAPDU: 80 11 00 00 [20:31:48]Write to MH i2c: E2 08 00 56 61 80 11 00 00 00 00 00 00 31 [20:31:48]Write i2c OK [20:31:48]MH_I2C_Read... [20:31:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:31:48]Read from MH i2c: E2 [20:31:48]MH_I2C_Read... [20:31:48]Read from MH i2c: E2 17 00 [20:31:48]MH_I2C_Read... [20:31:48]Read from MH i2c: E2 17 00 56 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 81 [20:31:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:31:48]wFMCommunicate OK [20:31:48]CreateOFDProtocolMessage done [20:31:48]OFDSenderStorePacket 2124 [20:31:48]StoreOFDPacket docnum=2124 [20:31:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 26 01 00 00 C8 DA 1E 01 A4 4F 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 35 30 31 37 33 38 32 32 06 04 25 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 D0 B1 2F D1 81 D0 B0 D1 85 20 D0 BC D1 8F D1 82 D0 B0 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 BA AA A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 4C 08 00 00 35 04 06 00 BA A3 A3 9D 2B 2B A1 D1 92 D7 9E 20 8F CF [20:31:48]CheckFolder [20:31:48]dirname=/storage/ofd_packets [20:31:48]CheckFolder done [20:31:48]ProducePacketName [20:31:48]name=ofd_packets/00002124 [20:31:48]NVStorageSaveData ofd_packets/00002124 [20:31:48]File name is /storage/ofd_packets/00002124 [20:31:48]Write 324 bytes [20:31:48]NVStorageSaveData done [20:31:48]OFDSenderStorePacket done [20:31:48]KKMCreateOFDPacket done [20:31:48]NVStorageSaveData kkm_last_timestamp [20:31:48]File name is /storage/kkm_last_timestamp [20:31:48]Write 4 bytes [20:31:48]NVStorageSaveData done [20:31:48]ExternCall_PrintAddStr [20:31:48]wPrintStart [20:31:48]Write to MH i2c: 01 00 00 57 61 B8 [20:31:48]Write i2c OK [20:31:48]MH_I2C_Read... [20:31:48]Read from MH i2c: 01 [20:31:48]MH_I2C_Read... [20:31:48]Read from MH i2c: 01 07 00 [20:31:48]MH_I2C_Read... [20:31:48]Read from MH i2c: 01 07 00 57 61 00 00 00 00 00 FF 0F CD [20:31:48]RasterBufferAndPrint [20:31:48]line Счет N : (3)126420 [20:31:48]line ИНН: 02508201610067 [20:31:48]line Контрольно-Кассовый Чек [20:31:48]line ПРОДАЖА [20:31:48]line Товар: 50173822 [20:31:48]line Р/ж Orbit б/сах мята 13,6г [20:31:48]line 1.000 * 45.00 [20:31:48]line = 45.00 [20:31:48]line НДС 12% НСП 1% [20:31:48]line > о реализуемом товаре [20:31:48]line ИТОГО: 45.00 [20:31:48]line НСП 1% : 0.40 [20:31:48]line НДС 12% : 4.78 [20:31:48]line Наличными: 45.00 [20:31:48]line Безнал.: 0.00 [20:31:48]line Место: АЗС № 127 "Партнер Нефть" [20:31:48]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [20:31:48]line СНО: Общий режим [20:31:48]line Чек 175 28.07.2024 20:31 [20:31:48]line Смена: 13 ФФД: 1.0 [20:31:48]line ЗНМ: 0300000161 [20:31:48]line РНМ: 0000000000189667 [20:31:48]line Версия ККМ: v1.0 [20:31:48]line ФМ: 0000000002094248 [20:31:48]line ФД: 2124 [20:31:48]line ФПД: 205211987421995 [20:31:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T203154&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2124&fm=205211987421995&tin=02508201610067®Number=0000000000189667&sum=4500 [20:31:49]line 0 [20:31:49]OFD Sender: Processing packet 2124 [packets to send 1, broken 0] [20:31:49]ProducePacketName [20:31:49]name=ofd_packets/00002124 [20:31:49]OFD Sender: To server: pG, [20:31:49]CommunicateWithHost lk.salyk.kg:30040 [20:31:49]ConnectInit lk.salyk.kg [20:31:49]written 0, free lines is 4095 [20:31:49]Connected sock=10 [20:31:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 26 01 00 00 C8 DA 1E 01 A4 4F 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 35 30 31 37 33 38 32 32 06 04 25 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 D0 B1 2F D1 81 D0 B0 D1 85 20 D0 BC D1 8F D1 82 D0 B0 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 BA AA A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 4C 08 00 00 35 04 06 00 BA A3 A3 9D 2B 2B A1 D1 92 D7 9E 20 8F CF [20:31:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 88 70 47 00 D7 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 32 30 39 34 32 34 38 10 04 04 00 4C 08 00 00 F4 03 04 00 29 56 A6 66 B6 04 01 00 00 CD DB D3 09 9A BB 93 B2 [20:31:49]CommunicateWithHost err = 0 [20:31:49]CheckOFDResponse [20:31:49]1017 (14) - 77093643461234 [20:31:49]1041 (16) - 0000000002094248 [20:31:49]1040 (4) - 2124 [20:31:49]1012 (4) - 28.07.2024 14:31 [20:31:49]1206 (1) - 0 [20:31:49]OFD Sender: Remove packet 2124 [20:31:49]ProducePacketName [20:31:49]name=ofd_packets/00002124 [20:31:49]NVStorageDeleteData [20:31:49]Write to MH i2c: 01 00 00 7F 61 E0 [20:31:49]Write i2c OK [20:31:49]MH_I2C_Read... [20:31:49]Read from MH i2c: 01 [20:31:49]MH_I2C_Read... [20:31:49]Read from MH i2c: 01 07 00 [20:31:49]MH_I2C_Read... [20:31:49]Read from MH i2c: 01 07 00 7F 61 00 00 00 00 00 0F 0D 03 [20:31:49]RasterBufferAndPrint [20:31:49]line [20:31:49]line [20:31:49]line [20:31:49]line [20:31:49]line [20:31:49]written 0, free lines is 3349 [20:31:49]MH_Cut [20:31:49]Write to MH i2c: D1 01 00 86 61 01 B9 [20:31:49]Write i2c OK [20:31:49]MH_I2C_Read... [20:31:49]Read from MH i2c: D1 [20:31:49]MH_I2C_Read... [20:31:49]Read from MH i2c: D1 01 00 [20:31:49]MH_I2C_Read... [20:31:49]Read from MH i2c: D1 01 00 86 61 00 B8 [20:31:49]Write to MH i2c: 01 00 00 87 61 E8 [20:31:49]Write i2c OK [20:31:49]MH_I2C_Read... [20:31:50]OFD Sender: No OFD packet to send [20:31:50]*** Cut start [20:31:50]*** Partial cut [20:31:50]*** CUTSNS_PIN = 1 [20:31:50]*** CUTSNS_PIN = 0 [20:31:50]*** Brake cut motor [20:31:50]Read from MH i2c: 01 [20:31:50]MH_I2C_Read... [20:31:50]*** Stop cut motor [20:31:50]*** Cut end [20:31:50]Read from MH i2c: 01 07 00 [20:31:50]MH_I2C_Read... [20:31:50]Read from MH i2c: 01 07 00 87 61 00 00 00 00 00 FF 0F FD [20:31:50]process_action close_receipt done [20:31:50]requested_data is exist [20:31:50]produce_requested_data [20:31:50]requested_item fm.sn is exist - process it [20:31:50]wFMCommunicate request_size=4 [20:31:50]MH_SAM_APDU [20:31:50]CAPDU: 80 11 00 00 [20:31:50]Write to MH i2c: E2 08 00 88 61 80 11 00 00 00 00 00 00 63 [20:31:50]Write i2c OK [20:31:50]MH_I2C_Read... [20:31:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:31:50]Read from MH i2c: E2 [20:31:50]MH_I2C_Read... [20:31:50]Read from MH i2c: E2 17 00 [20:31:50]MH_I2C_Read... [20:31:50]Read from MH i2c: E2 17 00 88 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 B3 [20:31:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:31:50]wFMCommunicate OK [20:31:50]requested_item fd.num is exist - process it [20:31:50]SAM_PROTO_GetFieldsCounters [20:31:50]wFMCommunicate request_size=4 [20:31:50]MH_SAM_APDU [20:31:50]CAPDU: 80 13 00 00 [20:31:50]Write to MH i2c: E2 08 00 89 61 80 13 00 00 00 00 00 00 66 [20:31:50]Write i2c OK [20:31:50]MH_I2C_Read... [20:31:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:31:51]Read from MH i2c: E2 [20:31:51]MH_I2C_Read... [20:31:51]Read from MH i2c: E2 62 00 [20:31:51]MH_I2C_Read... [20:31:51]Read from MH i2c: E2 62 00 89 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 4C 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 FE [20:31:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 4C 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:31:51]wFMCommunicate OK [20:31:51]SAM_PROTO_GetFieldsCounters done [20:31:51]requested_item shift.num is exist - process it [20:31:51]requested_item shift.opened is exist - process it [20:31:51]req_shift_opened [20:31:51]FM_GetShiftState [20:31:51]SAM_PROTO_GetShiftState [20:31:51]wFMCommunicate request_size=4 [20:31:51]MH_SAM_APDU [20:31:51]CAPDU: 80 13 01 00 [20:31:51]Write to MH i2c: E2 08 00 8A 61 80 13 01 00 00 00 00 00 68 [20:31:51]Write i2c OK [20:31:51]MH_I2C_Read... [20:31:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:31:51]Read from MH i2c: E2 [20:31:51]MH_I2C_Read... [20:31:51]Read from MH i2c: E2 0E 00 [20:31:51]MH_I2C_Read... [20:31:51]Read from MH i2c: E2 0E 00 8A 61 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 5C [20:31:51]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [20:31:51]wFMCommunicate OK [20:31:51]SAM_PROTO_GetShiftState done [20:31:51]FM_GetShiftState done [20:31:51]req_shift_opened done [20:31:51]requested_item shift.open_date is exist - process it [20:31:51]req_shift_open_date [20:31:51]req_shift_open_date done [20:31:51]produce_requested_data done [20:31:51]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2124,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [20:31:51]process_action_free close_receipt [20:31:51]json_value_free [20:31:51]json_value_free done [20:31:51]process_json_proto returns [20:31:51]Send response to host [20:31:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2124,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [20:31:51]free response buf [20:31:51]execute_script done [20:31:51]execute_script returns [20:31:51]free content buf [20:31:51]Sock 9.Close socket [20:31:51]Sock 9.Thread stoped [20:31:55]OFD Sender: No OFD packet to send [20:32:00]OFD Sender: No OFD packet to send [20:32:05]OFD Sender: No OFD packet to send [20:32:10]OFD Sender: No OFD packet to send [20:32:15]OFD Sender: No OFD packet to send [20:32:20]OFD Sender: No OFD packet to send [20:32:25]OFD Sender: No OFD packet to send [20:32:30]OFD Sender: No OFD packet to send [20:32:35]OFD Sender: No OFD packet to send [20:32:40]OFD Sender: No OFD packet to send [20:32:45]OFD Sender: No OFD packet to send [20:32:50]OFD Sender: No OFD packet to send [20:32:55]OFD Sender: No OFD packet to send [20:33:00]OFD Sender: No OFD packet to send [20:33:05]OFD Sender: No OFD packet to send [20:33:10]OFD Sender: No OFD packet to send [20:33:15]OFD Sender: No OFD packet to send [20:33:20]OFD Sender: No OFD packet to send [20:33:25]OFD Sender: No OFD packet to send [20:33:30]OFD Sender: No OFD packet to send [20:33:35]OFD Sender: No OFD packet to send [20:33:40]OFD Sender: No OFD packet to send [20:33:45]OFD Sender: No OFD packet to send [20:33:50]OFD Sender: No OFD packet to send [20:33:55]OFD Sender: No OFD packet to send [20:34:00]OFD Sender: No OFD packet to send [20:34:05]OFD Sender: No OFD packet to send [20:34:10]OFD Sender: No OFD packet to send [20:34:15]OFD Sender: No OFD packet to send [20:34:20]OFD Sender: No OFD packet to send [20:34:25]OFD Sender: No OFD packet to send [20:34:30]OFD Sender: No OFD packet to send [20:34:35]OFD Sender: No OFD packet to send [20:34:40]OFD Sender: No OFD packet to send [20:34:45]OFD Sender: No OFD packet to send [20:34:50]OFD Sender: No OFD packet to send [20:34:55]OFD Sender: No OFD packet to send [20:35:00]OFD Sender: No OFD packet to send [20:35:05]OFD Sender: No OFD packet to send [20:35:10]OFD Sender: No OFD packet to send [20:35:15]OFD Sender: No OFD packet to send [20:35:20]OFD Sender: No OFD packet to send [20:35:25]OFD Sender: No OFD packet to send [20:35:30]OFD Sender: No OFD packet to send [20:35:35]OFD Sender: No OFD packet to send [20:35:40]OFD Sender: No OFD packet to send [20:35:45]OFD Sender: No OFD packet to send [20:35:50]OFD Sender: No OFD packet to send [20:35:55]OFD Sender: No OFD packet to send [20:36:00]OFD Sender: No OFD packet to send [20:36:05]OFD Sender: No OFD packet to send [20:36:10]OFD Sender: No OFD packet to send [20:36:15]OFD Sender: No OFD packet to send [20:36:16]accept exits with 8 [20:36:16]New connection [20:36:16]New thread 3067460964 created [20:36:16]Thread 3067317604 joined [20:36:16]Waiting for new connection... [20:36:16] Sock 8.Parse request [20:36:16]Sock 8.Check first char [20:36:16]Sock 8.First char is OK [20:36:16]request: POST /json_proto HTTP/1.0 [20:36:16]Method: POST [20:36:16]URL: /json_proto [20:36:16]Method is POST - this is cgi request [20:36:16]url: /json_proto [20:36:16]query_string will be loaded in cgi processing [20:36:16]execute_cgi json_proto POST (null) [20:36:16]execute_cgi path=json_proto method=POST [20:36:16]POST find Content-Length [20:36:16]Host: 172.17.45.132:8080 [20:36:16]Content-Length: 1121 [20:36:16]Content-Type: application/json [20:36:16] [20:36:16]POST finish read [20:36:16]Found Content-Length = 1121 [20:36:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126421", "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": "5449000189318", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043B\u0438\u043C\u043E\u043D 1\u043B", "price" : 107.00, "quantity" : 1.000, "sum" : 107.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" : 214.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:36:16]execute_script... [20:36: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)126421", "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": "5449000189318", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043B\u0438\u043C\u043E\u043D 1\u043B", "price" : 107.00, "quantity" : 1.000, "sum" : 107.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" : 214.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:36:16]POST & json_proto [20:36:16]process_json_proto [20:36:16]json parsed OK: [20:36:16]protocol is kg_v1.0 [20:36:16]action value=close_receipt [20:36:16]process_action close_receipt [20:36:16]cmd_close_receipt [20:36:16]MH_GetDate [20:36:16]Write to MH i2c: F0 00 00 8B 61 DB [20:36:16]Write i2c OK [20:36:16]MH_I2C_Read... [20:36:16]Read from MH i2c: F0 [20:36:16]MH_I2C_Read... [20:36:16]Read from MH i2c: F0 09 00 [20:36:16]MH_I2C_Read... [20:36:16]Read from MH i2c: F0 09 00 8B 61 00 C7 AB A6 66 E3 0B 90 66 46 [20:36:16]GetLastDocTimeStamp 1722198714 [20:36:16]current date 1722198983 [20:36:16]FM_GetShiftState [20:36:16]SAM_PROTO_GetShiftState [20:36:16]wFMCommunicate request_size=4 [20:36:16]MH_SAM_APDU [20:36:16]CAPDU: 80 13 01 00 [20:36:16]Write to MH i2c: E2 08 00 8C 61 80 13 01 00 00 00 00 00 6A [20:36:16]Write i2c OK [20:36:16]MH_I2C_Read... [20:36:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:36:16]Read from MH i2c: E2 [20:36:16]MH_I2C_Read... [20:36:16]Read from MH i2c: E2 0E 00 [20:36:16]MH_I2C_Read... [20:36:16]Read from MH i2c: E2 0E 00 8C 61 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 5E [20:36:16]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [20:36:16]wFMCommunicate OK [20:36:16]SAM_PROTO_GetShiftState done [20:36:16]FM_GetShiftState done [20:36:16]opened in 1722125648 [20:36:16]opened+sec_in_day 1722212048 [20:36:16]quantity*price = 10700 [20:36:16]sum+1 = 10701 [20:36:16]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000189318 Холодный чай Fuse лимон 1л 1.000 * 107.00 = 107.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 214.00 НСП 1% : 1.90 НДС 12% : 22.72 Наличными: 0.00 Безнал.: 214.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 176 28.07.2024 20:36 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2125 ФПД: 59200075359333 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T203623&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2125&fm=59200075359333&tin=02508201610067®Number=0000000000189667&sum=21400 0 [20:36:17]StoreToDocumentArchive [20:36:17]shift 13 fd 2125 [20:36:17]save to /storage/0013/doc_00002125 [20:36:17]save last doc name /storage/0013/doc_00002125 to /storage/kkm_last_doc_name [20:36:17]save OK [20:36:17]Clear old archive folders... [20:36:17]ProcessDocumentItem done err = 0, tmpTLVsize=402 [20:36:17]tlvbuf is 02064140 [20:36:17]SAM_PROTO_ClearQueue [20:36:17]wFMCommunicate request_size=4 [20:36:17]MH_SAM_APDU [20:36:17]CAPDU: 80 09 00 00 [20:36:17]Write to MH i2c: E2 08 00 99 61 80 09 00 00 00 00 00 00 6C [20:36:17]Write i2c OK [20:36:17]MH_I2C_Read... [20:36:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:36:17]Read from MH i2c: E2 [20:36:17]MH_I2C_Read... [20:36:17]Read from MH i2c: E2 03 00 [20:36:17]MH_I2C_Read... [20:36:17]Read from MH i2c: E2 03 00 99 61 00 90 00 6E [20:36:17]RAPDU: 90 00 [20:36:17]wFMCommunicate OK [20:36:17]SAM_PROTO_ClearQueue done [20:36:17]KKMCreateOFDPacket [20:36:17]OFDProtocolAddRootSTLVToBuf [20:36:17]FM_MakeSignedData [20:36:17]FM_MakeSignedData [20:36:17]SAM_PROTO_SignData [20:36:17]wFMCommunicate request_size=4 [20:36:17]MH_SAM_APDU [20:36:17]CAPDU: 80 0D 01 02 [20:36:17]Write to MH i2c: E2 08 00 9A 61 80 0D 01 02 00 00 00 00 74 [20:36:17]Write i2c OK [20:36:17]MH_I2C_Read... [20:36:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:36:17]Read from MH i2c: E2 [20:36:17]MH_I2C_Read... [20:36:17]Read from MH i2c: E2 03 00 [20:36:17]MH_I2C_Read... [20:36:17]Read from MH i2c: E2 03 00 9A 61 00 90 00 6F [20:36:17]RAPDU: 90 00 [20:36:17]wFMCommunicate OK [20:36:17]wFMCommunicate request_size=255 [20:36:17]MH_SAM_APDU [20:36:17]CAPDU: 80 0D 02 02 FA 03 00 92 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 6F 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 31 38 06 04 2B 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 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 98 53 00 00 00 [20:36:17]Write to MH i2c: E2 02 01 9B 61 80 0D 02 02 FA 00 03 00 92 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 6F 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 31 38 06 04 2B 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 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 98 53 00 00 00 00 00 18 [20:36:17]Write i2c OK [20:36:17]MH_I2C_Read... [20:36:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:36:17]Read from MH i2c: E2 [20:36:17]MH_I2C_Read... [20:36:17]Read from MH i2c: E2 03 00 [20:36:17]MH_I2C_Read... [20:36:17]Read from MH i2c: E2 03 00 9B 61 00 90 00 70 [20:36:17]RAPDU: 90 00 [20:36:17]wFMCommunicate OK [20:36:17]wFMCommunicate request_size=161 [20:36:17]MH_SAM_APDU [20:36:17]CAPDU: 80 0D 02 02 9C 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 53 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 C7 AB A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 4D 08 00 00 35 04 06 00 35 D7 97 76 64 65 [20:36:17]Write to MH i2c: E2 A4 00 9C 61 80 0D 02 02 9C 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 53 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 C7 AB A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 4D 08 00 00 35 04 06 00 35 D7 97 76 64 65 00 00 F8 [20:36:17]Write i2c OK [20:36:17]MH_I2C_Read... [20:36:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:36:18]Read from MH i2c: E2 [20:36:18]MH_I2C_Read... [20:36:18]Read from MH i2c: E2 03 00 [20:36:18]MH_I2C_Read... [20:36:18]Read from MH i2c: E2 03 00 9C 61 00 90 00 71 [20:36:18]RAPDU: 90 00 [20:36:18]wFMCommunicate OK [20:36:18]wFMCommunicate request_size=4 [20:36:18]MH_SAM_APDU [20:36:18]CAPDU: 80 0D 03 02 [20:36:18]Write to MH i2c: E2 08 00 9D 61 80 0D 03 02 00 00 00 00 79 [20:36:18]Write i2c OK [20:36:18]MH_I2C_Read... [20:36:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:36:18]Read from MH i2c: E2 [20:36:18]MH_I2C_Read... [20:36:18]Read from MH i2c: E2 0B 00 [20:36:18]MH_I2C_Read... [20:36:18]Read from MH i2c: E2 0B 00 9D 61 00 B4 B3 38 98 51 5E 0C B2 90 00 1E [20:36:18]RAPDU: B4 B3 38 98 51 5E 0C B2 90 00 [20:36:18]wFMCommunicate OK [20:36:18]SAM_PROTO_SignData done [20:36:18]FM_MakeSignedData done [20:36:18]CreateOFDProtocolMessage [20:36:18]wFMCommunicate request_size=4 [20:36:18]MH_SAM_APDU [20:36:18]CAPDU: 80 11 00 00 [20:36:18]Write to MH i2c: E2 08 00 9E 61 80 11 00 00 00 00 00 00 79 [20:36:18]Write i2c OK [20:36:18]MH_I2C_Read... [20:36:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:36:18]Read from MH i2c: E2 [20:36:18]MH_I2C_Read... [20:36:18]Read from MH i2c: E2 17 00 [20:36:18]MH_I2C_Read... [20:36:18]Read from MH i2c: E2 17 00 9E 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 C9 [20:36:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:36:18]wFMCommunicate OK [20:36:18]CreateOFDProtocolMessage done [20:36:18]OFDSenderStorePacket 2125 [20:36:18]StoreOFDPacket docnum=2125 [20:36:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 A6 01 00 00 4A 12 9E 01 0F 73 5A 03 01 00 03 00 92 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 6F 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 31 38 06 04 2B 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 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 98 53 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 53 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 C7 AB A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 4D 08 00 00 35 04 06 00 35 D7 97 76 64 65 B4 B3 38 98 51 5E 0C B2 [20:36:18]CheckFolder [20:36:18]dirname=/storage/ofd_packets [20:36:18]CheckFolder done [20:36:18]ProducePacketName [20:36:18]name=ofd_packets/00002125 [20:36:18]NVStorageSaveData ofd_packets/00002125 [20:36:18]File name is /storage/ofd_packets/00002125 [20:36:18]Write 452 bytes [20:36:18]NVStorageSaveData done [20:36:18]OFDSenderStorePacket done [20:36:18]KKMCreateOFDPacket done [20:36:18]NVStorageSaveData kkm_last_timestamp [20:36:18]File name is /storage/kkm_last_timestamp [20:36:18]Write 4 bytes [20:36:18]NVStorageSaveData done [20:36:18]ExternCall_PrintAddStr [20:36:18]wPrintStart [20:36:18]Write to MH i2c: 01 00 00 9F 61 00 [20:36:18]Write i2c OK [20:36:18]MH_I2C_Read... [20:36:18]Read from MH i2c: 01 [20:36:18]MH_I2C_Read... [20:36:18]Read from MH i2c: 01 07 00 [20:36:18]MH_I2C_Read... [20:36:18]Read from MH i2c: 01 07 00 9F 61 00 00 00 00 00 FF 0F 15 [20:36:18]RasterBufferAndPrint [20:36:18]line Счет N : (3)126421 [20:36:18]line ИНН: 02508201610067 [20:36:18]line Контрольно-Кассовый Чек [20:36:18]line ПРОДАЖА [20:36:18]line Товар: 5449000189332 [20:36:18]line Холодный чай Fuse персик 1л [20:36:18]line 1.000 * 107.00 [20:36:18]line = 107.00 [20:36:18]line НДС 12% НСП 1% [20:36:18]line > о реализуемом товаре [20:36:18]line Товар: 5449000189318 [20:36:18]line Холодный чай Fuse лимон 1л [20:36:18]line 1.000 * 107.00 [20:36:18]line = 107.00 [20:36:18]line НДС 12% НСП 1% [20:36:18]line > о реализуемом товаре [20:36:18]line ИТОГО: 214.00 [20:36:18]line НСП 1% : 1.90 [20:36:18]line НДС 12% : 22.72 [20:36:18]line Наличными: 0.00 [20:36:18]line Безнал.: 214.00 [20:36:18]line Место: АЗС № 127 "Партнер Нефть" [20:36:18]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [20:36:18]line СНО: Общий режим [20:36:18]line Чек 176 28.07.2024 20:36 [20:36:18]line Смена: 13 ФФД: 1.0 [20:36:18]line ЗНМ: 0300000161 [20:36:18]line РНМ: 0000000000189667 [20:36:18]line Версия ККМ: v1.0 [20:36:18]line Платежная система: O! деньги [20:36:18]line ФМ: 0000000002094248 [20:36:18]line ФД: 2125 [20:36:18]line ФПД: 59200075359333 [20:36:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T203623&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2125&fm=59200075359333&tin=02508201610067®Number=0000000000189667&sum=21400 [20:36:18]line 0 [20:36:18]written 0, free lines is 4095 [20:36:18]OFD Sender: Processing packet 2125 [packets to send 1, broken 0] [20:36:18]ProducePacketName [20:36:18]name=ofd_packets/00002125 [20:36:18]OFD Sender: To server: pG, [20:36:18]CommunicateWithHost lk.salyk.kg:30040 [20:36:18]ConnectInit lk.salyk.kg [20:36:18]Connected sock=10 [20:36:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 A6 01 00 00 4A 12 9E 01 0F 73 5A 03 01 00 03 00 92 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 6F 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 31 38 06 04 2B 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 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 98 53 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 53 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 C7 AB A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 4D 08 00 00 35 04 06 00 35 D7 97 76 64 65 B4 B3 38 98 51 5E 0C B2 [20:36:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 94 5C 47 00 C1 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 32 30 39 34 32 34 38 10 04 04 00 4D 08 00 00 F4 03 04 00 36 57 A6 66 B6 04 01 00 00 17 50 12 59 37 F2 32 0E [20:36:18]CommunicateWithHost err = 0 [20:36:18]CheckOFDResponse [20:36:18]1017 (14) - 77093643461234 [20:36:18]1041 (16) - 0000000002094248 [20:36:18]1040 (4) - 2125 [20:36:18]1012 (4) - 28.07.2024 14:35 [20:36:18]1206 (1) - 0 [20:36:18]OFD Sender: Remove packet 2125 [20:36:18]ProducePacketName [20:36:18]name=ofd_packets/00002125 [20:36:18]NVStorageDeleteData [20:36:18]Write to MH i2c: 01 00 00 CF 61 30 [20:36:18]Write i2c OK [20:36:18]MH_I2C_Read... [20:36:18]Read from MH i2c: 01 [20:36:18]MH_I2C_Read... [20:36:18]Read from MH i2c: 01 07 00 [20:36:18]MH_I2C_Read... [20:36:18]Read from MH i2c: 01 07 00 CF 61 00 00 00 00 00 BC 0C FF [20:36:18]RasterBufferAndPrint [20:36:18]line [20:36:18]line [20:36:18]line [20:36:18]line [20:36:18]line [20:36:18]written 0, free lines is 3267 [20:36:18]MH_Cut [20:36:18]Write to MH i2c: D1 01 00 D6 61 01 09 [20:36:18]Write i2c OK [20:36:18]MH_I2C_Read... [20:36:18]Read from MH i2c: D1 [20:36:18]MH_I2C_Read... [20:36:18]Read from MH i2c: D1 01 00 [20:36:18]MH_I2C_Read... [20:36:18]Read from MH i2c: D1 01 00 D6 61 00 08 [20:36:18]Write to MH i2c: 01 00 00 D7 61 38 [20:36:18]Write i2c OK [20:36:18]MH_I2C_Read... [20:36:19]OFD Sender: No OFD packet to send [20:36:19]*** Cut start [20:36:19]*** Partial cut [20:36:19]*** CUTSNS_PIN = 1 [20:36:19]*** CUTSNS_PIN = 0 [20:36:20]*** Brake cut motor [20:36:20]Read from MH i2c: 01 [20:36:20]MH_I2C_Read... [20:36:20]*** Stop cut motor [20:36:20]*** Cut end [20:36:20]Read from MH i2c: 01 07 00 [20:36:20]MH_I2C_Read... [20:36:20]Read from MH i2c: 01 07 00 D7 61 00 00 00 00 00 FF 0F 4D [20:36:20]process_action close_receipt done [20:36:20]requested_data is exist [20:36:20]produce_requested_data [20:36:20]requested_item fm.sn is exist - process it [20:36:20]wFMCommunicate request_size=4 [20:36:20]MH_SAM_APDU [20:36:20]CAPDU: 80 11 00 00 [20:36:20]Write to MH i2c: E2 08 00 D8 61 80 11 00 00 00 00 00 00 B3 [20:36:20]Write i2c OK [20:36:20]MH_I2C_Read... [20:36:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:36:20]Read from MH i2c: E2 [20:36:20]MH_I2C_Read... [20:36:20]Read from MH i2c: E2 17 00 [20:36:20]MH_I2C_Read... [20:36:20]Read from MH i2c: E2 17 00 D8 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 03 [20:36:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:36:20]wFMCommunicate OK [20:36:20]requested_item fd.num is exist - process it [20:36:20]SAM_PROTO_GetFieldsCounters [20:36:20]wFMCommunicate request_size=4 [20:36:20]MH_SAM_APDU [20:36:20]CAPDU: 80 13 00 00 [20:36:20]Write to MH i2c: E2 08 00 D9 61 80 13 00 00 00 00 00 00 B6 [20:36:20]Write i2c OK [20:36:20]MH_I2C_Read... [20:36:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:36:20]Read from MH i2c: E2 [20:36:20]MH_I2C_Read... [20:36:20]Read from MH i2c: E2 62 00 [20:36:20]MH_I2C_Read... [20:36:20]Read from MH i2c: E2 62 00 D9 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 4D 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 52 [20:36:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 4D 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:36:20]wFMCommunicate OK [20:36:20]SAM_PROTO_GetFieldsCounters done [20:36:20]requested_item shift.num is exist - process it [20:36:20]requested_item shift.opened is exist - process it [20:36:20]req_shift_opened [20:36:20]FM_GetShiftState [20:36:20]SAM_PROTO_GetShiftState [20:36:20]wFMCommunicate request_size=4 [20:36:20]MH_SAM_APDU [20:36:20]CAPDU: 80 13 01 00 [20:36:20]Write to MH i2c: E2 08 00 DA 61 80 13 01 00 00 00 00 00 B8 [20:36:20]Write i2c OK [20:36:20]MH_I2C_Read... [20:36:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:36:20]Read from MH i2c: E2 [20:36:20]MH_I2C_Read... [20:36:20]Read from MH i2c: E2 0E 00 [20:36:20]MH_I2C_Read... [20:36:20]Read from MH i2c: E2 0E 00 DA 61 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 AC [20:36:20]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [20:36:20]wFMCommunicate OK [20:36:20]SAM_PROTO_GetShiftState done [20:36:20]FM_GetShiftState done [20:36:20]req_shift_opened done [20:36:20]requested_item shift.open_date is exist - process it [20:36:20]req_shift_open_date [20:36:20]req_shift_open_date done [20:36:20]produce_requested_data done [20:36:20]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2125,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [20:36:20]process_action_free close_receipt [20:36:20]json_value_free [20:36:20]json_value_free done [20:36:20]process_json_proto returns [20:36:20]Send response to host [20:36:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2125,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [20:36:20]free response buf [20:36:20]execute_script done [20:36:20]execute_script returns [20:36:20]free content buf [20:36:20]Sock 8.Close socket [20:36:20]Sock 8.Thread stoped [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:44]OFD Sender: No OFD packet to send [20:43:49]OFD Sender: No OFD packet to send [20:43:54]OFD Sender: No OFD packet to send [20:43:59]OFD Sender: No OFD packet to send [20:44:04]OFD Sender: No OFD packet to send [20:44:09]OFD Sender: No OFD packet to send [20:44:14]OFD Sender: No OFD packet to send [20:44:19]OFD Sender: No OFD packet to send [20:44:24]OFD Sender: No OFD packet to send [20:44:29]OFD Sender: No OFD packet to send [20:44:34]OFD Sender: No OFD packet to send [20:44:39]OFD Sender: No OFD packet to send [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:09]OFD Sender: No OFD packet to send [20:45:14]OFD Sender: No OFD packet to send [20:45:19]OFD Sender: No OFD packet to send [20:45:24]OFD Sender: No OFD packet to send [20:45:29]OFD Sender: No OFD packet to send [20:45:34]OFD Sender: No OFD packet to send [20:45:39]OFD Sender: No OFD packet to send [20:45:44]OFD Sender: No OFD packet to send [20:45:49]OFD Sender: No OFD packet to send [20:45:54]OFD Sender: No OFD packet to send [20:45:59]OFD Sender: No OFD packet to send [20:46:04]OFD Sender: No OFD packet to send [20:46:09]OFD Sender: No OFD packet to send [20:46:14]OFD Sender: No OFD packet to send [20:46:19]OFD Sender: No OFD packet to send [20:46:24]OFD Sender: No OFD packet to send [20:46:29]OFD Sender: No OFD packet to send [20:46:34]OFD Sender: No OFD packet to send [20:46:39]OFD Sender: No OFD packet to send [20:46:44]OFD Sender: No OFD packet to send [20:46:49]OFD Sender: No OFD packet to send [20:46:54]OFD Sender: No OFD packet to send [20:46:59]OFD Sender: No OFD packet to send [20:47:04]OFD Sender: No OFD packet to send [20:47:09]OFD Sender: No OFD packet to send [20:47:14]OFD Sender: No OFD packet to send [20:47:19]OFD Sender: No OFD packet to send [20:47:24]OFD Sender: No OFD packet to send [20:47:29]OFD Sender: No OFD packet to send [20:47:34]OFD Sender: No OFD packet to send [20:47:39]OFD Sender: No OFD packet to send [20:47:41]accept exits with 9 [20:47:41]New connection [20:47:41]New thread 3067317604 created [20:47:41]Thread 3067460964 joined [20:47:41]Waiting for new connection... [20:47:41] Sock 9.Parse request [20:47:41]Sock 9.Check first char [20:47:41]Sock 9.First char is OK [20:47:41]request: POST /json_proto HTTP/1.0 [20:47:41]Method: POST [20:47:41]URL: /json_proto [20:47:41]Method is POST - this is cgi request [20:47:41]url: /json_proto [20:47:41]query_string will be loaded in cgi processing [20:47:41]execute_cgi json_proto POST (null) [20:47:41]execute_cgi path=json_proto method=POST [20:47:41]POST find Content-Length [20:47:41]Host: 172.17.45.132:8080 [20:47:41]Content-Length: 1612 [20:47:41]Content-Type: application/json [20:47:41] [20:47:41]POST finish read [20:47:41]Found Content-Length = 1612 [20:47:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126422", "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" : 2.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000483259", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fresh \u041C\u043E\u0445\u0438\u0442\u043E", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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": "4607010740191", "name": "\u0421\u0443\u0445 \u041A\u0438\u0440\u0438\u0435\u0448\u043A\u0438 \u0441\u0430\u043B\u044F\u043C\u0438 40\u0433", "price" : 21.00, "quantity" : 1.000, "sum" : 21.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 421.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:47:41]execute_script... [20:47: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)126422", "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" : 2.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000483259", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fresh \u041C\u043E\u0445\u0438\u0442\u043E", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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": "4607010740191", "name": "\u0421\u0443\u0445 \u041A\u0438\u0440\u0438\u0435\u0448\u043A\u0438 \u0441\u0430\u043B\u044F\u043C\u0438 40\u0433", "price" : 21.00, "quantity" : 1.000, "sum" : 21.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 421.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:47:41]POST & json_proto [20:47:41]process_json_proto [20:47:41]json parsed OK: [20:47:41]protocol is kg_v1.0 [20:47:41]action value=close_receipt [20:47:41]process_action close_receipt [20:47:41]cmd_close_receipt [20:47:41]MH_GetDate [20:47:41]Write to MH i2c: F0 00 00 DB 61 2B [20:47:42]Write i2c OK [20:47:42]MH_I2C_Read... [20:47:42]Read from MH i2c: F0 [20:47:42]MH_I2C_Read... [20:47:42]Read from MH i2c: F0 09 00 [20:47:42]MH_I2C_Read... [20:47:42]Read from MH i2c: F0 09 00 DB 61 00 75 AE A6 66 E3 0B 90 66 47 [20:47:42]GetLastDocTimeStamp 1722198983 [20:47:42]current date 1722199669 [20:47:42]FM_GetShiftState [20:47:42]SAM_PROTO_GetShiftState [20:47:42]wFMCommunicate request_size=4 [20:47:42]MH_SAM_APDU [20:47:42]CAPDU: 80 13 01 00 [20:47:42]Write to MH i2c: E2 08 00 DC 61 80 13 01 00 00 00 00 00 BA [20:47:42]Write i2c OK [20:47:42]MH_I2C_Read... [20:47:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:47:42]Read from MH i2c: E2 [20:47:42]MH_I2C_Read... [20:47:42]Read from MH i2c: E2 0E 00 [20:47:42]MH_I2C_Read... [20:47:42]Read from MH i2c: E2 0E 00 DC 61 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 AE [20:47:42]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [20:47:42]wFMCommunicate OK [20:47:42]SAM_PROTO_GetShiftState done [20:47:42]FM_GetShiftState done [20:47:42]opened in 1722125648 [20:47:42]opened+sec_in_day 1722212048 [20:47:42]quantity*price = 21000 [20:47:42]sum+1 = 21001 [20:47:42]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000483259 Напиток Nitro Fresh Мохито 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000480302 Напиток энерг Nitro манго-клуб 0.45 ж/б 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607010740191 Сух Кириешки салями 40г 1.000 * 21.00 = 21.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 421.00 НСП 1% : 3.73 НДС 12% : 44.71 Наличными: 421.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 177 28.07.2024 20:47 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2126 ФПД: 123414939582296 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T204749&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2126&fm=123414939582296&tin=02508201610067®Number=0000000000189667&sum=42100 0 [20:47:43]StoreToDocumentArchive [20:47:43]shift 13 fd 2126 [20:47:43]save to /storage/0013/doc_00002126 [20:47:43]save last doc name /storage/0013/doc_00002126 to /storage/kkm_last_doc_name [20:47:43]save OK [20:47:43]Clear old archive folders... [20:47:43]ProcessDocumentItem done err = 0, tmpTLVsize=668 [20:47:43]tlvbuf is 01FC2750 [20:47:43]SAM_PROTO_ClearQueue [20:47:43]wFMCommunicate request_size=4 [20:47:43]MH_SAM_APDU [20:47:43]CAPDU: 80 09 00 00 [20:47:43]Write to MH i2c: E2 08 00 E9 61 80 09 00 00 00 00 00 00 BC [20:47:43]Write i2c OK [20:47:43]MH_I2C_Read... [20:47:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:47:43]Read from MH i2c: E2 [20:47:43]MH_I2C_Read... [20:47:43]Read from MH i2c: E2 03 00 [20:47:43]MH_I2C_Read... [20:47:43]Read from MH i2c: E2 03 00 E9 61 00 90 00 BE [20:47:43]RAPDU: 90 00 [20:47:43]wFMCommunicate OK [20:47:43]SAM_PROTO_ClearQueue done [20:47:43]KKMCreateOFDPacket [20:47:43]OFDProtocolAddRootSTLVToBuf [20:47:43]FM_MakeSignedData [20:47:43]FM_MakeSignedData [20:47:43]SAM_PROTO_SignData [20:47:43]wFMCommunicate request_size=4 [20:47:43]MH_SAM_APDU [20:47:43]CAPDU: 80 0D 01 02 [20:47:43]Write to MH i2c: E2 08 00 EA 61 80 0D 01 02 00 00 00 00 C4 [20:47:43]Write i2c OK [20:47:43]MH_I2C_Read... [20:47:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:47:43]Read from MH i2c: E2 [20:47:43]MH_I2C_Read... [20:47:43]Read from MH i2c: E2 03 00 [20:47:43]MH_I2C_Read... [20:47:43]Read from MH i2c: E2 03 00 EA 61 00 90 00 BF [20:47:43]RAPDU: 90 00 [20:47:43]wFMCommunicate OK [20:47:43]wFMCommunicate request_size=255 [20:47:43]MH_SAM_APDU [20:47:43]CAPDU: 80 0D 02 02 FA 03 00 9C 02 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 D0 07 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 32 35 39 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 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 [20:47:43]Write to MH i2c: E2 02 01 EB 61 80 0D 02 02 FA 00 03 00 9C 02 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 D0 07 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 32 35 39 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 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 00 00 3E [20:47:43]Write i2c OK [20:47:43]MH_I2C_Read... [20:47:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:47:43]Read from MH i2c: E2 [20:47:43]MH_I2C_Read... [20:47:43]Read from MH i2c: E2 03 00 [20:47:43]MH_I2C_Read... [20:47:43]Read from MH i2c: E2 03 00 EB 61 00 90 00 C0 [20:47:43]RAPDU: 90 00 [20:47:43]wFMCommunicate OK [20:47:43]wFMCommunicate request_size=255 [20:47:43]MH_SAM_APDU [20:47:43]CAPDU: 80 0D 02 02 FA F6 03 01 00 01 BC 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 6D 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 31 39 31 06 04 29 00 D0 A1 D1 83 D1 85 20 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 D1 81 D0 B0 D0 BB D1 8F D0 BC D0 B8 20 34 30 D0 B3 FF 03 08 00 03 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 [20:47:43]Write to MH i2c: E2 02 01 EC 61 80 0D 02 02 FA 00 F6 03 01 00 01 BC 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 6D 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 31 39 31 06 04 29 00 D0 A1 D1 83 D1 85 20 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 D1 81 D0 B0 D0 BB D1 8F D0 BC D0 B8 20 34 30 D0 B3 FF 03 08 00 03 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 00 E1 [20:47:43]Write i2c OK [20:47:43]MH_I2C_Read... [20:47:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:47:43]Read from MH i2c: E2 [20:47:43]MH_I2C_Read... [20:47:43]Read from MH i2c: E2 03 00 [20:47:43]MH_I2C_Read... [20:47:43]Read from MH i2c: E2 03 00 EC 61 00 90 00 C1 [20:47:43]RAPDU: 90 00 [20:47:43]wFMCommunicate OK [20:47:43]wFMCommunicate request_size=177 [20:47:43]MH_SAM_APDU [20:47:43]CAPDU: 80 0D 02 02 AC 00 01 BC 04 01 00 01 FC 03 06 00 74 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 11 00 00 00 00 07 04 06 00 74 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 75 AE A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 4E 08 00 00 35 04 06 00 70 3E C7 A2 3F 58 [20:47:43]Write to MH i2c: E2 B4 00 ED 61 80 0D 02 02 AC 00 00 01 BC 04 01 00 01 FC 03 06 00 74 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 11 00 00 00 00 07 04 06 00 74 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 75 AE A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 4E 08 00 00 35 04 06 00 70 3E C7 A2 3F 58 00 00 4D [20:47:43]Write i2c OK [20:47:43]MH_I2C_Read... [20:47:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:47:44]Read from MH i2c: E2 [20:47:44]MH_I2C_Read... [20:47:44]Read from MH i2c: E2 03 00 [20:47:44]MH_I2C_Read... [20:47:44]Read from MH i2c: E2 03 00 ED 61 00 90 00 C2 [20:47:44]RAPDU: 90 00 [20:47:44]wFMCommunicate OK [20:47:44]wFMCommunicate request_size=4 [20:47:44]MH_SAM_APDU [20:47:44]CAPDU: 80 0D 03 02 [20:47:44]Write to MH i2c: E2 08 00 EE 61 80 0D 03 02 00 00 00 00 CA [20:47:44]Write i2c OK [20:47:44]MH_I2C_Read... [20:47:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:47:44]Read from MH i2c: E2 [20:47:44]MH_I2C_Read... [20:47:44]Read from MH i2c: E2 0B 00 [20:47:44]MH_I2C_Read... [20:47:44]Read from MH i2c: E2 0B 00 EE 61 00 6D ED D4 20 01 2C 5F AC 90 00 51 [20:47:44]RAPDU: 6D ED D4 20 01 2C 5F AC 90 00 [20:47:44]wFMCommunicate OK [20:47:44]SAM_PROTO_SignData done [20:47:44]FM_MakeSignedData done [20:47:44]CreateOFDProtocolMessage [20:47:44]wFMCommunicate request_size=4 [20:47:44]MH_SAM_APDU [20:47:44]CAPDU: 80 11 00 00 [20:47:44]Write to MH i2c: E2 08 00 EF 61 80 11 00 00 00 00 00 00 CA [20:47:44]Write i2c OK [20:47:44]MH_I2C_Read... [20:47:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:47:44]Read from MH i2c: E2 [20:47:44]MH_I2C_Read... [20:47:44]Read from MH i2c: E2 17 00 [20:47:44]MH_I2C_Read... [20:47:44]Read from MH i2c: E2 17 00 EF 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 1A [20:47:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:47:44]wFMCommunicate OK [20:47:44]CreateOFDProtocolMessage done [20:47:44]OFDSenderStorePacket 2126 [20:47:44]StoreOFDPacket docnum=2126 [20:47:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 B0 02 00 00 19 83 A8 02 B2 83 5A 03 01 00 03 00 9C 02 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 D0 07 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 32 35 39 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 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 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 6D 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 31 39 31 06 04 29 00 D0 A1 D1 83 D1 85 20 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 D1 81 D0 B0 D0 BB D1 8F D0 BC D0 B8 20 34 30 D0 B3 FF 03 08 00 03 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 74 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 11 00 00 00 00 07 04 06 00 74 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 75 AE A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 4E 08 00 00 35 04 06 00 70 3E C7 A2 3F 58 6D ED D4 20 01 2C 5F AC [20:47:44]CheckFolder [20:47:44]dirname=/storage/ofd_packets [20:47:44]CheckFolder done [20:47:44]ProducePacketName [20:47:44]name=ofd_packets/00002126 [20:47:44]NVStorageSaveData ofd_packets/00002126 [20:47:44]File name is /storage/ofd_packets/00002126 [20:47:44]Write 718 bytes [20:47:44]NVStorageSaveData done [20:47:44]OFDSenderStorePacket done [20:47:44]KKMCreateOFDPacket done [20:47:44]NVStorageSaveData kkm_last_timestamp [20:47:44]File name is /storage/kkm_last_timestamp [20:47:44]Write 4 bytes [20:47:44]NVStorageSaveData done [20:47:44]ExternCall_PrintAddStr [20:47:44]wPrintStart [20:47:44]Write to MH i2c: 01 00 00 F0 61 51 [20:47:44]Write i2c OK [20:47:44]MH_I2C_Read... [20:47:44]Read from MH i2c: 01 [20:47:44]MH_I2C_Read... [20:47:44]Read from MH i2c: 01 07 00 [20:47:44]MH_I2C_Read... [20:47:44]Read from MH i2c: 01 07 00 F0 61 00 00 00 00 00 FF 0F 66 [20:47:44]RasterBufferAndPrint [20:47:44]line Счет N : (3)126422 [20:47:44]line ИНН: 02508201610067 [20:47:44]line Контрольно-Кассовый Чек [20:47:44]line ПРОДАЖА [20:47:44]line Товар: 4870145004982 [20:47:44]line Пиво Жатецкий Гусь 7 экспортное 0,43л ж/ [20:47:44]line 2.000 * 105.00 [20:47:44]line = 210.00 [20:47:44]line НДС 12% НСП 1% [20:47:44]line > о реализуемом товаре [20:47:44]line Товар: 4700000483259 [20:47:44]line Напиток Nitro Fresh Мохито [20:47:44]line 1.000 * 95.00 [20:47:44]line = 95.00 [20:47:44]line НДС 12% НСП 1% [20:47:44]line > о реализуемом товаре [20:47:44]line Товар: 4700000480302 [20:47:44]line Напиток энерг Nitro манго-клуб 0.45 ж/б [20:47:44]line 1.000 * 95.00 [20:47:44]line = 95.00 [20:47:44]line НДС 12% НСП 1% [20:47:44]line > о реализуемом товаре [20:47:44]line Товар: 4607010740191 [20:47:44]line Сух Кириешки салями 40г [20:47:44]line 1.000 * 21.00 [20:47:44]line = 21.00 [20:47:44]line НДС 12% НСП 1% [20:47:44]line > о реализуемом товаре [20:47:44]line ИТОГО: 421.00 [20:47:44]line НСП 1% : 3.73 [20:47:44]line НДС 12% : 44.71 [20:47:44]line Наличными: 421.00 [20:47:44]line Безнал.: 0.00 [20:47:44]line Место: АЗС № 127 "Партнер Нефть" [20:47:44]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [20:47:44]line СНО: Общий режим [20:47:44]line Чек 177 28.07.2024 20:47 [20:47:44]line Смена: 13 ФФД: 1.0 [20:47:44]line ЗНМ: 0300000161 [20:47:44]line РНМ: 0000000000189667 [20:47:44]line Версия ККМ: v1.0 [20:47:44]line ФМ: 0000000002094248 [20:47:44]line ФД: 2126 [20:47:44]line ФПД: 123414939582296 [20:47:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T204749&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2126&fm=123414939582296&tin=02508201610067®Number=0000000000189667&sum=42100 [20:47:44]OFD Sender: Processing packet 2126 [packets to send 1, broken 0] [20:47:44]ProducePacketName [20:47:44]name=ofd_packets/00002126 [20:47:44]OFD Sender: To server: pG, [20:47:44]CommunicateWithHost lk.salyk.kg:30040 [20:47:44]ConnectInit lk.salyk.kg [20:47:44]line 0 [20:47:44]written 0, free lines is 4095 [20:47:44]Connected sock=10 [20:47:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 B0 02 00 00 19 83 A8 02 B2 83 5A 03 01 00 03 00 9C 02 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 D0 07 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 32 35 39 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 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 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 6D 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 31 39 31 06 04 29 00 D0 A1 D1 83 D1 85 20 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 D1 81 D0 B0 D0 BB D1 8F D0 BC D0 B8 20 34 30 D0 B3 FF 03 08 00 03 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 74 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 11 00 00 00 00 07 04 06 00 74 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 75 AE A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 4E 08 00 00 35 04 06 00 70 3E C7 A2 3F 58 6D ED D4 20 01 2C 5F AC [20:47:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 C1 CC 47 00 8C 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 4E 08 00 00 F4 03 04 00 E4 59 A6 66 B6 04 01 00 00 70 54 AE D7 69 A8 DE 4C [20:47:45]CommunicateWithHost err = 0 [20:47:45]CheckOFDResponse [20:47:45]1017 (14) - 77093643461234 [20:47:45]1041 (16) - 0000000002094248 [20:47:45]1040 (4) - 2126 [20:47:45]1012 (4) - 28.07.2024 14:47 [20:47:45]1206 (1) - 0 [20:47:45]OFD Sender: Remove packet 2126 [20:47:45]ProducePacketName [20:47:45]name=ofd_packets/00002126 [20:47:45]NVStorageDeleteData [20:47:45]Write to MH i2c: 01 00 00 2C 62 8E [20:47:45]Write i2c OK [20:47:45]MH_I2C_Read... [20:47:45]Read from MH i2c: 01 [20:47:45]MH_I2C_Read... [20:47:45]Read from MH i2c: 01 07 00 [20:47:45]MH_I2C_Read... [20:47:45]Read from MH i2c: 01 07 00 2C 62 00 00 00 00 00 0C 0C AD [20:47:45]RasterBufferAndPrint [20:47:45]line [20:47:45]line [20:47:45]line [20:47:45]line [20:47:45]line [20:47:45]written 0, free lines is 3093 [20:47:45]MH_Cut [20:47:45]Write to MH i2c: D1 01 00 33 62 01 67 [20:47:45]Write i2c OK [20:47:45]MH_I2C_Read... [20:47:45]Read from MH i2c: D1 [20:47:45]MH_I2C_Read... [20:47:45]Read from MH i2c: D1 01 00 [20:47:45]MH_I2C_Read... [20:47:45]Read from MH i2c: D1 01 00 33 62 00 66 [20:47:45]Write to MH i2c: 01 00 00 34 62 96 [20:47:45]Write i2c OK [20:47:45]MH_I2C_Read... [20:47:45]OFD Sender: No OFD packet to send [20:47:45]*** Cut start [20:47:45]*** Partial cut [20:47:45]*** CUTSNS_PIN = 1 [20:47:46]*** CUTSNS_PIN = 0 [20:47:46]*** Brake cut motor [20:47:46]Read from MH i2c: 01 [20:47:46]MH_I2C_Read... [20:47:46]*** Stop cut motor [20:47:46]*** Cut end [20:47:46]Read from MH i2c: 01 07 00 [20:47:46]MH_I2C_Read... [20:47:46]Read from MH i2c: 01 07 00 34 62 00 00 00 00 00 FF 0F AB [20:47:46]process_action close_receipt done [20:47:46]requested_data is exist [20:47:46]produce_requested_data [20:47:46]requested_item fm.sn is exist - process it [20:47:46]wFMCommunicate request_size=4 [20:47:46]MH_SAM_APDU [20:47:46]CAPDU: 80 11 00 00 [20:47:46]Write to MH i2c: E2 08 00 35 62 80 11 00 00 00 00 00 00 11 [20:47:46]Write i2c OK [20:47:46]MH_I2C_Read... [20:47:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:47:46]Read from MH i2c: E2 [20:47:46]MH_I2C_Read... [20:47:46]Read from MH i2c: E2 17 00 [20:47:46]MH_I2C_Read... [20:47:46]Read from MH i2c: E2 17 00 35 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 61 [20:47:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:47:46]wFMCommunicate OK [20:47:46]requested_item fd.num is exist - process it [20:47:46]SAM_PROTO_GetFieldsCounters [20:47:46]wFMCommunicate request_size=4 [20:47:46]MH_SAM_APDU [20:47:46]CAPDU: 80 13 00 00 [20:47:46]Write to MH i2c: E2 08 00 36 62 80 13 00 00 00 00 00 00 14 [20:47:46]Write i2c OK [20:47:46]MH_I2C_Read... [20:47:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:47:46]Read from MH i2c: E2 [20:47:46]MH_I2C_Read... [20:47:46]Read from MH i2c: E2 62 00 [20:47:46]MH_I2C_Read... [20:47:46]Read from MH i2c: E2 62 00 36 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 4E 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [20:47:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 4E 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:47:46]wFMCommunicate OK [20:47:46]SAM_PROTO_GetFieldsCounters done [20:47:46]requested_item shift.num is exist - process it [20:47:46]requested_item shift.opened is exist - process it [20:47:46]req_shift_opened [20:47:46]FM_GetShiftState [20:47:46]SAM_PROTO_GetShiftState [20:47:46]wFMCommunicate request_size=4 [20:47:46]MH_SAM_APDU [20:47:46]CAPDU: 80 13 01 00 [20:47:46]Write to MH i2c: E2 08 00 37 62 80 13 01 00 00 00 00 00 16 [20:47:46]Write i2c OK [20:47:46]MH_I2C_Read... [20:47:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:47:46]Read from MH i2c: E2 [20:47:46]MH_I2C_Read... [20:47:46]Read from MH i2c: E2 0E 00 [20:47:46]MH_I2C_Read... [20:47:46]Read from MH i2c: E2 0E 00 37 62 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 0A [20:47:46]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [20:47:46]wFMCommunicate OK [20:47:46]SAM_PROTO_GetShiftState done [20:47:46]FM_GetShiftState done [20:47:46]req_shift_opened done [20:47:46]requested_item shift.open_date is exist - process it [20:47:46]req_shift_open_date [20:47:46]req_shift_open_date done [20:47:46]produce_requested_data done [20:47:46]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2126,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [20:47:46]process_action_free close_receipt [20:47:46]json_value_free [20:47:46]json_value_free done [20:47:46]process_json_proto returns [20:47:46]Send response to host [20:47:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2126,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [20:47:46]free response buf [20:47:46]execute_script done [20:47:46]execute_script returns [20:47:46]free content buf [20:47:46]Sock 9.Close socket [20:47:46]Sock 9.Thread stoped [20:47:50]OFD Sender: No OFD packet to send [20:47:54]accept exits with 8 [20:47:54]New connection [20:47:54]New thread 3067460964 created [20:47:54]Thread 3067317604 joined [20:47:54]Waiting for new connection... [20:47:54] Sock 8.Parse request [20:47:54]Sock 8.Check first char [20:47:54]Sock 8.First char is OK [20:47:54]request: POST /json_proto HTTP/1.0 [20:47:54]Method: POST [20:47:54]URL: /json_proto [20:47:54]Method is POST - this is cgi request [20:47:54]url: /json_proto [20:47:54]query_string will be loaded in cgi processing [20:47:54]execute_cgi json_proto POST (null) [20:47:54]execute_cgi path=json_proto method=POST [20:47:54]POST find Content-Length [20:47:54]Host: 172.17.45.132:8080 [20:47:54]Content-Length: 623 [20:47:54]Content-Type: application/json [20:47:54] [20:47:54]POST finish read [20:47:54]Found Content-Length = 623 [20:47:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126423", "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" ] } } [20:47:54]execute_script... [20:47: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)126423", "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" ] } } [20:47:54]POST & json_proto [20:47:54]process_json_proto [20:47:54]json parsed OK: [20:47:54]protocol is kg_v1.0 [20:47:54]action value=close_receipt [20:47:54]process_action close_receipt [20:47:54]cmd_close_receipt [20:47:54]MH_GetDate [20:47:54]Write to MH i2c: F0 00 00 38 62 89 [20:47:54]Write i2c OK [20:47:54]MH_I2C_Read... [20:47:54]Read from MH i2c: F0 [20:47:54]MH_I2C_Read... [20:47:54]Read from MH i2c: F0 09 00 [20:47:54]MH_I2C_Read... [20:47:54]Read from MH i2c: F0 09 00 38 62 00 81 AE A6 66 E3 0B 90 66 B1 [20:47:54]GetLastDocTimeStamp 1722199669 [20:47:54]current date 1722199681 [20:47:54]FM_GetShiftState [20:47:54]SAM_PROTO_GetShiftState [20:47:54]wFMCommunicate request_size=4 [20:47:54]MH_SAM_APDU [20:47:54]CAPDU: 80 13 01 00 [20:47:54]Write to MH i2c: E2 08 00 39 62 80 13 01 00 00 00 00 00 18 [20:47:54]Write i2c OK [20:47:54]MH_I2C_Read... [20:47:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:47:54]Read from MH i2c: E2 [20:47:54]MH_I2C_Read... [20:47:54]Read from MH i2c: E2 0E 00 [20:47:54]MH_I2C_Read... [20:47:54]Read from MH i2c: E2 0E 00 39 62 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 0C [20:47:54]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [20:47:54]wFMCommunicate OK [20:47:54]SAM_PROTO_GetShiftState done [20:47:54]FM_GetShiftState done [20:47:54]opened in 1722125648 [20:47:54]opened+sec_in_day 1722212048 [20:47:54]quantity*price = 14000 [20:47:54]sum+1 = 14001 [20:47:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 178 28.07.2024 20:48 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2127 ФПД: 101438827651561 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T204801&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2127&fm=101438827651561&tin=02508201610067®Number=0000000000189667&sum=14000 0 [20:47:54]StoreToDocumentArchive [20:47:54]shift 13 fd 2127 [20:47:54]save to /storage/0013/doc_00002127 [20:47:54]save last doc name /storage/0013/doc_00002127 to /storage/kkm_last_doc_name [20:47:54]save OK [20:47:54]Clear old archive folders... [20:47:54]ProcessDocumentItem done err = 0, tmpTLVsize=275 [20:47:54]tlvbuf is 01F3A6D0 [20:47:54]SAM_PROTO_ClearQueue [20:47:54]wFMCommunicate request_size=4 [20:47:54]MH_SAM_APDU [20:47:54]CAPDU: 80 09 00 00 [20:47:54]Write to MH i2c: E2 08 00 46 62 80 09 00 00 00 00 00 00 1A [20:47:54]Write i2c OK [20:47:54]MH_I2C_Read... [20:47:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:47:55]Read from MH i2c: E2 [20:47:55]MH_I2C_Read... [20:47:55]Read from MH i2c: E2 03 00 [20:47:55]MH_I2C_Read... [20:47:55]Read from MH i2c: E2 03 00 46 62 00 90 00 1C [20:47:55]RAPDU: 90 00 [20:47:55]wFMCommunicate OK [20:47:55]SAM_PROTO_ClearQueue done [20:47:55]KKMCreateOFDPacket [20:47:55]OFDProtocolAddRootSTLVToBuf [20:47:55]FM_MakeSignedData [20:47:55]FM_MakeSignedData [20:47:55]SAM_PROTO_SignData [20:47:55]wFMCommunicate request_size=4 [20:47:55]MH_SAM_APDU [20:47:55]CAPDU: 80 0D 01 02 [20:47:55]Write to MH i2c: E2 08 00 47 62 80 0D 01 02 00 00 00 00 22 [20:47:55]Write i2c OK [20:47:55]MH_I2C_Read... [20:47:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:47:55]Read from MH i2c: E2 [20:47:55]MH_I2C_Read... [20:47:55]Read from MH i2c: E2 03 00 [20:47:55]MH_I2C_Read... [20:47:55]Read from MH i2c: E2 03 00 47 62 00 90 00 1D [20:47:55]RAPDU: 90 00 [20:47:55]wFMCommunicate OK [20:47:55]wFMCommunicate request_size=255 [20:47:55]MH_SAM_APDU [20:47:55]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 B2 00 00 00 F4 03 04 00 81 AE A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 [20:47:55]Write to MH i2c: E2 02 01 48 62 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 B2 00 00 00 F4 03 04 00 81 AE A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 00 00 B8 [20:47:55]Write i2c OK [20:47:55]MH_I2C_Read... [20:47:55]OFD Sender: No OFD packet to send [20:47:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:47:55]Read from MH i2c: E2 [20:47:55]MH_I2C_Read... [20:47:55]Read from MH i2c: E2 03 00 [20:47:55]MH_I2C_Read... [20:47:55]Read from MH i2c: E2 03 00 48 62 00 90 00 1E [20:47:55]RAPDU: 90 00 [20:47:55]wFMCommunicate OK [20:47:55]wFMCommunicate request_size=34 [20:47:55]MH_SAM_APDU [20:47:55]CAPDU: 80 0D 02 02 1D 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 4F 08 00 00 35 04 06 00 5C 42 11 49 E1 E9 [20:47:55]Write to MH i2c: E2 25 00 49 62 80 0D 02 02 1D 00 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 4F 08 00 00 35 04 06 00 5C 42 11 49 E1 E9 00 00 FC [20:47:55]Write i2c OK [20:47:55]MH_I2C_Read... [20:47:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:47:55]Read from MH i2c: E2 [20:47:55]MH_I2C_Read... [20:47:55]Read from MH i2c: E2 03 00 [20:47:55]MH_I2C_Read... [20:47:55]Read from MH i2c: E2 03 00 49 62 00 90 00 1F [20:47:55]RAPDU: 90 00 [20:47:55]wFMCommunicate OK [20:47:55]wFMCommunicate request_size=4 [20:47:55]MH_SAM_APDU [20:47:55]CAPDU: 80 0D 03 02 [20:47:55]Write to MH i2c: E2 08 00 4A 62 80 0D 03 02 00 00 00 00 27 [20:47:55]Write i2c OK [20:47:55]MH_I2C_Read... [20:47:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:47:55]Read from MH i2c: E2 [20:47:55]MH_I2C_Read... [20:47:55]Read from MH i2c: E2 0B 00 [20:47:55]MH_I2C_Read... [20:47:55]Read from MH i2c: E2 0B 00 4A 62 00 8D 2C 45 30 8E FF 81 63 90 00 C7 [20:47:55]RAPDU: 8D 2C 45 30 8E FF 81 63 90 00 [20:47:55]wFMCommunicate OK [20:47:55]SAM_PROTO_SignData done [20:47:55]FM_MakeSignedData done [20:47:55]CreateOFDProtocolMessage [20:47:55]wFMCommunicate request_size=4 [20:47:55]MH_SAM_APDU [20:47:55]CAPDU: 80 11 00 00 [20:47:55]Write to MH i2c: E2 08 00 4B 62 80 11 00 00 00 00 00 00 27 [20:47:55]Write i2c OK [20:47:55]MH_I2C_Read... [20:47:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:47:55]Read from MH i2c: E2 [20:47:55]MH_I2C_Read... [20:47:55]Read from MH i2c: E2 17 00 [20:47:55]MH_I2C_Read... [20:47:55]Read from MH i2c: E2 17 00 4B 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 77 [20:47:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:47:55]wFMCommunicate OK [20:47:55]CreateOFDProtocolMessage done [20:47:55]OFDSenderStorePacket 2127 [20:47:55]StoreOFDPacket docnum=2127 [20:47:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 27 01 00 00 88 10 1F 01 B4 20 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 B2 00 00 00 F4 03 04 00 81 AE A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 4F 08 00 00 35 04 06 00 5C 42 11 49 E1 E9 8D 2C 45 30 8E FF 81 63 [20:47:55]CheckFolder [20:47:55]dirname=/storage/ofd_packets [20:47:55]CheckFolder done [20:47:55]ProducePacketName [20:47:55]name=ofd_packets/00002127 [20:47:55]NVStorageSaveData ofd_packets/00002127 [20:47:55]File name is /storage/ofd_packets/00002127 [20:47:55]Write 325 bytes [20:47:55]NVStorageSaveData done [20:47:55]OFDSenderStorePacket done [20:47:55]KKMCreateOFDPacket done [20:47:55]NVStorageSaveData kkm_last_timestamp [20:47:55]File name is /storage/kkm_last_timestamp [20:47:55]Write 4 bytes [20:47:55]NVStorageSaveData done [20:47:55]ExternCall_PrintAddStr [20:47:55]wPrintStart [20:47:55]Write to MH i2c: 01 00 00 4C 62 AE [20:47:55]Write i2c OK [20:47:55]MH_I2C_Read... [20:47:55]Read from MH i2c: 01 [20:47:55]MH_I2C_Read... [20:47:55]Read from MH i2c: 01 07 00 [20:47:55]MH_I2C_Read... [20:47:55]Read from MH i2c: 01 07 00 4C 62 00 00 00 00 00 FF 0F C3 [20:47:55]RasterBufferAndPrint [20:47:55]line Счет N : (3)126423 [20:47:55]line ИНН: 02508201610067 [20:47:55]line Контрольно-Кассовый Чек [20:47:55]line ПРОДАЖА [20:47:55]line Товар: 48743587 [20:47:55]line Сигареты Winston XStyle Silver [20:47:55]line 1.000 * 140.00 [20:47:55]line = 140.00 [20:47:55]line НДС 12% НСП 1% [20:47:55]line > о реализуемом товаре [20:47:55]line ИТОГО: 140.00 [20:47:55]line НСП 1% : 1.24 [20:47:55]line НДС 12% : 14.87 [20:47:55]line Наличными: 140.00 [20:47:55]line Безнал.: 0.00 [20:47:55]line Место: АЗС № 127 "Партнер Нефть" [20:47:55]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [20:47:55]line СНО: Общий режим [20:47:55]line Чек 178 28.07.2024 20:48 [20:47:55]line Смена: 13 ФФД: 1.0 [20:47:55]line ЗНМ: 0300000161 [20:47:55]line РНМ: 0000000000189667 [20:47:55]line Версия ККМ: v1.0 [20:47:55]line ФМ: 0000000002094248 [20:47:55]line ФД: 2127 [20:47:55]line ФПД: 101438827651561 [20:47:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T204801&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2127&fm=101438827651561&tin=02508201610067®Number=0000000000189667&sum=14000 [20:47:55]line 0 [20:47:55]written 0, free lines is 4095 [20:47:55]OFD Sender: Processing packet 2127 [packets to send 1, broken 0] [20:47:55]ProducePacketName [20:47:55]name=ofd_packets/00002127 [20:47:55]OFD Sender: To server: pG, [20:47:55]CommunicateWithHost lk.salyk.kg:30040 [20:47:55]ConnectInit lk.salyk.kg [20:47:56]Write to MH i2c: 01 00 00 75 62 D7 [20:47:56]Write i2c OK [20:47:56]MH_I2C_Read... [20:47:56]Read from MH i2c: 01 [20:47:56]MH_I2C_Read... [20:47:56]Read from MH i2c: 01 07 00 [20:47:56]MH_I2C_Read... [20:47:56]Read from MH i2c: 01 07 00 75 62 00 00 00 00 00 FB 0C E5 [20:47:56]RasterBufferAndPrint [20:47:56]line [20:47:56]line [20:47:56]line [20:47:56]line [20:47:56]line [20:47:56]written 0, free lines is 3335 [20:47:56]MH_Cut [20:47:56]Write to MH i2c: D1 01 00 7C 62 01 B0 [20:47:56]Write i2c OK [20:47:56]MH_I2C_Read... [20:47:56]Read from MH i2c: D1 [20:47:56]MH_I2C_Read... [20:47:56]Read from MH i2c: D1 01 00 [20:47:56]MH_I2C_Read... [20:47:56]Read from MH i2c: D1 01 00 7C 62 00 AF [20:47:56]Write to MH i2c: 01 00 00 7D 62 DF [20:47:56]Write i2c OK [20:47:56]MH_I2C_Read... [20:47:56]Connected sock=10 [20:47:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 27 01 00 00 88 10 1F 01 B4 20 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 B2 00 00 00 F4 03 04 00 81 AE A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 4F 08 00 00 35 04 06 00 5C 42 11 49 E1 E9 8D 2C 45 30 8E FF 81 63 [20:47:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 7B FB 47 00 B3 E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 4F 08 00 00 F4 03 04 00 F0 59 A6 66 B6 04 01 00 00 9C 3C B9 7D 96 77 82 A2 [20:47:56]CommunicateWithHost err = 0 [20:47:56]CheckOFDResponse [20:47:56]1017 (14) - 77093643461234 [20:47:56]1041 (16) - 0000000002094248 [20:47:56]1040 (4) - 2127 [20:47:56]1012 (4) - 28.07.2024 14:47 [20:47:56]1206 (1) - 0 [20:47:56]OFD Sender: Remove packet 2127 [20:47:56]ProducePacketName [20:47:56]name=ofd_packets/00002127 [20:47:56]NVStorageDeleteData [20:47:56]*** Cut start [20:47:56]*** Partial cut [20:47:56]*** CUTSNS_PIN = 1 [20:47:57]*** CUTSNS_PIN = 0 [20:47:57]OFD Sender: No OFD packet to send [20:47:57]*** Brake cut motor [20:47:57]Read from MH i2c: 01 [20:47:57]MH_I2C_Read... [20:47:57]*** Stop cut motor [20:47:57]*** Cut end [20:47:57]Read from MH i2c: 01 07 00 [20:47:57]MH_I2C_Read... [20:47:57]Read from MH i2c: 01 07 00 7D 62 00 00 00 00 00 FF 0F F4 [20:47:57]process_action close_receipt done [20:47:57]requested_data is exist [20:47:57]produce_requested_data [20:47:57]requested_item fm.sn is exist - process it [20:47:57]wFMCommunicate request_size=4 [20:47:57]MH_SAM_APDU [20:47:57]CAPDU: 80 11 00 00 [20:47:57]Write to MH i2c: E2 08 00 7E 62 80 11 00 00 00 00 00 00 5A [20:47:57]Write i2c OK [20:47:57]MH_I2C_Read... [20:47:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:47:57]Read from MH i2c: E2 [20:47:57]MH_I2C_Read... [20:47:57]Read from MH i2c: E2 17 00 [20:47:57]MH_I2C_Read... [20:47:57]Read from MH i2c: E2 17 00 7E 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 AA [20:47:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:47:57]wFMCommunicate OK [20:47:57]requested_item fd.num is exist - process it [20:47:57]SAM_PROTO_GetFieldsCounters [20:47:57]wFMCommunicate request_size=4 [20:47:57]MH_SAM_APDU [20:47:57]CAPDU: 80 13 00 00 [20:47:57]Write to MH i2c: E2 08 00 7F 62 80 13 00 00 00 00 00 00 5D [20:47:57]Write i2c OK [20:47:57]MH_I2C_Read... [20:47:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:47:57]Read from MH i2c: E2 [20:47:57]MH_I2C_Read... [20:47:57]Read from MH i2c: E2 62 00 [20:47:57]MH_I2C_Read... [20:47:57]Read from MH i2c: E2 62 00 7F 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 4F 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 01 [20:47:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 4F 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:47:57]wFMCommunicate OK [20:47:57]SAM_PROTO_GetFieldsCounters done [20:47:57]requested_item shift.num is exist - process it [20:47:57]requested_item shift.opened is exist - process it [20:47:57]req_shift_opened [20:47:57]FM_GetShiftState [20:47:57]SAM_PROTO_GetShiftState [20:47:57]wFMCommunicate request_size=4 [20:47:57]MH_SAM_APDU [20:47:57]CAPDU: 80 13 01 00 [20:47:57]Write to MH i2c: E2 08 00 80 62 80 13 01 00 00 00 00 00 5F [20:47:57]Write i2c OK [20:47:57]MH_I2C_Read... [20:47:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:47:57]Read from MH i2c: E2 [20:47:57]MH_I2C_Read... [20:47:57]Read from MH i2c: E2 0E 00 [20:47:57]MH_I2C_Read... [20:47:57]Read from MH i2c: E2 0E 00 80 62 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 53 [20:47:57]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [20:47:57]wFMCommunicate OK [20:47:57]SAM_PROTO_GetShiftState done [20:47:57]FM_GetShiftState done [20:47:57]req_shift_opened done [20:47:57]requested_item shift.open_date is exist - process it [20:47:57]req_shift_open_date [20:47:57]req_shift_open_date done [20:47:57]produce_requested_data done [20:47:57]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2127,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [20:47:57]process_action_free close_receipt [20:47:57]json_value_free [20:47:57]json_value_free done [20:47:57]process_json_proto returns [20:47:57]Send response to host [20:47:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2127,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [20:47:57]free response buf [20:47:57]execute_script done [20:47:57]execute_script returns [20:47:57]free content buf [20:47:57]Sock 8.Close socket [20:47:57]Sock 8.Thread stoped [20:48:02]OFD Sender: No OFD packet to send [20:48:07]OFD Sender: No OFD packet to send [20:48:12]OFD Sender: No OFD packet to send [20:48:17]OFD Sender: No OFD packet to send [20:48:22]OFD Sender: No OFD packet to send [20:48:27]OFD Sender: No OFD packet to send [20:48:32]OFD Sender: No OFD packet to send [20:48:37]OFD Sender: No OFD packet to send [20:48:42]OFD Sender: No OFD packet to send [20:48:47]OFD Sender: No OFD packet to send [20:48:52]OFD Sender: No OFD packet to send [20:48:57]OFD Sender: No OFD packet to send [20:49:02]OFD Sender: No OFD packet to send [20:49:07]OFD Sender: No OFD packet to send [20:49:12]OFD Sender: No OFD packet to send [20:49:17]OFD Sender: No OFD packet to send [20:49:22]OFD Sender: No OFD packet to send [20:49:27]OFD Sender: No OFD packet to send [20:49:32]OFD Sender: No OFD packet to send [20:49:37]OFD Sender: No OFD packet to send [20:49:42]OFD Sender: No OFD packet to send [20:49:47]OFD Sender: No OFD packet to send [20:49:52]OFD Sender: No OFD packet to send [20:49:57]OFD Sender: No OFD packet to send B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 50 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:52:28]wFMCommunicate OK [20:52:28]SAM_PROTO_GetFieldsCounters done [20:52:28]requested_item shift.num is exist - process it [20:52:28]requested_item shift.opened is exist - process it [20:52:28]req_shift_opened [20:52:28]FM_GetShiftState [20:52:28]SAM_PROTO_GetShiftState [20:52:28]wFMCommunicate request_size=4 [20:52:28]MH_SAM_APDU [20:52:28]CAPDU: 80 13 01 00 [20:52:28]Write to MH i2c: E2 08 00 D0 62 80 13 01 00 00 00 00 00 AF [20:52:28]Write i2c OK [20:52:28]MH_I2C_Read... [20:52:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:52:28]Read from MH i2c: E2 [20:52:28]MH_I2C_Read... [20:52:28]Read from MH i2c: E2 0E 00 [20:52:28]MH_I2C_Read... [20:52:28]Read from MH i2c: E2 0E 00 D0 62 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 A3 [20:52:28]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [20:52:28]wFMCommunicate OK [20:52:28]SAM_PROTO_GetShiftState done [20:52:28]FM_GetShiftState done [20:52:28]req_shift_opened done [20:52:28]requested_item shift.open_date is exist - process it [20:52:28]req_shift_open_date [20:52:28]req_shift_open_date done [20:52:28]produce_requested_data done [20:52:28]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2128,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [20:52:28]process_action_free close_receipt [20:52:28]json_value_free [20:52:28]json_value_free done [20:52:28]process_json_proto returns [20:52:28]Send response to host [20:52:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2128,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [20:52:28]free response buf [20:52:28]execute_script done [20:52:28]execute_script returns [20:52:28]free content buf [20:52:28]Sock 9.Close socket [20:52:28]Sock 9.Thread stoped [20:52:31]ConnectInit Can't take IP for lk.salyk.kg [20:52:31]CommunicateWithHost connect error [20:52:31]CommunicateWithHost err = -1 [20:52:31]OFD Sender: Server communicate error [20:52:32]ConnectInit Can't connect to host [20:52:36]OFD Sender: Processing packet 2128 [packets to send 1, broken 0] [20:52:36]ProducePacketName [20:52:36]name=ofd_packets/00002128 [20:52:36]OFD Sender: To server: pG, [20:52:36]CommunicateWithHost lk.salyk.kg:30040 [20:52:36]ConnectInit lk.salyk.kg [20:52:37]ConnectInit Can't connect to host [20:54:50]ConnectInit Can't connect to host [20:54:50]CommunicateWithHost connect error [20:54:50]CommunicateWithHost err = -1 [20:54:50]OFD Sender: Server communicate error [20:54:55]OFD Sender: Processing packet 2128 [packets to send 1, broken 0] [20:54:55]ProducePacketName [20:54:55]name=ofd_packets/00002128 [20:54:55]OFD Sender: To server: pG, [20:54:55]CommunicateWithHost lk.salyk.kg:30040 [20:54:55]ConnectInit lk.salyk.kg [20:54:55]Connected sock=9 [20:54:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 BF 01 00 00 EA 37 B7 01 A9 E2 5A 03 01 00 03 00 AB 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 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 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 B3 00 00 00 F4 03 04 00 90 AF A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 50 08 00 00 35 04 06 00 1C 77 4E 5F 43 07 E9 FC 31 9E B7 E7 09 E4 [20:54:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 EF D4 47 00 45 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 32 30 39 34 32 34 38 10 04 04 00 50 08 00 00 F4 03 04 00 93 5B A6 66 B6 04 01 00 00 3F E1 74 E0 7E 8A AD 36 [20:54:55]CommunicateWithHost err = 0 [20:54:55]CheckOFDResponse [20:54:55]1017 (14) - 77093643461234 [20:54:55]1041 (16) - 0000000002094248 [20:54:55]1040 (4) - 2128 [20:54:55]1012 (4) - 28.07.2024 14:54 [20:54:55]1206 (1) - 0 [20:54:55]OFD Sender: Remove packet 2128 [20:54:55]ProducePacketName [20:54:55]name=ofd_packets/00002128 [20:54:55]NVStorageDeleteData [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:11]OFD Sender: No OFD packet to send [21:05:16]OFD Sender: No OFD packet to send [21:05:21]OFD Sender: No OFD packet to send [21:05:26]OFD Sender: No OFD packet to send [21:05:31]OFD Sender: No OFD packet to send [21:05:33]accept exits with 8 [21:05:33]New connection [21:05:33]New thread 3067460964 created [21:05:33]Thread 3067317604 joined [21:05:33]Waiting for new connection... [21:05:33] Sock 8.Parse request [21:05:33]Sock 8.Check first char [21:05:33]Sock 8.First char is OK [21:05:33]request: POST /json_proto HTTP/1.0 [21:05:33]Method: POST [21:05:33]URL: /json_proto [21:05:33]Method is POST - this is cgi request [21:05:33]url: /json_proto [21:05:33]query_string will be loaded in cgi processing [21:05:33]execute_cgi json_proto POST (null) [21:05:33]execute_cgi path=json_proto method=POST [21:05:33]POST find Content-Length [21:05:33]Host: 172.17.45.132:8080 [21:05:33]Content-Length: 1253 [21:05:33]Content-Type: application/json [21:05:33] [21:05:33]POST finish read [21:05:33]Found Content-Length = 1253 [21:05:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126425", "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": "4870235681383", "name": "\u0427\u0418\u041F\u0421\u042B SLANG \u0421\u041E \u0412\u041A\u0423\u0421\u041E\u041C \u0421\u041C\u0415\u0422\u0410\u041D\u0410/\u0417\u0415\u041B\u0415\u041D\u042C 60\u0413", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870235681376", "name": "\u0427\u0418\u041F\u0421\u042B SLANG \u0421\u041E \u0412\u041A\u0423\u0421\u041E\u041C \u041A\u0420\u0410\u0411 60\u0413", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 301.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:05:33]execute_script... [21:05: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)126425", "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": "4870235681383", "name": "\u0427\u0418\u041F\u0421\u042B SLANG \u0421\u041E \u0412\u041A\u0423\u0421\u041E\u041C \u0421\u041C\u0415\u0422\u0410\u041D\u0410/\u0417\u0415\u041B\u0415\u041D\u042C 60\u0413", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870235681376", "name": "\u0427\u0418\u041F\u0421\u042B SLANG \u0421\u041E \u0412\u041A\u0423\u0421\u041E\u041C \u041A\u0420\u0410\u0411 60\u0413", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 301.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:05:33]POST & json_proto [21:05:33]process_json_proto [21:05:33]json parsed OK: [21:05:33]protocol is kg_v1.0 [21:05:33]action value=close_receipt [21:05:33]process_action close_receipt [21:05:33]cmd_close_receipt [21:05:33]MH_GetDate [21:05:33]Write to MH i2c: F0 00 00 D1 62 22 [21:05:33]Write i2c OK [21:05:33]MH_I2C_Read... [21:05:33]Read from MH i2c: F0 [21:05:33]MH_I2C_Read... [21:05:33]Read from MH i2c: F0 09 00 [21:05:33]MH_I2C_Read... [21:05:33]Read from MH i2c: F0 09 00 D1 62 00 A4 B2 A6 66 E3 0B 90 66 71 [21:05:33]GetLastDocTimeStamp 1722199952 [21:05:33]current date 1722200740 [21:05:33]FM_GetShiftState [21:05:33]SAM_PROTO_GetShiftState [21:05:33]wFMCommunicate request_size=4 [21:05:33]MH_SAM_APDU [21:05:33]CAPDU: 80 13 01 00 [21:05:33]Write to MH i2c: E2 08 00 D2 62 80 13 01 00 00 00 00 00 B1 [21:05:33]Write i2c OK [21:05:33]MH_I2C_Read... [21:05:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:05:33]Read from MH i2c: E2 [21:05:33]MH_I2C_Read... [21:05:33]Read from MH i2c: E2 0E 00 [21:05:33]MH_I2C_Read... [21:05:33]Read from MH i2c: E2 0E 00 D2 62 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 A5 [21:05:33]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [21:05:33]wFMCommunicate OK [21:05:33]SAM_PROTO_GetShiftState done [21:05:33]FM_GetShiftState done [21:05:33]opened in 1722125648 [21:05:33]opened+sec_in_day 1722212048 [21:05:33]quantity*price = 11100 [21:05:33]sum+1 = 11101 [21:05:33]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870235681383 ЧИПСЫ SLANG СО ВКУСОМ СМЕТАНА/ЗЕЛЕНЬ 60Г 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870235681376 ЧИПСЫ SLANG СО ВКУСОМ КРАБ 60Г 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 301.00 НСП 1% : 2.66 НДС 12% : 31.97 Наличными: 301.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 180 28.07.2024 21:05 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2129 ФПД: 81655264678973 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T210541&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2129&fm=81655264678973&tin=02508201610067®Number=0000000000189667&sum=30100 0 [21:05:34]StoreToDocumentArchive [21:05:34]shift 13 fd 2129 [21:05:34]save to /storage/0013/doc_00002129 [21:05:34]save last doc name /storage/0013/doc_00002129 to /storage/kkm_last_doc_name [21:05:34]save OK [21:05:34]Clear old archive folders... [21:05:34]ProcessDocumentItem done err = 0, tmpTLVsize=525 [21:05:34]tlvbuf is 020AAC90 [21:05:34]SAM_PROTO_ClearQueue [21:05:34]wFMCommunicate request_size=4 [21:05:34]MH_SAM_APDU [21:05:34]CAPDU: 80 09 00 00 [21:05:34]Write to MH i2c: E2 08 00 DF 62 80 09 00 00 00 00 00 00 B3 [21:05:34]Write i2c OK [21:05:34]MH_I2C_Read... [21:05:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:05:34]Read from MH i2c: E2 [21:05:34]MH_I2C_Read... [21:05:34]Read from MH i2c: E2 03 00 [21:05:34]MH_I2C_Read... [21:05:34]Read from MH i2c: E2 03 00 DF 62 00 90 00 B5 [21:05:34]RAPDU: 90 00 [21:05:34]wFMCommunicate OK [21:05:34]SAM_PROTO_ClearQueue done [21:05:34]KKMCreateOFDPacket [21:05:34]OFDProtocolAddRootSTLVToBuf [21:05:34]FM_MakeSignedData [21:05:34]FM_MakeSignedData [21:05:34]SAM_PROTO_SignData [21:05:34]wFMCommunicate request_size=4 [21:05:34]MH_SAM_APDU [21:05:34]CAPDU: 80 0D 01 02 [21:05:34]Write to MH i2c: E2 08 00 E0 62 80 0D 01 02 00 00 00 00 BB [21:05:34]Write i2c OK [21:05:34]MH_I2C_Read... [21:05:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:05:34]Read from MH i2c: E2 [21:05:34]MH_I2C_Read... [21:05:34]Read from MH i2c: E2 03 00 [21:05:34]MH_I2C_Read... [21:05:34]Read from MH i2c: E2 03 00 E0 62 00 90 00 B6 [21:05:34]RAPDU: 90 00 [21:05:34]wFMCommunicate OK [21:05:34]wFMCommunicate request_size=255 [21:05:34]MH_SAM_APDU [21:05:34]CAPDU: 80 0D 02 02 FA 03 00 0D 02 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 87 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 38 33 06 04 43 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 A1 D0 9C D0 95 D0 A2 D0 90 D0 9D D0 90 2F D0 97 D0 95 D0 9B D0 95 D0 9D D0 AC 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 [21:05:35]Write to MH i2c: E2 02 01 E1 62 80 0D 02 02 FA 00 03 00 0D 02 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 87 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 38 33 06 04 43 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 A1 D0 9C D0 95 D0 A2 D0 90 D0 9D D0 90 2F D0 97 D0 95 D0 9B D0 95 D0 9D D0 AC 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 00 00 4F [21:05:35]Write i2c OK [21:05:35]MH_I2C_Read... [21:05:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:05:35]Read from MH i2c: E2 [21:05:35]MH_I2C_Read... [21:05:35]Read from MH i2c: E2 03 00 [21:05:35]MH_I2C_Read... [21:05:35]Read from MH i2c: E2 03 00 E1 62 00 90 00 B7 [21:05:35]RAPDU: 90 00 [21:05:35]wFMCommunicate OK [21:05:35]wFMCommunicate request_size=255 [21:05:35]MH_SAM_APDU [21:05:35]CAPDU: 80 0D 02 02 FA 0D 00 34 38 37 30 32 33 35 36 38 31 33 37 36 06 04 30 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 9A D0 A0 D0 90 D0 91 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 0C 00 00 00 00 07 04 06 00 94 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 A5 B2 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 [21:05:35]Write to MH i2c: E2 02 01 E2 62 80 0D 02 02 FA 00 0D 00 34 38 37 30 32 33 35 36 38 31 33 37 36 06 04 30 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 9A D0 A0 D0 90 D0 91 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 0C 00 00 00 00 07 04 06 00 94 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 A5 B2 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 00 00 DF [21:05:35]Write i2c OK [21:05:35]MH_I2C_Read... [21:05:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:05:35]Read from MH i2c: E2 [21:05:35]MH_I2C_Read... [21:05:35]Read from MH i2c: E2 03 00 [21:05:35]MH_I2C_Read... [21:05:35]Read from MH i2c: E2 03 00 E2 62 00 90 00 B8 [21:05:35]RAPDU: 90 00 [21:05:35]wFMCommunicate OK [21:05:35]wFMCommunicate request_size=34 [21:05:35]MH_SAM_APDU [21:05:35]CAPDU: 80 0D 02 02 1D 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 51 08 00 00 35 04 06 00 4A 43 D9 0B 94 3D [21:05:35]Write to MH i2c: E2 25 00 E3 62 80 0D 02 02 1D 00 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 51 08 00 00 35 04 06 00 4A 43 D9 0B 94 3D 00 00 18 [21:05:35]Write i2c OK [21:05:35]MH_I2C_Read... [21:05:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:05:35]Read from MH i2c: E2 [21:05:35]MH_I2C_Read... [21:05:35]Read from MH i2c: E2 03 00 [21:05:35]MH_I2C_Read... [21:05:35]Read from MH i2c: E2 03 00 E3 62 00 90 00 B9 [21:05:35]RAPDU: 90 00 [21:05:35]wFMCommunicate OK [21:05:35]wFMCommunicate request_size=4 [21:05:35]MH_SAM_APDU [21:05:35]CAPDU: 80 0D 03 02 [21:05:35]Write to MH i2c: E2 08 00 E4 62 80 0D 03 02 00 00 00 00 C1 [21:05:35]Write i2c OK [21:05:35]MH_I2C_Read... [21:05:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:05:35]Read from MH i2c: E2 [21:05:35]MH_I2C_Read... [21:05:35]Read from MH i2c: E2 0B 00 [21:05:35]MH_I2C_Read... [21:05:35]Read from MH i2c: E2 0B 00 E4 62 00 72 A7 26 5D 32 F2 85 A2 90 00 A9 [21:05:35]RAPDU: 72 A7 26 5D 32 F2 85 A2 90 00 [21:05:35]wFMCommunicate OK [21:05:35]SAM_PROTO_SignData done [21:05:35]FM_MakeSignedData done [21:05:35]CreateOFDProtocolMessage [21:05:35]wFMCommunicate request_size=4 [21:05:35]MH_SAM_APDU [21:05:35]CAPDU: 80 11 00 00 [21:05:35]Write to MH i2c: E2 08 00 E5 62 80 11 00 00 00 00 00 00 C1 [21:05:35]Write i2c OK [21:05:35]MH_I2C_Read... [21:05:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:05:35]Read from MH i2c: E2 [21:05:35]MH_I2C_Read... [21:05:35]Read from MH i2c: E2 17 00 [21:05:35]MH_I2C_Read... [21:05:35]Read from MH i2c: E2 17 00 E5 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 11 [21:05:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [21:05:35]wFMCommunicate OK [21:05:35]CreateOFDProtocolMessage done [21:05:35]OFDSenderStorePacket 2129 [21:05:35]StoreOFDPacket docnum=2129 [21:05:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 21 02 00 00 D1 6E 19 02 75 99 5A 03 01 00 03 00 0D 02 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 87 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 38 33 06 04 43 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 A1 D0 9C D0 95 D0 A2 D0 90 D0 9D D0 90 2F D0 97 D0 95 D0 9B D0 95 D0 9D D0 AC 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 37 36 06 04 30 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 9A D0 A0 D0 90 D0 91 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 0C 00 00 00 00 07 04 06 00 94 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 A5 B2 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 51 08 00 00 35 04 06 00 4A 43 D9 0B 94 3D 72 A7 26 5D 32 F2 85 A2 [21:05:35]CheckFolder [21:05:35]dirname=/storage/ofd_packets [21:05:35]CheckFolder done [21:05:35]ProducePacketName [21:05:35]name=ofd_packets/00002129 [21:05:35]NVStorageSaveData ofd_packets/00002129 [21:05:35]File name is /storage/ofd_packets/00002129 [21:05:35]Write 575 bytes [21:05:35]NVStorageSaveData done [21:05:35]OFDSenderStorePacket done [21:05:35]KKMCreateOFDPacket done [21:05:35]NVStorageSaveData kkm_last_timestamp [21:05:35]File name is /storage/kkm_last_timestamp [21:05:35]Write 4 bytes [21:05:35]NVStorageSaveData done [21:05:35]ExternCall_PrintAddStr [21:05:35]wPrintStart [21:05:35]Write to MH i2c: 01 00 00 E6 62 48 [21:05:35]Write i2c OK [21:05:35]MH_I2C_Read... [21:05:35]Read from MH i2c: 01 [21:05:35]MH_I2C_Read... [21:05:35]Read from MH i2c: 01 07 00 [21:05:35]MH_I2C_Read... [21:05:35]Read from MH i2c: 01 07 00 E6 62 00 00 00 00 00 FF 0F 5D [21:05:35]RasterBufferAndPrint [21:05:35]line Счет N : (3)126425 [21:05:35]line ИНН: 02508201610067 [21:05:35]line Контрольно-Кассовый Чек [21:05:35]line ПРОДАЖА [21:05:35]line Товар: 4870001570071 [21:05:35]line Напиток Pepsi 1л [21:05:35]line 1.000 * 111.00 [21:05:35]line = 111.00 [21:05:35]line НДС 12% НСП 1% [21:05:35]line > о реализуемом товаре [21:05:35]line Товар: 4870235681383 [21:05:35]line ЧИПСЫ SLANG СО ВКУСОМ СМЕТАНА/ЗЕЛЕНЬ 60Г [21:05:35]line 1.000 * 95.00 [21:05:35]line = 95.00 [21:05:35]line НДС 12% НСП 1% [21:05:35]line > о реализуемом товаре [21:05:35]line Товар: 4870235681376 [21:05:35]line ЧИПСЫ SLANG СО ВКУСОМ КРАБ 60Г [21:05:35]line 1.000 * 95.00 [21:05:35]line = 95.00 [21:05:35]line НДС 12% НСП 1% [21:05:35]line > о реализуемом товаре [21:05:35]line ИТОГО: 301.00 [21:05:35]line НСП 1% : 2.66 [21:05:35]line НДС 12% : 31.97 [21:05:35]line Наличными: 301.00 [21:05:35]line Безнал.: 0.00 [21:05:35]line Место: АЗС № 127 "Партнер Нефть" [21:05:35]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [21:05:35]line СНО: Общий режим [21:05:35]line Чек 180 28.07.2024 21:05 [21:05:35]line Смена: 13 ФФД: 1.0 [21:05:35]line ЗНМ: 0300000161 [21:05:35]line РНМ: 0000000000189667 [21:05:35]line Версия ККМ: v1.0 [21:05:35]line ФМ: 0000000002094248 [21:05:35]line ФД: 2129 [21:05:35]line ФПД: 81655264678973 [21:05:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T210541&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2129&fm=81655264678973&tin=02508201610067®Number=0000000000189667&sum=30100 [21:05:35]line 0 [21:05:36]OFD Sender: Processing packet 2129 [packets to send 1, broken 0] [21:05:36]written 0, free lines is 4095 [21:05:36]ProducePacketName [21:05:36]name=ofd_packets/00002129 [21:05:36]OFD Sender: To server: pG, [21:05:36]CommunicateWithHost lk.salyk.kg:30040 [21:05:36]ConnectInit lk.salyk.kg [21:05:36]Connected sock=10 [21:05:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 21 02 00 00 D1 6E 19 02 75 99 5A 03 01 00 03 00 0D 02 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 87 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 38 33 06 04 43 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 A1 D0 9C D0 95 D0 A2 D0 90 D0 9D D0 90 2F D0 97 D0 95 D0 9B D0 95 D0 9D D0 AC 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 37 36 06 04 30 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 9A D0 A0 D0 90 D0 91 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 0C 00 00 00 00 07 04 06 00 94 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 A5 B2 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 51 08 00 00 35 04 06 00 4A 43 D9 0B 94 3D 72 A7 26 5D 32 F2 85 A2 [21:05:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 A5 92 47 00 B6 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 51 08 00 00 F4 03 04 00 14 5E A6 66 B6 04 01 00 00 FE 64 E3 24 9D 33 44 9E [21:05:36]CommunicateWithHost err = 0 [21:05:36]CheckOFDResponse [21:05:36]1017 (14) - 77093643461234 [21:05:36]1041 (16) - 0000000002094248 [21:05:36]1040 (4) - 2129 [21:05:36]1012 (4) - 28.07.2024 15:04 [21:05:36]1206 (1) - 0 [21:05:36]OFD Sender: Remove packet 2129 [21:05:36]ProducePacketName [21:05:36]name=ofd_packets/00002129 [21:05:36]NVStorageDeleteData [21:05:36]Write to MH i2c: 01 00 00 1C 63 7F [21:05:36]Write i2c OK [21:05:36]MH_I2C_Read... [21:05:36]Read from MH i2c: 01 [21:05:36]MH_I2C_Read... [21:05:36]Read from MH i2c: 01 07 00 [21:05:36]MH_I2C_Read... [21:05:36]Read from MH i2c: 01 07 00 1C 63 00 00 00 00 00 6E 0C 00 [21:05:36]RasterBufferAndPrint [21:05:36]line [21:05:36]line [21:05:36]line [21:05:36]line [21:05:36]line [21:05:36]written 0, free lines is 3191 [21:05:36]MH_Cut [21:05:36]Write to MH i2c: D1 01 00 23 63 01 58 [21:05:36]Write i2c OK [21:05:36]MH_I2C_Read... [21:05:36]Read from MH i2c: D1 [21:05:36]MH_I2C_Read... [21:05:36]Read from MH i2c: D1 01 00 [21:05:36]MH_I2C_Read... [21:05:36]Read from MH i2c: D1 01 00 23 63 00 57 [21:05:36]Write to MH i2c: 01 00 00 24 63 87 [21:05:36]Write i2c OK [21:05:36]MH_I2C_Read... [21:05:37]OFD Sender: No OFD packet to send [21:05:37]*** Cut start [21:05:37]*** Partial cut [21:05:37]*** CUTSNS_PIN = 1 [21:05:37]*** CUTSNS_PIN = 0 [21:05:37]*** Brake cut motor [21:05:38]Read from MH i2c: 01 [21:05:38]MH_I2C_Read... [21:05:38]*** Stop cut motor [21:05:38]*** Cut end [21:05:38]Read from MH i2c: 01 07 00 [21:05:38]MH_I2C_Read... [21:05:38]Read from MH i2c: 01 07 00 24 63 00 00 00 00 00 FF 0F 9C [21:05:38]process_action close_receipt done [21:05:38]requested_data is exist [21:05:38]produce_requested_data [21:05:38]requested_item fm.sn is exist - process it [21:05:38]wFMCommunicate request_size=4 [21:05:38]MH_SAM_APDU [21:05:38]CAPDU: 80 11 00 00 [21:05:38]Write to MH i2c: E2 08 00 25 63 80 11 00 00 00 00 00 00 02 [21:05:38]Write i2c OK [21:05:38]MH_I2C_Read... [21:05:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:05:38]Read from MH i2c: E2 [21:05:38]MH_I2C_Read... [21:05:38]Read from MH i2c: E2 17 00 [21:05:38]MH_I2C_Read... [21:05:38]Read from MH i2c: E2 17 00 25 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 52 [21:05:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [21:05:38]wFMCommunicate OK [21:05:38]requested_item fd.num is exist - process it [21:05:38]SAM_PROTO_GetFieldsCounters [21:05:38]wFMCommunicate request_size=4 [21:05:38]MH_SAM_APDU [21:05:38]CAPDU: 80 13 00 00 [21:05:38]Write to MH i2c: E2 08 00 26 63 80 13 00 00 00 00 00 00 05 [21:05:38]Write i2c OK [21:05:38]MH_I2C_Read... [21:05:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:05:38]Read from MH i2c: E2 [21:05:38]MH_I2C_Read... [21:05:38]Read from MH i2c: E2 62 00 [21:05:38]MH_I2C_Read... [21:05:38]Read from MH i2c: E2 62 00 26 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 51 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [21:05:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 51 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:05:38]wFMCommunicate OK [21:05:38]SAM_PROTO_GetFieldsCounters done [21:05:38]requested_item shift.num is exist - process it [21:05:38]requested_item shift.opened is exist - process it [21:05:38]req_shift_opened [21:05:38]FM_GetShiftState [21:05:38]SAM_PROTO_GetShiftState [21:05:38]wFMCommunicate request_size=4 [21:05:38]MH_SAM_APDU [21:05:38]CAPDU: 80 13 01 00 [21:05:38]Write to MH i2c: E2 08 00 27 63 80 13 01 00 00 00 00 00 07 [21:05:38]Write i2c OK [21:05:38]MH_I2C_Read... [21:05:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:05:38]Read from MH i2c: E2 [21:05:38]MH_I2C_Read... [21:05:38]Read from MH i2c: E2 0E 00 [21:05:38]MH_I2C_Read... [21:05:38]Read from MH i2c: E2 0E 00 27 63 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 FB [21:05:38]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [21:05:38]wFMCommunicate OK [21:05:38]SAM_PROTO_GetShiftState done [21:05:38]FM_GetShiftState done [21:05:38]req_shift_opened done [21:05:38]requested_item shift.open_date is exist - process it [21:05:38]req_shift_open_date [21:05:38]req_shift_open_date done [21:05:38]produce_requested_data done [21:05:38]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2129,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [21:05:38]process_action_free close_receipt [21:05:38]json_value_free [21:05:38]json_value_free done [21:05:38]process_json_proto returns [21:05:38]Send response to host [21:05:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2129,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [21:05:38]free response buf [21:05:38]execute_script done [21:05:38]execute_script returns [21:05:38]free content buf [21:05:38]Sock 8.Close socket [21:05:38]Sock 8.Thread stoped [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:19]accept exits with 9 [21:08:19]New connection [21:08:19]New thread 3067317604 created [21:08:19]Thread 3067460964 joined [21:08:19]Waiting for new connection... [21:08:19] Sock 9.Parse request [21:08:19]Sock 9.Check first char [21:08:19]Sock 9.First char is OK [21:08:19]request: POST /json_proto HTTP/1.0 [21:08:19]Method: POST [21:08:19]URL: /json_proto [21:08:19]Method is POST - this is cgi request [21:08:19]url: /json_proto [21:08:19]query_string will be loaded in cgi processing [21:08:19]execute_cgi json_proto POST (null) [21:08:19]execute_cgi path=json_proto method=POST [21:08:19]POST find Content-Length [21:08:19]Host: 172.17.45.132:8080 [21:08:19]Content-Length: 632 [21:08:19]Content-Type: application/json [21:08:19] [21:08:19]POST finish read [21:08:19]Found Content-Length = 632 [21:08:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126426", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:08:19]execute_script... [21:08: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)126426", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:08:19]POST & json_proto [21:08:19]process_json_proto [21:08:19]json parsed OK: [21:08:19]protocol is kg_v1.0 [21:08:19]action value=close_receipt [21:08:19]process_action close_receipt [21:08:19]cmd_close_receipt [21:08:19]MH_GetDate [21:08:19]Write to MH i2c: F0 00 00 28 63 7A [21:08:19]Write i2c OK [21:08:19]MH_I2C_Read... [21:08:19]Read from MH i2c: F0 [21:08:19]MH_I2C_Read... [21:08:19]Read from MH i2c: F0 09 00 [21:08:19]MH_I2C_Read... [21:08:19]Read from MH i2c: F0 09 00 28 63 00 4B B3 A6 66 E3 0B 90 66 71 [21:08:19]GetLastDocTimeStamp 1722200741 [21:08:19]current date 1722200907 [21:08:19]FM_GetShiftState [21:08:19]SAM_PROTO_GetShiftState [21:08:19]wFMCommunicate request_size=4 [21:08:19]MH_SAM_APDU [21:08:19]CAPDU: 80 13 01 00 [21:08:19]Write to MH i2c: E2 08 00 29 63 80 13 01 00 00 00 00 00 09 [21:08:19]Write i2c OK [21:08:19]MH_I2C_Read... [21:08:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:08:20]Read from MH i2c: E2 [21:08:20]MH_I2C_Read... [21:08:20]Read from MH i2c: E2 0E 00 [21:08:20]MH_I2C_Read... [21:08:20]Read from MH i2c: E2 0E 00 29 63 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 FD [21:08:20]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [21:08:20]wFMCommunicate OK [21:08:20]SAM_PROTO_GetShiftState done [21:08:20]FM_GetShiftState done [21:08:20]opened in 1722125648 [21:08:20]opened+sec_in_day 1722212048 [21:08:20]quantity*price = 6000 [21:08:20]sum+1 = 6001 [21:08:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 181 28.07.2024 21:08 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2130 ФПД: 272785792761528 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T210827&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2130&fm=272785792761528&tin=02508201610067®Number=0000000000189667&sum=6000 0 [21:08:21]StoreToDocumentArchive [21:08:21]shift 13 fd 2130 [21:08:21]save to /storage/0013/doc_00002130 [21:08:21]save last doc name /storage/0013/doc_00002130 to /storage/kkm_last_doc_name [21:08:21]save OK [21:08:21]Clear old archive folders... [21:08:21]ProcessDocumentItem done err = 0, tmpTLVsize=271 [21:08:21]tlvbuf is 020AA740 [21:08:21]SAM_PROTO_ClearQueue [21:08:21]wFMCommunicate request_size=4 [21:08:21]MH_SAM_APDU [21:08:21]CAPDU: 80 09 00 00 [21:08:21]Write to MH i2c: E2 08 00 36 63 80 09 00 00 00 00 00 00 0B [21:08:21]Write i2c OK [21:08:21]MH_I2C_Read... [21:08:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:08:21]Read from MH i2c: E2 [21:08:21]MH_I2C_Read... [21:08:21]Read from MH i2c: E2 03 00 [21:08:21]MH_I2C_Read... [21:08:21]Read from MH i2c: E2 03 00 36 63 00 90 00 0D [21:08:21]RAPDU: 90 00 [21:08:21]wFMCommunicate OK [21:08:21]SAM_PROTO_ClearQueue done [21:08:21]KKMCreateOFDPacket [21:08:21]OFDProtocolAddRootSTLVToBuf [21:08:21]FM_MakeSignedData [21:08:21]FM_MakeSignedData [21:08:21]SAM_PROTO_SignData [21:08:21]wFMCommunicate request_size=4 [21:08:21]MH_SAM_APDU [21:08:21]CAPDU: 80 0D 01 02 [21:08:21]Write to MH i2c: E2 08 00 37 63 80 0D 01 02 00 00 00 00 13 [21:08:21]Write i2c OK [21:08:21]MH_I2C_Read... [21:08:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:08:21]Read from MH i2c: E2 [21:08:21]MH_I2C_Read... [21:08:21]Read from MH i2c: E2 03 00 [21:08:21]MH_I2C_Read... [21:08:21]Read from MH i2c: E2 03 00 37 63 00 90 00 0E [21:08:21]RAPDU: 90 00 [21:08:21]wFMCommunicate OK [21:08:21]wFMCommunicate request_size=255 [21:08:21]MH_SAM_APDU [21:08:21]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 30 34 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 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 4B B3 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 [21:08:21]Write to MH i2c: E2 02 01 38 63 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 30 34 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 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 4B B3 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 1A [21:08:21]Write i2c OK [21:08:21]MH_I2C_Read... [21:08:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:08:21]Read from MH i2c: E2 [21:08:21]MH_I2C_Read... [21:08:21]Read from MH i2c: E2 03 00 [21:08:21]MH_I2C_Read... [21:08:21]Read from MH i2c: E2 03 00 38 63 00 90 00 0F [21:08:21]RAPDU: 90 00 [21:08:21]wFMCommunicate OK [21:08:21]wFMCommunicate request_size=30 [21:08:21]MH_SAM_APDU [21:08:21]CAPDU: 80 0D 02 02 19 32 30 39 34 32 34 38 10 04 04 00 52 08 00 00 35 04 06 00 F8 18 E4 46 FE B8 [21:08:21]Write to MH i2c: E2 21 00 39 63 80 0D 02 02 19 00 32 30 39 34 32 34 38 10 04 04 00 52 08 00 00 35 04 06 00 F8 18 E4 46 FE B8 00 00 56 [21:08:21]Write i2c OK [21:08:21]MH_I2C_Read... [21:08:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:08:21]Read from MH i2c: E2 [21:08:21]MH_I2C_Read... [21:08:21]Read from MH i2c: E2 03 00 [21:08:21]MH_I2C_Read... [21:08:21]Read from MH i2c: E2 03 00 39 63 00 90 00 10 [21:08:21]RAPDU: 90 00 [21:08:21]wFMCommunicate OK [21:08:21]wFMCommunicate request_size=4 [21:08:21]MH_SAM_APDU [21:08:21]CAPDU: 80 0D 03 02 [21:08:21]Write to MH i2c: E2 08 00 3A 63 80 0D 03 02 00 00 00 00 18 [21:08:21]Write i2c OK [21:08:21]MH_I2C_Read... [21:08:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:08:21]Read from MH i2c: E2 [21:08:21]MH_I2C_Read... [21:08:21]Read from MH i2c: E2 0B 00 [21:08:21]MH_I2C_Read... [21:08:21]Read from MH i2c: E2 0B 00 3A 63 00 43 0B 62 22 D5 98 48 28 90 00 C8 [21:08:21]RAPDU: 43 0B 62 22 D5 98 48 28 90 00 [21:08:21]wFMCommunicate OK [21:08:21]SAM_PROTO_SignData done [21:08:21]FM_MakeSignedData done [21:08:21]CreateOFDProtocolMessage [21:08:21]wFMCommunicate request_size=4 [21:08:21]MH_SAM_APDU [21:08:21]CAPDU: 80 11 00 00 [21:08:21]Write to MH i2c: E2 08 00 3B 63 80 11 00 00 00 00 00 00 18 [21:08:21]Write i2c OK [21:08:21]MH_I2C_Read... [21:08:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:08:21]Read from MH i2c: E2 [21:08:21]MH_I2C_Read... [21:08:21]Read from MH i2c: E2 17 00 [21:08:21]MH_I2C_Read... [21:08:21]Read from MH i2c: E2 17 00 3B 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 68 [21:08:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [21:08:21]wFMCommunicate OK [21:08:21]CreateOFDProtocolMessage done [21:08:21]OFDSenderStorePacket 2130 [21:08:21]StoreOFDPacket docnum=2130 [21:08:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 23 01 00 00 58 C1 1B 01 D7 A9 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 30 34 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 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 4B B3 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 52 08 00 00 35 04 06 00 F8 18 E4 46 FE B8 43 0B 62 22 D5 98 48 28 [21:08:21]CheckFolder [21:08:21]dirname=/storage/ofd_packets [21:08:21]CheckFolder done [21:08:21]ProducePacketName [21:08:21]name=ofd_packets/00002130 [21:08:21]NVStorageSaveData ofd_packets/00002130 [21:08:21]File name is /storage/ofd_packets/00002130 [21:08:21]Write 321 bytes [21:08:21]NVStorageSaveData done [21:08:21]OFDSenderStorePacket done [21:08:21]KKMCreateOFDPacket done [21:08:21]NVStorageSaveData kkm_last_timestamp [21:08:21]File name is /storage/kkm_last_timestamp [21:08:21]Write 4 bytes [21:08:21]NVStorageSaveData done [21:08:21]ExternCall_PrintAddStr [21:08:21]wPrintStart [21:08:21]Write to MH i2c: 01 00 00 3C 63 9F [21:08:21]Write i2c OK [21:08:21]MH_I2C_Read... [21:08:21]Read from MH i2c: 01 [21:08:21]MH_I2C_Read... [21:08:21]Read from MH i2c: 01 07 00 [21:08:21]MH_I2C_Read... [21:08:21]Read from MH i2c: 01 07 00 3C 63 00 00 00 00 00 FF 0F B4 [21:08:21]RasterBufferAndPrint [21:08:21]line Счет N : (3)126426 [21:08:21]line ИНН: 02508201610067 [21:08:21]line Контрольно-Кассовый Чек [21:08:21]line ПРОДАЖА [21:08:21]line Товар: 4700000160204 [21:08:21]line Вода Легенда 1,5л [21:08:21]line 1.000 * 60.00 [21:08:21]line = 60.00 [21:08:21]line НДС 12% НСП 1% [21:08:21]line > о реализуемом товаре [21:08:21]line ИТОГО: 60.00 [21:08:21]line НСП 1% : 0.53 [21:08:21]line НДС 12% : 6.37 [21:08:21]line Наличными: 60.00 [21:08:21]line Безнал.: 0.00 [21:08:21]line Место: АЗС № 127 "Партнер Нефть" [21:08:21]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [21:08:21]line СНО: Общий режим [21:08:21]line Чек 181 28.07.2024 21:08 [21:08:21]line Смена: 13 ФФД: 1.0 [21:08:21]line ЗНМ: 0300000161 [21:08:21]line РНМ: 0000000000189667 [21:08:21]line Версия ККМ: v1.0 [21:08:21]line ФМ: 0000000002094248 [21:08:21]line ФД: 2130 [21:08:21]line ФПД: 272785792761528 [21:08:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T210827&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2130&fm=272785792761528&tin=02508201610067®Number=0000000000189667&sum=6000 [21:08:22]OFD Sender: Processing packet 2130 [packets to send 1, broken 0] [21:08:22]ProducePacketName [21:08:22]name=ofd_packets/00002130 [21:08:22]OFD Sender: To server: pG, [21:08:22]CommunicateWithHost lk.salyk.kg:30040 [21:08:22]ConnectInit lk.salyk.kg [21:08:22]line 0 [21:08:22]written 0, free lines is 4095 [21:08:22]Connected sock=10 [21:08:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 23 01 00 00 58 C1 1B 01 D7 A9 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 30 34 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 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 4B B3 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 52 08 00 00 35 04 06 00 F8 18 E4 46 FE B8 43 0B 62 22 D5 98 48 28 [21:08:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 2C 3A 47 00 BB 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 52 08 00 00 F4 03 04 00 BA 5E A6 66 B6 04 01 00 00 49 4E 52 96 4B A3 FF E6 [21:08:22]CommunicateWithHost err = 0 [21:08:22]CheckOFDResponse [21:08:22]1017 (14) - 77093643461234 [21:08:22]1041 (16) - 0000000002094248 [21:08:22]1040 (4) - 2130 [21:08:22]1012 (4) - 28.07.2024 15:07 [21:08:22]1206 (1) - 0 [21:08:22]OFD Sender: Remove packet 2130 [21:08:22]ProducePacketName [21:08:22]name=ofd_packets/00002130 [21:08:22]NVStorageDeleteData [21:08:22]Write to MH i2c: 01 00 00 64 63 C7 [21:08:22]Write i2c OK [21:08:22]MH_I2C_Read... [21:08:22]Read from MH i2c: 01 [21:08:22]MH_I2C_Read... [21:08:22]Read from MH i2c: 01 07 00 [21:08:22]MH_I2C_Read... [21:08:22]Read from MH i2c: 01 07 00 64 63 00 00 00 00 00 17 0D F2 [21:08:22]RasterBufferAndPrint [21:08:22]line [21:08:22]line [21:08:22]line [21:08:22]line [21:08:22]line [21:08:22]written 0, free lines is 3360 [21:08:22]MH_Cut [21:08:22]Write to MH i2c: D1 01 00 6B 63 01 A0 [21:08:22]Write i2c OK [21:08:22]MH_I2C_Read... [21:08:22]Read from MH i2c: D1 [21:08:22]MH_I2C_Read... [21:08:22]Read from MH i2c: D1 01 00 [21:08:22]MH_I2C_Read... [21:08:22]Read from MH i2c: D1 01 00 6B 63 00 9F [21:08:22]Write to MH i2c: 01 00 00 6C 63 CF [21:08:22]Write i2c OK [21:08:22]MH_I2C_Read... [21:08:22]OFD Sender: No OFD packet to send [21:08:23]*** Cut start [21:08:23]*** Partial cut [21:08:23]*** CUTSNS_PIN = 1 [21:08:23]*** CUTSNS_PIN = 0 [21:08:23]*** Brake cut motor [21:08:23]Read from MH i2c: 01 [21:08:23]MH_I2C_Read... [21:08:23]*** Stop cut motor [21:08:23]*** Cut end [21:08:23]Read from MH i2c: 01 07 00 [21:08:23]MH_I2C_Read... [21:08:23]Read from MH i2c: 01 07 00 6C 63 00 00 00 00 00 FF 0F E4 [21:08:23]process_action close_receipt done [21:08:23]requested_data is exist [21:08:23]produce_requested_data [21:08:23]requested_item fm.sn is exist - process it [21:08:23]wFMCommunicate request_size=4 [21:08:23]MH_SAM_APDU [21:08:23]CAPDU: 80 11 00 00 [21:08:23]Write to MH i2c: E2 08 00 6D 63 80 11 00 00 00 00 00 00 4A [21:08:23]Write i2c OK [21:08:23]MH_I2C_Read... [21:08:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:08:23]Read from MH i2c: E2 [21:08:23]MH_I2C_Read... [21:08:23]Read from MH i2c: E2 17 00 [21:08:23]MH_I2C_Read... [21:08:23]Read from MH i2c: E2 17 00 6D 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 9A [21:08:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [21:08:23]wFMCommunicate OK [21:08:23]requested_item fd.num is exist - process it [21:08:23]SAM_PROTO_GetFieldsCounters [21:08:23]wFMCommunicate request_size=4 [21:08:23]MH_SAM_APDU [21:08:23]CAPDU: 80 13 00 00 [21:08:23]Write to MH i2c: E2 08 00 6E 63 80 13 00 00 00 00 00 00 4D [21:08:23]Write i2c OK [21:08:23]MH_I2C_Read... [21:08:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:08:23]Read from MH i2c: E2 [21:08:23]MH_I2C_Read... [21:08:23]Read from MH i2c: E2 62 00 [21:08:23]MH_I2C_Read... [21:08:23]Read from MH i2c: E2 62 00 6E 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 52 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 FD [21:08:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 52 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:08:23]wFMCommunicate OK [21:08:23]SAM_PROTO_GetFieldsCounters done [21:08:23]requested_item shift.num is exist - process it [21:08:23]requested_item shift.opened is exist - process it [21:08:23]req_shift_opened [21:08:23]FM_GetShiftState [21:08:23]SAM_PROTO_GetShiftState [21:08:23]wFMCommunicate request_size=4 [21:08:23]MH_SAM_APDU [21:08:23]CAPDU: 80 13 01 00 [21:08:23]Write to MH i2c: E2 08 00 6F 63 80 13 01 00 00 00 00 00 4F [21:08:23]Write i2c OK [21:08:23]MH_I2C_Read... [21:08:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:08:24]Read from MH i2c: E2 [21:08:24]MH_I2C_Read... [21:08:24]Read from MH i2c: E2 0E 00 [21:08:24]MH_I2C_Read... [21:08:24]Read from MH i2c: E2 0E 00 6F 63 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 43 [21:08:24]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [21:08:24]wFMCommunicate OK [21:08:24]SAM_PROTO_GetShiftState done [21:08:24]FM_GetShiftState done [21:08:24]req_shift_opened done [21:08:24]requested_item shift.open_date is exist - process it [21:08:24]req_shift_open_date [21:08:24]req_shift_open_date done [21:08:24]produce_requested_data done [21:08:24]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2130,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [21:08:24]process_action_free close_receipt [21:08:24]json_value_free [21:08:24]json_value_free done [21:08:24]process_json_proto returns [21:08:24]Send response to host [21:08:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2130,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [21:08:24]free response buf [21:08:24]execute_script done [21:08:24]execute_script returns [21:08:24]free content buf [21:08:24]Sock 9.Close socket [21:08:24]Sock 9.Thread stoped [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:28]OFD Sender: No OFD packet to send [21:10:33]OFD Sender: No OFD packet to send [21:10:38]OFD Sender: No OFD packet to send [21:10:43]OFD Sender: No OFD packet to send [21:10:48]OFD Sender: No OFD packet to send [21:10:53]OFD Sender: No OFD packet to send [21:10:58]OFD Sender: No OFD packet to send [21:11:03]OFD Sender: No OFD packet to send [21:11:08]OFD Sender: No OFD packet to send [21:11:13]OFD Sender: No OFD packet to send [21:11:18]OFD Sender: No OFD packet to send [21:11:23]OFD Sender: No OFD packet to send [21:11:28]OFD Sender: No OFD packet to send [21:11:33]OFD Sender: No OFD packet to send [21:11:38]OFD Sender: No OFD packet to send [21:11:43]OFD Sender: No OFD packet to send [21:11:48]OFD Sender: No OFD packet to send [21:11:53]OFD Sender: No OFD packet to send [21:11:58]OFD Sender: No OFD packet to send [21:12:03]OFD Sender: No OFD packet to send [21:12:08]OFD Sender: No OFD packet to send [21:12:13]OFD Sender: No OFD packet to send [21:12:18]OFD Sender: No OFD packet to send [21:12:23]OFD Sender: No OFD packet to send [21:12:28]OFD Sender: No OFD packet to send [21:12:33]OFD Sender: No OFD packet to send [21:12:38]OFD Sender: No OFD packet to send [21:12:43]OFD Sender: No OFD packet to send [21:12:48]OFD Sender: No OFD packet to send [21:12:53]OFD Sender: No OFD packet to send [21:12:58]OFD Sender: No OFD packet to send [21:13:03]OFD Sender: No OFD packet to send [21:13:08]OFD Sender: No OFD packet to send [21:13:13]OFD Sender: No OFD packet to send [21:13:18]OFD Sender: No OFD packet to send [21:13:23]OFD Sender: No OFD packet to send [21:13:28]OFD Sender: No OFD packet to send [21:13:33]OFD Sender: No OFD packet to send [21:13:38]OFD Sender: No OFD packet to send [21:13:43]OFD Sender: No OFD packet to send [21:13:48]OFD Sender: No OFD packet to send [21:13:53]OFD Sender: No OFD packet to send [21:13:58]OFD Sender: No OFD packet to send [21:14:03]OFD Sender: No OFD packet to send [21:14:08]OFD Sender: No OFD packet to send [21:14:13]OFD Sender: No OFD packet to send [21:14:18]OFD Sender: No OFD packet to send [21:14:23]OFD Sender: No OFD packet to send [21:14:28]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:33]accept exits with 8 [21:24:33]New connection [21:24:33]New thread 3067460964 created [21:24:33]Thread 3067317604 joined [21:24:33]Waiting for new connection... [21:24:33] Sock 8.Parse request [21:24:33]Sock 8.Check first char [21:24:33]Sock 8.First char is OK [21:24:33]request: POST /json_proto HTTP/1.0 [21:24:33]Method: POST [21:24:33]URL: /json_proto [21:24:33]Method is POST - this is cgi request [21:24:33]url: /json_proto [21:24:33]query_string will be loaded in cgi processing [21:24:33]execute_cgi json_proto POST (null) [21:24:33]execute_cgi path=json_proto method=POST [21:24:33]POST find Content-Length [21:24:33]Host: 172.17.45.132:8080 [21:24:33]Content-Length: 654 [21:24:33]Content-Type: application/json [21:24:33] [21:24:33]POST finish read [21:24:33]Found Content-Length = 654 [21:24:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126427", "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" ] } } [21:24:33]execute_script... [21:24: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)126427", "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" ] } } [21:24:33]POST & json_proto [21:24:33]process_json_proto [21:24:33]json parsed OK: [21:24:33]protocol is kg_v1.0 [21:24:33]action value=close_receipt [21:24:33]process_action close_receipt [21:24:33]cmd_close_receipt [21:24:33]MH_GetDate [21:24:33]Write to MH i2c: F0 00 00 70 63 C2 [21:24:33]Write i2c OK [21:24:33]MH_I2C_Read... [21:24:33]Read from MH i2c: F0 [21:24:33]MH_I2C_Read... [21:24:33]Read from MH i2c: F0 09 00 [21:24:33]MH_I2C_Read... [21:24:33]Read from MH i2c: F0 09 00 70 63 00 19 B7 A6 66 E3 0B 90 66 8B [21:24:33]GetLastDocTimeStamp 1722200907 [21:24:33]current date 1722201881 [21:24:33]FM_GetShiftState [21:24:33]SAM_PROTO_GetShiftState [21:24:33]wFMCommunicate request_size=4 [21:24:33]MH_SAM_APDU [21:24:33]CAPDU: 80 13 01 00 [21:24:33]Write to MH i2c: E2 08 00 71 63 80 13 01 00 00 00 00 00 51 [21:24:33]Write i2c OK [21:24:33]MH_I2C_Read... [21:24:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:24:33]Read from MH i2c: E2 [21:24:33]MH_I2C_Read... [21:24:33]Read from MH i2c: E2 0E 00 [21:24:33]MH_I2C_Read... [21:24:33]Read from MH i2c: E2 0E 00 71 63 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 45 [21:24:33]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [21:24:33]wFMCommunicate OK [21:24:33]SAM_PROTO_GetShiftState done [21:24:33]FM_GetShiftState done [21:24:33]opened in 1722125648 [21:24:33]opened+sec_in_day 1722212048 [21:24:33]quantity*price = 9500 [21:24:33]sum+1 = 9501 [21:24:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 182 28.07.2024 21:24 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2131 ФПД: 55618780919363 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T212441&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2131&fm=55618780919363&tin=02508201610067®Number=0000000000189667&sum=9500 0 [21:24:35]StoreToDocumentArchive [21:24:35]shift 13 fd 2131 [21:24:35]save to /storage/0013/doc_00002131 [21:24:35]save last doc name /storage/0013/doc_00002131 to /storage/kkm_last_doc_name [21:24:35]save OK [21:24:35]Clear old archive folders... [21:24:35]ProcessDocumentItem done err = 0, tmpTLVsize=293 [21:24:35]tlvbuf is B6E24170 [21:24:35]SAM_PROTO_ClearQueue [21:24:35]wFMCommunicate request_size=4 [21:24:35]MH_SAM_APDU [21:24:35]CAPDU: 80 09 00 00 [21:24:35]Write to MH i2c: E2 08 00 7E 63 80 09 00 00 00 00 00 00 53 [21:24:35]Write i2c OK [21:24:35]MH_I2C_Read... [21:24:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:24:35]Read from MH i2c: E2 [21:24:35]MH_I2C_Read... [21:24:35]Read from MH i2c: E2 03 00 [21:24:35]MH_I2C_Read... [21:24:35]Read from MH i2c: E2 03 00 7E 63 00 90 00 55 [21:24:35]RAPDU: 90 00 [21:24:35]wFMCommunicate OK [21:24:35]SAM_PROTO_ClearQueue done [21:24:35]KKMCreateOFDPacket [21:24:35]OFDProtocolAddRootSTLVToBuf [21:24:35]FM_MakeSignedData [21:24:35]FM_MakeSignedData [21:24:35]SAM_PROTO_SignData [21:24:35]wFMCommunicate request_size=4 [21:24:35]MH_SAM_APDU [21:24:35]CAPDU: 80 0D 01 02 [21:24:35]Write to MH i2c: E2 08 00 7F 63 80 0D 01 02 00 00 00 00 5B [21:24:35]Write i2c OK [21:24:35]MH_I2C_Read... [21:24:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:24:35]Read from MH i2c: E2 [21:24:35]MH_I2C_Read... [21:24:35]Read from MH i2c: E2 03 00 [21:24:35]MH_I2C_Read... [21:24:35]Read from MH i2c: E2 03 00 7F 63 00 90 00 56 [21:24:35]RAPDU: 90 00 [21:24:35]wFMCommunicate OK [21:24:35]wFMCommunicate request_size=255 [21:24:35]MH_SAM_APDU [21:24:35]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 B6 00 00 00 F4 03 04 00 19 B7 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [21:24:35]Write to MH i2c: E2 02 01 80 63 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 B6 00 00 00 F4 03 04 00 19 B7 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 9A [21:24:35]Write i2c OK [21:24:35]MH_I2C_Read... [21:24:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:24:35]Read from MH i2c: E2 [21:24:35]MH_I2C_Read... [21:24:35]Read from MH i2c: E2 03 00 [21:24:35]MH_I2C_Read... [21:24:35]Read from MH i2c: E2 03 00 80 63 00 90 00 57 [21:24:35]RAPDU: 90 00 [21:24:35]wFMCommunicate OK [21:24:35]wFMCommunicate request_size=52 [21:24:35]MH_SAM_APDU [21:24:35]CAPDU: 80 0D 02 02 2F 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 53 08 00 00 35 04 06 00 32 95 C1 AD F6 43 [21:24:35]Write to MH i2c: E2 37 00 81 63 80 0D 02 02 2F 00 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 53 08 00 00 35 04 06 00 32 95 C1 AD F6 43 00 00 F3 [21:24:35]Write i2c OK [21:24:35]MH_I2C_Read... [21:24:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:24:35]Read from MH i2c: E2 [21:24:35]MH_I2C_Read... [21:24:35]Read from MH i2c: E2 03 00 [21:24:35]MH_I2C_Read... [21:24:35]Read from MH i2c: E2 03 00 81 63 00 90 00 58 [21:24:35]RAPDU: 90 00 [21:24:35]wFMCommunicate OK [21:24:35]wFMCommunicate request_size=4 [21:24:35]MH_SAM_APDU [21:24:35]CAPDU: 80 0D 03 02 [21:24:35]Write to MH i2c: E2 08 00 82 63 80 0D 03 02 00 00 00 00 60 [21:24:35]Write i2c OK [21:24:35]MH_I2C_Read... [21:24:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:24:35]Read from MH i2c: E2 [21:24:35]MH_I2C_Read... [21:24:35]Read from MH i2c: E2 0B 00 [21:24:35]MH_I2C_Read... [21:24:35]Read from MH i2c: E2 0B 00 82 63 00 22 86 8C 7D 34 91 9F 52 90 00 C8 [21:24:35]RAPDU: 22 86 8C 7D 34 91 9F 52 90 00 [21:24:35]wFMCommunicate OK [21:24:35]SAM_PROTO_SignData done [21:24:35]FM_MakeSignedData done [21:24:35]CreateOFDProtocolMessage [21:24:35]wFMCommunicate request_size=4 [21:24:35]MH_SAM_APDU [21:24:35]CAPDU: 80 11 00 00 [21:24:35]Write to MH i2c: E2 08 00 83 63 80 11 00 00 00 00 00 00 60 [21:24:35]Write i2c OK [21:24:35]MH_I2C_Read... [21:24:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:24:35]Read from MH i2c: E2 [21:24:35]MH_I2C_Read... [21:24:35]Read from MH i2c: E2 17 00 [21:24:35]MH_I2C_Read... [21:24:35]Read from MH i2c: E2 17 00 83 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 B0 [21:24:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [21:24:35]wFMCommunicate OK [21:24:35]CreateOFDProtocolMessage done [21:24:35]OFDSenderStorePacket 2131 [21:24:35]StoreOFDPacket docnum=2131 [21:24:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 39 01 00 00 43 6A 31 01 14 88 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 B6 00 00 00 F4 03 04 00 19 B7 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 53 08 00 00 35 04 06 00 32 95 C1 AD F6 43 22 86 8C 7D 34 91 9F 52 [21:24:35]CheckFolder [21:24:35]dirname=/storage/ofd_packets [21:24:35]CheckFolder done [21:24:35]ProducePacketName [21:24:35]name=ofd_packets/00002131 [21:24:35]NVStorageSaveData ofd_packets/00002131 [21:24:35]File name is /storage/ofd_packets/00002131 [21:24:35]Write 343 bytes [21:24:35]NVStorageSaveData done [21:24:35]OFDSenderStorePacket done [21:24:35]KKMCreateOFDPacket done [21:24:35]NVStorageSaveData kkm_last_timestamp [21:24:35]File name is /storage/kkm_last_timestamp [21:24:35]Write 4 bytes [21:24:35]NVStorageSaveData done [21:24:35]ExternCall_PrintAddStr [21:24:35]wPrintStart [21:24:35]Write to MH i2c: 01 00 00 84 63 E7 [21:24:35]Write i2c OK [21:24:35]MH_I2C_Read... [21:24:35]Read from MH i2c: 01 [21:24:35]MH_I2C_Read... [21:24:35]Read from MH i2c: 01 07 00 [21:24:35]MH_I2C_Read... [21:24:35]Read from MH i2c: 01 07 00 84 63 00 00 00 00 00 FF 0F FC [21:24:35]RasterBufferAndPrint [21:24:35]line Счет N : (3)126427 [21:24:35]line ИНН: 02508201610067 [21:24:35]line Контрольно-Кассовый Чек [21:24:35]line ПРОДАЖА [21:24:35]line Товар: 4700000480050 [21:24:35]line Напиток Nitro Energy эн green ж/б 0,45л [21:24:35]line 1.000 * 95.00 [21:24:35]line = 95.00 [21:24:35]line НДС 12% НСП 1% [21:24:35]line > о реализуемом товаре [21:24:35]line ИТОГО: 95.00 [21:24:35]line НСП 1% : 0.84 [21:24:35]line НДС 12% : 10.09 [21:24:35]line Наличными: 95.00 [21:24:35]line Безнал.: 0.00 [21:24:35]line Место: АЗС № 127 "Партнер Нефть" [21:24:35]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [21:24:35]line СНО: Общий режим [21:24:35]line Чек 182 28.07.2024 21:24 [21:24:35]line Смена: 13 ФФД: 1.0 [21:24:35]line ЗНМ: 0300000161 [21:24:35]line РНМ: 0000000000189667 [21:24:35]line Версия ККМ: v1.0 [21:24:35]line ФМ: 0000000002094248 [21:24:35]line ФД: 2131 [21:24:35]line ФПД: 55618780919363 [21:24:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T212441&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2131&fm=55618780919363&tin=02508201610067®Number=0000000000189667&sum=9500 [21:24:35]line 0 [21:24:35]OFD Sender: Processing packet 2131 [packets to send 1, broken 0] [21:24:35]ProducePacketName [21:24:35]name=ofd_packets/00002131 [21:24:35]OFD Sender: To server: pG, [21:24:35]CommunicateWithHost lk.salyk.kg:30040 [21:24:35]ConnectInit lk.salyk.kg [21:24:35]written 0, free lines is 4095 [21:24:36]Connected sock=10 [21:24:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 39 01 00 00 43 6A 31 01 14 88 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 B6 00 00 00 F4 03 04 00 19 B7 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 53 08 00 00 35 04 06 00 32 95 C1 AD F6 43 22 86 8C 7D 34 91 9F 52 [21:24:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 C4 F6 47 00 DC 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 32 30 39 34 32 34 38 10 04 04 00 53 08 00 00 F4 03 04 00 88 62 A6 66 B6 04 01 00 00 28 C9 91 92 74 E6 6D AC [21:24:36]CommunicateWithHost err = 0 [21:24:36]CheckOFDResponse [21:24:36]1017 (14) - 77093643461234 [21:24:36]1041 (16) - 0000000002094248 [21:24:36]1040 (4) - 2131 [21:24:36]1012 (4) - 28.07.2024 15:23 [21:24:36]1206 (1) - 0 [21:24:36]OFD Sender: Remove packet 2131 [21:24:36]ProducePacketName [21:24:36]name=ofd_packets/00002131 [21:24:36]NVStorageDeleteData [21:24:36]Write to MH i2c: 01 00 00 AD 63 10 [21:24:36]Write i2c OK [21:24:36]MH_I2C_Read... [21:24:36]Read from MH i2c: 01 [21:24:36]MH_I2C_Read... [21:24:36]Read from MH i2c: 01 07 00 [21:24:36]MH_I2C_Read... [21:24:36]Read from MH i2c: 01 07 00 AD 63 00 00 00 00 00 FB 0C 1E [21:24:36]RasterBufferAndPrint [21:24:36]line [21:24:36]line [21:24:36]line [21:24:36]line [21:24:36]line [21:24:36]written 0, free lines is 3332 [21:24:36]MH_Cut [21:24:36]Write to MH i2c: D1 01 00 B4 63 01 E9 [21:24:36]Write i2c OK [21:24:36]MH_I2C_Read... [21:24:36]Read from MH i2c: D1 [21:24:36]MH_I2C_Read... [21:24:36]Read from MH i2c: D1 01 00 [21:24:36]MH_I2C_Read... [21:24:36]Read from MH i2c: D1 01 00 B4 63 00 E8 [21:24:36]Write to MH i2c: 01 00 00 B5 63 18 [21:24:36]Write i2c OK [21:24:36]MH_I2C_Read... [21:24:36]OFD Sender: No OFD packet to send [21:24:37]*** Cut start [21:24:37]*** Partial cut [21:24:37]*** CUTSNS_PIN = 1 [21:24:37]*** CUTSNS_PIN = 0 [21:24:37]*** Brake cut motor [21:24:37]Read from MH i2c: 01 [21:24:37]MH_I2C_Read... [21:24:37]*** Stop cut motor [21:24:37]*** Cut end [21:24:37]Read from MH i2c: 01 07 00 [21:24:37]MH_I2C_Read... [21:24:37]Read from MH i2c: 01 07 00 B5 63 00 00 00 00 00 FF 0F 2D [21:24:37]process_action close_receipt done [21:24:37]requested_data is exist [21:24:37]produce_requested_data [21:24:37]requested_item fm.sn is exist - process it [21:24:37]wFMCommunicate request_size=4 [21:24:37]MH_SAM_APDU [21:24:37]CAPDU: 80 11 00 00 [21:24:37]Write to MH i2c: E2 08 00 B6 63 80 11 00 00 00 00 00 00 93 [21:24:37]Write i2c OK [21:24:37]MH_I2C_Read... [21:24:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:24:37]Read from MH i2c: E2 [21:24:37]MH_I2C_Read... [21:24:37]Read from MH i2c: E2 17 00 [21:24:37]MH_I2C_Read... [21:24:37]Read from MH i2c: E2 17 00 B6 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 E3 [21:24:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [21:24:37]wFMCommunicate OK [21:24:37]requested_item fd.num is exist - process it [21:24:37]SAM_PROTO_GetFieldsCounters [21:24:37]wFMCommunicate request_size=4 [21:24:37]MH_SAM_APDU [21:24:37]CAPDU: 80 13 00 00 [21:24:37]Write to MH i2c: E2 08 00 B7 63 80 13 00 00 00 00 00 00 96 [21:24:37]Write i2c OK [21:24:37]MH_I2C_Read... [21:24:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:24:37]Read from MH i2c: E2 [21:24:37]MH_I2C_Read... [21:24:37]Read from MH i2c: E2 62 00 [21:24:37]MH_I2C_Read... [21:24:37]Read from MH i2c: E2 62 00 B7 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 53 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 4A [21:24:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 53 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:24:37]wFMCommunicate OK [21:24:37]SAM_PROTO_GetFieldsCounters done [21:24:37]requested_item shift.num is exist - process it [21:24:37]requested_item shift.opened is exist - process it [21:24:37]req_shift_opened [21:24:37]FM_GetShiftState [21:24:37]SAM_PROTO_GetShiftState [21:24:37]wFMCommunicate request_size=4 [21:24:37]MH_SAM_APDU [21:24:37]CAPDU: 80 13 01 00 [21:24:37]Write to MH i2c: E2 08 00 B8 63 80 13 01 00 00 00 00 00 98 [21:24:37]Write i2c OK [21:24:37]MH_I2C_Read... [21:24:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:24:37]Read from MH i2c: E2 [21:24:37]MH_I2C_Read... [21:24:37]Read from MH i2c: E2 0E 00 [21:24:37]MH_I2C_Read... [21:24:37]Read from MH i2c: E2 0E 00 B8 63 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 8C [21:24:37]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [21:24:37]wFMCommunicate OK [21:24:37]SAM_PROTO_GetShiftState done [21:24:37]FM_GetShiftState done [21:24:37]req_shift_opened done [21:24:37]requested_item shift.open_date is exist - process it [21:24:37]req_shift_open_date [21:24:37]req_shift_open_date done [21:24:37]produce_requested_data done [21:24:37]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2131,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [21:24:37]process_action_free close_receipt [21:24:37]json_value_free [21:24:37]json_value_free done [21:24:37]process_json_proto returns [21:24:37]Send response to host [21:24:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2131,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [21:24:37]free response buf [21:24:37]execute_script done [21:24:37]execute_script returns [21:24:37]free content buf [21:24:37]Sock 8.Close socket [21:24:37]Sock 8.Thread stoped [21:24:41]OFD Sender: No OFD packet to send [21:24:46]OFD Sender: No OFD packet to send [21:24:51]OFD Sender: No OFD packet to send [21:24:56]OFD Sender: No OFD packet to send [21:25:01]OFD Sender: No OFD packet to send [21:25:06]OFD Sender: No OFD packet to send [21:25:11]OFD Sender: No OFD packet to send [21:25:16]OFD Sender: No OFD packet to send [21:25:21]OFD Sender: No OFD packet to send [21:25:26]OFD Sender: No OFD packet to send [21:25:31]OFD Sender: No OFD packet to send [21:25:36]OFD Sender: No OFD packet to send [21:25:41]OFD Sender: No OFD packet to send [21:25:46]OFD Sender: No OFD packet to send [21:25:51]OFD Sender: No OFD packet to send [21:25:56]OFD Sender: No OFD packet to send [21:26:01]OFD Sender: No OFD packet to send [21:26:06]OFD Sender: No OFD packet to send [21:26:11]OFD Sender: No OFD packet to send [21:26:16]OFD Sender: No OFD packet to send [21:26:21]OFD Sender: No OFD packet to send [21:26:26]OFD Sender: No OFD packet to send [21:26:31]OFD Sender: No OFD packet to send [21:26:36]OFD Sender: No OFD packet to send [21:26:41]OFD Sender: No OFD packet to send [21:26:46]OFD Sender: No OFD packet to send [21:26:51]OFD Sender: No OFD packet to send [21:26:56]OFD Sender: No OFD packet to send [21:27:01]OFD Sender: No OFD packet to send [21:27:06]OFD Sender: No OFD packet to send [21:27:11]OFD Sender: No OFD packet to send [21:27:16]OFD Sender: No OFD packet to send [21:27:21]OFD Sender: No OFD packet to send [21:27:26]OFD Sender: No OFD packet to send [21:27:31]OFD Sender: No OFD packet to send [21:27:36]OFD Sender: No OFD packet to send [21:27:41]OFD Sender: No OFD packet to send [21:27:46]OFD Sender: No OFD packet to send [21:27:52]OFD Sender: No OFD packet to send [21:27:57]OFD Sender: No OFD packet to send [21:28:02]OFD Sender: No OFD packet to send [21:28:07]OFD Sender: No OFD packet to send [21:28:12]OFD Sender: No OFD packet to send [21:28:17]OFD Sender: No OFD packet to send [21:28:22]OFD Sender: No OFD packet to send [21:28:27]OFD Sender: No OFD packet to send [21:28:32]OFD Sender: No OFD packet to send [21:28:37]OFD Sender: No OFD packet to send [21:28:42]OFD Sender: No OFD packet to send [21:28:47]OFD Sender: No OFD packet to send [21:28:52]OFD Sender: No OFD packet to send [21:28:57]OFD Sender: No OFD packet to send [21:29:02]OFD Sender: No OFD packet to send [21:29:07]OFD Sender: No OFD packet to send [21:29:12]OFD Sender: No OFD packet to send [21:29:17]OFD Sender: No OFD packet to send [21:29:22]OFD Sender: No OFD packet to send [21:29:27]OFD Sender: No OFD packet to send [21:29:32]OFD Sender: No OFD packet to send [21:29:37]OFD Sender: No OFD packet to send [21:29:42]OFD Sender: No OFD packet to send [21:29:47]OFD Sender: No OFD packet to send [21:29:52]OFD Sender: No OFD packet to send [21:29:57]OFD Sender: No OFD packet to send [21:30:02]OFD Sender: No OFD packet to send [21:30:07]OFD Sender: No OFD packet to send [21:30:12]OFD Sender: No OFD packet to send [21:30:17]OFD Sender: No OFD packet to send [21:30:22]OFD Sender: No OFD packet to send [21:30:27]OFD Sender: No OFD packet to send [21:30:32]OFD Sender: No OFD packet to send [21:30:37]OFD Sender: No OFD packet to send [21:30:42]OFD Sender: No OFD packet to send [21:30:47]OFD Sender: No OFD packet to send [21:30:52]OFD Sender: No OFD packet to send [21:30:57]OFD Sender: No OFD packet to send [21:31:02]OFD Sender: No OFD packet to send [21:31:07]OFD Sender: No OFD packet to send [21:31:12]OFD Sender: No OFD packet to send [21:31:17]OFD Sender: No OFD packet to send [21:31:22]OFD Sender: No OFD packet to send [21:31:27]OFD Sender: No OFD packet to send [21:31:32]OFD Sender: No OFD packet to send [21:31:37]OFD Sender: No OFD packet to send [21:31:42]OFD Sender: No OFD packet to send [21:31:47]OFD Sender: No OFD packet to send [21:31:52]OFD Sender: No OFD packet to send [21:31:57]OFD Sender: No OFD packet to send [21:32:02]OFD Sender: No OFD packet to send [21:32:07]OFD Sender: No OFD packet to send [21:32:12]OFD Sender: No OFD packet to send [21:32:17]OFD Sender: No OFD packet to send [21:32:22]OFD Sender: No OFD packet to send [21:32:27]OFD Sender: No OFD packet to send [21:32:32]OFD Sender: No OFD packet to send [21:32:37]OFD Sender: No OFD packet to send [21:32:42]OFD Sender: No OFD packet to send [21:32:47]OFD Sender: No OFD packet to send [21:32:52]OFD Sender: No OFD packet to send [21:32:57]OFD Sender: No OFD packet to send [21:33:02]OFD Sender: No OFD packet to send [21:33:07]OFD Sender: No OFD packet to send [21:33:12]OFD Sender: No OFD packet to send [21:33:17]OFD Sender: No OFD packet to send [21:33:22]OFD Sender: No OFD packet to send [21:33:27]OFD Sender: No OFD packet to send [21:33:32]OFD Sender: No OFD packet to send [21:33:37]OFD Sender: No OFD packet to send [21:33:42]OFD Sender: No OFD packet to send [21:33:47]OFD Sender: No OFD packet to send [21:33:52]OFD Sender: No OFD packet to send [21:33:57]OFD Sender: No OFD packet to send [21:34:02]OFD Sender: No OFD packet to send [21:34:07]OFD Sender: No OFD packet to send [21:34:12]OFD Sender: No OFD packet to send [21:34:17]OFD Sender: No OFD packet to send [21:34:22]OFD Sender: No OFD packet to send [21:34:27]OFD Sender: No OFD packet to send [21:34:32]OFD Sender: No OFD packet to send [21:34:37]OFD Sender: No OFD packet to send [21:34:42]OFD Sender: No OFD packet to send [21:34:47]OFD Sender: No OFD packet to send [21:34:52]OFD Sender: No OFD packet to send [21:34:57]OFD Sender: No OFD packet to send [21:35:02]OFD Sender: No OFD packet to send [21:35:07]OFD Sender: No OFD packet to send [21:35:12]OFD Sender: No OFD packet to send [21:35:17]OFD Sender: No OFD packet to send [21:35:22]OFD Sender: No OFD packet to send [21:35:27]OFD Sender: No OFD packet to send [21:35:32]OFD Sender: No OFD packet to send [21:35:37]OFD Sender: No OFD packet to send [21:35:42]OFD Sender: No OFD packet to send [21:35:47]OFD Sender: No OFD packet to send [21:35:52]OFD Sender: No OFD packet to send [21:35:57]OFD Sender: No OFD packet to send [21:36:02]OFD Sender: No OFD packet to send [21:36:07]OFD Sender: No OFD packet to send [21:36:12]OFD Sender: No OFD packet to send [21:36:17]OFD Sender: No OFD packet to send [21:36:22]OFD Sender: No OFD packet to send [21:36:27]OFD Sender: No OFD packet to send [21:36:32]OFD Sender: No OFD packet to send [21:36:37]OFD Sender: No OFD packet to send [21:36:42]OFD Sender: No OFD packet to send [21:36:47]OFD Sender: No OFD packet to send [21:36:52]OFD Sender: No OFD packet to send [21:36:57]OFD Sender: No OFD packet to send [21:37:02]OFD Sender: No OFD packet to send [21:37:07]OFD Sender: No OFD packet to send [21:37:12]OFD Sender: No OFD packet to send [21:37:17]OFD Sender: No OFD packet to send [21:37:22]OFD Sender: No OFD packet to send [21:37:27]OFD Sender: No OFD packet to send [21:37:32]OFD Sender: No OFD packet to send [21:37:37]OFD Sender: No OFD packet to send [21:37:42]OFD Sender: No OFD packet to send [21:37:47]OFD Sender: No OFD packet to send [21:37:52]OFD Sender: No OFD packet to send [21:37:57]OFD Sender: No OFD packet to send [21:38:02]OFD Sender: No OFD packet to send [21:38:07]OFD Sender: No OFD packet to send [21:38:12]OFD Sender: No OFD packet to send [21:38:17]OFD Sender: No OFD packet to send [21:38:22]OFD Sender: No OFD packet to send [21:38:27]OFD Sender: No OFD packet to send [21:38:32]OFD Sender: No OFD packet to send [21:38:37]OFD Sender: No OFD packet to send [21:38:42]OFD Sender: No OFD packet to send [21:38:47]OFD Sender: No OFD packet to send [21:38:52]OFD Sender: No OFD packet to send [21:38:57]OFD Sender: No OFD packet to send [21:39:02]OFD Sender: No OFD packet to send [21:39:07]OFD Sender: No OFD packet to send [21:39:12]OFD Sender: No OFD packet to send [21:39:17]OFD Sender: No OFD packet to send [21:39:22]OFD Sender: No OFD packet to send [21:39:27]OFD Sender: No OFD packet to send [21:39:32]OFD Sender: No OFD packet to send [21:39:37]OFD Sender: No OFD packet to send [21:39:42]OFD Sender: No OFD packet to send [21:39:47]OFD Sender: No OFD packet to send [21:39:52]OFD Sender: No OFD packet to send [21:39:57]OFD Sender: No OFD packet to send [21:40:02]OFD Sender: No OFD packet to send [21:40:07]OFD Sender: No OFD packet to send [21:40:12]OFD Sender: No OFD packet to send [21:40:17]OFD Sender: No OFD packet to send [21:40:22]OFD Sender: No OFD packet to send [21:40:27]OFD Sender: No OFD packet to send [21:40:32]OFD Sender: No OFD packet to send [21:40:37]OFD Sender: No OFD packet to send [21:40:42]OFD Sender: No OFD packet to send [21:40:47]OFD Sender: No OFD packet to send [21:40:52]OFD Sender: No OFD packet to send [21:40:57]OFD Sender: No OFD packet to send [21:41:02]OFD Sender: No OFD packet to send [21:41:07]OFD Sender: No OFD packet to send [21:41:12]OFD Sender: No OFD packet to send [21:41:17]OFD Sender: No OFD packet to send [21:41:22]OFD Sender: No OFD packet to send [21:41:27]OFD Sender: No OFD packet to send [21:41:32]OFD Sender: No OFD packet to send [21:41:37]OFD Sender: No OFD packet to send [21:41:42]OFD Sender: No OFD packet to send [21:41:47]OFD Sender: No OFD packet to send [21:41:52]OFD Sender: No OFD packet to send [21:41:57]OFD Sender: No OFD packet to send [21:42:02]OFD Sender: No OFD packet to send [21:42:07]OFD Sender: No OFD packet to send [21:42:12]OFD Sender: No OFD packet to send [21:42:17]OFD Sender: No OFD packet to send [21:42:22]OFD Sender: No OFD packet to send [21:42:27]OFD Sender: No OFD packet to send [21:42:32]OFD Sender: No OFD packet to send [21:42:37]OFD Sender: No OFD packet to send [21:42:42]OFD Sender: No OFD packet to send [21:42:47]OFD Sender: No OFD packet to send [21:42:52]OFD Sender: No OFD packet to send [21:42:57]OFD Sender: No OFD packet to send [21:43:02]OFD Sender: No OFD packet to send [21:43:07]OFD Sender: No OFD packet to send [21:43:12]OFD Sender: No OFD packet to send [21:43:17]OFD Sender: No OFD packet to send [21:43:22]OFD Sender: No OFD packet to send [21:43:27]OFD Sender: No OFD packet to send [21:43:32]OFD Sender: No OFD packet to send [21:43:37]OFD Sender: No OFD packet to send [21:43:42]OFD Sender: No OFD packet to send [21:43:47]OFD Sender: No OFD packet to send [21:43:52]OFD Sender: No OFD packet to send [21:43:57]OFD Sender: No OFD packet to send [21:44:02]OFD Sender: No OFD packet to send [21:44:07]OFD Sender: No OFD packet to send [21:44:12]OFD Sender: No OFD packet to send [21:44:17]OFD Sender: No OFD packet to send [21:44:22]OFD Sender: No OFD packet to send [21:44:27]OFD Sender: No OFD packet to send [21:44:32]OFD Sender: No OFD packet to send [21:44:37]OFD Sender: No OFD packet to send [21:44:42]OFD Sender: No OFD packet to send [21:44:47]OFD Sender: No OFD packet to send [21:44:52]OFD Sender: No OFD packet to send [21:44:57]OFD Sender: No OFD packet to send [21:45:02]OFD Sender: No OFD packet to send [21:45:07]OFD Sender: No OFD packet to send [21:45:12]OFD Sender: No OFD packet to send [21:45:17]OFD Sender: No OFD packet to send [21:45:22]OFD Sender: No OFD packet to send [21:45:27]OFD Sender: No OFD packet to send [21:45:32]OFD Sender: No OFD packet to send [21:45:37]OFD Sender: No OFD packet to send [21:45:42]OFD Sender: No OFD packet to send [21:45:47]OFD Sender: No OFD packet to send [21:45:52]OFD Sender: No OFD packet to send [21:45:57]OFD Sender: No OFD packet to send [21:46:02]OFD Sender: No OFD packet to send [21:46:07]OFD Sender: No OFD packet to send [21:46:12]OFD Sender: No OFD packet to send [21:46:17]OFD Sender: No OFD packet to send [21:46:22]OFD Sender: No OFD packet to send [21:46:27]OFD Sender: No OFD packet to send [21:46:32]OFD Sender: No OFD packet to send [21:46:37]OFD Sender: No OFD packet to send [21:46:42]OFD Sender: No OFD packet to send [21:46:47]OFD Sender: No OFD packet to send [21:46:52]OFD Sender: No OFD packet to send [21:46:57]OFD Sender: No OFD packet to send [21:47:02]OFD Sender: No OFD packet to send [21:47:07]OFD Sender: No OFD packet to send [21:47:12]OFD Sender: No OFD packet to send [21:47:17]OFD Sender: No OFD packet to send [21:47:22]OFD Sender: No OFD packet to send [21:47:27]OFD Sender: No OFD packet to send [21:47:32]OFD Sender: No OFD packet to send [21:47:37]OFD Sender: No OFD packet to send [21:47:42]OFD Sender: No OFD packet to send [21:47:47]OFD Sender: No OFD packet to send [21:47:52]OFD Sender: No OFD packet to send [21:47:57]OFD Sender: No OFD packet to send [21:48:02]OFD Sender: No OFD packet to send [21:48:07]OFD Sender: No OFD packet to send [21:48:12]OFD Sender: No OFD packet to send [21:48:17]OFD Sender: No OFD packet to send [21:48:22]OFD Sender: No OFD packet to send [21:48:27]OFD Sender: No OFD packet to send [21:48:32]OFD Sender: No OFD packet to send [21:48:37]OFD Sender: No OFD packet to send [21:48:42]OFD Sender: No OFD packet to send [21:48:47]OFD Sender: No OFD packet to send [21:48:52]OFD Sender: No OFD packet to send [21:48:57]OFD Sender: No OFD packet to send [21:49:02]OFD Sender: No OFD packet to send [21:49:07]OFD Sender: No OFD packet to send [21:49:12]OFD Sender: No OFD packet to send [21:49:17]OFD Sender: No OFD packet to send [21:49:22]OFD Sender: No OFD packet to send [21:49:27]OFD Sender: No OFD packet to send [21:49:32]OFD Sender: No OFD packet to send [21:49:37]OFD Sender: No OFD packet to send [21:49:42]OFD Sender: No OFD packet to send [21:49:47]OFD Sender: No OFD packet to send [21:49:52]OFD Sender: No OFD packet to send [21:49:58]OFD Sender: No OFD packet to send [21:50:03]OFD Sender: No OFD packet to send [21:50:08]OFD Sender: No OFD packet to send [21:50:13]OFD Sender: No OFD packet to send [21:50:18]OFD Sender: No OFD packet to send [21:50:22]accept exits with 9 [21:50:22]New connection [21:50:22]New thread 3067317604 created [21:50:22]Thread 3067460964 joined [21:50:22]Waiting for new connection... [21:50:22] Sock 9.Parse request [21:50:22]Sock 9.Check first char [21:50:22]Sock 9.First char is OK [21:50:22]request: POST /json_proto HTTP/1.0 [21:50:22]Method: POST [21:50:22]URL: /json_proto [21:50:22]Method is POST - this is cgi request [21:50:22]url: /json_proto [21:50:22]query_string will be loaded in cgi processing [21:50:22]execute_cgi json_proto POST (null) [21:50:22]execute_cgi path=json_proto method=POST [21:50:22]POST find Content-Length [21:50:22]Host: 172.17.45.132:8080 [21:50:22]Content-Length: 644 [21:50:22]Content-Type: application/json [21:50:22] [21:50:22]POST finish read [21:50:22]Found Content-Length = 644 [21:50:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126428", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:50:22]execute_script... [21:50:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126428", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:50:22]POST & json_proto [21:50:22]process_json_proto [21:50:22]json parsed OK: [21:50:22]protocol is kg_v1.0 [21:50:22]action value=close_receipt [21:50:22]process_action close_receipt [21:50:22]cmd_close_receipt [21:50:22]MH_GetDate [21:50:22]Write to MH i2c: F0 00 00 B9 63 0B [21:50:22]Write i2c OK [21:50:22]MH_I2C_Read... [21:50:22]Read from MH i2c: F0 [21:50:22]MH_I2C_Read... [21:50:22]Read from MH i2c: F0 09 00 [21:50:22]MH_I2C_Read... [21:50:22]Read from MH i2c: F0 09 00 B9 63 00 26 BD A6 66 E3 0B 90 66 E7 [21:50:22]GetLastDocTimeStamp 1722201881 [21:50:22]current date 1722203430 [21:50:22]FM_GetShiftState [21:50:22]SAM_PROTO_GetShiftState [21:50:22]wFMCommunicate request_size=4 [21:50:22]MH_SAM_APDU [21:50:22]CAPDU: 80 13 01 00 [21:50:22]Write to MH i2c: E2 08 00 BA 63 80 13 01 00 00 00 00 00 9A [21:50:22]Write i2c OK [21:50:22]MH_I2C_Read... [21:50:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:50:22]Read from MH i2c: E2 [21:50:22]MH_I2C_Read... [21:50:22]Read from MH i2c: E2 0E 00 [21:50:22]MH_I2C_Read... [21:50:22]Read from MH i2c: E2 0E 00 BA 63 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 8E [21:50:22]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [21:50:22]wFMCommunicate OK [21:50:22]SAM_PROTO_GetShiftState done [21:50:22]FM_GetShiftState done [21:50:22]opened in 1722125648 [21:50:22]opened+sec_in_day 1722212048 [21:50:22]quantity*price = 5000 [21:50:22]sum+1 = 5001 [21:50:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 183 28.07.2024 21:50 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2132 ФПД: 235560884558477 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T215030&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2132&fm=235560884558477&tin=02508201610067®Number=0000000000189667&sum=5000 0 [21:50:24]StoreToDocumentArchive [21:50:24]shift 13 fd 2132 [21:50:24]save to /storage/0013/doc_00002132 [21:50:24]save last doc name /storage/0013/doc_00002132 to /storage/kkm_last_doc_name [21:50:24]save OK [21:50:24]Clear old archive folders... [21:50:24]ProcessDocumentItem done err = 0, tmpTLVsize=275 [21:50:24]tlvbuf is 020AA8C0 [21:50:24]SAM_PROTO_ClearQueue [21:50:24]wFMCommunicate request_size=4 [21:50:24]MH_SAM_APDU [21:50:24]CAPDU: 80 09 00 00 [21:50:24]Write to MH i2c: E2 08 00 C7 63 80 09 00 00 00 00 00 00 9C [21:50:24]Write i2c OK [21:50:24]MH_I2C_Read... [21:50:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:50:24]Read from MH i2c: E2 [21:50:24]MH_I2C_Read... [21:50:24]Read from MH i2c: E2 03 00 [21:50:24]MH_I2C_Read... [21:50:24]Read from MH i2c: E2 03 00 C7 63 00 90 00 9E [21:50:24]RAPDU: 90 00 [21:50:24]wFMCommunicate OK [21:50:24]SAM_PROTO_ClearQueue done [21:50:24]KKMCreateOFDPacket [21:50:24]OFDProtocolAddRootSTLVToBuf [21:50:24]FM_MakeSignedData [21:50:24]FM_MakeSignedData [21:50:24]SAM_PROTO_SignData [21:50:24]wFMCommunicate request_size=4 [21:50:24]MH_SAM_APDU [21:50:24]CAPDU: 80 0D 01 02 [21:50:24]Write to MH i2c: E2 08 00 C8 63 80 0D 01 02 00 00 00 00 A4 [21:50:24]Write i2c OK [21:50:24]MH_I2C_Read... [21:50:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:50:24]Read from MH i2c: E2 [21:50:24]MH_I2C_Read... [21:50:24]Read from MH i2c: E2 03 00 [21:50:24]MH_I2C_Read... [21:50:24]Read from MH i2c: E2 03 00 C8 63 00 90 00 9F [21:50:24]RAPDU: 90 00 [21:50:24]wFMCommunicate OK [21:50:24]wFMCommunicate request_size=255 [21:50:24]MH_SAM_APDU [21:50:24]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 26 BD A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 [21:50:24]Write to MH i2c: E2 02 01 C9 63 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 26 BD A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 00 00 C4 [21:50:24]Write i2c OK [21:50:24]MH_I2C_Read... [21:50:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:50:24]Read from MH i2c: E2 [21:50:24]MH_I2C_Read... [21:50:24]Read from MH i2c: E2 03 00 [21:50:24]MH_I2C_Read... [21:50:24]Read from MH i2c: E2 03 00 C9 63 00 90 00 A0 [21:50:24]RAPDU: 90 00 [21:50:24]wFMCommunicate OK [21:50:24]wFMCommunicate request_size=34 [21:50:24]MH_SAM_APDU [21:50:24]CAPDU: 80 0D 02 02 1D 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 54 08 00 00 35 04 06 00 D6 3D CA D8 DA 8D [21:50:24]Write to MH i2c: E2 25 00 CA 63 80 0D 02 02 1D 00 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 54 08 00 00 35 04 06 00 D6 3D CA D8 DA 8D 00 00 DD [21:50:24]Write i2c OK [21:50:24]MH_I2C_Read... [21:50:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:50:24]Read from MH i2c: E2 [21:50:24]MH_I2C_Read... [21:50:24]Read from MH i2c: E2 03 00 [21:50:24]MH_I2C_Read... [21:50:24]Read from MH i2c: E2 03 00 CA 63 00 90 00 A1 [21:50:24]RAPDU: 90 00 [21:50:24]wFMCommunicate OK [21:50:24]wFMCommunicate request_size=4 [21:50:24]MH_SAM_APDU [21:50:24]CAPDU: 80 0D 03 02 [21:50:24]Write to MH i2c: E2 08 00 CB 63 80 0D 03 02 00 00 00 00 A9 [21:50:24]Write i2c OK [21:50:24]MH_I2C_Read... [21:50:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:50:24]Read from MH i2c: E2 [21:50:24]MH_I2C_Read... [21:50:24]Read from MH i2c: E2 0B 00 [21:50:24]MH_I2C_Read... [21:50:24]Read from MH i2c: E2 0B 00 CB 63 00 A2 F1 C5 5F 11 E6 3B 5A 90 00 ED [21:50:24]RAPDU: A2 F1 C5 5F 11 E6 3B 5A 90 00 [21:50:24]wFMCommunicate OK [21:50:24]SAM_PROTO_SignData done [21:50:24]FM_MakeSignedData done [21:50:24]CreateOFDProtocolMessage [21:50:24]wFMCommunicate request_size=4 [21:50:24]MH_SAM_APDU [21:50:24]CAPDU: 80 11 00 00 [21:50:24]Write to MH i2c: E2 08 00 CC 63 80 11 00 00 00 00 00 00 A9 [21:50:24]Write i2c OK [21:50:24]MH_I2C_Read... [21:50:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:50:24]Read from MH i2c: E2 [21:50:24]MH_I2C_Read... [21:50:24]Read from MH i2c: E2 17 00 [21:50:24]MH_I2C_Read... [21:50:24]Read from MH i2c: E2 17 00 CC 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 F9 [21:50:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [21:50:24]wFMCommunicate OK [21:50:24]CreateOFDProtocolMessage done [21:50:24]OFDSenderStorePacket 2132 [21:50:24]StoreOFDPacket docnum=2132 [21:50:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 27 01 00 00 D4 37 1F 01 13 42 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 26 BD A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 54 08 00 00 35 04 06 00 D6 3D CA D8 DA 8D A2 F1 C5 5F 11 E6 3B 5A [21:50:24]CheckFolder [21:50:24]dirname=/storage/ofd_packets [21:50:24]CheckFolder done [21:50:24]ProducePacketName [21:50:24]name=ofd_packets/00002132 [21:50:24]NVStorageSaveData ofd_packets/00002132 [21:50:24]File name is /storage/ofd_packets/00002132 [21:50:24]Write 325 bytes [21:50:24]NVStorageSaveData done [21:50:24]OFDSenderStorePacket done [21:50:24]KKMCreateOFDPacket done [21:50:24]NVStorageSaveData kkm_last_timestamp [21:50:24]File name is /storage/kkm_last_timestamp [21:50:24]Write 4 bytes [21:50:24]NVStorageSaveData done [21:50:24]ExternCall_PrintAddStr [21:50:24]wPrintStart [21:50:24]Write to MH i2c: 01 00 00 CD 63 30 [21:50:24]OFD Sender: Processing packet 2132 [packets to send 1, broken 0] [21:50:24]ProducePacketName [21:50:24]name=ofd_packets/00002132 [21:50:24]OFD Sender: To server: pG, [21:50:24]CommunicateWithHost lk.salyk.kg:30040 [21:50:24]ConnectInit lk.salyk.kg [21:50:24]Write i2c OK [21:50:24]MH_I2C_Read... [21:50:24]Read from MH i2c: 01 [21:50:24]MH_I2C_Read... [21:50:24]Read from MH i2c: 01 07 00 [21:50:24]MH_I2C_Read... [21:50:24]Read from MH i2c: 01 07 00 CD 63 00 00 00 00 00 FF 0F 45 [21:50:24]RasterBufferAndPrint [21:50:24]line Счет N : (3)126428 [21:50:24]line ИНН: 02508201610067 [21:50:24]line Контрольно-Кассовый Чек [21:50:24]line ПРОДАЖА [21:50:24]line Товар: 5449000005489 [21:50:24]line Вода Бонаква 1л б/г [21:50:24]line 1.000 * 50.00 [21:50:24]line = 50.00 [21:50:24]line НДС 12% НСП 1% [21:50:24]line > о реализуемом товаре [21:50:24]line ИТОГО: 50.00 [21:50:24]line НСП 1% : 0.44 [21:50:24]line НДС 12% : 5.31 [21:50:24]line Наличными: 50.00 [21:50:24]line Безнал.: 0.00 [21:50:24]line Место: АЗС № 127 "Партнер Нефть" [21:50:24]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [21:50:24]line СНО: Общий режим [21:50:24]line Чек 183 28.07.2024 21:50 [21:50:24]line Смена: 13 ФФД: 1.0 [21:50:24]line ЗНМ: 0300000161 [21:50:24]line РНМ: 0000000000189667 [21:50:24]line Версия ККМ: v1.0 [21:50:24]line ФМ: 0000000002094248 [21:50:24]line ФД: 2132 [21:50:24]line ФПД: 235560884558477 [21:50:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T215030&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2132&fm=235560884558477&tin=02508201610067®Number=0000000000189667&sum=5000 [21:50:25]Connected sock=10 [21:50:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 27 01 00 00 D4 37 1F 01 13 42 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 26 BD A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 54 08 00 00 35 04 06 00 D6 3D CA D8 DA 8D A2 F1 C5 5F 11 E6 3B 5A [21:50:25]line 0 [21:50:25]written 0, free lines is 4095 [21:50:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 FF 89 47 00 6D 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 54 08 00 00 F4 03 04 00 94 68 A6 66 B6 04 01 00 00 54 A2 51 61 13 3E 59 E0 [21:50:25]CommunicateWithHost err = 0 [21:50:25]CheckOFDResponse [21:50:25]1017 (14) - 77093643461234 [21:50:25]1041 (16) - 0000000002094248 [21:50:25]1040 (4) - 2132 [21:50:25]1012 (4) - 28.07.2024 15:49 [21:50:25]1206 (1) - 0 [21:50:25]OFD Sender: Remove packet 2132 [21:50:25]ProducePacketName [21:50:25]name=ofd_packets/00002132 [21:50:25]NVStorageDeleteData [21:50:25]Write to MH i2c: 01 00 00 F5 63 58 [21:50:25]Write i2c OK [21:50:25]MH_I2C_Read... [21:50:25]Read from MH i2c: 01 [21:50:25]MH_I2C_Read... [21:50:25]Read from MH i2c: 01 07 00 [21:50:25]MH_I2C_Read... [21:50:25]Read from MH i2c: 01 07 00 F5 63 00 00 00 00 00 10 0D 7C [21:50:25]RasterBufferAndPrint [21:50:25]line [21:50:25]line [21:50:25]line [21:50:25]line [21:50:25]line [21:50:25]written 0, free lines is 3350 [21:50:25]MH_Cut [21:50:25]Write to MH i2c: D1 01 00 FC 63 01 31 [21:50:25]Write i2c OK [21:50:25]MH_I2C_Read... [21:50:25]Read from MH i2c: D1 [21:50:25]MH_I2C_Read... [21:50:25]Read from MH i2c: D1 01 00 [21:50:25]MH_I2C_Read... [21:50:25]Read from MH i2c: D1 01 00 FC 63 00 30 [21:50:25]Write to MH i2c: 01 00 00 FD 63 60 [21:50:25]Write i2c OK [21:50:25]MH_I2C_Read... [21:50:25]OFD Sender: No OFD packet to send [21:50:26]*** Cut start [21:50:26]*** Partial cut [21:50:26]*** CUTSNS_PIN = 1 [21:50:26]*** CUTSNS_PIN = 0 [21:50:26]*** Brake cut motor [21:50:26]Read from MH i2c: 01 [21:50:26]MH_I2C_Read... [21:50:26]*** Stop cut motor [21:50:26]*** Cut end [21:50:26]Read from MH i2c: 01 07 00 [21:50:26]MH_I2C_Read... [21:50:26]Read from MH i2c: 01 07 00 FD 63 00 00 00 00 00 FF 0F 75 [21:50:26]process_action close_receipt done [21:50:26]requested_data is exist [21:50:26]produce_requested_data [21:50:26]requested_item fm.sn is exist - process it [21:50:26]wFMCommunicate request_size=4 [21:50:26]MH_SAM_APDU [21:50:26]CAPDU: 80 11 00 00 [21:50:26]Write to MH i2c: E2 08 00 FE 63 80 11 00 00 00 00 00 00 DB [21:50:26]Write i2c OK [21:50:26]MH_I2C_Read... [21:50:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:50:26]Read from MH i2c: E2 [21:50:26]MH_I2C_Read... [21:50:26]Read from MH i2c: E2 17 00 [21:50:26]MH_I2C_Read... [21:50:26]Read from MH i2c: E2 17 00 FE 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 2B [21:50:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [21:50:26]wFMCommunicate OK [21:50:26]requested_item fd.num is exist - process it [21:50:26]SAM_PROTO_GetFieldsCounters [21:50:26]wFMCommunicate request_size=4 [21:50:26]MH_SAM_APDU [21:50:26]CAPDU: 80 13 00 00 [21:50:26]Write to MH i2c: E2 08 00 FF 63 80 13 00 00 00 00 00 00 DE [21:50:26]Write i2c OK [21:50:26]MH_I2C_Read... [21:50:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:50:26]Read from MH i2c: E2 [21:50:26]MH_I2C_Read... [21:50:26]Read from MH i2c: E2 62 00 [21:50:26]MH_I2C_Read... [21:50:26]Read from MH i2c: E2 62 00 FF 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 54 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 96 [21:50:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 54 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:50:26]wFMCommunicate OK [21:50:26]SAM_PROTO_GetFieldsCounters done [21:50:26]requested_item shift.num is exist - process it [21:50:26]requested_item shift.opened is exist - process it [21:50:26]req_shift_opened [21:50:26]FM_GetShiftState [21:50:26]SAM_PROTO_GetShiftState [21:50:26]wFMCommunicate request_size=4 [21:50:26]MH_SAM_APDU [21:50:26]CAPDU: 80 13 01 00 [21:50:26]Write to MH i2c: E2 08 00 00 64 80 13 01 00 00 00 00 00 E1 [21:50:26]Write i2c OK [21:50:26]MH_I2C_Read... [21:50:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:50:27]Read from MH i2c: E2 [21:50:27]MH_I2C_Read... [21:50:27]Read from MH i2c: E2 0E 00 [21:50:27]MH_I2C_Read... [21:50:27]Read from MH i2c: E2 0E 00 00 64 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 D5 [21:50:27]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [21:50:27]wFMCommunicate OK [21:50:27]SAM_PROTO_GetShiftState done [21:50:27]FM_GetShiftState done [21:50:27]req_shift_opened done [21:50:27]requested_item shift.open_date is exist - process it [21:50:27]req_shift_open_date [21:50:27]req_shift_open_date done [21:50:27]produce_requested_data done [21:50:27]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2132,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [21:50:27]process_action_free close_receipt [21:50:27]json_value_free [21:50:27]json_value_free done [21:50:27]process_json_proto returns [21:50:27]Send response to host [21:50:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2132,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [21:50:27]free response buf [21:50:27]execute_script done [21:50:27]execute_script returns [21:50:27]free content buf [21:50:27]Sock 9.Close socket [21:50:27]Sock 9.Thread stoped [21:50:30]OFD Sender: No OFD packet to send [21:50:35]OFD Sender: No OFD packet to send [21:50:40]OFD Sender: No OFD packet to send [21:50:45]OFD Sender: No OFD packet to send [21:50:50]OFD Sender: No OFD packet to send [21:50:55]OFD Sender: No OFD packet to send [21:51:00]OFD Sender: No OFD packet to send [21:51:05]OFD Sender: No OFD packet to send [21:51:10]OFD Sender: No OFD packet to send [21:51:15]OFD Sender: No OFD packet to send [21:51:20]OFD Sender: No OFD packet to send [21:51:25]OFD Sender: No OFD packet to send [21:51:30]OFD Sender: No OFD packet to send [21:51:35]OFD Sender: No OFD packet to send [21:51:40]OFD Sender: No OFD packet to send [21:51:41]accept exits with 8 [21:51:41]New connection [21:51:41]New thread 3067460964 created [21:51:41]Thread 3067317604 joined [21:51:41]Waiting for new connection... [21:51:41] Sock 8.Parse request [21:51:41]Sock 8.Check first char [21:51:41]Sock 8.First char is OK [21:51:41]request: POST /json_proto HTTP/1.0 [21:51:41]Method: POST [21:51:41]URL: /json_proto [21:51:41]Method is POST - this is cgi request [21:51:41]url: /json_proto [21:51:41]query_string will be loaded in cgi processing [21:51:41]execute_cgi json_proto POST (null) [21:51:41]execute_cgi path=json_proto method=POST [21:51:41]POST find Content-Length [21:51:41]Host: 172.17.45.132:8080 [21:51:41]Content-Length: 1167 [21:51:41]Content-Type: application/json [21:51:41] [21:51:41]POST finish read [21:51:41]Found Content-Length = 1167 [21:51:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126429", "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": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "40822938", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 400.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:51:41]execute_script... [21:51: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)126429", "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": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "40822938", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 400.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:51:41]POST & json_proto [21:51:41]process_json_proto [21:51:41]json parsed OK: [21:51:41]protocol is kg_v1.0 [21:51:41]action value=close_receipt [21:51:41]process_action close_receipt [21:51:41]cmd_close_receipt [21:51:41]MH_GetDate [21:51:41]Write to MH i2c: F0 00 00 01 64 54 [21:51:41]Write i2c OK [21:51:41]MH_I2C_Read... [21:51:41]Read from MH i2c: F0 [21:51:41]MH_I2C_Read... [21:51:41]Read from MH i2c: F0 09 00 [21:51:41]MH_I2C_Read... [21:51:41]Read from MH i2c: F0 09 00 01 64 00 74 BD A6 66 E3 0B 90 66 7E [21:51:41]GetLastDocTimeStamp 1722203430 [21:51:41]current date 1722203508 [21:51:41]FM_GetShiftState [21:51:41]SAM_PROTO_GetShiftState [21:51:41]wFMCommunicate request_size=4 [21:51:41]MH_SAM_APDU [21:51:41]CAPDU: 80 13 01 00 [21:51:41]Write to MH i2c: E2 08 00 02 64 80 13 01 00 00 00 00 00 E3 [21:51:41]Write i2c OK [21:51:41]MH_I2C_Read... [21:51:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:51:41]Read from MH i2c: E2 [21:51:41]MH_I2C_Read... [21:51:41]Read from MH i2c: E2 0E 00 [21:51:41]MH_I2C_Read... [21:51:41]Read from MH i2c: E2 0E 00 02 64 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 D7 [21:51:41]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [21:51:41]wFMCommunicate OK [21:51:41]SAM_PROTO_GetShiftState done [21:51:41]FM_GetShiftState done [21:51:41]opened in 1722125648 [21:51:41]opened+sec_in_day 1722212048 [21:51:41]quantity*price = 26000 [21:51:41]sum+1 = 26001 [21:51:41]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 47011656 Водка Пшеничная 0,1л 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 40822938 Напиток Фанта 0,5л 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 400.00 НСП 1% : 3.53 НДС 12% : 42.47 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 184 28.07.2024 21:51 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2133 ФПД: 277108588365641 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T215148&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2133&fm=277108588365641&tin=02508201610067®Number=0000000000189667&sum=40000 0 [21:51:42]StoreToDocumentArchive [21:51:42]shift 13 fd 2133 [21:51:42]save to /storage/0013/doc_00002133 [21:51:42]save last doc name /storage/0013/doc_00002133 to /storage/kkm_last_doc_name [21:51:42]save OK [21:51:42]Clear old archive folders... [21:51:42]ProcessDocumentItem done err = 0, tmpTLVsize=479 [21:51:42]tlvbuf is 01F63D80 [21:51:42]SAM_PROTO_ClearQueue [21:51:42]wFMCommunicate request_size=4 [21:51:42]MH_SAM_APDU [21:51:42]CAPDU: 80 09 00 00 [21:51:42]Write to MH i2c: E2 08 00 0F 64 80 09 00 00 00 00 00 00 E5 [21:51:42]Write i2c OK [21:51:42]MH_I2C_Read... [21:51:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:51:42]Read from MH i2c: E2 [21:51:42]MH_I2C_Read... [21:51:42]Read from MH i2c: E2 03 00 [21:51:42]MH_I2C_Read... [21:51:42]Read from MH i2c: E2 03 00 0F 64 00 90 00 E7 [21:51:42]RAPDU: 90 00 [21:51:42]wFMCommunicate OK [21:51:42]SAM_PROTO_ClearQueue done [21:51:42]KKMCreateOFDPacket [21:51:42]OFDProtocolAddRootSTLVToBuf [21:51:42]FM_MakeSignedData [21:51:42]FM_MakeSignedData [21:51:42]SAM_PROTO_SignData [21:51:42]wFMCommunicate request_size=4 [21:51:42]MH_SAM_APDU [21:51:42]CAPDU: 80 0D 01 02 [21:51:42]Write to MH i2c: E2 08 00 10 64 80 0D 01 02 00 00 00 00 ED [21:51:42]Write i2c OK [21:51:42]MH_I2C_Read... [21:51:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:51:42]Read from MH i2c: E2 [21:51:42]MH_I2C_Read... [21:51:42]Read from MH i2c: E2 03 00 [21:51:42]MH_I2C_Read... [21:51:42]Read from MH i2c: E2 03 00 10 64 00 90 00 E8 [21:51:42]RAPDU: 90 00 [21:51:42]wFMCommunicate OK [21:51:42]wFMCommunicate request_size=255 [21:51:42]MH_SAM_APDU [21:51:42]CAPDU: 80 0D 02 02 FA 03 00 DF 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 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD 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 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 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 [21:51:42]Write to MH i2c: E2 02 01 11 64 80 0D 02 02 FA 00 03 00 DF 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 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD 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 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 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 00 00 3B [21:51:42]Write i2c OK [21:51:42]MH_I2C_Read... [21:51:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:51:43]Read from MH i2c: E2 [21:51:43]MH_I2C_Read... [21:51:43]Read from MH i2c: E2 03 00 [21:51:43]MH_I2C_Read... [21:51:43]Read from MH i2c: E2 03 00 11 64 00 90 00 E9 [21:51:43]RAPDU: 90 00 [21:51:43]wFMCommunicate OK [21:51:43]wFMCommunicate request_size=238 [21:51:43]MH_SAM_APDU [21:51:43]CAPDU: 80 0D 02 02 E9 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 74 BD A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 55 08 00 00 35 04 06 00 FC 07 5E F9 47 49 [21:51:43]Write to MH i2c: E2 F1 00 12 64 80 0D 02 02 E9 00 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 74 BD A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 55 08 00 00 35 04 06 00 FC 07 5E F9 47 49 00 00 BB [21:51:43]Write i2c OK [21:51:43]MH_I2C_Read... [21:51:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:51:43]Read from MH i2c: E2 [21:51:43]MH_I2C_Read... [21:51:43]Read from MH i2c: E2 03 00 [21:51:43]MH_I2C_Read... [21:51:43]Read from MH i2c: E2 03 00 12 64 00 90 00 EA [21:51:43]RAPDU: 90 00 [21:51:43]wFMCommunicate OK [21:51:43]wFMCommunicate request_size=4 [21:51:43]MH_SAM_APDU [21:51:43]CAPDU: 80 0D 03 02 [21:51:43]Write to MH i2c: E2 08 00 13 64 80 0D 03 02 00 00 00 00 F2 [21:51:43]Write i2c OK [21:51:43]MH_I2C_Read... [21:51:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:51:43]Read from MH i2c: E2 [21:51:43]MH_I2C_Read... [21:51:43]Read from MH i2c: E2 0B 00 [21:51:43]MH_I2C_Read... [21:51:43]Read from MH i2c: E2 0B 00 13 64 00 08 07 4A DE B1 CF A1 44 90 00 8F [21:51:43]RAPDU: 08 07 4A DE B1 CF A1 44 90 00 [21:51:43]wFMCommunicate OK [21:51:43]SAM_PROTO_SignData done [21:51:43]FM_MakeSignedData done [21:51:43]CreateOFDProtocolMessage [21:51:43]wFMCommunicate request_size=4 [21:51:43]MH_SAM_APDU [21:51:43]CAPDU: 80 11 00 00 [21:51:43]Write to MH i2c: E2 08 00 14 64 80 11 00 00 00 00 00 00 F2 [21:51:43]Write i2c OK [21:51:43]MH_I2C_Read... [21:51:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:51:43]Read from MH i2c: E2 [21:51:43]MH_I2C_Read... [21:51:43]Read from MH i2c: E2 17 00 [21:51:43]MH_I2C_Read... [21:51:43]Read from MH i2c: E2 17 00 14 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 42 [21:51:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [21:51:43]wFMCommunicate OK [21:51:43]CreateOFDProtocolMessage done [21:51:43]OFDSenderStorePacket 2133 [21:51:43]StoreOFDPacket docnum=2133 [21:51:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 F3 01 00 00 2B E9 EB 01 57 5A 5A 03 01 00 03 00 DF 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 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD 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 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 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 74 BD A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 55 08 00 00 35 04 06 00 FC 07 5E F9 47 49 08 07 4A DE B1 CF A1 44 [21:51:43]CheckFolder [21:51:43]dirname=/storage/ofd_packets [21:51:43]CheckFolder done [21:51:43]ProducePacketName [21:51:43]name=ofd_packets/00002133 [21:51:43]NVStorageSaveData ofd_packets/00002133 [21:51:43]File name is /storage/ofd_packets/00002133 [21:51:43]Write 529 bytes [21:51:43]NVStorageSaveData done [21:51:43]OFDSenderStorePacket done [21:51:43]KKMCreateOFDPacket done [21:51:43]NVStorageSaveData kkm_last_timestamp [21:51:43]File name is /storage/kkm_last_timestamp [21:51:43]Write 4 bytes [21:51:43]NVStorageSaveData done [21:51:43]ExternCall_PrintAddStr [21:51:43]wPrintStart [21:51:43]Write to MH i2c: 01 00 00 15 64 79 [21:51:43]Write i2c OK [21:51:43]MH_I2C_Read... [21:51:43]Read from MH i2c: 01 [21:51:43]MH_I2C_Read... [21:51:43]Read from MH i2c: 01 07 00 [21:51:43]MH_I2C_Read... [21:51:43]Read from MH i2c: 01 07 00 15 64 00 00 00 00 00 FF 0F 8E [21:51:43]RasterBufferAndPrint [21:51:43]line Счет N : (3)126429 [21:51:43]line ИНН: 02508201610067 [21:51:43]line Контрольно-Кассовый Чек [21:51:43]line ПРОДАЖА [21:51:43]line Товар: 4700002083914 [21:51:43]line Водка Сары челек 0,35л [21:51:43]line 1.000 * 260.00 [21:51:43]line = 260.00 [21:51:43]line НДС 12% НСП 1% [21:51:43]line > о реализуемом товаре [21:51:43]line Товар: 47011656 [21:51:43]line Водка Пшеничная 0,1л [21:51:43]line 1.000 * 65.00 [21:51:43]line = 65.00 [21:51:43]line НДС 12% НСП 1% [21:51:43]line > о реализуемом товаре [21:51:43]line Товар: 40822938 [21:51:43]line Напиток Фанта 0,5л [21:51:43]line 1.000 * 75.00 [21:51:43]line = 75.00 [21:51:43]line НДС 12% НСП 1% [21:51:43]line > о реализуемом товаре [21:51:43]line ИТОГО: 400.00 [21:51:43]line НСП 1% : 3.53 [21:51:43]line НДС 12% : 42.47 [21:51:43]line Наличными: 400.00 [21:51:43]line Безнал.: 0.00 [21:51:43]line Место: АЗС № 127 "Партнер Нефть" [21:51:43]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [21:51:43]line СНО: Общий режим [21:51:43]line Чек 184 28.07.2024 21:51 [21:51:43]line Смена: 13 ФФД: 1.0 [21:51:43]line ЗНМ: 0300000161 [21:51:43]line РНМ: 0000000000189667 [21:51:43]line Версия ККМ: v1.0 [21:51:43]line ФМ: 0000000002094248 [21:51:43]line ФД: 2133 [21:51:43]line ФПД: 277108588365641 [21:51:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T215148&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2133&fm=277108588365641&tin=02508201610067®Number=0000000000189667&sum=40000 [21:51:43]line 0 [21:51:43]written 0, free lines is 4095 [21:51:43]OFD Sender: Processing packet 2133 [packets to send 1, broken 0] [21:51:43]ProducePacketName [21:51:43]name=ofd_packets/00002133 [21:51:43]OFD Sender: To server: pG, [21:51:43]CommunicateWithHost lk.salyk.kg:30040 [21:51:43]ConnectInit lk.salyk.kg [21:51:43]Connected sock=10 [21:51:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 F3 01 00 00 2B E9 EB 01 57 5A 5A 03 01 00 03 00 DF 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 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD 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 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 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 74 BD A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 55 08 00 00 35 04 06 00 FC 07 5E F9 47 49 08 07 4A DE B1 CF A1 44 [21:51:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 70 81 47 00 25 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 55 08 00 00 F4 03 04 00 E3 68 A6 66 B6 04 01 00 00 DC A4 12 56 60 52 02 09 [21:51:43]CommunicateWithHost err = 0 [21:51:43]CheckOFDResponse [21:51:43]1017 (14) - 77093643461234 [21:51:43]1041 (16) - 0000000002094248 [21:51:43]1040 (4) - 2133 [21:51:43]1012 (4) - 28.07.2024 15:50 [21:51:43]1206 (1) - 0 [21:51:43]OFD Sender: Remove packet 2133 [21:51:43]ProducePacketName [21:51:43]name=ofd_packets/00002133 [21:51:43]NVStorageDeleteData [21:51:44]Write to MH i2c: 01 00 00 49 64 AD [21:51:44]Write i2c OK [21:51:44]MH_I2C_Read... [21:51:44]Read from MH i2c: 01 [21:51:44]MH_I2C_Read... [21:51:44]Read from MH i2c: 01 07 00 [21:51:44]MH_I2C_Read... [21:51:44]Read from MH i2c: 01 07 00 49 64 00 00 00 00 00 7E 0C 3E [21:51:44]RasterBufferAndPrint [21:51:44]line [21:51:44]line [21:51:44]line [21:51:44]line [21:51:44]line [21:51:44]written 0, free lines is 3207 [21:51:44]MH_Cut [21:51:44]Write to MH i2c: D1 01 00 50 64 01 86 [21:51:44]Write i2c OK [21:51:44]MH_I2C_Read... [21:51:44]Read from MH i2c: D1 [21:51:44]MH_I2C_Read... [21:51:44]Read from MH i2c: D1 01 00 [21:51:44]MH_I2C_Read... [21:51:44]Read from MH i2c: D1 01 00 50 64 00 85 [21:51:44]Write to MH i2c: 01 00 00 51 64 B5 [21:51:44]Write i2c OK [21:51:44]MH_I2C_Read... [21:51:44]OFD Sender: No OFD packet to send [21:51:44]*** Cut start [21:51:44]*** Partial cut [21:51:44]*** CUTSNS_PIN = 1 [21:51:44]*** CUTSNS_PIN = 0 [21:51:45]*** Brake cut motor [21:51:45]Read from MH i2c: 01 [21:51:45]MH_I2C_Read... [21:51:45]*** Stop cut motor [21:51:45]*** Cut end [21:51:45]Read from MH i2c: 01 07 00 [21:51:45]MH_I2C_Read... [21:51:45]Read from MH i2c: 01 07 00 51 64 00 00 00 00 00 FF 0F CA [21:51:45]process_action close_receipt done [21:51:45]requested_data is exist [21:51:45]produce_requested_data [21:51:45]requested_item fm.sn is exist - process it [21:51:45]wFMCommunicate request_size=4 [21:51:45]MH_SAM_APDU [21:51:45]CAPDU: 80 11 00 00 [21:51:45]Write to MH i2c: E2 08 00 52 64 80 11 00 00 00 00 00 00 30 [21:51:45]Write i2c OK [21:51:45]MH_I2C_Read... [21:51:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:51:45]Read from MH i2c: E2 [21:51:45]MH_I2C_Read... [21:51:45]Read from MH i2c: E2 17 00 [21:51:45]MH_I2C_Read... [21:51:45]Read from MH i2c: E2 17 00 52 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 80 [21:51:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [21:51:45]wFMCommunicate OK [21:51:45]requested_item fd.num is exist - process it [21:51:45]SAM_PROTO_GetFieldsCounters [21:51:45]wFMCommunicate request_size=4 [21:51:45]MH_SAM_APDU [21:51:45]CAPDU: 80 13 00 00 [21:51:45]Write to MH i2c: E2 08 00 53 64 80 13 00 00 00 00 00 00 33 [21:51:45]Write i2c OK [21:51:45]MH_I2C_Read... [21:51:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:51:45]Read from MH i2c: E2 [21:51:45]MH_I2C_Read... [21:51:45]Read from MH i2c: E2 62 00 [21:51:45]MH_I2C_Read... [21:51:45]Read from MH i2c: E2 62 00 53 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 55 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [21:51:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 55 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:51:45]wFMCommunicate OK [21:51:45]SAM_PROTO_GetFieldsCounters done [21:51:45]requested_item shift.num is exist - process it [21:51:45]requested_item shift.opened is exist - process it [21:51:45]req_shift_opened [21:51:45]FM_GetShiftState [21:51:45]SAM_PROTO_GetShiftState [21:51:45]wFMCommunicate request_size=4 [21:51:45]MH_SAM_APDU [21:51:45]CAPDU: 80 13 01 00 [21:51:45]Write to MH i2c: E2 08 00 54 64 80 13 01 00 00 00 00 00 35 [21:51:45]Write i2c OK [21:51:45]MH_I2C_Read... [21:51:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:51:45]Read from MH i2c: E2 [21:51:45]MH_I2C_Read... [21:51:45]Read from MH i2c: E2 0E 00 [21:51:45]MH_I2C_Read... [21:51:45]Read from MH i2c: E2 0E 00 54 64 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 29 [21:51:45]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [21:51:45]wFMCommunicate OK [21:51:45]SAM_PROTO_GetShiftState done [21:51:45]FM_GetShiftState done [21:51:45]req_shift_opened done [21:51:45]requested_item shift.open_date is exist - process it [21:51:45]req_shift_open_date [21:51:45]req_shift_open_date done [21:51:45]produce_requested_data done [21:51:45]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2133,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [21:51:45]process_action_free close_receipt [21:51:45]json_value_free [21:51:45]json_value_free done [21:51:45]process_json_proto returns [21:51:45]Send response to host [21:51:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2133,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [21:51:45]free response buf [21:51:45]execute_script done [21:51:45]execute_script returns [21:51:45]free content buf [21:51:45]Sock 8.Close socket [21:51:45]Sock 8.Thread stoped [21:51:49]OFD Sender: No OFD packet to send [21:51:54]OFD Sender: No OFD packet to send [21:51:59]OFD Sender: No OFD packet to send [21:52:04]OFD Sender: No OFD packet to send [21:52:09]OFD Sender: No OFD packet to send [21:52:14]OFD Sender: No OFD packet to send [21:52:19]OFD Sender: No OFD packet to send [21:52:24]OFD Sender: No OFD packet to send [21:52:29]OFD Sender: No OFD packet to send [21:52:34]OFD Sender: No OFD packet to send [21:52:39]OFD Sender: No OFD packet to send [21:52:44]OFD Sender: No OFD packet to send [21:52:49]OFD Sender: No OFD packet to send [21:52:54]OFD Sender: No OFD packet to send [21:52:59]OFD Sender: No OFD packet to send [21:53:04]OFD Sender: No OFD packet to send [21:53:09]OFD Sender: No OFD packet to send [21:53:14]OFD Sender: No OFD packet to send [21:53:19]OFD Sender: No OFD packet to send [21:53:24]OFD Sender: No OFD packet to send [21:53:29]OFD Sender: No OFD packet to send [21:53:34]OFD Sender: No OFD packet to send [21:53:39]OFD Sender: No OFD packet to send [21:53:44]OFD Sender: No OFD packet to send [21:53:49]OFD Sender: No OFD packet to send [21:53:54]OFD Sender: No OFD packet to send [21:53:59]OFD Sender: No OFD packet to send [21:54:04]OFD Sender: No OFD packet to send [21:54:09]OFD Sender: No OFD packet to send [21:54:14]OFD Sender: No OFD packet to send [21:54:19]OFD Sender: No OFD packet to send [21:54:24]OFD Sender: No OFD packet to send [21:54:29]OFD Sender: No OFD packet to send [21:54:34]OFD Sender: No OFD packet to send [21:54:39]OFD Sender: No OFD packet to send [21:54:44]OFD Sender: No OFD packet to send [21:54:49]OFD Sender: No OFD packet to send [21:54:54]OFD Sender: No OFD packet to send [21:54:59]OFD Sender: No OFD packet to send [21:55:04]OFD Sender: No OFD packet to send [21:55:09]OFD Sender: No OFD packet to send [21:55:14]OFD Sender: No OFD packet to send [21:55:19]OFD Sender: No OFD packet to send [21:55:24]OFD Sender: No OFD packet to send [21:55:29]OFD Sender: No OFD packet to send [21:55:34]OFD Sender: No OFD packet to send [21:55:39]OFD Sender: No OFD packet to send [21:55:44]OFD Sender: No OFD packet to send [21:55:49]OFD Sender: No OFD packet to send [21:55:54]OFD Sender: No OFD packet to send [21:55:59]OFD Sender: No OFD packet to send [21:56:04]OFD Sender: No OFD packet to send [21:56:09]OFD Sender: No OFD packet to send [21:56:14]OFD Sender: No OFD packet to send [21:56:19]OFD Sender: No OFD packet to send [21:56:24]OFD Sender: No OFD packet to send [21:56:29]OFD Sender: No OFD packet to send [21:56:34]OFD Sender: No OFD packet to send [21:56:39]OFD Sender: No OFD packet to send [21:56:44]OFD Sender: No OFD packet to send [21:56:49]OFD Sender: No OFD packet to send [21:56:54]OFD Sender: No OFD packet to send [21:56:59]OFD Sender: No OFD packet to send [21:57:04]OFD Sender: No OFD packet to send [21:57:09]OFD Sender: No OFD packet to send [21:57:14]OFD Sender: No OFD packet to send [21:57:17]accept exits with 9 [21:57:17]New connection [21:57:17]New thread 3067317604 created [21:57:17]Thread 3067460964 joined [21:57:17]Waiting for new connection... [21:57:17] Sock 9.Parse request [21:57:17]Sock 9.Check first char [21:57:17]Sock 9.First char is OK [21:57:17]request: POST /json_proto HTTP/1.0 [21:57:17]Method: POST [21:57:17]URL: /json_proto [21:57:17]Method is POST - this is cgi request [21:57:17]url: /json_proto [21:57:17]query_string will be loaded in cgi processing [21:57:17]execute_cgi json_proto POST (null) [21:57:17]execute_cgi path=json_proto method=POST [21:57:17]POST find Content-Length [21:57:17]Host: 172.17.45.132:8080 [21:57:17]Content-Length: 1060 [21:57:17]Content-Type: application/json [21:57:17] [21:57:17]POST finish read [21:57:17]Found Content-Length = 1060 [21:57:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126430", "tax_sys" : 0, "items" : [ { "code": "4700003010803", "name": "\u0427\u0430\u0439 \u041B\u0435\u0442\u0441 \u0413\u043E\u0443 \u041C\u0430\u043B\u0438\u043D\u0430 0,9\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46123428", "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 }]} ], "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" : 240.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:57:17]execute_script... [21:57:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126430", "tax_sys" : 0, "items" : [ { "code": "4700003010803", "name": "\u0427\u0430\u0439 \u041B\u0435\u0442\u0441 \u0413\u043E\u0443 \u041C\u0430\u043B\u0438\u043D\u0430 0,9\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46123428", "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 }]} ], "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" : 240.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:57:17]POST & json_proto [21:57:17]process_json_proto [21:57:17]json parsed OK: [21:57:17]protocol is kg_v1.0 [21:57:17]action value=close_receipt [21:57:17]process_action close_receipt [21:57:17]cmd_close_receipt [21:57:17]MH_GetDate [21:57:17]Write to MH i2c: F0 00 00 55 64 A8 [21:57:17]Write i2c OK [21:57:17]MH_I2C_Read... [21:57:17]Read from MH i2c: F0 [21:57:17]MH_I2C_Read... [21:57:17]Read from MH i2c: F0 09 00 [21:57:17]MH_I2C_Read... [21:57:17]Read from MH i2c: F0 09 00 55 64 00 C4 BE A6 66 E3 0B 90 66 23 [21:57:17]GetLastDocTimeStamp 1722203508 [21:57:17]current date 1722203844 [21:57:17]FM_GetShiftState [21:57:17]SAM_PROTO_GetShiftState [21:57:17]wFMCommunicate request_size=4 [21:57:17]MH_SAM_APDU [21:57:17]CAPDU: 80 13 01 00 [21:57:17]Write to MH i2c: E2 08 00 56 64 80 13 01 00 00 00 00 00 37 [21:57:17]Write i2c OK [21:57:17]MH_I2C_Read... [21:57:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:57:17]Read from MH i2c: E2 [21:57:17]MH_I2C_Read... [21:57:17]Read from MH i2c: E2 0E 00 [21:57:17]MH_I2C_Read... [21:57:17]Read from MH i2c: E2 0E 00 56 64 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 2B [21:57:17]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [21:57:17]wFMCommunicate OK [21:57:17]SAM_PROTO_GetShiftState done [21:57:17]FM_GetShiftState done [21:57:17]opened in 1722125648 [21:57:17]opened+sec_in_day 1722212048 [21:57:17]quantity*price = 8500 [21:57:17]sum+1 = 8501 [21:57:17]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46123428 Сигареты Mevius Wind Blue 1.000 * 155.00 = 155.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 240.00 НСП 1% : 2.12 НДС 12% : 25.49 Наличными: 0.00 Безнал.: 240.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 185 28.07.2024 21:57 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2134 ФПД: 33043748129206 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T215724&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2134&fm=33043748129206&tin=02508201610067®Number=0000000000189667&sum=24000 0 [21:57:18]StoreToDocumentArchive [21:57:18]shift 13 fd 2134 [21:57:18]save to /storage/0013/doc_00002134 [21:57:18]save last doc name /storage/0013/doc_00002134 to /storage/kkm_last_doc_name [21:57:18]save OK [21:57:18]Clear old archive folders... [21:57:18]ProcessDocumentItem done err = 0, tmpTLVsize=383 [21:57:18]tlvbuf is 02045F60 [21:57:18]SAM_PROTO_ClearQueue [21:57:18]wFMCommunicate request_size=4 [21:57:18]MH_SAM_APDU [21:57:18]CAPDU: 80 09 00 00 [21:57:18]Write to MH i2c: E2 08 00 63 64 80 09 00 00 00 00 00 00 39 [21:57:18]Write i2c OK [21:57:18]MH_I2C_Read... [21:57:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:57:18]Read from MH i2c: E2 [21:57:18]MH_I2C_Read... [21:57:18]Read from MH i2c: E2 03 00 [21:57:18]MH_I2C_Read... [21:57:18]Read from MH i2c: E2 03 00 63 64 00 90 00 3B [21:57:18]RAPDU: 90 00 [21:57:18]wFMCommunicate OK [21:57:18]SAM_PROTO_ClearQueue done [21:57:18]KKMCreateOFDPacket [21:57:18]OFDProtocolAddRootSTLVToBuf [21:57:18]FM_MakeSignedData [21:57:18]FM_MakeSignedData [21:57:18]SAM_PROTO_SignData [21:57:18]wFMCommunicate request_size=4 [21:57:18]MH_SAM_APDU [21:57:18]CAPDU: 80 0D 01 02 [21:57:18]Write to MH i2c: E2 08 00 64 64 80 0D 01 02 00 00 00 00 41 [21:57:18]Write i2c OK [21:57:18]MH_I2C_Read... [21:57:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:57:18]Read from MH i2c: E2 [21:57:18]MH_I2C_Read... [21:57:18]Read from MH i2c: E2 03 00 [21:57:18]MH_I2C_Read... [21:57:18]Read from MH i2c: E2 03 00 64 64 00 90 00 3C [21:57:18]RAPDU: 90 00 [21:57:18]wFMCommunicate OK [21:57:18]wFMCommunicate request_size=255 [21:57:18]MH_SAM_APDU [21:57:18]CAPDU: 80 0D 02 02 FA 03 00 7F 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 38 30 33 06 04 29 00 D0 A7 D0 B0 D0 B9 20 D0 9B D0 B5 D1 82 D1 81 20 D0 93 D0 BE D1 83 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 30 2C 39 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 60 00 8A 04 08 00 34 36 31 32 33 34 32 38 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 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 [21:57:18]Write to MH i2c: E2 02 01 65 64 80 0D 02 02 FA 00 03 00 7F 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 38 30 33 06 04 29 00 D0 A7 D0 B0 D0 B9 20 D0 9B D0 B5 D1 82 D1 81 20 D0 93 D0 BE D1 83 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 30 2C 39 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 60 00 8A 04 08 00 34 36 31 32 33 34 32 38 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 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 7F [21:57:18]Write i2c OK [21:57:18]MH_I2C_Read... [21:57:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:57:18]Read from MH i2c: E2 [21:57:18]MH_I2C_Read... [21:57:18]Read from MH i2c: E2 03 00 [21:57:18]MH_I2C_Read... [21:57:18]Read from MH i2c: E2 03 00 65 64 00 90 00 3D [21:57:18]RAPDU: 90 00 [21:57:18]wFMCommunicate OK [21:57:18]wFMCommunicate request_size=142 [21:57:18]MH_SAM_APDU [21:57:18]CAPDU: 80 0D 02 02 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 5D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 C4 BE A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 56 08 00 00 35 04 06 00 1E 0D 98 DE 89 B6 [21:57:18]Write to MH i2c: E2 91 00 66 64 80 0D 02 02 89 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 5D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 C4 BE A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 56 08 00 00 35 04 06 00 1E 0D 98 DE 89 B6 00 00 39 [21:57:18]Write i2c OK [21:57:18]MH_I2C_Read... [21:57:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:57:18]Read from MH i2c: E2 [21:57:18]MH_I2C_Read... [21:57:18]Read from MH i2c: E2 03 00 [21:57:18]MH_I2C_Read... [21:57:18]Read from MH i2c: E2 03 00 66 64 00 90 00 3E [21:57:18]RAPDU: 90 00 [21:57:18]wFMCommunicate OK [21:57:18]wFMCommunicate request_size=4 [21:57:18]MH_SAM_APDU [21:57:18]CAPDU: 80 0D 03 02 [21:57:18]Write to MH i2c: E2 08 00 67 64 80 0D 03 02 00 00 00 00 46 [21:57:18]Write i2c OK [21:57:18]MH_I2C_Read... [21:57:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:57:18]Read from MH i2c: E2 [21:57:18]MH_I2C_Read... [21:57:18]Read from MH i2c: E2 0B 00 [21:57:18]MH_I2C_Read... [21:57:18]Read from MH i2c: E2 0B 00 67 64 00 20 B7 69 B2 A9 41 E3 02 90 00 08 [21:57:18]RAPDU: 20 B7 69 B2 A9 41 E3 02 90 00 [21:57:18]wFMCommunicate OK [21:57:18]SAM_PROTO_SignData done [21:57:18]FM_MakeSignedData done [21:57:18]CreateOFDProtocolMessage [21:57:18]wFMCommunicate request_size=4 [21:57:18]MH_SAM_APDU [21:57:18]CAPDU: 80 11 00 00 [21:57:18]Write to MH i2c: E2 08 00 68 64 80 11 00 00 00 00 00 00 46 [21:57:18]Write i2c OK [21:57:18]MH_I2C_Read... [21:57:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:57:18]Read from MH i2c: E2 [21:57:18]MH_I2C_Read... [21:57:18]Read from MH i2c: E2 17 00 [21:57:18]MH_I2C_Read... [21:57:18]Read from MH i2c: E2 17 00 68 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 96 [21:57:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [21:57:18]wFMCommunicate OK [21:57:18]CreateOFDProtocolMessage done [21:57:18]OFDSenderStorePacket 2134 [21:57:18]StoreOFDPacket docnum=2134 [21:57:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 93 01 00 00 76 66 8B 01 BB E4 5A 03 01 00 03 00 7F 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 38 30 33 06 04 29 00 D0 A7 D0 B0 D0 B9 20 D0 9B D0 B5 D1 82 D1 81 20 D0 93 D0 BE D1 83 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 30 2C 39 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 60 00 8A 04 08 00 34 36 31 32 33 34 32 38 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 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 5D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 C4 BE A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 56 08 00 00 35 04 06 00 1E 0D 98 DE 89 B6 20 B7 69 B2 A9 41 E3 02 [21:57:18]CheckFolder [21:57:18]dirname=/storage/ofd_packets [21:57:18]CheckFolder done [21:57:18]ProducePacketName [21:57:18]name=ofd_packets/00002134 [21:57:18]NVStorageSaveData ofd_packets/00002134 [21:57:18]File name is /storage/ofd_packets/00002134 [21:57:18]Write 433 bytes [21:57:18]NVStorageSaveData done [21:57:18]OFDSenderStorePacket done [21:57:18]KKMCreateOFDPacket done [21:57:18]NVStorageSaveData kkm_last_timestamp [21:57:18]File name is /storage/kkm_last_timestamp [21:57:18]Write 4 bytes [21:57:19]NVStorageSaveData done [21:57:19]ExternCall_PrintAddStr [21:57:19]wPrintStart [21:57:19]Write to MH i2c: 01 00 00 69 64 CD [21:57:19]OFD Sender: Processing packet 2134 [packets to send 1, broken 0] [21:57:19]ProducePacketName [21:57:19]name=ofd_packets/00002134 [21:57:19]OFD Sender: To server: pG, [21:57:19]CommunicateWithHost lk.salyk.kg:30040 [21:57:19]ConnectInit lk.salyk.kg [21:57:19]Write i2c OK [21:57:19]MH_I2C_Read... [21:57:19]Read from MH i2c: 01 [21:57:19]MH_I2C_Read... [21:57:19]Read from MH i2c: 01 07 00 [21:57:19]MH_I2C_Read... [21:57:19]Read from MH i2c: 01 07 00 69 64 00 00 00 00 00 FF 0F E2 [21:57:19]RasterBufferAndPrint [21:57:19]line Счет N : (3)126430 [21:57:19]line ИНН: 02508201610067 [21:57:19]line Контрольно-Кассовый Чек [21:57:19]line ПРОДАЖА [21:57:19]line Товар: 4700003010803 [21:57:19]line Чай Летс Гоу Малина 0,9л [21:57:19]line 1.000 * 85.00 [21:57:19]line = 85.00 [21:57:19]line НДС 12% НСП 1% [21:57:19]line > о реализуемом товаре [21:57:19]line Товар: 46123428 [21:57:19]line Сигареты Mevius Wind Blue [21:57:19]line 1.000 * 155.00 [21:57:19]line = 155.00 [21:57:19]line НДС 12% НСП 1% [21:57:19]line > о реализуемом товаре [21:57:19]line ИТОГО: 240.00 [21:57:19]line НСП 1% : 2.12 [21:57:19]line НДС 12% : 25.49 [21:57:19]line Наличными: 0.00 [21:57:19]line Безнал.: 240.00 [21:57:19]line Место: АЗС № 127 "Партнер Нефть" [21:57:19]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [21:57:19]line СНО: Общий режим [21:57:19]line Чек 185 28.07.2024 21:57 [21:57:19]line Смена: 13 ФФД: 1.0 [21:57:19]line ЗНМ: 0300000161 [21:57:19]line РНМ: 0000000000189667 [21:57:19]line Версия ККМ: v1.0 [21:57:19]line Платежная система: O! деньги [21:57:19]line ФМ: 0000000002094248 [21:57:19]line ФД: 2134 [21:57:19]line ФПД: 33043748129206 [21:57:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T215724&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2134&fm=33043748129206&tin=02508201610067®Number=0000000000189667&sum=24000 [21:57:19]line 0 [21:57:19]written 0, free lines is 4095 [21:57:19]Connected sock=10 [21:57:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 93 01 00 00 76 66 8B 01 BB E4 5A 03 01 00 03 00 7F 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 38 30 33 06 04 29 00 D0 A7 D0 B0 D0 B9 20 D0 9B D0 B5 D1 82 D1 81 20 D0 93 D0 BE D1 83 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 30 2C 39 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 60 00 8A 04 08 00 34 36 31 32 33 34 32 38 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 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 5D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 C4 BE A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 56 08 00 00 35 04 06 00 1E 0D 98 DE 89 B6 20 B7 69 B2 A9 41 E3 02 [21:57:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 80 F0 47 00 8C 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 56 08 00 00 F4 03 04 00 33 6A A6 66 B6 04 01 00 00 3F D7 64 F6 F1 1D 06 58 [21:57:19]CommunicateWithHost err = 0 [21:57:19]CheckOFDResponse [21:57:19]1017 (14) - 77093643461234 [21:57:19]1041 (16) - 0000000002094248 [21:57:19]1040 (4) - 2134 [21:57:19]1012 (4) - 28.07.2024 15:56 [21:57:19]1206 (1) - 0 [21:57:19]OFD Sender: Remove packet 2134 [21:57:19]ProducePacketName [21:57:19]name=ofd_packets/00002134 [21:57:19]NVStorageDeleteData [21:57:19]Write to MH i2c: 01 00 00 99 64 FD [21:57:19]Write i2c OK [21:57:19]MH_I2C_Read... [21:57:19]Read from MH i2c: 01 [21:57:19]MH_I2C_Read... [21:57:19]Read from MH i2c: 01 07 00 [21:57:19]MH_I2C_Read... [21:57:19]Read from MH i2c: 01 07 00 99 64 00 00 00 00 00 B1 0C C1 [21:57:19]RasterBufferAndPrint [21:57:19]line [21:57:19]line [21:57:19]line [21:57:19]line [21:57:19]line [21:57:19]written 0, free lines is 3258 [21:57:19]MH_Cut [21:57:19]Write to MH i2c: D1 01 00 A0 64 01 D6 [21:57:19]Write i2c OK [21:57:19]MH_I2C_Read... [21:57:19]Read from MH i2c: D1 [21:57:19]MH_I2C_Read... [21:57:19]Read from MH i2c: D1 01 00 [21:57:19]MH_I2C_Read... [21:57:19]Read from MH i2c: D1 01 00 A0 64 00 D5 [21:57:19]Write to MH i2c: 01 00 00 A1 64 05 [21:57:19]Write i2c OK [21:57:19]MH_I2C_Read... [21:57:20]OFD Sender: No OFD packet to send [21:57:20]*** Cut start [21:57:20]*** Partial cut [21:57:20]*** CUTSNS_PIN = 1 [21:57:20]*** CUTSNS_PIN = 0 [21:57:20]*** Brake cut motor [21:57:21]Read from MH i2c: 01 [21:57:21]MH_I2C_Read... [21:57:21]*** Stop cut motor [21:57:21]*** Cut end [21:57:21]Read from MH i2c: 01 07 00 [21:57:21]MH_I2C_Read... [21:57:21]Read from MH i2c: 01 07 00 A1 64 00 00 00 00 00 FF 0F 1A [21:57:21]process_action close_receipt done [21:57:21]requested_data is exist [21:57:21]produce_requested_data [21:57:21]requested_item fm.sn is exist - process it [21:57:21]wFMCommunicate request_size=4 [21:57:21]MH_SAM_APDU [21:57:21]CAPDU: 80 11 00 00 [21:57:21]Write to MH i2c: E2 08 00 A2 64 80 11 00 00 00 00 00 00 80 [21:57:21]Write i2c OK [21:57:21]MH_I2C_Read... [21:57:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:57:21]Read from MH i2c: E2 [21:57:21]MH_I2C_Read... [21:57:21]Read from MH i2c: E2 17 00 [21:57:21]MH_I2C_Read... [21:57:21]Read from MH i2c: E2 17 00 A2 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 D0 [21:57:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [21:57:21]wFMCommunicate OK [21:57:21]requested_item fd.num is exist - process it [21:57:21]SAM_PROTO_GetFieldsCounters [21:57:21]wFMCommunicate request_size=4 [21:57:21]MH_SAM_APDU [21:57:21]CAPDU: 80 13 00 00 [21:57:21]Write to MH i2c: E2 08 00 A3 64 80 13 00 00 00 00 00 00 83 [21:57:21]Write i2c OK [21:57:21]MH_I2C_Read... [21:57:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:57:21]Read from MH i2c: E2 [21:57:21]MH_I2C_Read... [21:57:21]Read from MH i2c: E2 62 00 [21:57:21]MH_I2C_Read... [21:57:21]Read from MH i2c: E2 62 00 A3 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 56 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [21:57:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 56 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:57:21]wFMCommunicate OK [21:57:21]SAM_PROTO_GetFieldsCounters done [21:57:21]requested_item shift.num is exist - process it [21:57:21]requested_item shift.opened is exist - process it [21:57:21]req_shift_opened [21:57:21]FM_GetShiftState [21:57:21]SAM_PROTO_GetShiftState [21:57:21]wFMCommunicate request_size=4 [21:57:21]MH_SAM_APDU [21:57:21]CAPDU: 80 13 01 00 [21:57:21]Write to MH i2c: E2 08 00 A4 64 80 13 01 00 00 00 00 00 85 [21:57:21]Write i2c OK [21:57:21]MH_I2C_Read... [21:57:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:57:21]Read from MH i2c: E2 [21:57:21]MH_I2C_Read... [21:57:21]Read from MH i2c: E2 0E 00 [21:57:21]MH_I2C_Read... [21:57:21]Read from MH i2c: E2 0E 00 A4 64 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 79 [21:57:21]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [21:57:21]wFMCommunicate OK [21:57:21]SAM_PROTO_GetShiftState done [21:57:21]FM_GetShiftState done [21:57:21]req_shift_opened done [21:57:21]requested_item shift.open_date is exist - process it [21:57:21]req_shift_open_date [21:57:21]req_shift_open_date done [21:57:21]produce_requested_data done [21:57:21]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2134,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [21:57:21]process_action_free close_receipt [21:57:21]json_value_free [21:57:21]json_value_free done [21:57:21]process_json_proto returns [21:57:21]Send response to host [21:57:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2134,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [21:57:21]free response buf [21:57:21]execute_script done [21:57:21]execute_script returns [21:57:21]free content buf [21:57:21]Sock 9.Close socket [21:57:21]Sock 9.Thread stoped [21:57:25]OFD Sender: No OFD packet to send [21:57:30]OFD Sender: No OFD packet to send [21:57:35]OFD Sender: No OFD packet to send [21:57:40]OFD Sender: No OFD packet to send [21:57:45]OFD Sender: No OFD packet to send [21:57:50]OFD Sender: No OFD packet to send [21:57:55]OFD Sender: No OFD packet to send [21:58:00]OFD Sender: No OFD packet to send [21:58:05]OFD Sender: No OFD packet to send [21:58:10]OFD Sender: No OFD packet to send [21:58:15]OFD Sender: No OFD packet to send [21:58:20]OFD Sender: No OFD packet to send [21:58:25]OFD Sender: No OFD packet to send [21:58:30]OFD Sender: No OFD packet to send [21:58:35]OFD Sender: No OFD packet to send [21:58:40]OFD Sender: No OFD packet to send [21:58:45]OFD Sender: No OFD packet to send [21:58:50]OFD Sender: No OFD packet to send [21:58:51]accept exits with 8 [21:58:51]New connection [21:58:51]New thread 3067460964 created [21:58:51]Thread 3067317604 joined [21:58:51]Waiting for new connection... [21:58:51] Sock 8.Parse request [21:58:51]Sock 8.Check first char [21:58:51]Sock 8.First char is OK [21:58:51]request: POST /json_proto HTTP/1.0 [21:58:51]Method: POST [21:58:51]URL: /json_proto [21:58:51]Method is POST - this is cgi request [21:58:51]url: /json_proto [21:58:51]query_string will be loaded in cgi processing [21:58:51]execute_cgi json_proto POST (null) [21:58:51]execute_cgi path=json_proto method=POST [21:58:51]POST find Content-Length [21:58:51]Host: 172.17.45.132:8080 [21:58:51]Content-Length: 1037 [21:58:51]Content-Type: application/json [21:58:51] [21:58:51]POST finish read [21:58:51]Found Content-Length = 1037 [21:58:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126431", "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 }]} ,{ "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 565.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:58:51]execute_script... [21:58:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126431", "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 }]} ,{ "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 565.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:58:51]POST & json_proto [21:58:51]process_json_proto [21:58:51]json parsed OK: [21:58:51]protocol is kg_v1.0 [21:58:51]action value=close_receipt [21:58:51]process_action close_receipt [21:58:51]cmd_close_receipt [21:58:51]MH_GetDate [21:58:51]Write to MH i2c: F0 00 00 A5 64 F8 [21:58:51]Write i2c OK [21:58:51]MH_I2C_Read... [21:58:51]Read from MH i2c: F0 [21:58:51]MH_I2C_Read... [21:58:51]Read from MH i2c: F0 09 00 [21:58:51]MH_I2C_Read... [21:58:51]Read from MH i2c: F0 09 00 A5 64 00 22 BF A6 66 E3 0B 90 66 D2 [21:58:51]GetLastDocTimeStamp 1722203844 [21:58:51]current date 1722203938 [21:58:51]FM_GetShiftState [21:58:51]SAM_PROTO_GetShiftState [21:58:51]wFMCommunicate request_size=4 [21:58:51]MH_SAM_APDU [21:58:51]CAPDU: 80 13 01 00 [21:58:51]Write to MH i2c: E2 08 00 A6 64 80 13 01 00 00 00 00 00 87 [21:58:51]Write i2c OK [21:58:51]MH_I2C_Read... [21:58:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:58:51]Read from MH i2c: E2 [21:58:51]MH_I2C_Read... [21:58:51]Read from MH i2c: E2 0E 00 [21:58:51]MH_I2C_Read... [21:58:51]Read from MH i2c: E2 0E 00 A6 64 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 7B [21:58:51]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [21:58:51]wFMCommunicate OK [21:58:51]SAM_PROTO_GetShiftState done [21:58:51]FM_GetShiftState done [21:58:51]opened in 1722125648 [21:58:51]opened+sec_in_day 1722212048 [21:58:51]quantity*price = 14000 [21:58:51]sum+1 = 14001 [21:58:51]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700003150486 Водка Ороон 0,5 1.000 * 425.00 = 425.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 565.00 НСП 1% : 5.00 НДС 12% : 60.00 Наличными: 0.00 Безнал.: 565.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 186 28.07.2024 21:58 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: Бакай Банк ФМ: 0000000002094248 ФД: 2135 ФПД: 87919128872710 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T215858&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2135&fm=87919128872710&tin=02508201610067®Number=0000000000189667&sum=56500 0 [21:58:52]StoreToDocumentArchive [21:58:52]shift 13 fd 2135 [21:58:52]save to /storage/0013/doc_00002135 [21:58:52]save last doc name /storage/0013/doc_00002135 to /storage/kkm_last_doc_name [21:58:52]save OK [21:58:52]Clear old archive folders... [21:58:52]ProcessDocumentItem done err = 0, tmpTLVsize=370 [21:58:52]tlvbuf is 01F642C0 [21:58:52]SAM_PROTO_ClearQueue [21:58:52]wFMCommunicate request_size=4 [21:58:52]MH_SAM_APDU [21:58:52]CAPDU: 80 09 00 00 [21:58:52]Write to MH i2c: E2 08 00 B3 64 80 09 00 00 00 00 00 00 89 [21:58:52]Write i2c OK [21:58:52]MH_I2C_Read... [21:58:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:58:52]Read from MH i2c: E2 [21:58:52]MH_I2C_Read... [21:58:52]Read from MH i2c: E2 03 00 [21:58:52]MH_I2C_Read... [21:58:52]Read from MH i2c: E2 03 00 B3 64 00 90 00 8B [21:58:52]RAPDU: 90 00 [21:58:52]wFMCommunicate OK [21:58:52]SAM_PROTO_ClearQueue done [21:58:52]KKMCreateOFDPacket [21:58:52]OFDProtocolAddRootSTLVToBuf [21:58:52]FM_MakeSignedData [21:58:52]FM_MakeSignedData [21:58:52]SAM_PROTO_SignData [21:58:52]wFMCommunicate request_size=4 [21:58:52]MH_SAM_APDU [21:58:52]CAPDU: 80 0D 01 02 [21:58:52]Write to MH i2c: E2 08 00 B4 64 80 0D 01 02 00 00 00 00 91 [21:58:52]Write i2c OK [21:58:52]MH_I2C_Read... [21:58:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:58:52]Read from MH i2c: E2 [21:58:52]MH_I2C_Read... [21:58:52]Read from MH i2c: E2 03 00 [21:58:52]MH_I2C_Read... [21:58:52]Read from MH i2c: E2 03 00 B4 64 00 90 00 8C [21:58:52]RAPDU: 90 00 [21:58:52]wFMCommunicate OK [21:58:52]wFMCommunicate request_size=255 [21:58:52]MH_SAM_APDU [21:58:52]CAPDU: 80 0D 02 02 FA 03 00 72 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 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 B4 DC 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 [21:58:52]Write to MH i2c: E2 02 01 B5 64 80 0D 02 02 FA 00 03 00 72 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 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 B4 DC 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 00 00 2D [21:58:52]Write i2c OK [21:58:52]MH_I2C_Read... [21:58:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:58:52]Read from MH i2c: E2 [21:58:52]MH_I2C_Read... [21:58:52]Read from MH i2c: E2 03 00 [21:58:52]MH_I2C_Read... [21:58:52]Read from MH i2c: E2 03 00 B5 64 00 90 00 8D [21:58:52]RAPDU: 90 00 [21:58:52]wFMCommunicate OK [21:58:52]wFMCommunicate request_size=129 [21:58:52]MH_SAM_APDU [21:58:52]CAPDU: 80 0D 02 02 7C 01 F3 03 06 00 70 17 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 DC 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 22 BF A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 57 08 00 00 35 04 06 00 4F F6 44 72 07 06 [21:58:52]Write to MH i2c: E2 84 00 B6 64 80 0D 02 02 7C 00 01 F3 03 06 00 70 17 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 DC 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 22 BF A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 57 08 00 00 35 04 06 00 4F F6 44 72 07 06 00 00 FE [21:58:52]Write i2c OK [21:58:52]MH_I2C_Read... [21:58:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:58:52]Read from MH i2c: E2 [21:58:52]MH_I2C_Read... [21:58:52]Read from MH i2c: E2 03 00 [21:58:52]MH_I2C_Read... [21:58:52]Read from MH i2c: E2 03 00 B6 64 00 90 00 8E [21:58:52]RAPDU: 90 00 [21:58:52]wFMCommunicate OK [21:58:52]wFMCommunicate request_size=4 [21:58:52]MH_SAM_APDU [21:58:52]CAPDU: 80 0D 03 02 [21:58:52]Write to MH i2c: E2 08 00 B7 64 80 0D 03 02 00 00 00 00 96 [21:58:52]Write i2c OK [21:58:52]MH_I2C_Read... [21:58:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:58:52]Read from MH i2c: E2 [21:58:52]MH_I2C_Read... [21:58:52]Read from MH i2c: E2 0B 00 [21:58:52]MH_I2C_Read... [21:58:52]Read from MH i2c: E2 0B 00 B7 64 00 3A E6 61 52 13 4D D6 31 90 00 D1 [21:58:52]RAPDU: 3A E6 61 52 13 4D D6 31 90 00 [21:58:52]wFMCommunicate OK [21:58:52]SAM_PROTO_SignData done [21:58:52]FM_MakeSignedData done [21:58:52]CreateOFDProtocolMessage [21:58:52]wFMCommunicate request_size=4 [21:58:52]MH_SAM_APDU [21:58:52]CAPDU: 80 11 00 00 [21:58:52]Write to MH i2c: E2 08 00 B8 64 80 11 00 00 00 00 00 00 96 [21:58:52]Write i2c OK [21:58:52]MH_I2C_Read... [21:58:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:58:52]Read from MH i2c: E2 [21:58:52]MH_I2C_Read... [21:58:52]Read from MH i2c: E2 17 00 [21:58:52]MH_I2C_Read... [21:58:52]Read from MH i2c: E2 17 00 B8 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 E6 [21:58:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [21:58:52]wFMCommunicate OK [21:58:52]CreateOFDProtocolMessage done [21:58:52]OFDSenderStorePacket 2135 [21:58:52]StoreOFDPacket docnum=2135 [21:58:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 86 01 00 00 B8 95 7E 01 73 4A 5A 03 01 00 03 00 72 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 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 B4 DC 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 17 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 DC 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 22 BF A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 57 08 00 00 35 04 06 00 4F F6 44 72 07 06 3A E6 61 52 13 4D D6 31 [21:58:52]CheckFolder [21:58:52]dirname=/storage/ofd_packets [21:58:52]CheckFolder done [21:58:52]ProducePacketName [21:58:52]name=ofd_packets/00002135 [21:58:52]NVStorageSaveData ofd_packets/00002135 [21:58:52]File name is /storage/ofd_packets/00002135 [21:58:52]Write 420 bytes [21:58:52]NVStorageSaveData done [21:58:52]OFDSenderStorePacket done [21:58:52]KKMCreateOFDPacket done [21:58:52]NVStorageSaveData kkm_last_timestamp [21:58:52]File name is /storage/kkm_last_timestamp [21:58:52]Write 4 bytes [21:58:52]NVStorageSaveData done [21:58:53]ExternCall_PrintAddStr [21:58:53]wPrintStart [21:58:53]Write to MH i2c: 01 00 00 B9 64 1D [21:58:53]OFD Sender: Processing packet 2135 [packets to send 1, broken 0] [21:58:53]ProducePacketName [21:58:53]name=ofd_packets/00002135 [21:58:53]OFD Sender: To server: pG, [21:58:53]CommunicateWithHost lk.salyk.kg:30040 [21:58:53]ConnectInit lk.salyk.kg [21:58:53]Write i2c OK [21:58:53]MH_I2C_Read... [21:58:53]Read from MH i2c: 01 [21:58:53]MH_I2C_Read... [21:58:53]Read from MH i2c: 01 07 00 [21:58:53]MH_I2C_Read... [21:58:53]Read from MH i2c: 01 07 00 B9 64 00 00 00 00 00 FF 0F 32 [21:58:53]RasterBufferAndPrint [21:58:53]line Счет N : (3)126431 [21:58:53]line ИНН: 02508201610067 [21:58:53]line Контрольно-Кассовый Чек [21:58:53]line ПРОДАЖА [21:58:53]line Товар: 48743570 [21:58:53]line Сигареты Winston XStyle Blue [21:58:53]line 1.000 * 140.00 [21:58:53]line = 140.00 [21:58:53]line НДС 12% НСП 1% [21:58:53]line > о реализуемом товаре [21:58:53]line Товар: 4700003150486 [21:58:53]line Водка Ороон 0,5 [21:58:53]line 1.000 * 425.00 [21:58:53]line = 425.00 [21:58:53]line НДС 12% НСП 1% [21:58:53]line > о реализуемом товаре [21:58:53]line ИТОГО: 565.00 [21:58:53]line НСП 1% : 5.00 [21:58:53]line НДС 12% : 60.00 [21:58:53]line Наличными: 0.00 [21:58:53]line Безнал.: 565.00 [21:58:53]line Место: АЗС № 127 "Партнер Нефть" [21:58:53]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [21:58:53]line СНО: Общий режим [21:58:53]line Чек 186 28.07.2024 21:58 [21:58:53]line Смена: 13 ФФД: 1.0 [21:58:53]line ЗНМ: 0300000161 [21:58:53]line РНМ: 0000000000189667 [21:58:53]line Версия ККМ: v1.0 [21:58:53]line Платежная система: Бакай Банк [21:58:53]line ФМ: 0000000002094248 [21:58:53]line ФД: 2135 [21:58:53]line ФПД: 87919128872710 [21:58:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T215858&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2135&fm=87919128872710&tin=02508201610067®Number=0000000000189667&sum=56500 [21:58:53]line 0 [21:58:53]written 0, free lines is 4095 [21:58:53]Connected sock=10 [21:58:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 86 01 00 00 B8 95 7E 01 73 4A 5A 03 01 00 03 00 72 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 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 B4 DC 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 17 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 DC 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 22 BF A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 57 08 00 00 35 04 06 00 4F F6 44 72 07 06 3A E6 61 52 13 4D D6 31 [21:58:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 A5 7F 47 00 25 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 57 08 00 00 F4 03 04 00 91 6A A6 66 B6 04 01 00 00 C7 AC 1E C4 35 B5 F1 B1 [21:58:53]CommunicateWithHost err = 0 [21:58:53]CheckOFDResponse [21:58:53]1017 (14) - 77093643461234 [21:58:53]1041 (16) - 0000000002094248 [21:58:53]1040 (4) - 2135 [21:58:53]1012 (4) - 28.07.2024 15:58 [21:58:53]1206 (1) - 0 [21:58:53]OFD Sender: Remove packet 2135 [21:58:53]ProducePacketName [21:58:53]name=ofd_packets/00002135 [21:58:53]NVStorageDeleteData [21:58:53]Write to MH i2c: 01 00 00 E9 64 4D [21:58:53]Write i2c OK [21:58:53]MH_I2C_Read... [21:58:53]Read from MH i2c: 01 [21:58:53]MH_I2C_Read... [21:58:53]Read from MH i2c: 01 07 00 [21:58:53]MH_I2C_Read... [21:58:53]Read from MH i2c: 01 07 00 E9 64 00 00 00 00 00 AD 0C 0D [21:58:53]RasterBufferAndPrint [21:58:53]line [21:58:53]line [21:58:53]line [21:58:53]line [21:58:53]line [21:58:53]written 0, free lines is 3252 [21:58:53]MH_Cut [21:58:53]Write to MH i2c: D1 01 00 F0 64 01 26 [21:58:53]Write i2c OK [21:58:53]MH_I2C_Read... [21:58:53]Read from MH i2c: D1 [21:58:53]MH_I2C_Read... [21:58:53]Read from MH i2c: D1 01 00 [21:58:53]MH_I2C_Read... [21:58:53]Read from MH i2c: D1 01 00 F0 64 00 25 [21:58:53]Write to MH i2c: 01 00 00 F1 64 55 [21:58:53]Write i2c OK [21:58:53]MH_I2C_Read... [21:58:54]OFD Sender: No OFD packet to send [21:58:54]*** Cut start [21:58:54]*** Partial cut [21:58:54]*** CUTSNS_PIN = 1 [21:58:54]*** CUTSNS_PIN = 0 [21:58:54]*** Brake cut motor [21:58:55]Read from MH i2c: 01 [21:58:55]MH_I2C_Read... [21:58:55]*** Stop cut motor [21:58:55]*** Cut end [21:58:55]Read from MH i2c: 01 07 00 [21:58:55]MH_I2C_Read... [21:58:55]Read from MH i2c: 01 07 00 F1 64 00 00 00 00 00 FF 0F 6A [21:58:55]process_action close_receipt done [21:58:55]requested_data is exist [21:58:55]produce_requested_data [21:58:55]requested_item fm.sn is exist - process it [21:58:55]wFMCommunicate request_size=4 [21:58:55]MH_SAM_APDU [21:58:55]CAPDU: 80 11 00 00 [21:58:55]Write to MH i2c: E2 08 00 F2 64 80 11 00 00 00 00 00 00 D0 [21:58:55]Write i2c OK [21:58:55]MH_I2C_Read... [21:58:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:58:55]Read from MH i2c: E2 [21:58:55]MH_I2C_Read... [21:58:55]Read from MH i2c: E2 17 00 [21:58:55]MH_I2C_Read... [21:58:55]Read from MH i2c: E2 17 00 F2 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 20 [21:58:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [21:58:55]wFMCommunicate OK [21:58:55]requested_item fd.num is exist - process it [21:58:55]SAM_PROTO_GetFieldsCounters [21:58:55]wFMCommunicate request_size=4 [21:58:55]MH_SAM_APDU [21:58:55]CAPDU: 80 13 00 00 [21:58:55]Write to MH i2c: E2 08 00 F3 64 80 13 00 00 00 00 00 00 D3 [21:58:55]Write i2c OK [21:58:55]MH_I2C_Read... [21:58:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:58:55]Read from MH i2c: E2 [21:58:55]MH_I2C_Read... [21:58:55]Read from MH i2c: E2 62 00 [21:58:55]MH_I2C_Read... [21:58:55]Read from MH i2c: E2 62 00 F3 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 57 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 97 [21:58:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 57 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:58:55]wFMCommunicate OK [21:58:55]SAM_PROTO_GetFieldsCounters done [21:58:55]requested_item shift.num is exist - process it [21:58:55]requested_item shift.opened is exist - process it [21:58:55]req_shift_opened [21:58:55]FM_GetShiftState [21:58:55]SAM_PROTO_GetShiftState [21:58:55]wFMCommunicate request_size=4 [21:58:55]MH_SAM_APDU [21:58:55]CAPDU: 80 13 01 00 [21:58:55]Write to MH i2c: E2 08 00 F4 64 80 13 01 00 00 00 00 00 D5 [21:58:55]Write i2c OK [21:58:55]MH_I2C_Read... [21:58:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:58:55]Read from MH i2c: E2 [21:58:55]MH_I2C_Read... [21:58:55]Read from MH i2c: E2 0E 00 [21:58:55]MH_I2C_Read... [21:58:55]Read from MH i2c: E2 0E 00 F4 64 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 C9 [21:58:55]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [21:58:55]wFMCommunicate OK [21:58:55]SAM_PROTO_GetShiftState done [21:58:55]FM_GetShiftState done [21:58:55]req_shift_opened done [21:58:55]requested_item shift.open_date is exist - process it [21:58:55]req_shift_open_date [21:58:55]req_shift_open_date done [21:58:55]produce_requested_data done [21:58:55]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2135,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [21:58:55]process_action_free close_receipt [21:58:55]json_value_free [21:58:55]json_value_free done [21:58:55]process_json_proto returns [21:58:55]Send response to host [21:58:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2135,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [21:58:55]free response buf [21:58:55]execute_script done [21:58:55]execute_script returns [21:58:55]free content buf [21:58:55]Sock 8.Close socket [21:58:55]Sock 8.Thread stoped [21:58:59]OFD Sender: No OFD packet to send [21:59:04]OFD Sender: No OFD packet to send [21:59:09]OFD Sender: No OFD packet to send [21:59:14]OFD Sender: No OFD packet to send [21:59:19]OFD Sender: No OFD packet to send [21:59:24]OFD Sender: No OFD packet to send [21:59:29]OFD Sender: No OFD packet to send [21:59:34]OFD Sender: No OFD packet to send [21:59:39]OFD Sender: No OFD packet to send [21:59:44]OFD Sender: No OFD packet to send [21:59:49]OFD Sender: No OFD packet to send [21:59:54]OFD Sender: No OFD packet to send [21:59:59]OFD Sender: No OFD packet to send [22:00:04]OFD Sender: No OFD packet to send [22:00:09]OFD Sender: No OFD packet to send [22:00:14]OFD Sender: No OFD packet to send [22:00:19]OFD Sender: No OFD packet to send [22:00:24]OFD Sender: No OFD packet to send [22:00:29]OFD Sender: No OFD packet to send [22:00:34]OFD Sender: No OFD packet to send [22:00:39]OFD Sender: No OFD packet to send [22:00:44]OFD Sender: No OFD packet to send [22:00:49]OFD Sender: No OFD packet to send [22:00:54]OFD Sender: No OFD packet to send [22:00:59]OFD Sender: No OFD packet to send [22:01:04]OFD Sender: No OFD packet to send [22:01:09]OFD Sender: No OFD packet to send [22:01:14]OFD Sender: No OFD packet to send [22:01:19]OFD Sender: No OFD packet to send [22:01:24]OFD Sender: No OFD packet to send [22:01:29]OFD Sender: No OFD packet to send [22:01:34]OFD Sender: No OFD packet to send [22:01:39]OFD Sender: No OFD packet to send [22:01:44]OFD Sender: No OFD packet to send [22:01:49]OFD Sender: No OFD packet to send [22:01:54]OFD Sender: No OFD packet to send [22:01:59]OFD Sender: No OFD packet to send [22:02:04]OFD Sender: No OFD packet to send [22:02:09]OFD Sender: No OFD packet to send [22:02:14]OFD Sender: No OFD packet to send [22:02:19]OFD Sender: No OFD packet to send [22:02:24]OFD Sender: No OFD packet to send [22:02:29]OFD Sender: No OFD packet to send [22:02:34]OFD Sender: No OFD packet to send [22:02:39]OFD Sender: No OFD packet to send [22:02:44]OFD Sender: No OFD packet to send [22:02:49]OFD Sender: No OFD packet to send [22:02:54]OFD Sender: No OFD packet to send [22:02:59]OFD Sender: No OFD packet to send [22:03:04]OFD Sender: No OFD packet to send [22:03:09]OFD Sender: No OFD packet to send [22:03:14]OFD Sender: No OFD packet to send [22:03:19]OFD Sender: No OFD packet to send [22:03:24]OFD Sender: No OFD packet to send [22:03:29]OFD Sender: No OFD packet to send [22:03:34]OFD Sender: No OFD packet to send [22:03:39]OFD Sender: No OFD packet to send [22:03:41]accept exits with 9 [22:03:41]New connection [22:03:41]New thread 3067317604 created [22:03:41]Thread 3067460964 joined [22:03:41]Waiting for new connection... [22:03:41] Sock 9.Parse request [22:03:41]Sock 9.Check first char [22:03:41]Sock 9.First char is OK [22:03:41]request: POST /json_proto HTTP/1.0 [22:03:41]Method: POST [22:03:41]URL: /json_proto [22:03:41]Method is POST - this is cgi request [22:03:41]url: /json_proto [22:03:41]query_string will be loaded in cgi processing [22:03:41]execute_cgi json_proto POST (null) [22:03:41]execute_cgi path=json_proto method=POST [22:03:41]POST find Content-Length [22:03:41]Host: 172.17.45.132:8080 [22:03:41]Content-Length: 1088 [22:03:41]Content-Type: application/json [22:03:41] [22:03:41]POST finish read [22:03:41]Found Content-Length = 1088 [22:03:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126432", "tax_sys" : 0, "items" : [ { "code": "4700007690018", "name": "\u041D\u0435\u0433\u0430\u0437 \u0432\u043E\u0434\u0430 Pamir 0,5 \u043B", "price" : 30.00, "quantity" : 2.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 95.00, "quantity" : 2.000, "sum" : 190.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" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:03:41]execute_script... [22:03: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)126432", "tax_sys" : 0, "items" : [ { "code": "4700007690018", "name": "\u041D\u0435\u0433\u0430\u0437 \u0432\u043E\u0434\u0430 Pamir 0,5 \u043B", "price" : 30.00, "quantity" : 2.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 95.00, "quantity" : 2.000, "sum" : 190.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" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:03:41]POST & json_proto [22:03:41]process_json_proto [22:03:41]json parsed OK: [22:03:41]protocol is kg_v1.0 [22:03:41]action value=close_receipt [22:03:41]process_action close_receipt [22:03:41]cmd_close_receipt [22:03:41]MH_GetDate [22:03:41]Write to MH i2c: F0 00 00 F5 64 48 [22:03:41]Write i2c OK [22:03:41]MH_I2C_Read... [22:03:41]Read from MH i2c: F0 [22:03:41]MH_I2C_Read... [22:03:41]Read from MH i2c: F0 09 00 [22:03:41]MH_I2C_Read... [22:03:41]Read from MH i2c: F0 09 00 F5 64 00 44 C0 A6 66 E3 0B 90 66 45 [22:03:41]GetLastDocTimeStamp 1722203938 [22:03:41]current date 1722204228 [22:03:41]FM_GetShiftState [22:03:41]SAM_PROTO_GetShiftState [22:03:41]wFMCommunicate request_size=4 [22:03:41]MH_SAM_APDU [22:03:41]CAPDU: 80 13 01 00 [22:03:41]Write to MH i2c: E2 08 00 F6 64 80 13 01 00 00 00 00 00 D7 [22:03:41]Write i2c OK [22:03:41]MH_I2C_Read... [22:03:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:03:41]Read from MH i2c: E2 [22:03:41]MH_I2C_Read... [22:03:41]Read from MH i2c: E2 0E 00 [22:03:41]MH_I2C_Read... [22:03:41]Read from MH i2c: E2 0E 00 F6 64 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 CB [22:03:41]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [22:03:41]wFMCommunicate OK [22:03:41]SAM_PROTO_GetShiftState done [22:03:41]FM_GetShiftState done [22:03:41]opened in 1722125648 [22:03:41]opened+sec_in_day 1722212048 [22:03:41]quantity*price = 6000 [22:03:41]sum+1 = 6001 [22:03:41]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000482733 Напиток Nitro Fr газ класс ж/б 0,45л 2.000 * 95.00 = 190.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 250.00 НСП 1% : 2.21 НДС 12% : 26.55 Наличными: 0.00 Безнал.: 250.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 187 28.07.2024 22:03 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2136 ФПД: 210745270417756 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T220348&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2136&fm=210745270417756&tin=02508201610067®Number=0000000000189667&sum=25000 0 [22:03:42]StoreToDocumentArchive [22:03:42]shift 13 fd 2136 [22:03:42]save to /storage/0013/doc_00002136 [22:03:42]save last doc name /storage/0013/doc_00002136 to /storage/kkm_last_doc_name [22:03:42]save OK [22:03:42]Clear old archive folders... [22:03:42]ProcessDocumentItem done err = 0, tmpTLVsize=400 [22:03:42]tlvbuf is 020AEE50 [22:03:42]SAM_PROTO_ClearQueue [22:03:42]wFMCommunicate request_size=4 [22:03:42]MH_SAM_APDU [22:03:42]CAPDU: 80 09 00 00 [22:03:42]Write to MH i2c: E2 08 00 03 65 80 09 00 00 00 00 00 00 DA [22:03:42]Write i2c OK [22:03:42]MH_I2C_Read... [22:03:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:03:42]Read from MH i2c: E2 [22:03:42]MH_I2C_Read... [22:03:42]Read from MH i2c: E2 03 00 [22:03:42]MH_I2C_Read... [22:03:42]Read from MH i2c: E2 03 00 03 65 00 90 00 DC [22:03:42]RAPDU: 90 00 [22:03:42]wFMCommunicate OK [22:03:42]SAM_PROTO_ClearQueue done [22:03:42]KKMCreateOFDPacket [22:03:42]OFDProtocolAddRootSTLVToBuf [22:03:42]FM_MakeSignedData [22:03:42]FM_MakeSignedData [22:03:42]SAM_PROTO_SignData [22:03:42]wFMCommunicate request_size=4 [22:03:42]MH_SAM_APDU [22:03:42]CAPDU: 80 0D 01 02 [22:03:42]Write to MH i2c: E2 08 00 04 65 80 0D 01 02 00 00 00 00 E2 [22:03:42]Write i2c OK [22:03:42]MH_I2C_Read... [22:03:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:03:42]Read from MH i2c: E2 [22:03:42]MH_I2C_Read... [22:03:42]Read from MH i2c: E2 03 00 [22:03:42]MH_I2C_Read... [22:03:42]Read from MH i2c: E2 03 00 04 65 00 90 00 DD [22:03:42]RAPDU: 90 00 [22:03:42]wFMCommunicate OK [22:03:42]wFMCommunicate request_size=255 [22:03:42]MH_SAM_APDU [22:03:42]CAPDU: 80 0D 02 02 FA 03 00 90 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 37 36 39 30 30 31 38 06 04 20 00 D0 9D D0 B5 D0 B3 D0 B0 D0 B7 20 D0 B2 D0 BE D0 B4 D0 B0 20 50 61 6D 69 72 20 30 2C 35 20 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB [22:03:42]Write to MH i2c: E2 02 01 05 65 80 0D 02 02 FA 00 03 00 90 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 37 36 39 30 30 31 38 06 04 20 00 D0 9D D0 B5 D0 B3 D0 B0 D0 B7 20 D0 B2 D0 BE D0 B4 D0 B0 20 50 61 6D 69 72 20 30 2C 35 20 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 00 00 E0 [22:03:42]Write i2c OK [22:03:42]MH_I2C_Read... [22:03:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:03:42]Read from MH i2c: E2 [22:03:42]MH_I2C_Read... [22:03:42]Read from MH i2c: E2 03 00 [22:03:42]MH_I2C_Read... [22:03:42]Read from MH i2c: E2 03 00 05 65 00 90 00 DE [22:03:42]RAPDU: 90 00 [22:03:42]wFMCommunicate OK [22:03:42]wFMCommunicate request_size=159 [22:03:42]MH_SAM_APDU [22:03:42]CAPDU: 80 0D 02 02 9A 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 00 00 00 00 00 00 39 04 06 00 A8 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 44 C0 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 58 08 00 00 35 04 06 00 BF AB F4 FB 39 5C [22:03:42]Write to MH i2c: E2 A2 00 06 65 80 0D 02 02 9A 00 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 00 00 00 00 00 00 39 04 06 00 A8 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 44 C0 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 58 08 00 00 35 04 06 00 BF AB F4 FB 39 5C 00 00 E9 [22:03:42]Write i2c OK [22:03:42]MH_I2C_Read... [22:03:42]Read from MH i2c: E2 [22:03:42]MH_I2C_Read... [22:03:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:03:42]Read from MH i2c: E2 03 00 [22:03:42]MH_I2C_Read... [22:03:42]Read from MH i2c: E2 03 00 06 65 00 90 00 DF [22:03:42]RAPDU: 90 00 [22:03:42]wFMCommunicate OK [22:03:42]wFMCommunicate request_size=4 [22:03:42]MH_SAM_APDU [22:03:42]CAPDU: 80 0D 03 02 [22:03:42]Write to MH i2c: E2 08 00 07 65 80 0D 03 02 00 00 00 00 E7 [22:03:42]Write i2c OK [22:03:42]MH_I2C_Read... [22:03:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:03:42]Read from MH i2c: E2 [22:03:42]MH_I2C_Read... [22:03:42]Read from MH i2c: E2 0B 00 [22:03:42]MH_I2C_Read... [22:03:42]Read from MH i2c: E2 0B 00 07 65 00 0D AA E8 D2 5D 16 37 AB 90 00 AE [22:03:42]RAPDU: 0D AA E8 D2 5D 16 37 AB 90 00 [22:03:42]wFMCommunicate OK [22:03:42]SAM_PROTO_SignData done [22:03:42]FM_MakeSignedData done [22:03:42]CreateOFDProtocolMessage [22:03:42]wFMCommunicate request_size=4 [22:03:42]MH_SAM_APDU [22:03:42]CAPDU: 80 11 00 00 [22:03:42]Write to MH i2c: E2 08 00 08 65 80 11 00 00 00 00 00 00 E7 [22:03:42]Write i2c OK [22:03:42]MH_I2C_Read... [22:03:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:03:42]Read from MH i2c: E2 [22:03:42]MH_I2C_Read... [22:03:42]Read from MH i2c: E2 17 00 [22:03:42]MH_I2C_Read... [22:03:42]Read from MH i2c: E2 17 00 08 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 37 [22:03:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [22:03:42]wFMCommunicate OK [22:03:42]CreateOFDProtocolMessage done [22:03:42]OFDSenderStorePacket 2136 [22:03:42]StoreOFDPacket docnum=2136 [22:03:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 A4 01 00 00 16 7C 9C 01 DE 38 5A 03 01 00 03 00 90 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 37 36 39 30 30 31 38 06 04 20 00 D0 9D D0 B5 D0 B3 D0 B0 D0 B7 20 D0 B2 D0 BE D0 B4 D0 B0 20 50 61 6D 69 72 20 30 2C 35 20 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 00 00 00 00 00 00 39 04 06 00 A8 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 44 C0 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 58 08 00 00 35 04 06 00 BF AB F4 FB 39 5C 0D AA E8 D2 5D 16 37 AB [22:03:42]CheckFolder [22:03:42]dirname=/storage/ofd_packets [22:03:42]CheckFolder done [22:03:42]ProducePacketName [22:03:42]name=ofd_packets/00002136 [22:03:42]NVStorageSaveData ofd_packets/00002136 [22:03:42]File name is /storage/ofd_packets/00002136 [22:03:42]Write 450 bytes [22:03:42]NVStorageSaveData done [22:03:42]OFDSenderStorePacket done [22:03:42]KKMCreateOFDPacket done [22:03:42]NVStorageSaveData kkm_last_timestamp [22:03:42]File name is /storage/kkm_last_timestamp [22:03:42]Write 4 bytes [22:03:42]NVStorageSaveData done [22:03:42]ExternCall_PrintAddStr [22:03:42]wPrintStart [22:03:42]Write to MH i2c: 01 00 00 09 65 6E [22:03:42]Write i2c OK [22:03:42]MH_I2C_Read... [22:03:42]Read from MH i2c: 01 [22:03:42]MH_I2C_Read... [22:03:42]Read from MH i2c: 01 07 00 [22:03:43]MH_I2C_Read... [22:03:43]OFD Sender: Processing packet 2136 [packets to send 1, broken 0] [22:03:43]ProducePacketName [22:03:43]name=ofd_packets/00002136 [22:03:43]OFD Sender: To server: pG, [22:03:43]CommunicateWithHost lk.salyk.kg:30040 [22:03:43]ConnectInit lk.salyk.kg [22:03:43]Read from MH i2c: 01 07 00 09 65 00 00 00 00 00 FF 0F 83 [22:03:43]RasterBufferAndPrint [22:03:43]line Счет N : (3)126432 [22:03:43]line ИНН: 02508201610067 [22:03:43]line Контрольно-Кассовый Чек [22:03:43]line ПРОДАЖА [22:03:43]line Товар: 4700007690018 [22:03:43]line Негаз вода Pamir 0,5 л [22:03:43]line 2.000 * 30.00 [22:03:43]line = 60.00 [22:03:43]line НДС 12% НСП 1% [22:03:43]line > о реализуемом товаре [22:03:43]line Товар: 4700000482733 [22:03:43]line Напиток Nitro Fr газ класс ж/б 0,45л [22:03:43]line 2.000 * 95.00 [22:03:43]line = 190.00 [22:03:43]line НДС 12% НСП 1% [22:03:43]line > о реализуемом товаре [22:03:43]line ИТОГО: 250.00 [22:03:43]line НСП 1% : 2.21 [22:03:43]line НДС 12% : 26.55 [22:03:43]line Наличными: 0.00 [22:03:43]line Безнал.: 250.00 [22:03:43]line Место: АЗС № 127 "Партнер Нефть" [22:03:43]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [22:03:43]line СНО: Общий режим [22:03:43]line Чек 187 28.07.2024 22:03 [22:03:43]line Смена: 13 ФФД: 1.0 [22:03:43]line ЗНМ: 0300000161 [22:03:43]line РНМ: 0000000000189667 [22:03:43]line Версия ККМ: v1.0 [22:03:43]line Платежная система: O! деньги [22:03:43]line ФМ: 0000000002094248 [22:03:43]line ФД: 2136 [22:03:43]line ФПД: 210745270417756 [22:03:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T220348&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2136&fm=210745270417756&tin=02508201610067®Number=0000000000189667&sum=25000 [22:03:43]line 0 [22:03:43]written 0, free lines is 4095 [22:03:43]Connected sock=8 [22:03:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 A4 01 00 00 16 7C 9C 01 DE 38 5A 03 01 00 03 00 90 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 37 36 39 30 30 31 38 06 04 20 00 D0 9D D0 B5 D0 B3 D0 B0 D0 B7 20 D0 B2 D0 BE D0 B4 D0 B0 20 50 61 6D 69 72 20 30 2C 35 20 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 00 00 00 00 00 00 39 04 06 00 A8 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 44 C0 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 58 08 00 00 35 04 06 00 BF AB F4 FB 39 5C 0D AA E8 D2 5D 16 37 AB [22:03:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 B3 28 47 00 95 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 58 08 00 00 F4 03 04 00 B3 6B A6 66 B6 04 01 00 00 AC FC D4 2A 15 EB 59 CB [22:03:43]CommunicateWithHost err = 0 [22:03:43]CheckOFDResponse [22:03:43]1017 (14) - 77093643461234 [22:03:43]1041 (16) - 0000000002094248 [22:03:43]1040 (4) - 2136 [22:03:43]1012 (4) - 28.07.2024 16:02 [22:03:43]1206 (1) - 0 [22:03:43]OFD Sender: Remove packet 2136 [22:03:43]ProducePacketName [22:03:43]name=ofd_packets/00002136 [22:03:43]NVStorageDeleteData [22:03:43]Write to MH i2c: 01 00 00 3A 65 9F [22:03:43]Write i2c OK [22:03:43]MH_I2C_Read... [22:03:43]Read from MH i2c: 01 [22:03:43]MH_I2C_Read... [22:03:43]Read from MH i2c: 01 07 00 [22:03:43]MH_I2C_Read... [22:03:43]Read from MH i2c: 01 07 00 3A 65 00 00 00 00 00 AA 0C 5C [22:03:43]RasterBufferAndPrint [22:03:43]line [22:03:43]line [22:03:43]line [22:03:43]line [22:03:43]line [22:03:43]written 0, free lines is 3251 [22:03:43]MH_Cut [22:03:43]Write to MH i2c: D1 01 00 41 65 01 78 [22:03:43]Write i2c OK [22:03:43]MH_I2C_Read... [22:03:43]Read from MH i2c: D1 [22:03:43]MH_I2C_Read... [22:03:43]Read from MH i2c: D1 01 00 [22:03:43]MH_I2C_Read... [22:03:43]Read from MH i2c: D1 01 00 41 65 00 77 [22:03:43]Write to MH i2c: 01 00 00 42 65 A7 [22:03:43]Write i2c OK [22:03:43]MH_I2C_Read... [22:03:44]OFD Sender: No OFD packet to send [22:03:44]*** Cut start [22:03:44]*** Partial cut [22:03:44]*** CUTSNS_PIN = 1 [22:03:44]*** CUTSNS_PIN = 0 [22:03:44]*** Brake cut motor [22:03:45]Read from MH i2c: 01 [22:03:45]MH_I2C_Read... [22:03:45]*** Stop cut motor [22:03:45]*** Cut end [22:03:45]Read from MH i2c: 01 07 00 [22:03:45]MH_I2C_Read... [22:03:45]Read from MH i2c: 01 07 00 42 65 00 00 00 00 00 FF 0F BC [22:03:45]process_action close_receipt done [22:03:45]requested_data is exist [22:03:45]produce_requested_data [22:03:45]requested_item fm.sn is exist - process it [22:03:45]wFMCommunicate request_size=4 [22:03:45]MH_SAM_APDU [22:03:45]CAPDU: 80 11 00 00 [22:03:45]Write to MH i2c: E2 08 00 43 65 80 11 00 00 00 00 00 00 22 [22:03:45]Write i2c OK [22:03:45]MH_I2C_Read... [22:03:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:03:45]Read from MH i2c: E2 [22:03:45]MH_I2C_Read... [22:03:45]Read from MH i2c: E2 17 00 [22:03:45]MH_I2C_Read... [22:03:45]Read from MH i2c: E2 17 00 43 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 72 [22:03:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [22:03:45]wFMCommunicate OK [22:03:45]requested_item fd.num is exist - process it [22:03:45]SAM_PROTO_GetFieldsCounters [22:03:45]wFMCommunicate request_size=4 [22:03:45]MH_SAM_APDU [22:03:45]CAPDU: 80 13 00 00 [22:03:45]Write to MH i2c: E2 08 00 44 65 80 13 00 00 00 00 00 00 25 [22:03:45]Write i2c OK [22:03:45]MH_I2C_Read... [22:03:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:03:45]Read from MH i2c: E2 [22:03:45]MH_I2C_Read... [22:03:45]Read from MH i2c: E2 62 00 [22:03:45]MH_I2C_Read... [22:03:45]Read from MH i2c: E2 62 00 44 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 58 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 ED [22:03:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 58 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:03:45]wFMCommunicate OK [22:03:45]SAM_PROTO_GetFieldsCounters done [22:03:45]requested_item shift.num is exist - process it [22:03:45]requested_item shift.opened is exist - process it [22:03:45]req_shift_opened [22:03:45]FM_GetShiftState [22:03:45]SAM_PROTO_GetShiftState [22:03:45]wFMCommunicate request_size=4 [22:03:45]MH_SAM_APDU [22:03:45]CAPDU: 80 13 01 00 [22:03:45]Write to MH i2c: E2 08 00 45 65 80 13 01 00 00 00 00 00 27 [22:03:45]Write i2c OK [22:03:45]MH_I2C_Read... [22:03:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:03:45]Read from MH i2c: E2 [22:03:45]MH_I2C_Read... [22:03:45]Read from MH i2c: E2 0E 00 [22:03:45]MH_I2C_Read... [22:03:45]Read from MH i2c: E2 0E 00 45 65 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 1B [22:03:45]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [22:03:45]wFMCommunicate OK [22:03:45]SAM_PROTO_GetShiftState done [22:03:45]FM_GetShiftState done [22:03:45]req_shift_opened done [22:03:45]requested_item shift.open_date is exist - process it [22:03:45]req_shift_open_date [22:03:45]req_shift_open_date done [22:03:45]produce_requested_data done [22:03:45]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2136,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [22:03:45]process_action_free close_receipt [22:03:45]json_value_free [22:03:45]json_value_free done [22:03:45]process_json_proto returns [22:03:45]Send response to host [22:03:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2136,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [22:03:45]free response buf [22:03:45]execute_script done [22:03:45]execute_script returns [22:03:45]free content buf [22:03:45]Sock 9.Close socket [22:03:45]Sock 9.Thread stoped [22:03:49]OFD Sender: No OFD packet to send [22:03:54]OFD Sender: No OFD packet to send [22:03:59]OFD Sender: No OFD packet to send [22:04:04]OFD Sender: No OFD packet to send [22:04:09]OFD Sender: No OFD packet to send [22:04:14]OFD Sender: No OFD packet to send [22:04:19]OFD Sender: No OFD packet to send [22:04:24]OFD Sender: No OFD packet to send [22:04:29]OFD Sender: No OFD packet to send [22:04:34]OFD Sender: No OFD packet to send [22:04:39]OFD Sender: No OFD packet to send [22:04:44]OFD Sender: No OFD packet to send [22:04:49]OFD Sender: No OFD packet to send [22:04:54]OFD Sender: No OFD packet to send [22:04:59]OFD Sender: No OFD packet to send [22:05:04]OFD Sender: No OFD packet to send [22:05:09]OFD Sender: No OFD packet to send [22:05:14]OFD Sender: No OFD packet to send [22:05:18]accept exits with 10 [22:05:18]New connection [22:05:18]New thread 3067460964 created [22:05:18]Thread 3067317604 joined [22:05:18]Waiting for new connection... [22:05:18] Sock 10.Parse request [22:05:18]Sock 10.Check first char [22:05:18]Sock 10.First char is OK [22:05:18]request: POST /json_proto HTTP/1.0 [22:05:18]Method: POST [22:05:18]URL: /json_proto [22:05:18]Method is POST - this is cgi request [22:05:18]url: /json_proto [22:05:18]query_string will be loaded in cgi processing [22:05:18]execute_cgi json_proto POST (null) [22:05:18]execute_cgi path=json_proto method=POST [22:05:18]POST find Content-Length [22:05:18]Host: 172.17.45.132:8080 [22:05:18]Content-Length: 780 [22:05:18]Content-Type: application/json [22:05:18] [22:05:18]POST finish read [22:05:18]Found Content-Length = 780 [22:05:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126433", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "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" ] } } [22:05:18]execute_script... [22:05: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)126433", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "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" ] } } [22:05:18]POST & json_proto [22:05:18]process_json_proto [22:05:18]json parsed OK: [22:05:18]protocol is kg_v1.0 [22:05:18]action value=close_receipt [22:05:18]process_action close_receipt [22:05:18]cmd_close_receipt [22:05:18]MH_GetDate [22:05:18]Write to MH i2c: F0 00 00 46 65 9A [22:05:18]Write i2c OK [22:05:18]MH_I2C_Read... [22:05:18]Read from MH i2c: F0 [22:05:18]MH_I2C_Read... [22:05:18]Read from MH i2c: F0 09 00 [22:05:18]MH_I2C_Read... [22:05:18]Read from MH i2c: F0 09 00 46 65 00 A6 C0 A6 66 E3 0B 90 66 F9 [22:05:18]GetLastDocTimeStamp 1722204228 [22:05:18]current date 1722204326 [22:05:18]FM_GetShiftState [22:05:18]SAM_PROTO_GetShiftState [22:05:18]wFMCommunicate request_size=4 [22:05:18]MH_SAM_APDU [22:05:18]CAPDU: 80 13 01 00 [22:05:18]Write to MH i2c: E2 08 00 47 65 80 13 01 00 00 00 00 00 29 [22:05:18]Write i2c OK [22:05:18]MH_I2C_Read... [22:05:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:05:18]Read from MH i2c: E2 [22:05:18]MH_I2C_Read... [22:05:18]Read from MH i2c: E2 0E 00 [22:05:18]MH_I2C_Read... [22:05:18]Read from MH i2c: E2 0E 00 47 65 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 1D [22:05:18]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [22:05:18]wFMCommunicate OK [22:05:18]SAM_PROTO_GetShiftState done [22:05:18]FM_GetShiftState done [22:05:18]opened in 1722125648 [22:05:18]opened+sec_in_day 1722212048 [22:05:18]quantity*price = 14000 [22:05:18]sum+1 = 14001 [22:05:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 0.00 Безнал.: 140.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 188 28.07.2024 22:05 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2137 ФПД: 241921935229161 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T220526&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2137&fm=241921935229161&tin=02508201610067®Number=0000000000189667&sum=14000 0 [22:05:20]StoreToDocumentArchive [22:05:20]shift 13 fd 2137 [22:05:20]save to /storage/0013/doc_00002137 [22:05:20]save last doc name /storage/0013/doc_00002137 to /storage/kkm_last_doc_name [22:05:20]save OK [22:05:20]Clear old archive folders... [22:05:20]ProcessDocumentItem done err = 0, tmpTLVsize=271 [22:05:20]tlvbuf is 01F64630 [22:05:20]SAM_PROTO_ClearQueue [22:05:20]wFMCommunicate request_size=4 [22:05:20]MH_SAM_APDU [22:05:20]CAPDU: 80 09 00 00 [22:05:20]Write to MH i2c: E2 08 00 54 65 80 09 00 00 00 00 00 00 2B [22:05:20]Write i2c OK [22:05:20]MH_I2C_Read... [22:05:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:05:20]Read from MH i2c: E2 [22:05:20]MH_I2C_Read... [22:05:20]Read from MH i2c: E2 03 00 [22:05:20]MH_I2C_Read... [22:05:20]Read from MH i2c: E2 03 00 54 65 00 90 00 2D [22:05:20]RAPDU: 90 00 [22:05:20]wFMCommunicate OK [22:05:20]SAM_PROTO_ClearQueue done [22:05:20]KKMCreateOFDPacket [22:05:20]OFDProtocolAddRootSTLVToBuf [22:05:20]FM_MakeSignedData [22:05:20]FM_MakeSignedData [22:05:20]SAM_PROTO_SignData [22:05:20]wFMCommunicate request_size=4 [22:05:20]MH_SAM_APDU [22:05:20]CAPDU: 80 0D 01 02 [22:05:20]Write to MH i2c: E2 08 00 55 65 80 0D 01 02 00 00 00 00 33 [22:05:20]Write i2c OK [22:05:20]MH_I2C_Read... [22:05:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:05:20]Read from MH i2c: E2 [22:05:20]MH_I2C_Read... [22:05:20]Read from MH i2c: E2 03 00 [22:05:20]MH_I2C_Read... [22:05:20]Read from MH i2c: E2 03 00 55 65 00 90 00 2E [22:05:20]RAPDU: 90 00 [22:05:20]wFMCommunicate OK [22:05:20]wFMCommunicate request_size=255 [22:05:20]MH_SAM_APDU [22:05:20]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 BC 00 00 00 F4 03 04 00 A6 C0 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 [22:05:20]Write to MH i2c: E2 02 01 56 65 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 BC 00 00 00 F4 03 04 00 A6 C0 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 FE [22:05:20]Write i2c OK [22:05:20]MH_I2C_Read... [22:05:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:05:20]Read from MH i2c: E2 [22:05:20]MH_I2C_Read... [22:05:20]Read from MH i2c: E2 03 00 [22:05:20]MH_I2C_Read... [22:05:20]Read from MH i2c: E2 03 00 56 65 00 90 00 2F [22:05:20]RAPDU: 90 00 [22:05:20]wFMCommunicate OK [22:05:20]wFMCommunicate request_size=30 [22:05:20]MH_SAM_APDU [22:05:20]CAPDU: 80 0D 02 02 19 32 30 39 34 32 34 38 10 04 04 00 59 08 00 00 35 04 06 00 DC 06 D7 03 40 E9 [22:05:20]Write to MH i2c: E2 21 00 57 65 80 0D 02 02 19 00 32 30 39 34 32 34 38 10 04 04 00 59 08 00 00 35 04 06 00 DC 06 D7 03 40 E9 00 00 72 [22:05:20]Write i2c OK [22:05:20]MH_I2C_Read... [22:05:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:05:20]Read from MH i2c: E2 [22:05:20]MH_I2C_Read... [22:05:20]Read from MH i2c: E2 03 00 [22:05:20]MH_I2C_Read... [22:05:20]Read from MH i2c: E2 03 00 57 65 00 90 00 30 [22:05:20]RAPDU: 90 00 [22:05:20]wFMCommunicate OK [22:05:20]wFMCommunicate request_size=4 [22:05:20]MH_SAM_APDU [22:05:20]CAPDU: 80 0D 03 02 [22:05:20]Write to MH i2c: E2 08 00 58 65 80 0D 03 02 00 00 00 00 38 [22:05:20]Write i2c OK [22:05:20]MH_I2C_Read... [22:05:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:05:20]Read from MH i2c: E2 [22:05:20]MH_I2C_Read... [22:05:20]Read from MH i2c: E2 0B 00 [22:05:20]MH_I2C_Read... [22:05:20]Read from MH i2c: E2 0B 00 58 65 00 12 B4 42 E2 81 A2 B6 8C 90 00 88 [22:05:20]RAPDU: 12 B4 42 E2 81 A2 B6 8C 90 00 [22:05:20]wFMCommunicate OK [22:05:20]SAM_PROTO_SignData done [22:05:20]FM_MakeSignedData done [22:05:20]CreateOFDProtocolMessage [22:05:20]wFMCommunicate request_size=4 [22:05:20]MH_SAM_APDU [22:05:20]CAPDU: 80 11 00 00 [22:05:20]Write to MH i2c: E2 08 00 59 65 80 11 00 00 00 00 00 00 38 [22:05:20]Write i2c OK [22:05:20]MH_I2C_Read... [22:05:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:05:20]Read from MH i2c: E2 [22:05:20]MH_I2C_Read... [22:05:20]Read from MH i2c: E2 17 00 [22:05:20]MH_I2C_Read... [22:05:20]Read from MH i2c: E2 17 00 59 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 88 [22:05:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [22:05:20]wFMCommunicate OK [22:05:20]CreateOFDProtocolMessage done [22:05:20]OFDSenderStorePacket 2137 [22:05:20]StoreOFDPacket docnum=2137 [22:05:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 23 01 00 00 D2 17 1B 01 2F 82 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 BC 00 00 00 F4 03 04 00 A6 C0 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 59 08 00 00 35 04 06 00 DC 06 D7 03 40 E9 12 B4 42 E2 81 A2 B6 8C [22:05:20]CheckFolder [22:05:20]dirname=/storage/ofd_packets [22:05:20]CheckFolder done [22:05:20]ProducePacketName [22:05:20]name=ofd_packets/00002137 [22:05:20]NVStorageSaveData ofd_packets/00002137 [22:05:20]File name is /storage/ofd_packets/00002137 [22:05:20]Write 321 bytes [22:05:20]NVStorageSaveData done [22:05:20]OFDSenderStorePacket done [22:05:20]KKMCreateOFDPacket done [22:05:20]NVStorageSaveData kkm_last_timestamp [22:05:20]File name is /storage/kkm_last_timestamp [22:05:20]Write 4 bytes [22:05:20]NVStorageSaveData done [22:05:20]ExternCall_PrintAddStr [22:05:20]wPrintStart [22:05:20]Write to MH i2c: 01 00 00 5A 65 BF [22:05:20]Write i2c OK [22:05:20]MH_I2C_Read... [22:05:20]Read from MH i2c: 01 [22:05:20]MH_I2C_Read... [22:05:20]Read from MH i2c: 01 07 00 [22:05:20]MH_I2C_Read... [22:05:20]Read from MH i2c: 01 07 00 5A 65 00 00 00 00 00 FF 0F D4 [22:05:20]RasterBufferAndPrint [22:05:20]line Счет N : (3)126433 [22:05:20]line ИНН: 02508201610067 [22:05:20]line Контрольно-Кассовый Чек [22:05:20]line ПРОДАЖА [22:05:20]line Товар: 47802995 [22:05:20]line Сигареты Winston XS Silver [22:05:20]line 1.000 * 140.00 [22:05:20]line = 140.00 [22:05:20]line НДС 12% НСП 1% [22:05:20]line > о реализуемом товаре [22:05:20]line ИТОГО: 140.00 [22:05:20]line НСП 1% : 1.24 [22:05:20]line НДС 12% : 14.87 [22:05:20]line Наличными: 0.00 [22:05:20]line Безнал.: 140.00 [22:05:20]line Место: АЗС № 127 "Партнер Нефть" [22:05:20]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [22:05:20]line СНО: Общий режим [22:05:20]line Чек 188 28.07.2024 22:05 [22:05:20]line Смена: 13 ФФД: 1.0 [22:05:20]line ЗНМ: 0300000161 [22:05:20]line РНМ: 0000000000189667 [22:05:20]line Версия ККМ: v1.0 [22:05:20]line Платежная система: O! деньги [22:05:20]line ФМ: 0000000002094248 [22:05:20]line ФД: 2137 [22:05:20]line ФПД: 241921935229161 [22:05:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T220526&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2137&fm=241921935229161&tin=02508201610067®Number=0000000000189667&sum=14000 [22:05:20]line 0 [22:05:20]OFD Sender: Processing packet 2137 [packets to send 1, broken 0] [22:05:20]ProducePacketName [22:05:20]name=ofd_packets/00002137 [22:05:20]OFD Sender: To server: pG, [22:05:20]CommunicateWithHost lk.salyk.kg:30040 [22:05:20]ConnectInit lk.salyk.kg [22:05:20]written 0, free lines is 4095 [22:05:21]Connected sock=9 [22:05:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 23 01 00 00 D2 17 1B 01 2F 82 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 BC 00 00 00 F4 03 04 00 A6 C0 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 59 08 00 00 35 04 06 00 DC 06 D7 03 40 E9 12 B4 42 E2 81 A2 B6 8C [22:05:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 64 90 47 00 2A 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 32 30 39 34 32 34 38 10 04 04 00 59 08 00 00 F4 03 04 00 15 6C A6 66 B6 04 01 00 00 84 E5 72 A3 EF D5 8A CF [22:05:21]CommunicateWithHost err = 0 [22:05:21]CheckOFDResponse [22:05:21]1017 (14) - 77093643461234 [22:05:21]1041 (16) - 0000000002094248 [22:05:21]1040 (4) - 2137 [22:05:21]1012 (4) - 28.07.2024 16:04 [22:05:21]1206 (1) - 0 [22:05:21]OFD Sender: Remove packet 2137 [22:05:21]ProducePacketName [22:05:21]name=ofd_packets/00002137 [22:05:21]NVStorageDeleteData [22:05:21]Write to MH i2c: 01 00 00 84 65 E9 [22:05:21]Write i2c OK [22:05:21]MH_I2C_Read... [22:05:21]Read from MH i2c: 01 [22:05:21]MH_I2C_Read... [22:05:21]Read from MH i2c: 01 07 00 [22:05:21]MH_I2C_Read... [22:05:21]Read from MH i2c: 01 07 00 84 65 00 00 00 00 00 FD 0C F9 [22:05:21]RasterBufferAndPrint [22:05:21]line [22:05:21]line [22:05:21]line [22:05:21]line [22:05:21]line [22:05:21]written 0, free lines is 3334 [22:05:21]MH_Cut [22:05:21]Write to MH i2c: D1 01 00 8B 65 01 C2 [22:05:21]Write i2c OK [22:05:21]MH_I2C_Read... [22:05:21]Read from MH i2c: D1 [22:05:21]MH_I2C_Read... [22:05:21]Read from MH i2c: D1 01 00 [22:05:21]MH_I2C_Read... [22:05:21]Read from MH i2c: D1 01 00 8B 65 00 C1 [22:05:21]Write to MH i2c: 01 00 00 8C 65 F1 [22:05:21]Write i2c OK [22:05:21]MH_I2C_Read... [22:05:21]OFD Sender: No OFD packet to send [22:05:22]*** Cut start [22:05:22]*** Partial cut [22:05:22]*** CUTSNS_PIN = 1 [22:05:22]*** CUTSNS_PIN = 0 [22:05:22]*** Brake cut motor [22:05:22]Read from MH i2c: 01 [22:05:22]MH_I2C_Read... [22:05:22]*** Stop cut motor [22:05:22]*** Cut end [22:05:22]Read from MH i2c: 01 07 00 [22:05:22]MH_I2C_Read... [22:05:22]Read from MH i2c: 01 07 00 8C 65 00 00 00 00 00 FF 0F 06 [22:05:22]process_action close_receipt done [22:05:22]requested_data is exist [22:05:22]produce_requested_data [22:05:22]requested_item fm.sn is exist - process it [22:05:22]wFMCommunicate request_size=4 [22:05:22]MH_SAM_APDU [22:05:22]CAPDU: 80 11 00 00 [22:05:22]Write to MH i2c: E2 08 00 8D 65 80 11 00 00 00 00 00 00 6C [22:05:22]Write i2c OK [22:05:22]MH_I2C_Read... [22:05:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:05:22]Read from MH i2c: E2 [22:05:22]MH_I2C_Read... [22:05:22]Read from MH i2c: E2 17 00 [22:05:22]MH_I2C_Read... [22:05:22]Read from MH i2c: E2 17 00 8D 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 BC [22:05:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [22:05:22]wFMCommunicate OK [22:05:22]requested_item fd.num is exist - process it [22:05:22]SAM_PROTO_GetFieldsCounters [22:05:22]wFMCommunicate request_size=4 [22:05:22]MH_SAM_APDU [22:05:22]CAPDU: 80 13 00 00 [22:05:22]Write to MH i2c: E2 08 00 8E 65 80 13 00 00 00 00 00 00 6F [22:05:22]Write i2c OK [22:05:22]MH_I2C_Read... [22:05:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:05:22]Read from MH i2c: E2 [22:05:22]MH_I2C_Read... [22:05:22]Read from MH i2c: E2 62 00 [22:05:22]MH_I2C_Read... [22:05:22]Read from MH i2c: E2 62 00 8E 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 59 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [22:05:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 59 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:05:22]wFMCommunicate OK [22:05:22]SAM_PROTO_GetFieldsCounters done [22:05:22]requested_item shift.num is exist - process it [22:05:22]requested_item shift.opened is exist - process it [22:05:22]req_shift_opened [22:05:22]FM_GetShiftState [22:05:22]SAM_PROTO_GetShiftState [22:05:22]wFMCommunicate request_size=4 [22:05:22]MH_SAM_APDU [22:05:22]CAPDU: 80 13 01 00 [22:05:22]Write to MH i2c: E2 08 00 8F 65 80 13 01 00 00 00 00 00 71 [22:05:22]Write i2c OK [22:05:22]MH_I2C_Read... [22:05:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:05:23]Read from MH i2c: E2 [22:05:23]MH_I2C_Read... [22:05:23]Read from MH i2c: E2 0E 00 [22:05:23]MH_I2C_Read... [22:05:23]Read from MH i2c: E2 0E 00 8F 65 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 65 [22:05:23]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [22:05:23]wFMCommunicate OK [22:05:23]SAM_PROTO_GetShiftState done [22:05:23]FM_GetShiftState done [22:05:23]req_shift_opened done [22:05:23]requested_item shift.open_date is exist - process it [22:05:23]req_shift_open_date [22:05:23]req_shift_open_date done [22:05:23]produce_requested_data done [22:05:23]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2137,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [22:05:23]process_action_free close_receipt [22:05:23]json_value_free [22:05:23]json_value_free done [22:05:23]process_json_proto returns [22:05:23]Send response to host [22:05:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2137,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [22:05:23]free response buf [22:05:23]execute_script done [22:05:23]execute_script returns [22:05:23]free content buf [22:05:23]Sock 10.Close socket [22:05:23]Sock 10.Thread stoped [22:05:26]OFD Sender: No OFD packet to send [22:05:31]OFD Sender: No OFD packet to send [22:05:36]OFD Sender: No OFD packet to send [22:05:41]OFD Sender: No OFD packet to send [22:05:46]OFD Sender: No OFD packet to send [22:05:51]OFD Sender: No OFD packet to send [22:05:56]OFD Sender: No OFD packet to send [22:06:01]OFD Sender: No OFD packet to send [22:06:06]OFD Sender: No OFD packet to send [22:06:11]OFD Sender: No OFD packet to send [22:06:16]OFD Sender: No OFD packet to send [22:06:21]OFD Sender: No OFD packet to send [22:06:26]OFD Sender: No OFD packet to send [22:06:31]OFD Sender: No OFD packet to send [22:06:36]OFD Sender: No OFD packet to send [22:06:41]OFD Sender: No OFD packet to send [22:06:46]OFD Sender: No OFD packet to send [22:06:51]OFD Sender: No OFD packet to send [22:06:56]OFD Sender: No OFD packet to send [22:07:01]OFD Sender: No OFD packet to send [22:07:06]OFD Sender: No OFD packet to send [22:07:11]OFD Sender: No OFD packet to send [22:07:16]OFD Sender: No OFD packet to send [22:07:21]OFD Sender: No OFD packet to send [22:07:26]OFD Sender: No OFD packet to send [22:07:31]OFD Sender: No OFD packet to send [22:07:36]OFD Sender: No OFD packet to send [22:07:41]OFD Sender: No OFD packet to send [22:07:46]OFD Sender: No OFD packet to send [22:07:51]OFD Sender: No OFD packet to send [22:07:56]OFD Sender: No OFD packet to send [22:08:01]OFD Sender: No OFD packet to send [22:08:06]OFD Sender: No OFD packet to send [22:08:11]OFD Sender: No OFD packet to send [22:08:16]OFD Sender: No OFD packet to send [22:08:21]OFD Sender: No OFD packet to send [22:08:26]OFD Sender: No OFD packet to send [22:08:31]OFD Sender: No OFD packet to send [22:08:36]OFD Sender: No OFD packet to send [22:08:41]OFD Sender: No OFD packet to send [22:08:46]OFD Sender: No OFD packet to send [22:08:52]OFD Sender: No OFD packet to send [22:08:57]OFD Sender: No OFD packet to send [22:09:02]OFD Sender: No OFD packet to send [22:09:07]OFD Sender: No OFD packet to send [22:09:12]OFD Sender: No OFD packet to send [22:09:17]OFD Sender: No OFD packet to send [22:09:22]OFD Sender: No OFD packet to send [22:09:27]OFD Sender: No OFD packet to send [22:09:32]OFD Sender: No OFD packet to send [22:09:37]OFD Sender: No OFD packet to send [22:09:42]OFD Sender: No OFD packet to send [22:09:47]OFD Sender: No OFD packet to send [22:09:52]OFD Sender: No OFD packet to send [22:09:57]OFD Sender: No OFD packet to send [22:10:02]OFD Sender: No OFD packet to send [22:10:07]OFD Sender: No OFD packet to send [22:10:12]OFD Sender: No OFD packet to send [22:10:17]OFD Sender: No OFD packet to send [22:10:22]OFD Sender: No OFD packet to send [22:10:27]OFD Sender: No OFD packet to send [22:10:32]OFD Sender: No OFD packet to send [22:10:37]OFD Sender: No OFD packet to send [22:10:42]OFD Sender: No OFD packet to send [22:10:47]OFD Sender: No OFD packet to send [22:10:52]OFD Sender: No OFD packet to send [22:10:57]OFD Sender: No OFD packet to send [22:11:02]OFD Sender: No OFD packet to send [22:11:07]OFD Sender: No OFD packet to send [22:11:12]OFD Sender: No OFD packet to send [22:11:17]OFD Sender: No OFD packet to send [22:11:22]OFD Sender: No OFD packet to send [22:11:27]OFD Sender: No OFD packet to send [22:11:32]OFD Sender: No OFD packet to send [22:11:37]OFD Sender: No OFD packet to send [22:11:42]OFD Sender: No OFD packet to send [22:11:47]OFD Sender: No OFD packet to send [22:11:52]OFD Sender: No OFD packet to send [22:11:57]OFD Sender: No OFD packet to send [22:12:02]OFD Sender: No OFD packet to send [22:12:07]OFD Sender: No OFD packet to send [22:12:12]OFD Sender: No OFD packet to send [22:12:17]OFD Sender: No OFD packet to send [22:12:22]OFD Sender: No OFD packet to send [22:12:27]OFD Sender: No OFD packet to send [22:12:32]OFD Sender: No OFD packet to send [22:12:37]OFD Sender: No OFD packet to send [22:12:42]OFD Sender: No OFD packet to send [22:12:47]OFD Sender: No OFD packet to send [22:12:52]OFD Sender: No OFD packet to send [22:12:57]OFD Sender: No OFD packet to send [22:13:02]OFD Sender: No OFD packet to send [22:13:07]OFD Sender: No OFD packet to send [22:13:12]OFD Sender: No OFD packet to send [22:13:17]OFD Sender: No OFD packet to send [22:13:22]OFD Sender: No OFD packet to send [22:13:27]OFD Sender: No OFD packet to send [22:13:32]OFD Sender: No OFD packet to send [22:13:37]OFD Sender: No OFD packet to send [22:13:42]OFD Sender: No OFD packet to send [22:13:47]OFD Sender: No OFD packet to send [22:13:52]OFD Sender: No OFD packet to send [22:13:57]OFD Sender: No OFD packet to send [22:14:02]OFD Sender: No OFD packet to send [22:14:07]OFD Sender: No OFD packet to send [22:14:12]OFD Sender: No OFD packet to send [22:14:17]OFD Sender: No OFD packet to send [22:14:22]OFD Sender: No OFD packet to send [22:14:27]OFD Sender: No OFD packet to send [22:14:32]OFD Sender: No OFD packet to send [22:14:37]OFD Sender: No OFD packet to send [22:14:42]OFD Sender: No OFD packet to send [22:14:47]OFD Sender: No OFD packet to send [22:14:52]OFD Sender: No OFD packet to send [22:14:57]OFD Sender: No OFD packet to send [22:15:02]OFD Sender: No OFD packet to send [22:15:07]OFD Sender: No OFD packet to send [22:15:12]OFD Sender: No OFD packet to send [22:15:17]OFD Sender: No OFD packet to send [22:15:22]OFD Sender: No OFD packet to send [22:15:27]OFD Sender: No OFD packet to send [22:15:32]OFD Sender: No OFD packet to send [22:15:37]OFD Sender: No OFD packet to send [22:15:42]OFD Sender: No OFD packet to send [22:15:47]OFD Sender: No OFD packet to send [22:15:52]OFD Sender: No OFD packet to send [22:15:57]OFD Sender: No OFD packet to send [22:16:02]OFD Sender: No OFD packet to send [22:16:07]OFD Sender: No OFD packet to send [22:16:12]OFD Sender: No OFD packet to send [22:16:17]OFD Sender: No OFD packet to send [22:16:22]OFD Sender: No OFD packet to send [22:16:27]OFD Sender: No OFD packet to send [22:16:32]OFD Sender: No OFD packet to send [22:16:37]OFD Sender: No OFD packet to send [22:16:42]OFD Sender: No OFD packet to send [22:16:47]OFD Sender: No OFD packet to send [22:16:52]OFD Sender: No OFD packet to send [22:16:57]OFD Sender: No OFD packet to send [22:17:02]OFD Sender: No OFD packet to send [22:17:07]OFD Sender: No OFD packet to send [22:17:12]OFD Sender: No OFD packet to send [22:17:17]OFD Sender: No OFD packet to send [22:17:22]OFD Sender: No OFD packet to send [22:17:27]OFD Sender: No OFD packet to send [22:17:32]OFD Sender: No OFD packet to send [22:17:37]OFD Sender: No OFD packet to send [22:17:42]OFD Sender: No OFD packet to send [22:17:47]OFD Sender: No OFD packet to send [22:17:52]OFD Sender: No OFD packet to send [22:17:57]OFD Sender: No OFD packet to send [22:18:02]OFD Sender: No OFD packet to send [22:18:07]OFD Sender: No OFD packet to send [22:18:12]OFD Sender: No OFD packet to send [22:18:17]OFD Sender: No OFD packet to send [22:18:22]OFD Sender: No OFD packet to send [22:18:27]OFD Sender: No OFD packet to send [22:18:32]OFD Sender: No OFD packet to send [22:18:37]OFD Sender: No OFD packet to send [22:18:42]OFD Sender: No OFD packet to send [22:18:47]OFD Sender: No OFD packet to send [22:18:52]OFD Sender: No OFD packet to send [22:18:57]OFD Sender: No OFD packet to send [22:19:02]OFD Sender: No OFD packet to send [22:19:07]OFD Sender: No OFD packet to send [22:19:12]OFD Sender: No OFD packet to send [22:19:17]OFD Sender: No OFD packet to send [22:19:22]OFD Sender: No OFD packet to send [22:19:27]OFD Sender: No OFD packet to send [22:19:32]OFD Sender: No OFD packet to send [22:19:37]OFD Sender: No OFD packet to send [22:19:42]OFD Sender: No OFD packet to send [22:19:47]OFD Sender: No OFD packet to send [22:19:52]OFD Sender: No OFD packet to send [22:19:57]OFD Sender: No OFD packet to send [22:20:02]OFD Sender: No OFD packet to send [22:20:07]OFD Sender: No OFD packet to send [22:20:12]OFD Sender: No OFD packet to send [22:20:17]OFD Sender: No OFD packet to send [22:20:22]OFD Sender: No OFD packet to send [22:20:27]OFD Sender: No OFD packet to send [22:20:32]OFD Sender: No OFD packet to send [22:20:37]OFD Sender: No OFD packet to send [22:20:42]OFD Sender: No OFD packet to send [22:20:47]OFD Sender: No OFD packet to send [22:20:52]OFD Sender: No OFD packet to send [22:20:57]OFD Sender: No OFD packet to send [22:21:02]OFD Sender: No OFD packet to send [22:21:07]OFD Sender: No OFD packet to send [22:21:12]OFD Sender: No OFD packet to send [22:21:17]OFD Sender: No OFD packet to send [22:21:22]OFD Sender: No OFD packet to send [22:21:27]accept exits with 8 [22:21:27]New connection [22:21:27]New thread 3067317604 created [22:21:27]Thread 3067460964 joined [22:21:27]Waiting for new connection... [22:21:27] Sock 8.Parse request [22:21:27]Sock 8.Check first char [22:21:27]Sock 8.First char is OK [22:21:27]request: POST /json_proto HTTP/1.0 [22:21:27]Method: POST [22:21:27]URL: /json_proto [22:21:27]Method is POST - this is cgi request [22:21:27]url: /json_proto [22:21:27]query_string will be loaded in cgi processing [22:21:27]execute_cgi json_proto POST (null) [22:21:27]execute_cgi path=json_proto method=POST [22:21:27]POST find Content-Length [22:21:27]Host: 172.17.45.132:8080 [22:21:27]Content-Length: 1321 [22:21:27]Content-Type: application/json [22:21:27] [22:21:27]POST finish read [22:21:27]Found Content-Length = 1321 [22:21:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126434", "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": "8591207777724", "name": "\u041F\u0440\u0435\u0437\u0435\u0440\u0432\u0430\u0442\u0438\u0432\u044B Datex 3\u0448\u0442", "price" : 143.00, "quantity" : 1.000, "sum" : 143.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 }]} ,{ "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" : 439.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:21:27]execute_script... [22:21:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126434", "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": "8591207777724", "name": "\u041F\u0440\u0435\u0437\u0435\u0440\u0432\u0430\u0442\u0438\u0432\u044B Datex 3\u0448\u0442", "price" : 143.00, "quantity" : 1.000, "sum" : 143.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 }]} ,{ "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" : 439.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:21:27]POST & json_proto [22:21:27]process_json_proto [22:21:27]json parsed OK: [22:21:27]protocol is kg_v1.0 [22:21:27]action value=close_receipt [22:21:27]process_action close_receipt [22:21:27]cmd_close_receipt [22:21:27]MH_GetDate [22:21:27]Write to MH i2c: F0 00 00 90 65 E4 [22:21:27]Write i2c OK [22:21:27]MH_I2C_Read... [22:21:27]OFD Sender: No OFD packet to send [22:21:27]Read from MH i2c: F0 [22:21:27]MH_I2C_Read... [22:21:27]Read from MH i2c: F0 09 00 [22:21:27]MH_I2C_Read... [22:21:27]Read from MH i2c: F0 09 00 90 65 00 6F C4 A6 66 E3 0B 90 66 10 [22:21:27]GetLastDocTimeStamp 1722204326 [22:21:27]current date 1722205295 [22:21:27]FM_GetShiftState [22:21:27]SAM_PROTO_GetShiftState [22:21:27]wFMCommunicate request_size=4 [22:21:27]MH_SAM_APDU [22:21:27]CAPDU: 80 13 01 00 [22:21:27]Write to MH i2c: E2 08 00 91 65 80 13 01 00 00 00 00 00 73 [22:21:27]Write i2c OK [22:21:27]MH_I2C_Read... [22:21:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:21:27]Read from MH i2c: E2 [22:21:27]MH_I2C_Read... [22:21:27]Read from MH i2c: E2 0E 00 [22:21:27]MH_I2C_Read... [22:21:27]Read from MH i2c: E2 0E 00 91 65 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 67 [22:21:27]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [22:21:27]wFMCommunicate OK [22:21:27]SAM_PROTO_GetShiftState done [22:21:27]FM_GetShiftState done [22:21:27]opened in 1722125648 [22:21:27]opened+sec_in_day 1722212048 [22:21:27]quantity*price = 11100 [22:21:27]sum+1 = 11101 [22:21:27]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 8591207777724 Презервативы Datex 3шт 1.000 * 143.00 = 143.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48743587 Сигареты Winston XStyle Silver 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 50173617 Жев Orbit Eucalyptus 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 439.00 НСП 1% : 3.88 НДС 12% : 46.63 Наличными: 439.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 189 28.07.2024 22:21 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2138 ФПД: 57606561572803 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T222135&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2138&fm=57606561572803&tin=02508201610067®Number=0000000000189667&sum=43900 0 [22:21:29]StoreToDocumentArchive [22:21:29]shift 13 fd 2138 [22:21:29]save to /storage/0013/doc_00002138 [22:21:29]save last doc name /storage/0013/doc_00002138 to /storage/kkm_last_doc_name [22:21:29]save OK [22:21:29]Clear old archive folders... [22:21:29]ProcessDocumentItem done err = 0, tmpTLVsize=569 [22:21:29]tlvbuf is 020AEA70 [22:21:29]SAM_PROTO_ClearQueue [22:21:29]wFMCommunicate request_size=4 [22:21:29]MH_SAM_APDU [22:21:29]CAPDU: 80 09 00 00 [22:21:29]Write to MH i2c: E2 08 00 9E 65 80 09 00 00 00 00 00 00 75 [22:21:29]Write i2c OK [22:21:29]MH_I2C_Read... [22:21:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:21:29]Read from MH i2c: E2 [22:21:29]MH_I2C_Read... [22:21:29]Read from MH i2c: E2 03 00 [22:21:29]MH_I2C_Read... [22:21:29]Read from MH i2c: E2 03 00 9E 65 00 90 00 77 [22:21:29]RAPDU: 90 00 [22:21:29]wFMCommunicate OK [22:21:29]SAM_PROTO_ClearQueue done [22:21:29]KKMCreateOFDPacket [22:21:29]OFDProtocolAddRootSTLVToBuf [22:21:29]FM_MakeSignedData [22:21:29]FM_MakeSignedData [22:21:29]SAM_PROTO_SignData [22:21:29]wFMCommunicate request_size=4 [22:21:29]MH_SAM_APDU [22:21:29]CAPDU: 80 0D 01 02 [22:21:29]Write to MH i2c: E2 08 00 9F 65 80 0D 01 02 00 00 00 00 7D [22:21:29]Write i2c OK [22:21:29]MH_I2C_Read... [22:21:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:21:29]Read from MH i2c: E2 [22:21:29]MH_I2C_Read... [22:21:29]Read from MH i2c: E2 03 00 [22:21:29]MH_I2C_Read... [22:21:29]Read from MH i2c: E2 03 00 9F 65 00 90 00 78 [22:21:29]RAPDU: 90 00 [22:21:29]wFMCommunicate OK [22:21:29]wFMCommunicate request_size=255 [22:21:29]MH_SAM_APDU [22:21:29]CAPDU: 80 0D 02 02 FA 03 00 39 02 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 68 00 8A 04 0D 00 38 35 39 31 32 30 37 37 37 37 37 32 34 06 04 24 00 D0 9F D1 80 D0 B5 D0 B7 D0 B5 D1 80 D0 B2 D0 B0 D1 82 D0 B8 D0 B2 D1 8B 20 44 61 74 65 78 20 33 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 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 [22:21:29]Write to MH i2c: E2 02 01 A0 65 80 0D 02 02 FA 00 03 00 39 02 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 68 00 8A 04 0D 00 38 35 39 31 32 30 37 37 37 37 37 32 34 06 04 24 00 D0 9F D1 80 D0 B5 D0 B7 D0 B5 D1 80 D0 B2 D0 B0 D1 82 D0 B8 D0 B2 D1 8B 20 44 61 74 65 78 20 33 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 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 00 00 7F [22:21:29]Write i2c OK [22:21:29]MH_I2C_Read... [22:21:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:21:29]Read from MH i2c: E2 [22:21:29]MH_I2C_Read... [22:21:29]Read from MH i2c: E2 03 00 [22:21:29]MH_I2C_Read... [22:21:29]Read from MH i2c: E2 03 00 A0 65 00 90 00 79 [22:21:29]RAPDU: 90 00 [22:21:29]wFMCommunicate OK [22:21:29]wFMCommunicate request_size=255 [22:21:29]MH_SAM_APDU [22:21:29]CAPDU: 80 0D 02 02 FA 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 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 7C AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 12 00 00 00 00 07 04 06 00 7C AB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 6F C4 [22:21:29]Write to MH i2c: E2 02 01 A1 65 80 0D 02 02 FA 00 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 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 7C AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 12 00 00 00 00 07 04 06 00 7C AB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 6F C4 00 00 00 [22:21:29]Write i2c OK [22:21:29]MH_I2C_Read... [22:21:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:21:29]Read from MH i2c: E2 [22:21:29]MH_I2C_Read... [22:21:29]Read from MH i2c: E2 03 00 [22:21:29]MH_I2C_Read... [22:21:29]Read from MH i2c: E2 03 00 A1 65 00 90 00 7A [22:21:29]RAPDU: 90 00 [22:21:29]wFMCommunicate OK [22:21:29]wFMCommunicate request_size=78 [22:21:29]MH_SAM_APDU [22:21:29]CAPDU: 80 0D 02 02 49 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 5A 08 00 00 35 04 06 00 34 64 92 A3 A7 C3 [22:21:29]Write to MH i2c: E2 51 00 A2 65 80 0D 02 02 49 00 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 5A 08 00 00 35 04 06 00 34 64 92 A3 A7 C3 00 00 79 [22:21:29]Write i2c OK [22:21:29]MH_I2C_Read... [22:21:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:21:29]Read from MH i2c: E2 [22:21:29]MH_I2C_Read... [22:21:29]Read from MH i2c: E2 03 00 [22:21:29]MH_I2C_Read... [22:21:29]Read from MH i2c: E2 03 00 A2 65 00 90 00 7B [22:21:29]RAPDU: 90 00 [22:21:29]wFMCommunicate OK [22:21:29]wFMCommunicate request_size=4 [22:21:29]MH_SAM_APDU [22:21:29]CAPDU: 80 0D 03 02 [22:21:29]Write to MH i2c: E2 08 00 A3 65 80 0D 03 02 00 00 00 00 83 [22:21:29]Write i2c OK [22:21:29]MH_I2C_Read... [22:21:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:21:29]Read from MH i2c: E2 [22:21:29]MH_I2C_Read... [22:21:29]Read from MH i2c: E2 0B 00 [22:21:29]MH_I2C_Read... [22:21:29]Read from MH i2c: E2 0B 00 A3 65 00 2E 4F 20 2E 48 16 87 17 90 00 4B [22:21:29]RAPDU: 2E 4F 20 2E 48 16 87 17 90 00 [22:21:29]wFMCommunicate OK [22:21:29]SAM_PROTO_SignData done [22:21:29]FM_MakeSignedData done [22:21:29]CreateOFDProtocolMessage [22:21:29]wFMCommunicate request_size=4 [22:21:29]MH_SAM_APDU [22:21:29]CAPDU: 80 11 00 00 [22:21:29]Write to MH i2c: E2 08 00 A4 65 80 11 00 00 00 00 00 00 83 [22:21:29]Write i2c OK [22:21:29]MH_I2C_Read... [22:21:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:21:29]Read from MH i2c: E2 [22:21:29]MH_I2C_Read... [22:21:29]Read from MH i2c: E2 17 00 [22:21:29]MH_I2C_Read... [22:21:29]Read from MH i2c: E2 17 00 A4 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 D3 [22:21:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [22:21:29]wFMCommunicate OK [22:21:29]CreateOFDProtocolMessage done [22:21:29]OFDSenderStorePacket 2138 [22:21:29]StoreOFDPacket docnum=2138 [22:21:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4D 02 00 00 43 AA 45 02 78 6A 5A 03 01 00 03 00 39 02 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 68 00 8A 04 0D 00 38 35 39 31 32 30 37 37 37 37 37 32 34 06 04 24 00 D0 9F D1 80 D0 B5 D0 B7 D0 B5 D1 80 D0 B2 D0 B0 D1 82 D0 B8 D0 B2 D1 8B 20 44 61 74 65 78 20 33 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 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 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 7C AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 12 00 00 00 00 07 04 06 00 7C AB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 6F C4 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 5A 08 00 00 35 04 06 00 34 64 92 A3 A7 C3 2E 4F 20 2E 48 16 87 17 [22:21:29]CheckFolder [22:21:29]dirname=/storage/ofd_packets [22:21:29]CheckFolder done [22:21:29]ProducePacketName [22:21:29]name=ofd_packets/00002138 [22:21:29]NVStorageSaveData ofd_packets/00002138 [22:21:29]File name is /storage/ofd_packets/00002138 [22:21:29]Write 619 bytes [22:21:29]NVStorageSaveData done [22:21:29]OFDSenderStorePacket done [22:21:29]KKMCreateOFDPacket done [22:21:29]NVStorageSaveData kkm_last_timestamp [22:21:29]File name is /storage/kkm_last_timestamp [22:21:29]Write 4 bytes [22:21:29]NVStorageSaveData done [22:21:29]ExternCall_PrintAddStr [22:21:29]wPrintStart [22:21:29]Write to MH i2c: 01 00 00 A5 65 0A [22:21:29]Write i2c OK [22:21:29]MH_I2C_Read... [22:21:29]Read from MH i2c: 01 [22:21:29]MH_I2C_Read... [22:21:29]Read from MH i2c: 01 07 00 [22:21:29]MH_I2C_Read... [22:21:29]Read from MH i2c: 01 07 00 A5 65 00 00 00 00 00 FF 0F 1F [22:21:29]RasterBufferAndPrint [22:21:29]line Счет N : (3)126434 [22:21:29]line ИНН: 02508201610067 [22:21:29]line Контрольно-Кассовый Чек [22:21:29]line ПРОДАЖА [22:21:29]line Товар: 4870001570071 [22:21:29]line Напиток Pepsi 1л [22:21:29]line 1.000 * 111.00 [22:21:29]line = 111.00 [22:21:29]line НДС 12% НСП 1% [22:21:29]line > о реализуемом товаре [22:21:29]line Товар: 8591207777724 [22:21:29]line Презервативы Datex 3шт [22:21:29]line 1.000 * 143.00 [22:21:29]line = 143.00 [22:21:29]line НДС 12% НСП 1% [22:21:29]line > о реализуемом товаре [22:21:30]line Товар: 48743587 [22:21:30]line Сигареты Winston XStyle Silver [22:21:30]line 1.000 * 140.00 [22:21:30]line = 140.00 [22:21:30]line НДС 12% НСП 1% [22:21:30]line > о реализуемом товаре [22:21:30]line Товар: 50173617 [22:21:30]line Жев Orbit Eucalyptus [22:21:30]line 1.000 * 45.00 [22:21:30]line = 45.00 [22:21:30]line НДС 12% НСП 1% [22:21:30]line > о реализуемом товаре [22:21:30]line ИТОГО: 439.00 [22:21:30]line НСП 1% : 3.88 [22:21:30]line НДС 12% : 46.63 [22:21:30]line Наличными: 439.00 [22:21:30]line Безнал.: 0.00 [22:21:30]line Место: АЗС № 127 "Партнер Нефть" [22:21:30]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [22:21:30]line СНО: Общий режим [22:21:30]line Чек 189 28.07.2024 22:21 [22:21:30]line Смена: 13 ФФД: 1.0 [22:21:30]line ЗНМ: 0300000161 [22:21:30]line РНМ: 0000000000189667 [22:21:30]line Версия ККМ: v1.0 [22:21:30]line ФМ: 0000000002094248 [22:21:30]line ФД: 2138 [22:21:30]line ФПД: 57606561572803 [22:21:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T222135&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2138&fm=57606561572803&tin=02508201610067®Number=0000000000189667&sum=43900 [22:21:30]line 0 [22:21:30]OFD Sender: Processing packet 2138 [packets to send 1, broken 0] [22:21:30]ProducePacketName [22:21:30]name=ofd_packets/00002138 [22:21:30]OFD Sender: To server: pG, [22:21:30]CommunicateWithHost lk.salyk.kg:30040 [22:21:30]ConnectInit lk.salyk.kg [22:21:30]written 0, free lines is 4095 [22:21:30]Connected sock=10 [22:21:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4D 02 00 00 43 AA 45 02 78 6A 5A 03 01 00 03 00 39 02 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 68 00 8A 04 0D 00 38 35 39 31 32 30 37 37 37 37 37 32 34 06 04 24 00 D0 9F D1 80 D0 B5 D0 B7 D0 B5 D1 80 D0 B2 D0 B0 D1 82 D0 B8 D0 B2 D1 8B 20 44 61 74 65 78 20 33 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 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 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 7C AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 12 00 00 00 00 07 04 06 00 7C AB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 6F C4 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 5A 08 00 00 35 04 06 00 34 64 92 A3 A7 C3 2E 4F 20 2E 48 16 87 17 [22:21:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 78 FB 47 00 17 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 5A 08 00 00 F4 03 04 00 DE 6F A6 66 B6 04 01 00 00 33 83 4A 22 42 72 E1 A6 [22:21:30]CommunicateWithHost err = 0 [22:21:30]CheckOFDResponse [22:21:30]1017 (14) - 77093643461234 [22:21:30]1041 (16) - 0000000002094248 [22:21:30]1040 (4) - 2138 [22:21:30]1012 (4) - 28.07.2024 16:20 [22:21:30]1206 (1) - 0 [22:21:30]OFD Sender: Remove packet 2138 [22:21:30]ProducePacketName [22:21:30]name=ofd_packets/00002138 [22:21:30]NVStorageDeleteData [22:21:30]Write to MH i2c: 01 00 00 E0 65 45 [22:21:30]Write i2c OK [22:21:30]MH_I2C_Read... [22:21:30]Read from MH i2c: 01 [22:21:30]MH_I2C_Read... [22:21:30]Read from MH i2c: 01 07 00 [22:21:30]MH_I2C_Read... [22:21:30]Read from MH i2c: 01 07 00 E0 65 00 00 00 00 00 1F 0C 77 [22:21:30]RasterBufferAndPrint [22:21:30]line [22:21:30]line [22:21:30]line [22:21:30]line [22:21:30]line [22:21:30]written 0, free lines is 3117 [22:21:30]MH_Cut [22:21:30]Write to MH i2c: D1 01 00 E7 65 01 1E [22:21:30]Write i2c OK [22:21:30]MH_I2C_Read... [22:21:30]Read from MH i2c: D1 [22:21:30]MH_I2C_Read... [22:21:30]Read from MH i2c: D1 01 00 [22:21:30]MH_I2C_Read... [22:21:30]Read from MH i2c: D1 01 00 E7 65 00 1D [22:21:30]Write to MH i2c: 01 00 00 E8 65 4D [22:21:30]Write i2c OK [22:21:30]MH_I2C_Read... [22:21:31]OFD Sender: No OFD packet to send [22:21:31]*** Cut start [22:21:31]*** Partial cut [22:21:31]*** CUTSNS_PIN = 1 [22:21:31]*** CUTSNS_PIN = 0 [22:21:32]*** Brake cut motor [22:21:32]Read from MH i2c: 01 [22:21:32]MH_I2C_Read... [22:21:32]*** Stop cut motor [22:21:32]*** Cut end [22:21:32]Read from MH i2c: 01 07 00 [22:21:32]MH_I2C_Read... [22:21:32]Read from MH i2c: 01 07 00 E8 65 00 00 00 00 00 FF 0F 62 [22:21:32]process_action close_receipt done [22:21:32]requested_data is exist [22:21:32]produce_requested_data [22:21:32]requested_item fm.sn is exist - process it [22:21:32]wFMCommunicate request_size=4 [22:21:32]MH_SAM_APDU [22:21:32]CAPDU: 80 11 00 00 [22:21:32]Write to MH i2c: E2 08 00 E9 65 80 11 00 00 00 00 00 00 C8 [22:21:32]Write i2c OK [22:21:32]MH_I2C_Read... [22:21:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:21:32]Read from MH i2c: E2 [22:21:32]MH_I2C_Read... [22:21:32]Read from MH i2c: E2 17 00 [22:21:32]MH_I2C_Read... [22:21:32]Read from MH i2c: E2 17 00 E9 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 18 [22:21:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [22:21:32]wFMCommunicate OK [22:21:32]requested_item fd.num is exist - process it [22:21:32]SAM_PROTO_GetFieldsCounters [22:21:32]wFMCommunicate request_size=4 [22:21:32]MH_SAM_APDU [22:21:32]CAPDU: 80 13 00 00 [22:21:32]Write to MH i2c: E2 08 00 EA 65 80 13 00 00 00 00 00 00 CB [22:21:32]Write i2c OK [22:21:32]MH_I2C_Read... [22:21:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:21:32]Read from MH i2c: E2 [22:21:32]MH_I2C_Read... [22:21:32]Read from MH i2c: E2 62 00 [22:21:32]MH_I2C_Read... [22:21:32]Read from MH i2c: E2 62 00 EA 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 5A 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 9B [22:21:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 5A 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:21:32]wFMCommunicate OK [22:21:32]SAM_PROTO_GetFieldsCounters done [22:21:32]requested_item shift.num is exist - process it [22:21:32]requested_item shift.opened is exist - process it [22:21:32]req_shift_opened [22:21:32]FM_GetShiftState [22:21:32]SAM_PROTO_GetShiftState [22:21:32]wFMCommunicate request_size=4 [22:21:32]MH_SAM_APDU [22:21:32]CAPDU: 80 13 01 00 [22:21:32]Write to MH i2c: E2 08 00 EB 65 80 13 01 00 00 00 00 00 CD [22:21:32]Write i2c OK [22:21:32]MH_I2C_Read... [22:21:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:21:32]Read from MH i2c: E2 [22:21:32]MH_I2C_Read... [22:21:32]Read from MH i2c: E2 0E 00 [22:21:32]MH_I2C_Read... [22:21:32]Read from MH i2c: E2 0E 00 EB 65 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 C1 [22:21:32]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [22:21:32]wFMCommunicate OK [22:21:32]SAM_PROTO_GetShiftState done [22:21:32]FM_GetShiftState done [22:21:32]req_shift_opened done [22:21:32]requested_item shift.open_date is exist - process it [22:21:32]req_shift_open_date [22:21:32]req_shift_open_date done [22:21:32]produce_requested_data done [22:21:32]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2138,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [22:21:32]process_action_free close_receipt [22:21:32]json_value_free [22:21:32]json_value_free done [22:21:32]process_json_proto returns [22:21:32]Send response to host [22:21:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2138,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [22:21:32]free response buf [22:21:32]execute_script done [22:21:32]execute_script returns [22:21:32]free content buf [22:21:32]Sock 8.Close socket [22:21:32]Sock 8.Thread stoped [22:21:36]OFD Sender: No OFD packet to send [22:21:41]OFD Sender: No OFD packet to send [22:21:46]OFD Sender: No OFD packet to send [22:21:51]OFD Sender: No OFD packet to send [22:21:56]OFD Sender: No OFD packet to send [22:22:01]OFD Sender: No OFD packet to send [22:22:06]OFD Sender: No OFD packet to send [22:22:11]OFD Sender: No OFD packet to send [22:22:16]OFD Sender: No OFD packet to send [22:22:21]OFD Sender: No OFD packet to send [22:22:26]OFD Sender: No OFD packet to send [22:22:31]OFD Sender: No OFD packet to send [22:22:36]OFD Sender: No OFD packet to send [22:22:41]OFD Sender: No OFD packet to send [22:22:46]OFD Sender: No OFD packet to send [22:22:51]OFD Sender: No OFD packet to send [22:22:56]OFD Sender: No OFD packet to send [22:23:01]OFD Sender: No OFD packet to send [22:23:06]OFD Sender: No OFD packet to send [22:23:11]OFD Sender: No OFD packet to send [22:23:16]OFD Sender: No OFD packet to send [22:23:21]OFD Sender: No OFD packet to send [22:23:26]OFD Sender: No OFD packet to send [22:23:31]OFD Sender: No OFD packet to send [22:23:36]OFD Sender: No OFD packet to send [22:23:41]OFD Sender: No OFD packet to send [22:23:46]OFD Sender: No OFD packet to send [22:23:51]OFD Sender: No OFD packet to send [22:23:56]OFD Sender: No OFD packet to send [22:24:01]OFD Sender: No OFD packet to send [22:24:06]OFD Sender: No OFD packet to send [22:24:11]OFD Sender: No OFD packet to send [22:24:16]OFD Sender: No OFD packet to send [22:24:21]OFD Sender: No OFD packet to send [22:24:26]OFD Sender: No OFD packet to send [22:24:31]OFD Sender: No OFD packet to send [22:24:36]OFD Sender: No OFD packet to send [22:24:41]OFD Sender: No OFD packet to send [22:24:46]OFD Sender: No OFD packet to send [22:24:51]OFD Sender: No OFD packet to send [22:24:56]OFD Sender: No OFD packet to send [22:25:01]OFD Sender: No OFD packet to send [22:25:06]OFD Sender: No OFD packet to send [22:25:11]OFD Sender: No OFD packet to send [22:25:16]OFD Sender: No OFD packet to send [22:25:21]OFD Sender: No OFD packet to send [22:25:26]OFD Sender: No OFD packet to send [22:25:31]OFD Sender: No OFD packet to send [22:25:36]OFD Sender: No OFD packet to send [22:25:41]OFD Sender: No OFD packet to send [22:25:46]OFD Sender: No OFD packet to send [22:25:51]OFD Sender: No OFD packet to send [22:25:56]OFD Sender: No OFD packet to send [22:26:01]OFD Sender: No OFD packet to send [22:26:06]OFD Sender: No OFD packet to send [22:26:11]OFD Sender: No OFD packet to send [22:26:16]OFD Sender: No OFD packet to send [22:26:21]OFD Sender: No OFD packet to send [22:26:26]OFD Sender: No OFD packet to send [22:26:31]OFD Sender: No OFD packet to send [22:26:36]OFD Sender: No OFD packet to send [22:26:41]OFD Sender: No OFD packet to send [22:26:46]OFD Sender: No OFD packet to send [22:26:51]OFD Sender: No OFD packet to send [22:26:56]OFD Sender: No OFD packet to send [22:27:01]OFD Sender: No OFD packet to send [22:27:06]OFD Sender: No OFD packet to send [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:35:40]ConnectInit Can't connect to host [22:35:41]OFD Sender: No OFD packet to send [22:35:46]OFD Sender: No OFD packet to send [22:35:51]OFD Sender: No OFD packet to send [22:35:56]OFD Sender: No OFD packet to send [22:36:01]OFD Sender: No OFD packet to send [22:36:06]OFD Sender: No OFD packet to send [22:36:11]OFD Sender: No OFD packet to send [22:36:16]OFD Sender: No OFD packet to send [22:36:21]OFD Sender: No OFD packet to send [22:36:26]OFD Sender: No OFD packet to send [22:36:31]OFD Sender: No OFD packet to send [22:36:36]OFD Sender: No OFD packet to send [22:36:41]OFD Sender: No OFD packet to send [22:36:46]OFD Sender: No OFD packet to send [22:36:51]OFD Sender: No OFD packet to send [22:36:56]OFD Sender: No OFD packet to send [22:37:01]OFD Sender: No OFD packet to send [22:37:06]OFD Sender: No OFD packet to send [22:37:11]OFD Sender: No OFD packet to send [22:37:16]OFD Sender: No OFD packet to send [22:37:21]OFD Sender: No OFD packet to send [22:37:26]OFD Sender: No OFD packet to send [22:37:31]OFD Sender: No OFD packet to send [22:37:36]OFD Sender: No OFD packet to send [22:37:41]OFD Sender: No OFD packet to send [22:37:46]OFD Sender: No OFD packet to send [22:37:51]OFD Sender: No OFD packet to send [22:37:56]OFD Sender: No OFD packet to send [22:38:01]OFD Sender: No OFD packet to send [22:38:06]OFD Sender: No OFD packet to send [22:38:11]OFD Sender: No OFD packet to send [22:38:17]OFD Sender: No OFD packet to send [22:38:22]OFD Sender: No OFD packet to send [22:38:27]OFD Sender: No OFD packet to send [22:38:32]OFD Sender: No OFD packet to send [22:38:37]OFD Sender: No OFD packet to send [22:38:42]OFD Sender: No OFD packet to send [22:38:47]OFD Sender: No OFD packet to send [22:38:52]OFD Sender: No OFD packet to send [22:38:57]OFD Sender: No OFD packet to send [22:39:02]OFD Sender: No OFD packet to send [22:39:07]OFD Sender: No OFD packet to send [22:39:12]OFD Sender: No OFD packet to send [22:39:17]OFD Sender: No OFD packet to send [22:39:22]OFD Sender: No OFD packet to send [22:39:27]OFD Sender: No OFD packet to send [22:39:32]OFD Sender: No OFD packet to send [22:39:37]OFD Sender: No OFD packet to send [22:39:42]OFD Sender: No OFD packet to send [22:39:47]OFD Sender: No OFD packet to send [22:39:52]OFD Sender: No OFD packet to send [22:39:57]OFD Sender: No OFD packet to send [22:40:02]OFD Sender: No OFD packet to send [22:40:07]OFD Sender: No OFD packet to send [22:40:12]OFD Sender: No OFD packet to send [22:40:17]OFD Sender: No OFD packet to send [22:40:22]OFD Sender: No OFD packet to send [22:40:27]OFD Sender: No OFD packet to send [22:40:32]OFD Sender: No OFD packet to send [22:40:37]OFD Sender: No OFD packet to send [22:40:42]OFD Sender: No OFD packet to send [22:40:47]OFD Sender: No OFD packet to send [22:40:52]OFD Sender: No OFD packet to send [22:40:57]OFD Sender: No OFD packet to send [22:41:02]OFD Sender: No OFD packet to send [22:41:07]OFD Sender: No OFD packet to send [22:41:12]OFD Sender: No OFD packet to send [22:41:17]OFD Sender: No OFD packet to send [22:41:22]OFD Sender: No OFD packet to send [22:41:27]OFD Sender: No OFD packet to send [22:41:27]accept exits with 9 [22:41:27]New connection [22:41:27]New thread 3067460964 created [22:41:27]Thread 3067317604 joined [22:41:27]Waiting for new connection... [22:41:27] Sock 9.Parse request [22:41:27]Sock 9.Check first char [22:41:27]Sock 9.First char is OK [22:41:27]request: POST /json_proto HTTP/1.0 [22:41:27]Method: POST [22:41:27]URL: /json_proto [22:41:27]Method is POST - this is cgi request [22:41:27]url: /json_proto [22:41:27]query_string will be loaded in cgi processing [22:41:27]execute_cgi json_proto POST (null) [22:41:27]execute_cgi path=json_proto method=POST [22:41:27]POST find Content-Length [22:41:27]Host: 172.17.45.132:8080 [22:41:27]Content-Length: 700 [22:41:27]Content-Type: application/json [22:41:27] [22:41:27]POST finish read [22:41:27]Found Content-Length = 700 [22:41:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126435", "tax_sys" : 0, "items" : [ { "code": "4600682035466", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0431\u0435\u0437\u0430\u043B\u043A. Flash Up \u042D\u043A\u0437\u043E\u0442\u0438\u043A 0,45 \u0436/", "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" ] } } [22:41:27]execute_script... [22:41:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126435", "tax_sys" : 0, "items" : [ { "code": "4600682035466", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0431\u0435\u0437\u0430\u043B\u043A. Flash Up \u042D\u043A\u0437\u043E\u0442\u0438\u043A 0,45 \u0436/", "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" ] } } [22:41:27]POST & json_proto [22:41:27]process_json_proto [22:41:27]json parsed OK: [22:41:27]protocol is kg_v1.0 [22:41:27]action value=close_receipt [22:41:27]process_action close_receipt [22:41:27]cmd_close_receipt [22:41:27]MH_GetDate [22:41:27]Write to MH i2c: F0 00 00 EC 65 40 [22:41:27]Write i2c OK [22:41:27]MH_I2C_Read... [22:41:27]Read from MH i2c: F0 [22:41:27]MH_I2C_Read... [22:41:27]Read from MH i2c: F0 09 00 [22:41:27]MH_I2C_Read... [22:41:27]Read from MH i2c: F0 09 00 EC 65 00 1F C9 A6 66 E3 0B 90 66 21 [22:41:27]GetLastDocTimeStamp 1722205295 [22:41:27]current date 1722206495 [22:41:27]FM_GetShiftState [22:41:27]SAM_PROTO_GetShiftState [22:41:27]wFMCommunicate request_size=4 [22:41:27]MH_SAM_APDU [22:41:27]CAPDU: 80 13 01 00 [22:41:27]Write to MH i2c: E2 08 00 ED 65 80 13 01 00 00 00 00 00 CF [22:41:27]Write i2c OK [22:41:27]MH_I2C_Read... [22:41:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:41:27]Read from MH i2c: E2 [22:41:27]MH_I2C_Read... [22:41:27]Read from MH i2c: E2 0E 00 [22:41:27]MH_I2C_Read... [22:41:27]Read from MH i2c: E2 0E 00 ED 65 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 C3 [22:41:27]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [22:41:27]wFMCommunicate OK [22:41:27]SAM_PROTO_GetShiftState done [22:41:27]FM_GetShiftState done [22:41:27]opened in 1722125648 [22:41:27]opened+sec_in_day 1722212048 [22:41:27]quantity*price = 8500 [22:41:27]sum+1 = 8501 [22:41:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 190 28.07.2024 22:41 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2139 ФПД: 19522080817096 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T224135&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2139&fm=19522080817096&tin=02508201610067®Number=0000000000189667&sum=8500 0 [22:41:29]StoreToDocumentArchive [22:41:29]shift 13 fd 2139 [22:41:29]save to /storage/0013/doc_00002139 [22:41:29]save last doc name /storage/0013/doc_00002139 to /storage/kkm_last_doc_name [22:41:29]save OK [22:41:29]Clear old archive folders... [22:41:29]ProcessDocumentItem done err = 0, tmpTLVsize=303 [22:41:29]tlvbuf is 02010D90 [22:41:29]SAM_PROTO_ClearQueue [22:41:29]wFMCommunicate request_size=4 [22:41:29]MH_SAM_APDU [22:41:29]CAPDU: 80 09 00 00 [22:41:29]Write to MH i2c: E2 08 00 FA 65 80 09 00 00 00 00 00 00 D1 [22:41:29]Write i2c OK [22:41:29]MH_I2C_Read... [22:41:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:41:29]Read from MH i2c: E2 [22:41:29]MH_I2C_Read... [22:41:29]Read from MH i2c: E2 03 00 [22:41:29]MH_I2C_Read... [22:41:29]Read from MH i2c: E2 03 00 FA 65 00 90 00 D3 [22:41:29]RAPDU: 90 00 [22:41:29]wFMCommunicate OK [22:41:29]SAM_PROTO_ClearQueue done [22:41:29]KKMCreateOFDPacket [22:41:29]OFDProtocolAddRootSTLVToBuf [22:41:29]FM_MakeSignedData [22:41:29]FM_MakeSignedData [22:41:29]SAM_PROTO_SignData [22:41:29]wFMCommunicate request_size=4 [22:41:29]MH_SAM_APDU [22:41:29]CAPDU: 80 0D 01 02 [22:41:29]Write to MH i2c: E2 08 00 FB 65 80 0D 01 02 00 00 00 00 D9 [22:41:29]Write i2c OK [22:41:29]MH_I2C_Read... [22:41:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:41:29]Read from MH i2c: E2 [22:41:29]MH_I2C_Read... [22:41:29]Read from MH i2c: E2 03 00 [22:41:29]MH_I2C_Read... [22:41:29]Read from MH i2c: E2 03 00 FB 65 00 90 00 D4 [22:41:29]RAPDU: 90 00 [22:41:29]wFMCommunicate OK [22:41:29]wFMCommunicate request_size=255 [22:41:29]MH_SAM_APDU [22:41:29]CAPDU: 80 0D 02 02 FA 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 36 30 30 36 38 32 30 33 35 34 36 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B1 D0 B5 D0 B7 D0 B0 D0 BB D0 BA 2E 20 46 6C 61 73 68 20 55 70 20 D0 AD D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2C 34 35 20 D0 B6 2F 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 BE 00 00 00 F4 03 04 00 1F C9 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D [22:41:29]Write to MH i2c: E2 02 01 FC 65 80 0D 02 02 FA 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 36 30 30 36 38 32 30 33 35 34 36 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B1 D0 B5 D0 B7 D0 B0 D0 BB D0 BA 2E 20 46 6C 61 73 68 20 55 70 20 D0 AD D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2C 34 35 20 D0 B6 2F 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 BE 00 00 00 F4 03 04 00 1F C9 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 00 00 EB [22:41:29]Write i2c OK [22:41:29]MH_I2C_Read... [22:41:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:41:29]Read from MH i2c: E2 [22:41:29]MH_I2C_Read... [22:41:29]Read from MH i2c: E2 03 00 [22:41:29]MH_I2C_Read... [22:41:29]Read from MH i2c: E2 03 00 FC 65 00 90 00 D5 [22:41:29]RAPDU: 90 00 [22:41:29]wFMCommunicate OK [22:41:29]wFMCommunicate request_size=62 [22:41:29]MH_SAM_APDU [22:41:29]CAPDU: 80 0D 02 02 39 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 5B 08 00 00 35 04 06 00 11 C1 56 B1 3F C8 [22:41:29]Write to MH i2c: E2 41 00 FD 65 80 0D 02 02 39 00 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 5B 08 00 00 35 04 06 00 11 C1 56 B1 3F C8 00 00 63 [22:41:29]Write i2c OK [22:41:29]MH_I2C_Read... [22:41:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:41:29]Read from MH i2c: E2 [22:41:29]MH_I2C_Read... [22:41:29]Read from MH i2c: E2 03 00 [22:41:29]MH_I2C_Read... [22:41:29]Read from MH i2c: E2 03 00 FD 65 00 90 00 D6 [22:41:29]RAPDU: 90 00 [22:41:29]wFMCommunicate OK [22:41:29]wFMCommunicate request_size=4 [22:41:29]MH_SAM_APDU [22:41:29]CAPDU: 80 0D 03 02 [22:41:29]Write to MH i2c: E2 08 00 FE 65 80 0D 03 02 00 00 00 00 DE [22:41:29]Write i2c OK [22:41:29]MH_I2C_Read... [22:41:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:41:29]Read from MH i2c: E2 [22:41:29]MH_I2C_Read... [22:41:29]Read from MH i2c: E2 0B 00 [22:41:29]MH_I2C_Read... [22:41:29]Read from MH i2c: E2 0B 00 FE 65 00 9E F2 C2 5C 3A 11 C0 5A 90 00 F2 [22:41:29]RAPDU: 9E F2 C2 5C 3A 11 C0 5A 90 00 [22:41:29]wFMCommunicate OK [22:41:29]SAM_PROTO_SignData done [22:41:29]FM_MakeSignedData done [22:41:29]CreateOFDProtocolMessage [22:41:29]wFMCommunicate request_size=4 [22:41:29]MH_SAM_APDU [22:41:29]CAPDU: 80 11 00 00 [22:41:29]Write to MH i2c: E2 08 00 FF 65 80 11 00 00 00 00 00 00 DE [22:41:29]Write i2c OK [22:41:29]MH_I2C_Read... [22:41:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:41:29]Read from MH i2c: E2 [22:41:29]MH_I2C_Read... [22:41:29]Read from MH i2c: E2 17 00 [22:41:29]MH_I2C_Read... [22:41:29]Read from MH i2c: E2 17 00 FF 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 2E [22:41:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [22:41:29]wFMCommunicate OK [22:41:29]CreateOFDProtocolMessage done [22:41:29]OFDSenderStorePacket 2139 [22:41:29]StoreOFDPacket docnum=2139 [22:41:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 43 01 00 00 0C 33 3B 01 3E 81 5A 03 01 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 36 30 30 36 38 32 30 33 35 34 36 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B1 D0 B5 D0 B7 D0 B0 D0 BB D0 BA 2E 20 46 6C 61 73 68 20 55 70 20 D0 AD D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2C 34 35 20 D0 B6 2F 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 BE 00 00 00 F4 03 04 00 1F C9 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 5B 08 00 00 35 04 06 00 11 C1 56 B1 3F C8 9E F2 C2 5C 3A 11 C0 5A [22:41:29]CheckFolder [22:41:29]dirname=/storage/ofd_packets [22:41:29]CheckFolder done [22:41:29]ProducePacketName [22:41:29]name=ofd_packets/00002139 [22:41:29]NVStorageSaveData ofd_packets/00002139 [22:41:29]File name is /storage/ofd_packets/00002139 [22:41:29]Write 353 bytes [22:41:29]NVStorageSaveData done [22:41:29]OFDSenderStorePacket done [22:41:29]KKMCreateOFDPacket done [22:41:29]NVStorageSaveData kkm_last_timestamp [22:41:29]File name is /storage/kkm_last_timestamp [22:41:29]Write 4 bytes [22:41:29]NVStorageSaveData done [22:41:29]ExternCall_PrintAddStr [22:41:29]wPrintStart [22:41:29]Write to MH i2c: 01 00 00 00 66 66 [22:41:29]OFD Sender: Processing packet 2139 [packets to send 1, broken 0] [22:41:29]ProducePacketName [22:41:29]name=ofd_packets/00002139 [22:41:29]OFD Sender: To server: pG, [22:41:29]CommunicateWithHost lk.salyk.kg:30040 [22:41:29]ConnectInit lk.salyk.kg [22:41:29]Write i2c OK [22:41:29]MH_I2C_Read... [22:41:29]Read from MH i2c: 01 [22:41:29]MH_I2C_Read... [22:41:29]Read from MH i2c: 01 07 00 [22:41:29]MH_I2C_Read... [22:41:29]Read from MH i2c: 01 07 00 00 66 00 00 00 00 00 FF 0F 7B [22:41:29]RasterBufferAndPrint [22:41:29]line Счет N : (3)126435 [22:41:29]line ИНН: 02508201610067 [22:41:29]line Контрольно-Кассовый Чек [22:41:29]line ПРОДАЖА [22:41:29]line Товар: 4600682035466 [22:41:29]line Напиток безалк. Flash Up Экзотик 0,45 ж/ [22:41:29]line 1.000 * 85.00 [22:41:29]line = 85.00 [22:41:29]line НДС 12% НСП 1% [22:41:29]line > о реализуемом товаре [22:41:29]line ИТОГО: 85.00 [22:41:29]line НСП 1% : 0.75 [22:41:29]line НДС 12% : 9.03 [22:41:29]line Наличными: 85.00 [22:41:29]line Безнал.: 0.00 [22:41:29]line Место: АЗС № 127 "Партнер Нефть" [22:41:29]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [22:41:29]line СНО: Общий режим [22:41:29]line Чек 190 28.07.2024 22:41 [22:41:29]line Смена: 13 ФФД: 1.0 [22:41:29]line ЗНМ: 0300000161 [22:41:29]line РНМ: 0000000000189667 [22:41:29]line Версия ККМ: v1.0 [22:41:29]line ФМ: 0000000002094248 [22:41:29]line ФД: 2139 [22:41:29]line ФПД: 19522080817096 [22:41:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T224135&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2139&fm=19522080817096&tin=02508201610067®Number=0000000000189667&sum=8500 [22:41:29]line 0 [22:41:29]written 0, free lines is 4095 [22:41:29]Connected sock=10 [22:41:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 43 01 00 00 0C 33 3B 01 3E 81 5A 03 01 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 36 30 30 36 38 32 30 33 35 34 36 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B1 D0 B5 D0 B7 D0 B0 D0 BB D0 BA 2E 20 46 6C 61 73 68 20 55 70 20 D0 AD D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2C 34 35 20 D0 B6 2F 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 BE 00 00 00 F4 03 04 00 1F C9 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 5B 08 00 00 35 04 06 00 11 C1 56 B1 3F C8 9E F2 C2 5C 3A 11 C0 5A [22:41:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 19 CF 47 00 C9 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 5B 08 00 00 F4 03 04 00 8D 74 A6 66 B6 04 01 00 00 86 7A 88 DD BA 66 6F D8 [22:41:30]CommunicateWithHost err = 0 [22:41:30]CheckOFDResponse [22:41:30]1017 (14) - 77093643461234 [22:41:30]1041 (16) - 0000000002094248 [22:41:30]1040 (4) - 2139 [22:41:30]1012 (4) - 28.07.2024 16:40 [22:41:30]1206 (1) - 0 [22:41:30]OFD Sender: Remove packet 2139 [22:41:30]ProducePacketName [22:41:30]name=ofd_packets/00002139 [22:41:30]NVStorageDeleteData [22:41:30]Write to MH i2c: 01 00 00 29 66 8F [22:41:30]Write i2c OK [22:41:30]MH_I2C_Read... [22:41:30]Read from MH i2c: 01 [22:41:30]MH_I2C_Read... [22:41:30]Read from MH i2c: 01 07 00 [22:41:30]MH_I2C_Read... [22:41:30]Read from MH i2c: 01 07 00 29 66 00 00 00 00 00 05 0D A8 [22:41:30]RasterBufferAndPrint [22:41:30]line [22:41:30]line [22:41:30]line [22:41:30]line [22:41:30]line [22:41:30]written 0, free lines is 3342 [22:41:30]MH_Cut [22:41:30]Write to MH i2c: D1 01 00 30 66 01 68 [22:41:30]Write i2c OK [22:41:30]MH_I2C_Read... [22:41:30]Read from MH i2c: D1 [22:41:30]MH_I2C_Read... [22:41:30]Read from MH i2c: D1 01 00 [22:41:30]MH_I2C_Read... [22:41:30]Read from MH i2c: D1 01 00 30 66 00 67 [22:41:30]Write to MH i2c: 01 00 00 31 66 97 [22:41:30]Write i2c OK [22:41:30]MH_I2C_Read... [22:41:30]OFD Sender: No OFD packet to send [22:41:30]*** Cut start [22:41:30]*** Partial cut [22:41:30]*** CUTSNS_PIN = 1 [22:41:30]*** CUTSNS_PIN = 0 [22:41:31]*** Brake cut motor [22:41:31]Read from MH i2c: 01 [22:41:31]MH_I2C_Read... [22:41:31]*** Stop cut motor [22:41:31]*** Cut end [22:41:31]Read from MH i2c: 01 07 00 [22:41:31]MH_I2C_Read... [22:41:31]Read from MH i2c: 01 07 00 31 66 00 00 00 00 00 FF 0F AC [22:41:31]process_action close_receipt done [22:41:31]requested_data is exist [22:41:31]produce_requested_data [22:41:31]requested_item fm.sn is exist - process it [22:41:31]wFMCommunicate request_size=4 [22:41:31]MH_SAM_APDU [22:41:31]CAPDU: 80 11 00 00 [22:41:31]Write to MH i2c: E2 08 00 32 66 80 11 00 00 00 00 00 00 12 [22:41:31]Write i2c OK [22:41:31]MH_I2C_Read... [22:41:31]Read from MH i2c: E2 [22:41:31]MH_I2C_Read... [22:41:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:41:31]Read from MH i2c: E2 17 00 [22:41:31]MH_I2C_Read... [22:41:31]Read from MH i2c: E2 17 00 32 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 62 [22:41:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [22:41:31]wFMCommunicate OK [22:41:31]requested_item fd.num is exist - process it [22:41:31]SAM_PROTO_GetFieldsCounters [22:41:31]wFMCommunicate request_size=4 [22:41:31]MH_SAM_APDU [22:41:31]CAPDU: 80 13 00 00 [22:41:31]Write to MH i2c: E2 08 00 33 66 80 13 00 00 00 00 00 00 15 [22:41:31]Write i2c OK [22:41:31]MH_I2C_Read... [22:41:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:41:31]Read from MH i2c: E2 [22:41:31]MH_I2C_Read... [22:41:31]Read from MH i2c: E2 62 00 [22:41:31]MH_I2C_Read... [22:41:31]Read from MH i2c: E2 62 00 33 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 5B 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 E9 [22:41:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 5B 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:41:31]wFMCommunicate OK [22:41:31]SAM_PROTO_GetFieldsCounters done [22:41:31]requested_item shift.num is exist - process it [22:41:31]requested_item shift.opened is exist - process it [22:41:31]req_shift_opened [22:41:31]FM_GetShiftState [22:41:31]SAM_PROTO_GetShiftState [22:41:31]wFMCommunicate request_size=4 [22:41:31]MH_SAM_APDU [22:41:31]CAPDU: 80 13 01 00 [22:41:31]Write to MH i2c: E2 08 00 34 66 80 13 01 00 00 00 00 00 17 [22:41:31]Write i2c OK [22:41:31]MH_I2C_Read... [22:41:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:41:31]Read from MH i2c: E2 [22:41:31]MH_I2C_Read... [22:41:31]Read from MH i2c: E2 0E 00 [22:41:31]MH_I2C_Read... [22:41:31]Read from MH i2c: E2 0E 00 34 66 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 0B [22:41:31]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [22:41:31]wFMCommunicate OK [22:41:31]SAM_PROTO_GetShiftState done [22:41:31]FM_GetShiftState done [22:41:31]req_shift_opened done [22:41:31]requested_item shift.open_date is exist - process it [22:41:31]req_shift_open_date [22:41:31]req_shift_open_date done [22:41:31]produce_requested_data done [22:41:31]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2139,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [22:41:31]process_action_free close_receipt [22:41:31]json_value_free [22:41:31]json_value_free done [22:41:31]process_json_proto returns [22:41:31]Send response to host [22:41:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2139,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [22:41:31]free response buf [22:41:31]execute_script done [22:41:31]execute_script returns [22:41:31]free content buf [22:41:31]Sock 9.Close socket [22:41:31]Sock 9.Thread stoped [22:41:35]OFD Sender: No OFD packet to send [22:41:40]OFD Sender: No OFD packet to send [22:41:45]OFD Sender: No OFD packet to send [22:41:50]OFD Sender: No OFD packet to send [22:41:55]OFD Sender: No OFD packet to send [22:42:00]OFD Sender: No OFD packet to send [22:42:05]OFD Sender: No OFD packet to send [22:42:10]OFD Sender: No OFD packet to send [22:42:15]OFD Sender: No OFD packet to send [22:42:20]OFD Sender: No OFD packet to send [22:42:25]OFD Sender: No OFD packet to send [22:42:30]OFD Sender: No OFD packet to send [22:42:35]OFD Sender: No OFD packet to send [22:42:40]OFD Sender: No OFD packet to send [22:42:45]OFD Sender: No OFD packet to send [22:42:50]OFD Sender: No OFD packet to send [22:42:55]OFD Sender: No OFD packet to send [22:43:00]OFD Sender: No OFD packet to send [22:43:05]OFD Sender: No OFD packet to send [22:43:10]OFD Sender: No OFD packet to send [22:43:15]OFD Sender: No OFD packet to send [22:43:20]OFD Sender: No OFD packet to send [22:43:25]OFD Sender: No OFD packet to send [22:43:30]OFD Sender: No OFD packet to send [22:43:35]OFD Sender: No OFD packet to send [22:43:40]OFD Sender: No OFD packet to send [22:43:45]OFD Sender: No OFD packet to send [22:43:50]OFD Sender: No OFD packet to send [22:43:55]OFD Sender: No OFD packet to send [22:44:00]OFD Sender: No OFD packet to send [22:44:05]OFD Sender: No OFD packet to send [22:44:10]OFD Sender: No OFD packet to send [22:44:15]OFD Sender: No OFD packet to send [22:44:20]OFD Sender: No OFD packet to send [22:44:22]accept exits with 8 [22:44:22]New connection [22:44:22]New thread 3067317604 created [22:44:22]Thread 3067460964 joined [22:44:22]Waiting for new connection... [22:44:22] Sock 8.Parse request [22:44:22]Sock 8.Check first char [22:44:22]Sock 8.First char is OK [22:44:22]request: POST /json_proto HTTP/1.0 [22:44:22]Method: POST [22:44:22]URL: /json_proto [22:44:22]Method is POST - this is cgi request [22:44:22]url: /json_proto [22:44:22]query_string will be loaded in cgi processing [22:44:22]execute_cgi json_proto POST (null) [22:44:22]execute_cgi path=json_proto method=POST [22:44:22]POST find Content-Length [22:44:22]Host: 172.17.45.132:8080 [22:44:22]Content-Length: 775 [22:44:22]Content-Type: application/json [22:44:22] [22:44:22]POST finish read [22:44:22]Found Content-Length = 775 [22:44:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126436", "tax_sys" : 0, "items" : [ { "code": "4870001570095", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 2\u043B", "price" : 210.00, "quantity" : 1.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:44:22]execute_script... [22:44:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126436", "tax_sys" : 0, "items" : [ { "code": "4870001570095", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 2\u043B", "price" : 210.00, "quantity" : 1.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:44:22]POST & json_proto [22:44:22]process_json_proto [22:44:22]json parsed OK: [22:44:22]protocol is kg_v1.0 [22:44:22]action value=close_receipt [22:44:22]process_action close_receipt [22:44:22]cmd_close_receipt [22:44:22]MH_GetDate [22:44:22]Write to MH i2c: F0 00 00 35 66 8A [22:44:22]Write i2c OK [22:44:22]MH_I2C_Read... [22:44:22]Read from MH i2c: F0 [22:44:22]MH_I2C_Read... [22:44:22]Read from MH i2c: F0 09 00 [22:44:22]MH_I2C_Read... [22:44:22]Read from MH i2c: F0 09 00 35 66 00 CE C9 A6 66 E3 0B 90 66 1A [22:44:22]GetLastDocTimeStamp 1722206495 [22:44:22]current date 1722206670 [22:44:22]FM_GetShiftState [22:44:22]SAM_PROTO_GetShiftState [22:44:22]wFMCommunicate request_size=4 [22:44:22]MH_SAM_APDU [22:44:22]CAPDU: 80 13 01 00 [22:44:22]Write to MH i2c: E2 08 00 36 66 80 13 01 00 00 00 00 00 19 [22:44:22]Write i2c OK [22:44:22]MH_I2C_Read... [22:44:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:44:22]Read from MH i2c: E2 [22:44:22]MH_I2C_Read... [22:44:22]Read from MH i2c: E2 0E 00 [22:44:22]MH_I2C_Read... [22:44:22]Read from MH i2c: E2 0E 00 36 66 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 0D [22:44:22]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [22:44:22]wFMCommunicate OK [22:44:22]SAM_PROTO_GetShiftState done [22:44:22]FM_GetShiftState done [22:44:22]opened in 1722125648 [22:44:22]opened+sec_in_day 1722212048 [22:44:22]quantity*price = 21000 [22:44:22]sum+1 = 21001 [22:44:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 210.00 НСП 1% : 1.86 НДС 12% : 22.30 Наличными: 0.00 Безнал.: 210.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 191 28.07.2024 22:44 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2140 ФПД: 112216926086786 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T224430&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2140&fm=112216926086786&tin=02508201610067®Number=0000000000189667&sum=21000 0 [22:44:23]StoreToDocumentArchive [22:44:23]shift 13 fd 2140 [22:44:23]save to /storage/0013/doc_00002140 [22:44:23]save last doc name /storage/0013/doc_00002140 to /storage/kkm_last_doc_name [22:44:23]save OK [22:44:23]Clear old archive folders... [22:44:23]ProcessDocumentItem done err = 0, tmpTLVsize=266 [22:44:23]tlvbuf is 02063AF0 [22:44:23]SAM_PROTO_ClearQueue [22:44:23]wFMCommunicate request_size=4 [22:44:23]MH_SAM_APDU [22:44:23]CAPDU: 80 09 00 00 [22:44:23]Write to MH i2c: E2 08 00 43 66 80 09 00 00 00 00 00 00 1B [22:44:23]Write i2c OK [22:44:23]MH_I2C_Read... [22:44:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:44:24]Read from MH i2c: E2 [22:44:24]MH_I2C_Read... [22:44:24]Read from MH i2c: E2 03 00 [22:44:24]MH_I2C_Read... [22:44:24]Read from MH i2c: E2 03 00 43 66 00 90 00 1D [22:44:24]RAPDU: 90 00 [22:44:24]wFMCommunicate OK [22:44:24]SAM_PROTO_ClearQueue done [22:44:24]KKMCreateOFDPacket [22:44:24]OFDProtocolAddRootSTLVToBuf [22:44:24]FM_MakeSignedData [22:44:24]FM_MakeSignedData [22:44:24]SAM_PROTO_SignData [22:44:24]wFMCommunicate request_size=4 [22:44:24]MH_SAM_APDU [22:44:24]CAPDU: 80 0D 01 02 [22:44:24]Write to MH i2c: E2 08 00 44 66 80 0D 01 02 00 00 00 00 23 [22:44:24]Write i2c OK [22:44:24]MH_I2C_Read... [22:44:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:44:24]Read from MH i2c: E2 [22:44:24]MH_I2C_Read... [22:44:24]Read from MH i2c: E2 03 00 [22:44:24]MH_I2C_Read... [22:44:24]Read from MH i2c: E2 03 00 44 66 00 90 00 1E [22:44:24]RAPDU: 90 00 [22:44:24]wFMCommunicate OK [22:44:24]wFMCommunicate request_size=255 [22:44:24]MH_SAM_APDU [22:44:24]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 39 35 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 00 00 00 00 00 00 39 04 06 00 08 52 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 CE C9 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 [22:44:24]Write to MH i2c: E2 02 01 45 66 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 39 35 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 00 00 00 00 00 00 39 04 06 00 08 52 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 CE C9 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 00 00 78 [22:44:24]Write i2c OK [22:44:24]MH_I2C_Read... [22:44:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:44:24]Read from MH i2c: E2 [22:44:24]MH_I2C_Read... [22:44:24]Read from MH i2c: E2 03 00 [22:44:24]MH_I2C_Read... [22:44:24]Read from MH i2c: E2 03 00 45 66 00 90 00 1F [22:44:24]RAPDU: 90 00 [22:44:24]wFMCommunicate OK [22:44:24]wFMCommunicate request_size=25 [22:44:24]MH_SAM_APDU [22:44:24]CAPDU: 80 0D 02 02 14 34 38 10 04 04 00 5C 08 00 00 35 04 06 00 66 0F 8A 04 66 82 [22:44:24]Write to MH i2c: E2 1C 00 46 66 80 0D 02 02 14 00 34 38 10 04 04 00 5C 08 00 00 35 04 06 00 66 0F 8A 04 66 82 00 00 60 [22:44:24]Write i2c OK [22:44:24]MH_I2C_Read... [22:44:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:44:24]Read from MH i2c: E2 [22:44:24]MH_I2C_Read... [22:44:24]Read from MH i2c: E2 03 00 [22:44:24]MH_I2C_Read... [22:44:24]Read from MH i2c: E2 03 00 46 66 00 90 00 20 [22:44:24]RAPDU: 90 00 [22:44:24]wFMCommunicate OK [22:44:24]wFMCommunicate request_size=4 [22:44:24]MH_SAM_APDU [22:44:24]CAPDU: 80 0D 03 02 [22:44:24]Write to MH i2c: E2 08 00 47 66 80 0D 03 02 00 00 00 00 28 [22:44:24]Write i2c OK [22:44:24]MH_I2C_Read... [22:44:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:44:24]Read from MH i2c: E2 [22:44:24]MH_I2C_Read... [22:44:24]Read from MH i2c: E2 0B 00 [22:44:24]MH_I2C_Read... [22:44:24]Read from MH i2c: E2 0B 00 47 66 00 6D 2E D4 69 51 3C 9A 31 90 00 59 [22:44:24]RAPDU: 6D 2E D4 69 51 3C 9A 31 90 00 [22:44:24]wFMCommunicate OK [22:44:24]SAM_PROTO_SignData done [22:44:24]FM_MakeSignedData done [22:44:24]CreateOFDProtocolMessage [22:44:24]wFMCommunicate request_size=4 [22:44:24]MH_SAM_APDU [22:44:24]CAPDU: 80 11 00 00 [22:44:24]Write to MH i2c: E2 08 00 48 66 80 11 00 00 00 00 00 00 28 [22:44:24]Write i2c OK [22:44:24]MH_I2C_Read... [22:44:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:44:24]Read from MH i2c: E2 [22:44:24]MH_I2C_Read... [22:44:24]Read from MH i2c: E2 17 00 [22:44:24]MH_I2C_Read... [22:44:24]Read from MH i2c: E2 17 00 48 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 78 [22:44:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [22:44:24]wFMCommunicate OK [22:44:24]CreateOFDProtocolMessage done [22:44:24]OFDSenderStorePacket 2140 [22:44:24]StoreOFDPacket docnum=2140 [22:44:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 1E 01 00 00 9C DC 16 01 50 A7 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 39 35 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 00 00 00 00 00 00 39 04 06 00 08 52 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 CE C9 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 5C 08 00 00 35 04 06 00 66 0F 8A 04 66 82 6D 2E D4 69 51 3C 9A 31 [22:44:24]CheckFolder [22:44:24]dirname=/storage/ofd_packets [22:44:24]CheckFolder done [22:44:24]ProducePacketName [22:44:24]name=ofd_packets/00002140 [22:44:24]NVStorageSaveData ofd_packets/00002140 [22:44:24]File name is /storage/ofd_packets/00002140 [22:44:24]Write 316 bytes [22:44:24]NVStorageSaveData done [22:44:24]OFDSenderStorePacket done [22:44:24]KKMCreateOFDPacket done [22:44:24]NVStorageSaveData kkm_last_timestamp [22:44:24]File name is /storage/kkm_last_timestamp [22:44:24]Write 4 bytes [22:44:24]NVStorageSaveData done [22:44:24]ExternCall_PrintAddStr [22:44:24]wPrintStart [22:44:24]Write to MH i2c: 01 00 00 49 66 AF [22:44:24]Write i2c OK [22:44:24]MH_I2C_Read... [22:44:24]Read from MH i2c: 01 [22:44:24]MH_I2C_Read... [22:44:24]Read from MH i2c: 01 07 00 [22:44:24]MH_I2C_Read... [22:44:24]Read from MH i2c: 01 07 00 49 66 00 00 00 00 00 FF 0F C4 [22:44:24]RasterBufferAndPrint [22:44:24]line Счет N : (3)126436 [22:44:24]line ИНН: 02508201610067 [22:44:24]line Контрольно-Кассовый Чек [22:44:24]line ПРОДАЖА [22:44:24]line Товар: 4870001570095 [22:44:24]line Напиток Pepsi 2л [22:44:24]line 1.000 * 210.00 [22:44:24]line = 210.00 [22:44:24]line НДС 12% НСП 1% [22:44:24]line > о реализуемом товаре [22:44:24]line ИТОГО: 210.00 [22:44:24]line НСП 1% : 1.86 [22:44:24]line НДС 12% : 22.30 [22:44:24]line Наличными: 0.00 [22:44:24]line Безнал.: 210.00 [22:44:24]line Место: АЗС № 127 "Партнер Нефть" [22:44:24]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [22:44:24]line СНО: Общий режим [22:44:24]line Чек 191 28.07.2024 22:44 [22:44:24]line Смена: 13 ФФД: 1.0 [22:44:24]line ЗНМ: 0300000161 [22:44:24]line РНМ: 0000000000189667 [22:44:24]line Версия ККМ: v1.0 [22:44:24]line Платежная система: O! деньги [22:44:24]line ФМ: 0000000002094248 [22:44:24]line ФД: 2140 [22:44:24]line ФПД: 112216926086786 [22:44:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T224430&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2140&fm=112216926086786&tin=02508201610067®Number=0000000000189667&sum=21000 [22:44:24]line 0 [22:44:24]OFD Sender: Processing packet 2140 [packets to send 1, broken 0] [22:44:24]ProducePacketName [22:44:24]name=ofd_packets/00002140 [22:44:24]OFD Sender: To server: pG, [22:44:24]CommunicateWithHost lk.salyk.kg:30040 [22:44:24]ConnectInit lk.salyk.kg [22:44:24]written 0, free lines is 4095 [22:44:24]Connected sock=10 [22:44:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 1E 01 00 00 9C DC 16 01 50 A7 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 39 35 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 00 00 00 00 00 00 39 04 06 00 08 52 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 CE C9 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 5C 08 00 00 35 04 06 00 66 0F 8A 04 66 82 6D 2E D4 69 51 3C 9A 31 [22:44:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 80 E7 47 00 55 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 32 30 39 34 32 34 38 10 04 04 00 5C 08 00 00 F4 03 04 00 3C 75 A6 66 B6 04 01 00 00 B6 3F 84 52 78 3D E3 13 [22:44:25]CommunicateWithHost err = 0 [22:44:25]CheckOFDResponse [22:44:25]1017 (14) - 77093643461234 [22:44:25]1041 (16) - 0000000002094248 [22:44:25]1040 (4) - 2140 [22:44:25]1012 (4) - 28.07.2024 16:43 [22:44:25]1206 (1) - 0 [22:44:25]OFD Sender: Remove packet 2140 [22:44:25]ProducePacketName [22:44:25]name=ofd_packets/00002140 [22:44:25]NVStorageDeleteData [22:44:25]Write to MH i2c: 01 00 00 73 66 D9 [22:44:25]Write i2c OK [22:44:25]MH_I2C_Read... [22:44:25]Read from MH i2c: 01 [22:44:25]MH_I2C_Read... [22:44:25]Read from MH i2c: 01 07 00 [22:44:25]MH_I2C_Read... [22:44:25]Read from MH i2c: 01 07 00 73 66 00 00 00 00 00 06 0D F3 [22:44:25]RasterBufferAndPrint [22:44:25]line [22:44:25]line [22:44:25]line [22:44:25]line [22:44:25]line [22:44:25]written 0, free lines is 3340 [22:44:25]MH_Cut [22:44:25]Write to MH i2c: D1 01 00 7A 66 01 B2 [22:44:25]Write i2c OK [22:44:25]MH_I2C_Read... [22:44:25]Read from MH i2c: D1 [22:44:25]MH_I2C_Read... [22:44:25]Read from MH i2c: D1 01 00 [22:44:25]MH_I2C_Read... [22:44:25]Read from MH i2c: D1 01 00 7A 66 00 B1 [22:44:25]Write to MH i2c: 01 00 00 7B 66 E1 [22:44:25]Write i2c OK [22:44:25]MH_I2C_Read... [22:44:25]OFD Sender: No OFD packet to send [22:44:25]*** Cut start [22:44:25]*** Partial cut [22:44:25]*** CUTSNS_PIN = 1 [22:44:25]*** CUTSNS_PIN = 0 [22:44:26]*** Brake cut motor [22:44:26]Read from MH i2c: 01 [22:44:26]MH_I2C_Read... [22:44:26]*** Stop cut motor [22:44:26]*** Cut end [22:44:26]Read from MH i2c: 01 07 00 [22:44:26]MH_I2C_Read... [22:44:26]Read from MH i2c: 01 07 00 7B 66 00 00 00 00 00 FF 0F F6 [22:44:26]process_action close_receipt done [22:44:26]requested_data is exist [22:44:26]produce_requested_data [22:44:26]requested_item fm.sn is exist - process it [22:44:26]wFMCommunicate request_size=4 [22:44:26]MH_SAM_APDU [22:44:26]CAPDU: 80 11 00 00 [22:44:26]Write to MH i2c: E2 08 00 7C 66 80 11 00 00 00 00 00 00 5C [22:44:26]Write i2c OK [22:44:26]MH_I2C_Read... [22:44:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:44:26]Read from MH i2c: E2 [22:44:26]MH_I2C_Read... [22:44:26]Read from MH i2c: E2 17 00 [22:44:26]MH_I2C_Read... [22:44:26]Read from MH i2c: E2 17 00 7C 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 AC [22:44:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [22:44:26]wFMCommunicate OK [22:44:26]requested_item fd.num is exist - process it [22:44:26]SAM_PROTO_GetFieldsCounters [22:44:26]wFMCommunicate request_size=4 [22:44:26]MH_SAM_APDU [22:44:26]CAPDU: 80 13 00 00 [22:44:26]Write to MH i2c: E2 08 00 7D 66 80 13 00 00 00 00 00 00 5F [22:44:26]Write i2c OK [22:44:26]MH_I2C_Read... [22:44:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:44:26]Read from MH i2c: E2 [22:44:26]MH_I2C_Read... [22:44:26]Read from MH i2c: E2 62 00 [22:44:26]MH_I2C_Read... [22:44:26]Read from MH i2c: E2 62 00 7D 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 5C 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [22:44:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 5C 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:44:26]wFMCommunicate OK [22:44:26]SAM_PROTO_GetFieldsCounters done [22:44:26]requested_item shift.num is exist - process it [22:44:26]requested_item shift.opened is exist - process it [22:44:26]req_shift_opened [22:44:26]FM_GetShiftState [22:44:26]SAM_PROTO_GetShiftState [22:44:26]wFMCommunicate request_size=4 [22:44:26]MH_SAM_APDU [22:44:26]CAPDU: 80 13 01 00 [22:44:26]Write to MH i2c: E2 08 00 7E 66 80 13 01 00 00 00 00 00 61 [22:44:26]Write i2c OK [22:44:26]MH_I2C_Read... [22:44:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:44:26]Read from MH i2c: E2 [22:44:26]MH_I2C_Read... [22:44:26]Read from MH i2c: E2 0E 00 [22:44:26]MH_I2C_Read... [22:44:26]Read from MH i2c: E2 0E 00 7E 66 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 55 [22:44:26]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [22:44:26]wFMCommunicate OK [22:44:26]SAM_PROTO_GetShiftState done [22:44:26]FM_GetShiftState done [22:44:26]req_shift_opened done [22:44:26]requested_item shift.open_date is exist - process it [22:44:26]req_shift_open_date [22:44:26]req_shift_open_date done [22:44:26]produce_requested_data done [22:44:26]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2140,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [22:44:26]process_action_free close_receipt [22:44:26]json_value_free [22:44:26]json_value_free done [22:44:26]process_json_proto returns [22:44:26]Send response to host [22:44:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2140,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [22:44:26]free response buf [22:44:26]execute_script done [22:44:26]execute_script returns [22:44:26]free content buf [22:44:26]Sock 8.Close socket [22:44:26]Sock 8.Thread stoped [22:44:30]OFD Sender: No OFD packet to send [22:44:35]OFD Sender: No OFD packet to send [22:44:40]OFD Sender: No OFD packet to send [22:44:45]OFD Sender: No OFD packet to send [22:44:50]OFD Sender: No OFD packet to send [22:44:55]OFD Sender: No OFD packet to send [22:45:00]OFD Sender: No OFD packet to send [22:45:05]OFD Sender: No OFD packet to send [22:45:10]OFD Sender: No OFD packet to send [22:45:15]OFD Sender: No OFD packet to send [22:45:20]OFD Sender: No OFD packet to send [22:45:25]OFD Sender: No OFD packet to send [22:45:30]OFD Sender: No OFD packet to send [22:45:35]OFD Sender: No OFD packet to send [22:45:40]OFD Sender: No OFD packet to send [22:45:45]OFD Sender: No OFD packet to send [22:45:50]OFD Sender: No OFD packet to send [22:45:55]OFD Sender: No OFD packet to send [22:46:00]OFD Sender: No OFD packet to send [22:46:05]OFD Sender: No OFD packet to send [22:46:10]OFD Sender: No OFD packet to send [22:46:15]OFD Sender: No OFD packet to send [22:46:20]OFD Sender: No OFD packet to send [22:46:25]OFD Sender: No OFD packet to send [22:46:30]OFD Sender: No OFD packet to send [22:46:35]OFD Sender: No OFD packet to send [22:46:40]OFD Sender: No OFD packet to send [22:46:45]OFD Sender: No OFD packet to send [22:46:50]OFD Sender: No OFD packet to send [22:46:55]OFD Sender: No OFD packet to send [22:47:00]OFD Sender: No OFD packet to send [22:47:05]OFD Sender: No OFD packet to send [22:47:10]OFD Sender: No OFD packet to send [22:47:15]OFD Sender: No OFD packet to send [22:47:20]OFD Sender: No OFD packet to send [22:47:25]OFD Sender: No OFD packet to send [22:47:30]OFD Sender: No OFD packet to send [22:47:35]OFD Sender: No OFD packet to send [22:47:40]OFD Sender: No OFD packet to send [22:47:45]OFD Sender: No OFD packet to send [22:47:50]OFD Sender: No OFD packet to send [22:47:55]OFD Sender: No OFD packet to send [22:48:00]OFD Sender: No OFD packet to send [22:48:05]OFD Sender: No OFD packet to send [22:48:10]OFD Sender: No OFD packet to send [22:48:15]OFD Sender: No OFD packet to send [22:48:20]OFD Sender: No OFD packet to send [22:48:25]OFD Sender: No OFD packet to send [22:48:30]OFD Sender: No OFD packet to send [22:48:35]OFD Sender: No OFD packet to send [22:48:40]OFD Sender: No OFD packet to send [22:48:45]OFD Sender: No OFD packet to send [22:48:50]OFD Sender: No OFD packet to send [22:48:55]OFD Sender: No OFD packet to send [22:49:00]OFD Sender: No OFD packet to send [22:49:05]OFD Sender: No OFD packet to send [22:49:10]OFD Sender: No OFD packet to send [22:49:15]OFD Sender: No OFD packet to send [22:49:20]OFD Sender: No OFD packet to send [22:49:25]OFD Sender: No OFD packet to send [22:49:30]OFD Sender: No OFD packet to send [22:49:35]OFD Sender: No OFD packet to send [22:49:40]OFD Sender: No OFD packet to send [22:49:45]OFD Sender: No OFD packet to send [22:49:50]OFD Sender: No OFD packet to send [22:49:55]OFD Sender: No OFD packet to send [22:50:00]OFD Sender: No OFD packet to send [22:50:05]OFD Sender: No OFD packet to send [22:50:10]OFD Sender: No OFD packet to send [22:50:15]OFD Sender: No OFD packet to send [22:50:20]OFD Sender: No OFD packet to send [22:50:25]OFD Sender: No OFD packet to send [22:50:30]OFD Sender: No OFD packet to send [22:50:35]OFD Sender: No OFD packet to send [22:50:40]OFD Sender: No OFD packet to send [22:50:45]OFD Sender: No OFD packet to send [22:50:50]OFD Sender: No OFD packet to send [22:50:55]OFD Sender: No OFD packet to send [22:51:00]OFD Sender: No OFD packet to send [22:51:05]OFD Sender: No OFD packet to send [22:51:10]OFD Sender: No OFD packet to send [22:51:15]OFD Sender: No OFD packet to send [22:51:20]OFD Sender: No OFD packet to send [22:51:25]OFD Sender: No OFD packet to send [22:51:31]OFD Sender: No OFD packet to send [22:51:36]OFD Sender: No OFD packet to send [22:51:41]OFD Sender: No OFD packet to send [22:51:46]OFD Sender: No OFD packet to send [22:51:51]OFD Sender: No OFD packet to send [22:51:56]OFD Sender: No OFD packet to send [22:52:01]OFD Sender: No OFD packet to send [22:52:06]OFD Sender: No OFD packet to send [22:52:11]OFD Sender: No OFD packet to send [22:52:16]OFD Sender: No OFD packet to send [22:52:21]OFD Sender: No OFD packet to send [22:52:26]OFD Sender: No OFD packet to send [22:52:31]OFD Sender: No OFD packet to send [22:52:36]OFD Sender: No OFD packet to send [22:52:41]OFD Sender: No OFD packet to send [22:52:46]OFD Sender: No OFD packet to send [22:52:51]OFD Sender: No OFD packet to send [22:52:56]OFD Sender: No OFD packet to send [22:53:01]OFD Sender: No OFD packet to send [22:53:06]OFD Sender: No OFD packet to send [22:53:11]OFD Sender: No OFD packet to send [22:53:16]OFD Sender: No OFD packet to send [22:53:21]OFD Sender: No OFD packet to send [22:53:26]OFD Sender: No OFD packet to send [22:53:31]OFD Sender: No OFD packet to send [22:53:36]OFD Sender: No OFD packet to send [22:53:41]OFD Sender: No OFD packet to send [22:53:46]OFD Sender: No OFD packet to send [22:53:51]OFD Sender: No OFD packet to send [22:53:56]OFD Sender: No OFD packet to send [22:54:01]OFD Sender: No OFD packet to send [22:54:06]OFD Sender: No OFD packet to send [22:54:11]OFD Sender: No OFD packet to send [22:54:16]OFD Sender: No OFD packet to send [22:54:21]OFD Sender: No OFD packet to send [22:54:26]OFD Sender: No OFD packet to send [22:54:31]OFD Sender: No OFD packet to send [22:54:36]OFD Sender: No OFD packet to send [22:54:41]OFD Sender: No OFD packet to send [22:54:46]OFD Sender: No OFD packet to send [22:54:51]OFD Sender: No OFD packet to send [22:54:56]OFD Sender: No OFD packet to send [22:55:01]OFD Sender: No OFD packet to send [22:55:06]OFD Sender: No OFD packet to send [22:55:11]OFD Sender: No OFD packet to send [22:55:16]OFD Sender: No OFD packet to send [22:55:21]OFD Sender: No OFD packet to send [22:55:26]OFD Sender: No OFD packet to send [22:55:31]OFD Sender: No OFD packet to send [22:55:36]OFD Sender: No OFD packet to send [22:55:41]OFD Sender: No OFD packet to send [22:55:46]OFD Sender: No OFD packet to send [22:55:51]OFD Sender: No OFD packet to send [22:55:56]OFD Sender: No OFD packet to send [22:56:01]OFD Sender: No OFD packet to send [22:56:06]OFD Sender: No OFD packet to send [22:56:11]OFD Sender: No OFD packet to send [22:56:16]OFD Sender: No OFD packet to send [22:56:21]OFD Sender: No OFD packet to send [22:56:26]OFD Sender: No OFD packet to send [22:56:31]OFD Sender: No OFD packet to send [22:56:36]OFD Sender: No OFD packet to send [22:56:41]OFD Sender: No OFD packet to send [22:56:46]OFD Sender: No OFD packet to send [22:56:51]OFD Sender: No OFD packet to send [22:56:56]OFD Sender: No OFD packet to send [22:57:01]OFD Sender: No OFD packet to send [22:57:06]OFD Sender: No OFD packet to send [22:57:11]OFD Sender: No OFD packet to send [22:57:16]OFD Sender: No OFD packet to send [22:57:21]OFD Sender: No OFD packet to send [22:57:26]OFD Sender: No OFD packet to send [22:57:31]OFD Sender: No OFD packet to send [22:57:36]OFD Sender: No OFD packet to send [22:57:41]OFD Sender: No OFD packet to send [22:57:46]OFD Sender: No OFD packet to send [22:57:51]OFD Sender: No OFD packet to send [22:57:56]OFD Sender: No OFD packet to send [22:58:01]OFD Sender: No OFD packet to send [22:58:06]OFD Sender: No OFD packet to send [22:58:11]OFD Sender: No OFD packet to send [22:58:16]OFD Sender: No OFD packet to send [22:58:21]OFD Sender: No OFD packet to send [22:58:26]OFD Sender: No OFD packet to send [22:58:31]OFD Sender: No OFD packet to send [22:58:36]OFD Sender: No OFD packet to send [22:58:41]OFD Sender: No OFD packet to send [22:58:46]OFD Sender: No OFD packet to send [22:58:51]OFD Sender: No OFD packet to send [22:58:56]OFD Sender: No OFD packet to send [22:59:01]OFD Sender: No OFD packet to send [22:59:06]OFD Sender: No OFD packet to send [22:59:11]OFD Sender: No OFD packet to send [22:59:16]OFD Sender: No OFD packet to send [22:59:21]OFD Sender: No OFD packet to send [22:59:26]OFD Sender: No OFD packet to send [22:59:31]OFD Sender: No OFD packet to send [22:59:36]OFD Sender: No OFD packet to send [22:59:41]OFD Sender: No OFD packet to send [22:59:46]OFD Sender: No OFD packet to send [22:59:51]OFD Sender: No OFD packet to send [22:59:56]OFD Sender: No OFD packet to send [23:00:01]OFD Sender: No OFD packet to send [23:00:06]OFD Sender: No OFD packet to send [23:00:11]OFD Sender: No OFD packet to send [23:00:16]OFD Sender: No OFD packet to send [23:00:21]OFD Sender: No OFD packet to send [23:00:26]OFD Sender: No OFD packet to send [23:00:31]OFD Sender: No OFD packet to send [23:00:36]OFD Sender: No OFD packet to send [23:00:41]OFD Sender: No OFD packet to send [23:00:46]OFD Sender: No OFD packet to send [23:00:51]OFD Sender: No OFD packet to send [23:00:56]OFD Sender: No OFD packet to send [23:01:01]OFD Sender: No OFD packet to send [23:01:06]OFD Sender: No OFD packet to send [23:01:11]OFD Sender: No OFD packet to send [23:01:16]OFD Sender: No OFD packet to send [23:01:21]OFD Sender: No OFD packet to send [23:01:26]OFD Sender: No OFD packet to send [23:01:31]OFD Sender: No OFD packet to send [23:01:36]OFD Sender: No OFD packet to send [23:01:41]OFD Sender: No OFD packet to send [23:01:46]OFD Sender: No OFD packet to send [23:01:51]OFD Sender: No OFD packet to send [23:01:56]OFD Sender: No OFD packet to send [23:02:01]OFD Sender: No OFD packet to send [23:02:06]OFD Sender: No OFD packet to send [23:02:11]OFD Sender: No OFD packet to send [23:02:16]OFD Sender: No OFD packet to send [23:02:21]OFD Sender: No OFD packet to send [23:02:26]OFD Sender: No OFD packet to send [23:02:31]OFD Sender: No OFD packet to send [23:02:36]OFD Sender: No OFD packet to send [23:02:41]OFD Sender: No OFD packet to send [23:02:46]OFD Sender: No OFD packet to send [23:02:51]OFD Sender: No OFD packet to send [23:02:56]OFD Sender: No OFD packet to send [23:03:01]OFD Sender: No OFD packet to send [23:03:06]OFD Sender: No OFD packet to send [23:03:11]OFD Sender: No OFD packet to send [23:03:16]OFD Sender: No OFD packet to send [23:03:21]OFD Sender: No OFD packet to send [23:03:26]OFD Sender: No OFD packet to send [23:03:31]OFD Sender: No OFD packet to send [23:03:36]OFD Sender: No OFD packet to send [23:03:41]OFD Sender: No OFD packet to send [23:03:46]OFD Sender: No OFD packet to send [23:03:51]OFD Sender: No OFD packet to send [23:03:56]OFD Sender: No OFD packet to send [23:04:01]OFD Sender: No OFD packet to send [23:04:06]OFD Sender: No OFD packet to send [23:04:11]OFD Sender: No OFD packet to send [23:04:16]OFD Sender: No OFD packet to send [23:04:21]OFD Sender: No OFD packet to send [23:04:26]OFD Sender: No OFD packet to send [23:04:31]OFD Sender: No OFD packet to send [23:04:36]OFD Sender: No OFD packet to send [23:04:41]OFD Sender: No OFD packet to send [23:04:46]OFD Sender: No OFD packet to send [23:04:51]OFD Sender: No OFD packet to send [23:04:56]OFD Sender: No OFD packet to send [23:05:01]OFD Sender: No OFD packet to send [23:05:06]OFD Sender: No OFD packet to send [23:05:11]OFD Sender: No OFD packet to send [23:05:16]OFD Sender: No OFD packet to send [23:05:21]OFD Sender: No OFD packet to send [23:05:26]OFD Sender: No OFD packet to send [23:05:31]OFD Sender: No OFD packet to send [23:05:36]OFD Sender: No OFD packet to send [23:05:41]OFD Sender: No OFD packet to send [23:05:46]OFD Sender: No OFD packet to send [23:05:51]OFD Sender: No OFD packet to send [23:05:56]OFD Sender: No OFD packet to send [23:06:01]OFD Sender: No OFD packet to send [23:06:06]OFD Sender: No OFD packet to send [23:06:11]OFD Sender: No OFD packet to send [23:06:16]OFD Sender: No OFD packet to send [23:06:21]OFD Sender: No OFD packet to send [23:06:26]OFD Sender: No OFD packet to send [23:06:31]OFD Sender: No OFD packet to send [23:06:36]OFD Sender: No OFD packet to send [23:06:41]OFD Sender: No OFD packet to send [23:06:46]OFD Sender: No OFD packet to send [23:06:51]OFD Sender: No OFD packet to send [23:06:56]OFD Sender: No OFD packet to send [23:07:01]OFD Sender: No OFD packet to send [23:07:06]OFD Sender: No OFD packet to send [23:07:11]OFD Sender: No OFD packet to send [23:07:16]OFD Sender: No OFD packet to send [23:07:21]OFD Sender: No OFD packet to send [23:07:26]OFD Sender: No OFD packet to send [23:07:31]OFD Sender: No OFD packet to send [23:07:36]OFD Sender: No OFD packet to send [23:07:41]OFD Sender: No OFD packet to send [23:07:46]OFD Sender: No OFD packet to send [23:07:51]OFD Sender: No OFD packet to send [23:07:56]OFD Sender: No OFD packet to send [23:08:01]OFD Sender: No OFD packet to send [23:08:06]OFD Sender: No OFD packet to send [23:08:11]OFD Sender: No OFD packet to send [23:08:16]OFD Sender: No OFD packet to send [23:08:21]OFD Sender: No OFD packet to send [23:08:26]OFD Sender: No OFD packet to send [23:08:31]OFD Sender: No OFD packet to send [23:08:36]OFD Sender: No OFD packet to send [23:08:41]OFD Sender: No OFD packet to send [23:08:46]OFD Sender: No OFD packet to send [23:08:51]OFD Sender: No OFD packet to send [23:08:56]OFD Sender: No OFD packet to send [23:09:01]OFD Sender: No OFD packet to send [23:09:06]OFD Sender: No OFD packet to send [23:09:11]OFD Sender: No OFD packet to send [23:09:16]OFD Sender: No OFD packet to send [23:09:21]OFD Sender: No OFD packet to send [23:09:26]OFD Sender: No OFD packet to send [23:09:31]OFD Sender: No OFD packet to send [23:09:36]OFD Sender: No OFD packet to send [23:09:41]OFD Sender: No OFD packet to send [23:09:46]OFD Sender: No OFD packet to send [23:09:51]OFD Sender: No OFD packet to send [23:09:56]OFD Sender: No OFD packet to send [23:10:01]OFD Sender: No OFD packet to send [23:10:06]OFD Sender: No OFD packet to send [23:10:11]OFD Sender: No OFD packet to send [23:10:16]OFD Sender: No OFD packet to send [23:10:21]OFD Sender: No OFD packet to send [23:10:26]OFD Sender: No OFD packet to send [23:10:31]OFD Sender: No OFD packet to send [23:10:36]OFD Sender: No OFD packet to send [23:10:41]OFD Sender: No OFD packet to send [23:10:46]OFD Sender: No OFD packet to send [23:10:51]OFD Sender: No OFD packet to send [23:10:56]OFD Sender: No OFD packet to send [23:11:01]OFD Sender: No OFD packet to send [23:11:06]OFD Sender: No OFD packet to send [23:11:11]OFD Sender: No OFD packet to send [23:11:16]OFD Sender: No OFD packet to send [23:11:21]OFD Sender: No OFD packet to send [23:11:26]OFD Sender: No OFD packet to send [23:11:31]OFD Sender: No OFD packet to send [23:11:36]OFD Sender: No OFD packet to send [23:11:41]OFD Sender: No OFD packet to send [23:11:46]OFD Sender: No OFD packet to send [23:11:51]OFD Sender: No OFD packet to send [23:11:56]OFD Sender: No OFD packet to send [23:12:01]OFD Sender: No OFD packet to send [23:12:06]OFD Sender: No OFD packet to send [23:12:11]OFD Sender: No OFD packet to send [23:12:16]OFD Sender: No OFD packet to send [23:12:21]OFD Sender: No OFD packet to send [23:12:26]OFD Sender: No OFD packet to send [23:12:31]OFD Sender: No OFD packet to send [23:12:36]OFD Sender: No OFD packet to send [23:12:41]OFD Sender: No OFD packet to send [23:12:46]OFD Sender: No OFD packet to send [23:12:51]OFD Sender: No OFD packet to send [23:12:56]OFD Sender: No OFD packet to send [23:13:01]OFD Sender: No OFD packet to send [23:13:06]OFD Sender: No OFD packet to send [23:13:11]OFD Sender: No OFD packet to send [23:13:16]OFD Sender: No OFD packet to send [23:13:21]OFD Sender: No OFD packet to send [23:13:22]accept exits with 9 [23:13:22]New connection [23:13:22]New thread 3067460964 created [23:13:22]Thread 3067317604 joined [23:13:22]Waiting for new connection... [23:13:22] Sock 9.Parse request [23:13:22]Sock 9.Check first char [23:13:22]Sock 9.First char is OK [23:13:22]request: POST /json_proto HTTP/1.0 [23:13:22]Method: POST [23:13:22]URL: /json_proto [23:13:22]Method is POST - this is cgi request [23:13:22]url: /json_proto [23:13:22]query_string will be loaded in cgi processing [23:13:22]execute_cgi json_proto POST (null) [23:13:22]execute_cgi path=json_proto method=POST [23:13:22]POST find Content-Length [23:13:22]Host: 172.17.45.132:8080 [23:13:22]Content-Length: 1018 [23:13:22]Content-Type: application/json [23:13:22] [23:13:22]POST finish read [23:13:22]Found Content-Length = 1018 [23:13:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126437", "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": "4700000160099", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u0438\u043D\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043B\u044C\u043D\u044B\u0439", "price" : 15.00, "quantity" : 2.000, "sum" : 30.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:13:22]execute_script... [23:13:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126437", "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": "4700000160099", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u0438\u043D\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043B\u044C\u043D\u044B\u0439", "price" : 15.00, "quantity" : 2.000, "sum" : 30.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:13:22]POST & json_proto [23:13:22]process_json_proto [23:13:22]json parsed OK: [23:13:22]protocol is kg_v1.0 [23:13:22]action value=close_receipt [23:13:22]process_action close_receipt [23:13:22]cmd_close_receipt [23:13:22]MH_GetDate [23:13:22]Write to MH i2c: F0 00 00 7F 66 D4 [23:13:22]Write i2c OK [23:13:22]MH_I2C_Read... [23:13:22]Read from MH i2c: F0 [23:13:22]MH_I2C_Read... [23:13:22]Read from MH i2c: F0 09 00 [23:13:22]MH_I2C_Read... [23:13:22]Read from MH i2c: F0 09 00 7F 66 00 9A D0 A6 66 E3 0B 90 66 37 [23:13:22]GetLastDocTimeStamp 1722206670 [23:13:22]current date 1722208410 [23:13:22]FM_GetShiftState [23:13:22]SAM_PROTO_GetShiftState [23:13:22]wFMCommunicate request_size=4 [23:13:22]MH_SAM_APDU [23:13:22]CAPDU: 80 13 01 00 [23:13:22]Write to MH i2c: E2 08 00 80 66 80 13 01 00 00 00 00 00 63 [23:13:22]Write i2c OK [23:13:22]MH_I2C_Read... [23:13:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:13:22]Read from MH i2c: E2 [23:13:22]MH_I2C_Read... [23:13:22]Read from MH i2c: E2 0E 00 [23:13:22]MH_I2C_Read... [23:13:22]Read from MH i2c: E2 0E 00 80 66 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 57 [23:13:22]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [23:13:22]wFMCommunicate OK [23:13:22]SAM_PROTO_GetShiftState done [23:13:22]FM_GetShiftState done [23:13:22]opened in 1722125648 [23:13:22]opened+sec_in_day 1722212048 [23:13:22]quantity*price = 8500 [23:13:22]sum+1 = 8501 [23:13:22]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160099 Снек Курут индивидуальный 2.000 * 15.00 = 30.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.01 НДС 12% : 12.22 Наличными: 115.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 192 28.07.2024 23:13 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2141 ФПД: 1440031427877 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T231330&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2141&fm=1440031427877&tin=02508201610067®Number=0000000000189667&sum=11500 0 [23:13:23]StoreToDocumentArchive [23:13:23]shift 13 fd 2141 [23:13:23]save to /storage/0013/doc_00002141 [23:13:23]save last doc name /storage/0013/doc_00002141 to /storage/kkm_last_doc_name [23:13:23]save OK [23:13:23]Clear old archive folders... [23:13:23]ProcessDocumentItem done err = 0, tmpTLVsize=416 [23:13:23]tlvbuf is 02035D30 [23:13:23]SAM_PROTO_ClearQueue [23:13:23]wFMCommunicate request_size=4 [23:13:23]MH_SAM_APDU [23:13:23]CAPDU: 80 09 00 00 [23:13:23]Write to MH i2c: E2 08 00 8D 66 80 09 00 00 00 00 00 00 65 [23:13:23]Write i2c OK [23:13:23]MH_I2C_Read... [23:13:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:13:23]Read from MH i2c: E2 [23:13:23]MH_I2C_Read... [23:13:23]Read from MH i2c: E2 03 00 [23:13:23]MH_I2C_Read... [23:13:23]Read from MH i2c: E2 03 00 8D 66 00 90 00 67 [23:13:23]RAPDU: 90 00 [23:13:23]wFMCommunicate OK [23:13:23]SAM_PROTO_ClearQueue done [23:13:23]KKMCreateOFDPacket [23:13:23]OFDProtocolAddRootSTLVToBuf [23:13:23]FM_MakeSignedData [23:13:23]FM_MakeSignedData [23:13:23]SAM_PROTO_SignData [23:13:23]wFMCommunicate request_size=4 [23:13:23]MH_SAM_APDU [23:13:23]CAPDU: 80 0D 01 02 [23:13:23]Write to MH i2c: E2 08 00 8E 66 80 0D 01 02 00 00 00 00 6D [23:13:23]Write i2c OK [23:13:23]MH_I2C_Read... [23:13:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:13:23]Read from MH i2c: E2 [23:13:23]MH_I2C_Read... [23:13:23]Read from MH i2c: E2 03 00 [23:13:23]MH_I2C_Read... [23:13:23]Read from MH i2c: E2 03 00 8E 66 00 90 00 68 [23:13:23]RAPDU: 90 00 [23:13:23]wFMCommunicate OK [23:13:23]wFMCommunicate request_size=255 [23:13:23]MH_SAM_APDU [23:13:23]CAPDU: 80 0D 02 02 FA 03 00 A0 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 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 39 39 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 [23:13:23]Write to MH i2c: E2 02 01 8F 66 80 0D 02 02 FA 00 03 00 A0 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 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 39 39 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 00 00 D2 [23:13:23]Write i2c OK [23:13:23]MH_I2C_Read... [23:13:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:13:23]Read from MH i2c: E2 [23:13:23]MH_I2C_Read... [23:13:23]Read from MH i2c: E2 03 00 [23:13:23]MH_I2C_Read... [23:13:23]Read from MH i2c: E2 03 00 8F 66 00 90 00 69 [23:13:23]RAPDU: 90 00 [23:13:23]wFMCommunicate OK [23:13:23]wFMCommunicate request_size=175 [23:13:23]MH_SAM_APDU [23:13:23]CAPDU: 80 0D 02 02 AA 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 65 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 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 C0 00 00 00 F4 03 04 00 9A D0 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 5D 08 00 00 35 04 06 00 01 4F 48 8F CD 25 [23:13:23]Write to MH i2c: E2 B2 00 90 66 80 0D 02 02 AA 00 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 65 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 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 C0 00 00 00 F4 03 04 00 9A D0 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 5D 08 00 00 35 04 06 00 01 4F 48 8F CD 25 00 00 F1 [23:13:23]Write i2c OK [23:13:23]MH_I2C_Read... [23:13:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:13:23]Read from MH i2c: E2 [23:13:23]MH_I2C_Read... [23:13:23]Read from MH i2c: E2 03 00 [23:13:23]MH_I2C_Read... [23:13:23]Read from MH i2c: E2 03 00 90 66 00 90 00 6A [23:13:23]RAPDU: 90 00 [23:13:23]wFMCommunicate OK [23:13:23]wFMCommunicate request_size=4 [23:13:23]MH_SAM_APDU [23:13:23]CAPDU: 80 0D 03 02 [23:13:23]Write to MH i2c: E2 08 00 91 66 80 0D 03 02 00 00 00 00 72 [23:13:23]Write i2c OK [23:13:23]MH_I2C_Read... [23:13:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:13:23]Read from MH i2c: E2 [23:13:23]MH_I2C_Read... [23:13:23]Read from MH i2c: E2 0B 00 [23:13:23]MH_I2C_Read... [23:13:23]Read from MH i2c: E2 0B 00 91 66 00 C7 D2 BF 7E F5 68 ED 67 90 00 FA [23:13:23]RAPDU: C7 D2 BF 7E F5 68 ED 67 90 00 [23:13:23]wFMCommunicate OK [23:13:23]SAM_PROTO_SignData done [23:13:23]FM_MakeSignedData done [23:13:23]CreateOFDProtocolMessage [23:13:23]wFMCommunicate request_size=4 [23:13:23]MH_SAM_APDU [23:13:23]CAPDU: 80 11 00 00 [23:13:23]Write to MH i2c: E2 08 00 92 66 80 11 00 00 00 00 00 00 72 [23:13:23]Write i2c OK [23:13:23]MH_I2C_Read... [23:13:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:13:23]Read from MH i2c: E2 [23:13:23]MH_I2C_Read... [23:13:23]Read from MH i2c: E2 17 00 [23:13:23]MH_I2C_Read... [23:13:23]Read from MH i2c: E2 17 00 92 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 C2 [23:13:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [23:13:23]wFMCommunicate OK [23:13:23]CreateOFDProtocolMessage done [23:13:23]OFDSenderStorePacket 2141 [23:13:23]StoreOFDPacket docnum=2141 [23:13:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 B4 01 00 00 B7 34 AC 01 06 6C 5A 03 01 00 03 00 A0 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 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 39 39 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 65 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 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 C0 00 00 00 F4 03 04 00 9A D0 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 5D 08 00 00 35 04 06 00 01 4F 48 8F CD 25 C7 D2 BF 7E F5 68 ED 67 [23:13:23]CheckFolder [23:13:23]dirname=/storage/ofd_packets [23:13:23]CheckFolder done [23:13:23]ProducePacketName [23:13:23]name=ofd_packets/00002141 [23:13:23]NVStorageSaveData ofd_packets/00002141 [23:13:23]File name is /storage/ofd_packets/00002141 [23:13:23]Write 466 bytes [23:13:23]NVStorageSaveData done [23:13:23]OFDSenderStorePacket done [23:13:23]KKMCreateOFDPacket done [23:13:23]NVStorageSaveData kkm_last_timestamp [23:13:23]File name is /storage/kkm_last_timestamp [23:13:23]Write 4 bytes [23:13:23]NVStorageSaveData done [23:13:23]ExternCall_PrintAddStr [23:13:23]wPrintStart [23:13:23]Write to MH i2c: 01 00 00 93 66 F9 [23:13:23]Write i2c OK [23:13:23]MH_I2C_Read... [23:13:23]Read from MH i2c: 01 [23:13:23]MH_I2C_Read... [23:13:23]Read from MH i2c: 01 07 00 [23:13:23]MH_I2C_Read... [23:13:23]Read from MH i2c: 01 07 00 93 66 00 00 00 00 00 FF 0F 0E [23:13:23]RasterBufferAndPrint [23:13:23]line Счет N : (3)126437 [23:13:24]line ИНН: 02508201610067 [23:13:24]line Контрольно-Кассовый Чек [23:13:24]line ПРОДАЖА [23:13:24]line Товар: 4601025117702 [23:13:24]line Напиток Фрутмотив апельсин 0,5 [23:13:24]line 1.000 * 85.00 [23:13:24]line = 85.00 [23:13:24]line НДС 12% НСП 1% [23:13:24]line > о реализуемом товаре [23:13:24]line Товар: 4700000160099 [23:13:24]line Снек Курут индивидуальный [23:13:24]line 2.000 * 15.00 [23:13:24]line = 30.00 [23:13:24]line НДС 12% НСП 1% [23:13:24]line > о реализуемом товаре [23:13:24]line ИТОГО: 115.00 [23:13:24]line НСП 1% : 1.01 [23:13:24]line НДС 12% : 12.22 [23:13:24]line Наличными: 115.00 [23:13:24]line Безнал.: 0.00 [23:13:24]line Место: АЗС № 127 "Партнер Нефть" [23:13:24]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [23:13:24]line СНО: Общий режим [23:13:24]line Чек 192 28.07.2024 23:13 [23:13:24]line Смена: 13 ФФД: 1.0 [23:13:24]line ЗНМ: 0300000161 [23:13:24]line РНМ: 0000000000189667 [23:13:24]line Версия ККМ: v1.0 [23:13:24]line ФМ: 0000000002094248 [23:13:24]line ФД: 2141 [23:13:24]line ФПД: 1440031427877 [23:13:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T231330&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2141&fm=1440031427877&tin=02508201610067®Number=0000000000189667&sum=11500 [23:13:24]line 0 [23:13:24]OFD Sender: Processing packet 2141 [packets to send 1, broken 0] [23:13:24]ProducePacketName [23:13:24]name=ofd_packets/00002141 [23:13:24]OFD Sender: To server: pG, [23:13:24]CommunicateWithHost lk.salyk.kg:30040 [23:13:24]ConnectInit lk.salyk.kg [23:13:24]written 0, free lines is 4095 [23:13:24]Connected sock=10 [23:13:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 B4 01 00 00 B7 34 AC 01 06 6C 5A 03 01 00 03 00 A0 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 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 39 39 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 65 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 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 C0 00 00 00 F4 03 04 00 9A D0 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 5D 08 00 00 35 04 06 00 01 4F 48 8F CD 25 C7 D2 BF 7E F5 68 ED 67 [23:13:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 CD 5C 47 00 3A 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 5D 08 00 00 F4 03 04 00 08 7C A6 66 B6 04 01 00 00 76 3D 14 55 51 D6 6F C1 [23:13:24]CommunicateWithHost err = 0 [23:13:24]CheckOFDResponse [23:13:24]1017 (14) - 77093643461234 [23:13:24]1041 (16) - 0000000002094248 [23:13:24]1040 (4) - 2141 [23:13:24]1012 (4) - 28.07.2024 17:12 [23:13:24]1206 (1) - 0 [23:13:24]OFD Sender: Remove packet 2141 [23:13:24]ProducePacketName [23:13:24]name=ofd_packets/00002141 [23:13:24]NVStorageDeleteData [23:13:24]Write to MH i2c: 01 00 00 C2 66 28 [23:13:24]Write i2c OK [23:13:24]MH_I2C_Read... [23:13:24]Read from MH i2c: 01 [23:13:24]MH_I2C_Read... [23:13:24]Read from MH i2c: 01 07 00 [23:13:24]MH_I2C_Read... [23:13:24]Read from MH i2c: 01 07 00 C2 66 00 00 00 00 00 B2 0C ED [23:13:24]RasterBufferAndPrint [23:13:24]line [23:13:24]line [23:13:24]line [23:13:24]line [23:13:24]line [23:13:24]written 0, free lines is 3257 [23:13:24]MH_Cut [23:13:24]Write to MH i2c: D1 01 00 C9 66 01 01 [23:13:24]Write i2c OK [23:13:24]MH_I2C_Read... [23:13:24]Read from MH i2c: D1 [23:13:24]MH_I2C_Read... [23:13:24]Read from MH i2c: D1 01 00 [23:13:24]MH_I2C_Read... [23:13:24]Read from MH i2c: D1 01 00 C9 66 00 00 [23:13:24]Write to MH i2c: 01 00 00 CA 66 30 [23:13:24]Write i2c OK [23:13:24]MH_I2C_Read... [23:13:25]OFD Sender: No OFD packet to send [23:13:25]*** Cut start [23:13:25]*** Partial cut [23:13:25]*** CUTSNS_PIN = 1 [23:13:25]*** CUTSNS_PIN = 0 [23:13:25]*** Brake cut motor [23:13:26]Read from MH i2c: 01 [23:13:26]MH_I2C_Read... [23:13:26]*** Stop cut motor [23:13:26]*** Cut end [23:13:26]Read from MH i2c: 01 07 00 [23:13:26]MH_I2C_Read... [23:13:26]Read from MH i2c: 01 07 00 CA 66 00 00 00 00 00 FF 0F 45 [23:13:26]process_action close_receipt done [23:13:26]requested_data is exist [23:13:26]produce_requested_data [23:13:26]requested_item fm.sn is exist - process it [23:13:26]wFMCommunicate request_size=4 [23:13:26]MH_SAM_APDU [23:13:26]CAPDU: 80 11 00 00 [23:13:26]Write to MH i2c: E2 08 00 CB 66 80 11 00 00 00 00 00 00 AB [23:13:26]Write i2c OK [23:13:26]MH_I2C_Read... [23:13:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:13:26]Read from MH i2c: E2 [23:13:26]MH_I2C_Read... [23:13:26]Read from MH i2c: E2 17 00 [23:13:26]MH_I2C_Read... [23:13:26]Read from MH i2c: E2 17 00 CB 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 FB [23:13:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [23:13:26]wFMCommunicate OK [23:13:26]requested_item fd.num is exist - process it [23:13:26]SAM_PROTO_GetFieldsCounters [23:13:26]wFMCommunicate request_size=4 [23:13:26]MH_SAM_APDU [23:13:26]CAPDU: 80 13 00 00 [23:13:26]Write to MH i2c: E2 08 00 CC 66 80 13 00 00 00 00 00 00 AE [23:13:26]Write i2c OK [23:13:26]MH_I2C_Read... [23:13:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:13:26]Read from MH i2c: E2 [23:13:26]MH_I2C_Read... [23:13:26]Read from MH i2c: E2 62 00 [23:13:26]MH_I2C_Read... [23:13:26]Read from MH i2c: E2 62 00 CC 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 5D 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 8A [23:13:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 5D 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:13:26]wFMCommunicate OK [23:13:26]SAM_PROTO_GetFieldsCounters done [23:13:26]requested_item shift.num is exist - process it [23:13:26]requested_item shift.opened is exist - process it [23:13:26]req_shift_opened [23:13:26]FM_GetShiftState [23:13:26]SAM_PROTO_GetShiftState [23:13:26]wFMCommunicate request_size=4 [23:13:26]MH_SAM_APDU [23:13:26]CAPDU: 80 13 01 00 [23:13:26]Write to MH i2c: E2 08 00 CD 66 80 13 01 00 00 00 00 00 B0 [23:13:26]Write i2c OK [23:13:26]MH_I2C_Read... [23:13:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:13:26]Read from MH i2c: E2 [23:13:26]MH_I2C_Read... [23:13:26]Read from MH i2c: E2 0E 00 [23:13:26]MH_I2C_Read... [23:13:26]Read from MH i2c: E2 0E 00 CD 66 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 A4 [23:13:26]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [23:13:26]wFMCommunicate OK [23:13:26]SAM_PROTO_GetShiftState done [23:13:26]FM_GetShiftState done [23:13:26]req_shift_opened done [23:13:26]requested_item shift.open_date is exist - process it [23:13:26]req_shift_open_date [23:13:26]req_shift_open_date done [23:13:26]produce_requested_data done [23:13:26]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2141,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [23:13:26]process_action_free close_receipt [23:13:26]json_value_free [23:13:26]json_value_free done [23:13:26]process_json_proto returns [23:13:26]Send response to host [23:13:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2141,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [23:13:26]free response buf [23:13:26]execute_script done [23:13:26]execute_script returns [23:13:26]free content buf [23:13:26]Sock 9.Close socket [23:13:26]Sock 9.Thread stoped [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:22]accept exits with 8 [23:18:22]New connection [23:18:22]New thread 3067317604 created [23:18:22]Thread 3067460964 joined [23:18:22]Waiting for new connection... [23:18:22] Sock 8.Parse request [23:18:22]Sock 8.Check first char [23:18:22]Sock 8.First char is OK [23:18:22]request: POST /json_proto HTTP/1.0 [23:18:22]Method: POST [23:18:22]URL: /json_proto [23:18:22]Method is POST - this is cgi request [23:18:22]url: /json_proto [23:18:22]query_string will be loaded in cgi processing [23:18:22]execute_cgi json_proto POST (null) [23:18:22]execute_cgi path=json_proto method=POST [23:18:22]POST find Content-Length [23:18:22]Host: 172.17.45.132:8080 [23:18:22]Content-Length: 708 [23:18:22]Content-Type: application/json [23:18:22] [23:18:22]POST finish read [23:18:22]Found Content-Length = 708 [23:18:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126438", "tax_sys" : 0, "items" : [ { "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:18:22]execute_script... [23:18: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)126438", "tax_sys" : 0, "items" : [ { "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:18:22]POST & json_proto [23:18:22]process_json_proto [23:18:22]json parsed OK: [23:18:22]protocol is kg_v1.0 [23:18:22]action value=close_receipt [23:18:22]process_action close_receipt [23:18:22]cmd_close_receipt [23:18:22]MH_GetDate [23:18:22]Write to MH i2c: F0 00 00 CE 66 23 [23:18:22]Write i2c OK [23:18:22]MH_I2C_Read... [23:18:22]Read from MH i2c: F0 [23:18:22]MH_I2C_Read... [23:18:22]Read from MH i2c: F0 09 00 [23:18:22]MH_I2C_Read... [23:18:22]Read from MH i2c: F0 09 00 CE 66 00 C6 D1 A6 66 E3 0B 90 66 B3 [23:18:22]GetLastDocTimeStamp 1722208410 [23:18:22]current date 1722208710 [23:18:22]FM_GetShiftState [23:18:22]SAM_PROTO_GetShiftState [23:18:22]wFMCommunicate request_size=4 [23:18:22]MH_SAM_APDU [23:18:22]CAPDU: 80 13 01 00 [23:18:22]Write to MH i2c: E2 08 00 CF 66 80 13 01 00 00 00 00 00 B2 [23:18:22]Write i2c OK [23:18:22]MH_I2C_Read... [23:18:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:18:22]Read from MH i2c: E2 [23:18:22]MH_I2C_Read... [23:18:22]Read from MH i2c: E2 0E 00 [23:18:22]MH_I2C_Read... [23:18:22]Read from MH i2c: E2 0E 00 CF 66 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 A6 [23:18:22]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [23:18:22]wFMCommunicate OK [23:18:22]SAM_PROTO_GetShiftState done [23:18:22]FM_GetShiftState done [23:18:22]opened in 1722125648 [23:18:22]opened+sec_in_day 1722212048 [23:18:22]quantity*price = 9000 [23:18:22]sum+1 = 9001 [23:18:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 90.00 НСП 1% : 0.80 НДС 12% : 9.56 Наличными: 90.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 193 28.07.2024 23:18 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2142 ФПД: 40843163660154 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T231830&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2142&fm=40843163660154&tin=02508201610067®Number=0000000000189667&sum=9000 0 [23:18:23]StoreToDocumentArchive [23:18:23]shift 13 fd 2142 [23:18:23]save to /storage/0013/doc_00002142 [23:18:23]save last doc name /storage/0013/doc_00002142 to /storage/kkm_last_doc_name [23:18:23]save OK [23:18:23]Clear old archive folders... [23:18:23]ProcessDocumentItem done err = 0, tmpTLVsize=299 [23:18:23]tlvbuf is 02198380 [23:18:23]SAM_PROTO_ClearQueue [23:18:23]wFMCommunicate request_size=4 [23:18:23]MH_SAM_APDU [23:18:23]CAPDU: 80 09 00 00 [23:18:23]Write to MH i2c: E2 08 00 DC 66 80 09 00 00 00 00 00 00 B4 [23:18:23]Write i2c OK [23:18:23]MH_I2C_Read... [23:18:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:18:23]Read from MH i2c: E2 [23:18:23]MH_I2C_Read... [23:18:23]Read from MH i2c: E2 03 00 [23:18:23]MH_I2C_Read... [23:18:23]Read from MH i2c: E2 03 00 DC 66 00 90 00 B6 [23:18:23]RAPDU: 90 00 [23:18:23]wFMCommunicate OK [23:18:23]SAM_PROTO_ClearQueue done [23:18:23]KKMCreateOFDPacket [23:18:23]OFDProtocolAddRootSTLVToBuf [23:18:23]FM_MakeSignedData [23:18:23]FM_MakeSignedData [23:18:23]SAM_PROTO_SignData [23:18:23]wFMCommunicate request_size=4 [23:18:23]MH_SAM_APDU [23:18:23]CAPDU: 80 0D 01 02 [23:18:23]Write to MH i2c: E2 08 00 DD 66 80 0D 01 02 00 00 00 00 BC [23:18:23]Write i2c OK [23:18:23]MH_I2C_Read... [23:18:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:18:23]Read from MH i2c: E2 [23:18:23]MH_I2C_Read... [23:18:23]Read from MH i2c: E2 03 00 [23:18:23]MH_I2C_Read... [23:18:23]Read from MH i2c: E2 03 00 DD 66 00 90 00 B7 [23:18:23]RAPDU: 90 00 [23:18:23]wFMCommunicate OK [23:18:23]wFMCommunicate request_size=255 [23:18:23]MH_SAM_APDU [23:18:23]CAPDU: 80 0D 02 02 FA 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 C6 D1 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 [23:18:23]Write to MH i2c: E2 02 01 DE 66 80 0D 02 02 FA 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 C6 D1 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 00 00 31 [23:18:23]Write i2c OK [23:18:23]MH_I2C_Read... [23:18:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:18:24]Read from MH i2c: E2 [23:18:24]MH_I2C_Read... [23:18:24]Read from MH i2c: E2 03 00 [23:18:24]MH_I2C_Read... [23:18:24]Read from MH i2c: E2 03 00 DE 66 00 90 00 B8 [23:18:24]RAPDU: 90 00 [23:18:24]wFMCommunicate OK [23:18:24]wFMCommunicate request_size=58 [23:18:24]MH_SAM_APDU [23:18:24]CAPDU: 80 0D 02 02 35 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 5E 08 00 00 35 04 06 00 25 25 8A 42 EF 7A [23:18:24]Write to MH i2c: E2 3D 00 DF 66 80 0D 02 02 35 00 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 5E 08 00 00 35 04 06 00 25 25 8A 42 EF 7A 00 00 9C [23:18:24]Write i2c OK [23:18:24]MH_I2C_Read... [23:18:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:18:24]Read from MH i2c: E2 [23:18:24]MH_I2C_Read... [23:18:24]Read from MH i2c: E2 03 00 [23:18:24]MH_I2C_Read... [23:18:24]Read from MH i2c: E2 03 00 DF 66 00 90 00 B9 [23:18:24]RAPDU: 90 00 [23:18:24]wFMCommunicate OK [23:18:24]wFMCommunicate request_size=4 [23:18:24]MH_SAM_APDU [23:18:24]CAPDU: 80 0D 03 02 [23:18:24]Write to MH i2c: E2 08 00 E0 66 80 0D 03 02 00 00 00 00 C1 [23:18:24]Write i2c OK [23:18:24]MH_I2C_Read... [23:18:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:18:24]Read from MH i2c: E2 [23:18:24]MH_I2C_Read... [23:18:24]Read from MH i2c: E2 0B 00 [23:18:24]MH_I2C_Read... [23:18:24]Read from MH i2c: E2 0B 00 E0 66 00 D3 14 F0 47 E5 60 1F 51 90 00 95 [23:18:24]RAPDU: D3 14 F0 47 E5 60 1F 51 90 00 [23:18:24]wFMCommunicate OK [23:18:24]SAM_PROTO_SignData done [23:18:24]FM_MakeSignedData done [23:18:24]CreateOFDProtocolMessage [23:18:24]wFMCommunicate request_size=4 [23:18:24]MH_SAM_APDU [23:18:24]CAPDU: 80 11 00 00 [23:18:24]Write to MH i2c: E2 08 00 E1 66 80 11 00 00 00 00 00 00 C1 [23:18:24]Write i2c OK [23:18:24]MH_I2C_Read... [23:18:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:18:24]Read from MH i2c: E2 [23:18:24]MH_I2C_Read... [23:18:24]Read from MH i2c: E2 17 00 [23:18:24]MH_I2C_Read... [23:18:24]Read from MH i2c: E2 17 00 E1 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 11 [23:18:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [23:18:24]wFMCommunicate OK [23:18:24]CreateOFDProtocolMessage done [23:18:24]OFDSenderStorePacket 2142 [23:18:24]StoreOFDPacket docnum=2142 [23:18:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 3F 01 00 00 15 E7 37 01 9D D2 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 C6 D1 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 5E 08 00 00 35 04 06 00 25 25 8A 42 EF 7A D3 14 F0 47 E5 60 1F 51 [23:18:24]CheckFolder [23:18:24]dirname=/storage/ofd_packets [23:18:24]CheckFolder done [23:18:24]ProducePacketName [23:18:24]name=ofd_packets/00002142 [23:18:24]NVStorageSaveData ofd_packets/00002142 [23:18:24]File name is /storage/ofd_packets/00002142 [23:18:24]Write 349 bytes [23:18:24]NVStorageSaveData done [23:18:24]OFDSenderStorePacket done [23:18:24]KKMCreateOFDPacket done [23:18:24]NVStorageSaveData kkm_last_timestamp [23:18:24]File name is /storage/kkm_last_timestamp [23:18:24]Write 4 bytes [23:18:24]NVStorageSaveData done [23:18:24]ExternCall_PrintAddStr [23:18:24]wPrintStart [23:18:24]Write to MH i2c: 01 00 00 E2 66 48 [23:18:24]OFD Sender: Processing packet 2142 [packets to send 1, broken 0] [23:18:24]ProducePacketName [23:18:24]name=ofd_packets/00002142 [23:18:24]OFD Sender: To server: pG, [23:18:24]CommunicateWithHost lk.salyk.kg:30040 [23:18:24]ConnectInit lk.salyk.kg [23:18:24]Write i2c OK [23:18:24]MH_I2C_Read... [23:18:24]Read from MH i2c: 01 [23:18:24]MH_I2C_Read... [23:18:24]Read from MH i2c: 01 07 00 [23:18:24]MH_I2C_Read... [23:18:24]Read from MH i2c: 01 07 00 E2 66 00 00 00 00 00 FF 0F 5D [23:18:24]RasterBufferAndPrint [23:18:24]line Счет N : (3)126438 [23:18:24]line ИНН: 02508201610067 [23:18:24]line Контрольно-Кассовый Чек [23:18:24]line ПРОДАЖА [23:18:24]line Товар: 4660085515163 [23:18:24]line Шок Батончик Сникерс супер 95/80г [23:18:24]line 1.000 * 90.00 [23:18:24]line = 90.00 [23:18:24]line НДС 12% НСП 1% [23:18:24]line > о реализуемом товаре [23:18:24]line ИТОГО: 90.00 [23:18:24]line НСП 1% : 0.80 [23:18:24]line НДС 12% : 9.56 [23:18:24]line Наличными: 90.00 [23:18:24]line Безнал.: 0.00 [23:18:24]line Место: АЗС № 127 "Партнер Нефть" [23:18:24]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [23:18:24]line СНО: Общий режим [23:18:24]line Чек 193 28.07.2024 23:18 [23:18:24]line Смена: 13 ФФД: 1.0 [23:18:24]line ЗНМ: 0300000161 [23:18:24]line РНМ: 0000000000189667 [23:18:24]line Версия ККМ: v1.0 [23:18:24]line ФМ: 0000000002094248 [23:18:24]line ФД: 2142 [23:18:24]line ФПД: 40843163660154 [23:18:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T231830&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2142&fm=40843163660154&tin=02508201610067®Number=0000000000189667&sum=9000 [23:18:24]line 0 [23:18:24]Connected sock=10 [23:18:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 3F 01 00 00 15 E7 37 01 9D D2 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 C6 D1 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 5E 08 00 00 35 04 06 00 25 25 8A 42 EF 7A D3 14 F0 47 E5 60 1F 51 [23:18:24]written 0, free lines is 4095 [23:18:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 88 9E 47 00 F6 FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 5E 08 00 00 F4 03 04 00 34 7D A6 66 B6 04 01 00 00 7E BC 88 9E 61 45 31 BB [23:18:24]CommunicateWithHost err = 0 [23:18:24]CheckOFDResponse [23:18:24]1017 (14) - 77093643461234 [23:18:24]1041 (16) - 0000000002094248 [23:18:24]1040 (4) - 2142 [23:18:24]1012 (4) - 28.07.2024 17:17 [23:18:24]1206 (1) - 0 [23:18:24]OFD Sender: Remove packet 2142 [23:18:24]ProducePacketName [23:18:24]name=ofd_packets/00002142 [23:18:24]NVStorageDeleteData [23:18:25]Write to MH i2c: 01 00 00 0B 67 72 [23:18:25]Write i2c OK [23:18:25]MH_I2C_Read... [23:18:25]Read from MH i2c: 01 [23:18:25]MH_I2C_Read... [23:18:25]Read from MH i2c: 01 07 00 [23:18:25]MH_I2C_Read... [23:18:25]Read from MH i2c: 01 07 00 0B 67 00 00 00 00 00 F7 0C 7C [23:18:25]RasterBufferAndPrint [23:18:25]line [23:18:25]line [23:18:25]line [23:18:25]line [23:18:25]line [23:18:25]written 0, free lines is 3328 [23:18:25]MH_Cut [23:18:25]Write to MH i2c: D1 01 00 12 67 01 4B [23:18:25]Write i2c OK [23:18:25]MH_I2C_Read... [23:18:25]Read from MH i2c: D1 [23:18:25]MH_I2C_Read... [23:18:25]Read from MH i2c: D1 01 00 [23:18:25]MH_I2C_Read... [23:18:25]Read from MH i2c: D1 01 00 12 67 00 4A [23:18:25]Write to MH i2c: 01 00 00 13 67 7A [23:18:25]Write i2c OK [23:18:25]MH_I2C_Read... [23:18:25]OFD Sender: No OFD packet to send [23:18:25]*** Cut start [23:18:25]*** Partial cut [23:18:25]*** CUTSNS_PIN = 1 [23:18:25]*** CUTSNS_PIN = 0 [23:18:26]*** Brake cut motor [23:18:26]Read from MH i2c: 01 [23:18:26]MH_I2C_Read... [23:18:26]*** Stop cut motor [23:18:26]*** Cut end [23:18:26]Read from MH i2c: 01 07 00 [23:18:26]MH_I2C_Read... [23:18:26]Read from MH i2c: 01 07 00 13 67 00 00 00 00 00 FF 0F 8F [23:18:26]process_action close_receipt done [23:18:26]requested_data is exist [23:18:26]produce_requested_data [23:18:26]requested_item fm.sn is exist - process it [23:18:26]wFMCommunicate request_size=4 [23:18:26]MH_SAM_APDU [23:18:26]CAPDU: 80 11 00 00 [23:18:26]Write to MH i2c: E2 08 00 14 67 80 11 00 00 00 00 00 00 F5 [23:18:26]Write i2c OK [23:18:26]MH_I2C_Read... [23:18:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:18:26]Read from MH i2c: E2 [23:18:26]MH_I2C_Read... [23:18:26]Read from MH i2c: E2 17 00 [23:18:26]MH_I2C_Read... [23:18:26]Read from MH i2c: E2 17 00 14 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 45 [23:18:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [23:18:26]wFMCommunicate OK [23:18:26]requested_item fd.num is exist - process it [23:18:26]SAM_PROTO_GetFieldsCounters [23:18:26]wFMCommunicate request_size=4 [23:18:26]MH_SAM_APDU [23:18:26]CAPDU: 80 13 00 00 [23:18:26]Write to MH i2c: E2 08 00 15 67 80 13 00 00 00 00 00 00 F8 [23:18:26]Write i2c OK [23:18:26]MH_I2C_Read... [23:18:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:18:26]Read from MH i2c: E2 [23:18:26]MH_I2C_Read... [23:18:26]Read from MH i2c: E2 62 00 [23:18:26]MH_I2C_Read... [23:18:26]Read from MH i2c: E2 62 00 15 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 5E 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 D8 [23:18:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 5E 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:18:26]wFMCommunicate OK [23:18:26]SAM_PROTO_GetFieldsCounters done [23:18:26]requested_item shift.num is exist - process it [23:18:26]requested_item shift.opened is exist - process it [23:18:26]req_shift_opened [23:18:26]FM_GetShiftState [23:18:26]SAM_PROTO_GetShiftState [23:18:26]wFMCommunicate request_size=4 [23:18:26]MH_SAM_APDU [23:18:26]CAPDU: 80 13 01 00 [23:18:26]Write to MH i2c: E2 08 00 16 67 80 13 01 00 00 00 00 00 FA [23:18:26]Write i2c OK [23:18:26]MH_I2C_Read... [23:18:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:18:26]Read from MH i2c: E2 [23:18:26]MH_I2C_Read... [23:18:26]Read from MH i2c: E2 0E 00 [23:18:26]MH_I2C_Read... [23:18:26]Read from MH i2c: E2 0E 00 16 67 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 EE [23:18:26]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [23:18:26]wFMCommunicate OK [23:18:26]SAM_PROTO_GetShiftState done [23:18:26]FM_GetShiftState done [23:18:26]req_shift_opened done [23:18:26]requested_item shift.open_date is exist - process it [23:18:26]req_shift_open_date [23:18:26]req_shift_open_date done [23:18:26]produce_requested_data done [23:18:26]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2142,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [23:18:26]process_action_free close_receipt [23:18:26]json_value_free [23:18:26]json_value_free done [23:18:26]process_json_proto returns [23:18:26]Send response to host [23:18:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2142,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [23:18:26]free response buf [23:18:26]execute_script done [23:18:26]execute_script returns [23:18:26]free content buf [23:18:26]Sock 8.Close socket [23:18:26]Sock 8.Thread stoped [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:22]accept exits with 9 [23:23:22]New connection [23:23:22]New thread 3067460964 created [23:23:22]Thread 3067317604 joined [23:23:22]Waiting for new connection... [23:23:22] Sock 9.Parse request [23:23:22]Sock 9.Check first char [23:23:22]Sock 9.First char is OK [23:23:22]request: POST /json_proto HTTP/1.0 [23:23:22]Method: POST [23:23:22]URL: /json_proto [23:23:22]Method is POST - this is cgi request [23:23:22]url: /json_proto [23:23:22]query_string will be loaded in cgi processing [23:23:22]execute_cgi json_proto POST (null) [23:23:22]execute_cgi path=json_proto method=POST [23:23:22]POST find Content-Length [23:23:22]Host: 172.17.45.132:8080 [23:23:22]Content-Length: 839 [23:23:22]Content-Type: application/json [23:23:22] [23:23:22]POST finish read [23:23:22]Found Content-Length = 839 [23:23:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126439", "tax_sys" : 0, "items" : [ { "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" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:23:22]execute_script... [23:23: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)126439", "tax_sys" : 0, "items" : [ { "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" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:23:22]POST & json_proto [23:23:22]process_json_proto [23:23:22]json parsed OK: [23:23:22]protocol is kg_v1.0 [23:23:22]action value=close_receipt [23:23:22]process_action close_receipt [23:23:22]cmd_close_receipt [23:23:22]MH_GetDate [23:23:22]Write to MH i2c: F0 00 00 17 67 6D [23:23:22]Write i2c OK [23:23:22]MH_I2C_Read... [23:23:22]Read from MH i2c: F0 [23:23:22]MH_I2C_Read... [23:23:22]Read from MH i2c: F0 09 00 [23:23:22]MH_I2C_Read... [23:23:22]Read from MH i2c: F0 09 00 17 67 00 F2 D2 A6 66 E3 0B 90 66 2A [23:23:22]GetLastDocTimeStamp 1722208710 [23:23:22]current date 1722209010 [23:23:22]FM_GetShiftState [23:23:22]SAM_PROTO_GetShiftState [23:23:22]wFMCommunicate request_size=4 [23:23:22]MH_SAM_APDU [23:23:22]CAPDU: 80 13 01 00 [23:23:22]Write to MH i2c: E2 08 00 18 67 80 13 01 00 00 00 00 00 FC [23:23:22]Write i2c OK [23:23:22]MH_I2C_Read... [23:23:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:23:22]Read from MH i2c: E2 [23:23:22]MH_I2C_Read... [23:23:22]Read from MH i2c: E2 0E 00 [23:23:22]MH_I2C_Read... [23:23:22]Read from MH i2c: E2 0E 00 18 67 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 F0 [23:23:22]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [23:23:22]wFMCommunicate OK [23:23:22]SAM_PROTO_GetShiftState done [23:23:22]FM_GetShiftState done [23:23:22]opened in 1722125648 [23:23:22]opened+sec_in_day 1722212048 [23:23:22]quantity*price = 6000 [23:23:22]sum+1 = 6001 [23:23:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 0.00 Безнал.: 60.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 194 28.07.2024 23:23 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: Бакай Банк ФМ: 0000000002094248 ФД: 2143 ФПД: 94179948375063 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T232330&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2143&fm=94179948375063&tin=02508201610067®Number=0000000000189667&sum=6000 0 [23:23:23]StoreToDocumentArchive [23:23:23]shift 13 fd 2143 [23:23:23]save to /storage/0013/doc_00002143 [23:23:23]save last doc name /storage/0013/doc_00002143 to /storage/kkm_last_doc_name [23:23:23]save OK [23:23:23]Clear old archive folders... [23:23:23]ProcessDocumentItem done err = 0, tmpTLVsize=281 [23:23:23]tlvbuf is 0208D000 [23:23:23]SAM_PROTO_ClearQueue [23:23:23]wFMCommunicate request_size=4 [23:23:23]MH_SAM_APDU [23:23:23]CAPDU: 80 09 00 00 [23:23:23]Write to MH i2c: E2 08 00 25 67 80 09 00 00 00 00 00 00 FE [23:23:23]Write i2c OK [23:23:23]MH_I2C_Read... [23:23:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:23:23]Read from MH i2c: E2 [23:23:23]MH_I2C_Read... [23:23:23]Read from MH i2c: E2 03 00 [23:23:23]MH_I2C_Read... [23:23:23]Read from MH i2c: E2 03 00 25 67 00 90 00 00 [23:23:23]RAPDU: 90 00 [23:23:23]wFMCommunicate OK [23:23:23]SAM_PROTO_ClearQueue done [23:23:23]KKMCreateOFDPacket [23:23:23]OFDProtocolAddRootSTLVToBuf [23:23:23]FM_MakeSignedData [23:23:23]FM_MakeSignedData [23:23:23]SAM_PROTO_SignData [23:23:23]wFMCommunicate request_size=4 [23:23:23]MH_SAM_APDU [23:23:23]CAPDU: 80 0D 01 02 [23:23:23]Write to MH i2c: E2 08 00 26 67 80 0D 01 02 00 00 00 00 06 [23:23:23]Write i2c OK [23:23:23]MH_I2C_Read... [23:23:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:23:24]Read from MH i2c: E2 [23:23:24]MH_I2C_Read... [23:23:24]Read from MH i2c: E2 03 00 [23:23:24]MH_I2C_Read... [23:23:24]Read from MH i2c: E2 03 00 26 67 00 90 00 01 [23:23:24]RAPDU: 90 00 [23:23:24]wFMCommunicate OK [23:23:24]wFMCommunicate request_size=255 [23:23:24]MH_SAM_APDU [23:23:24]CAPDU: 80 0D 02 02 FA 03 00 19 01 1E 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 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 F2 D2 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 [23:23:24]Write to MH i2c: E2 02 01 27 67 80 0D 02 02 FA 00 03 00 19 01 1E 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 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 F2 D2 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 00 78 [23:23:24]Write i2c OK [23:23:24]MH_I2C_Read... [23:23:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:23:24]Read from MH i2c: E2 [23:23:24]MH_I2C_Read... [23:23:24]Read from MH i2c: E2 03 00 [23:23:24]MH_I2C_Read... [23:23:24]Read from MH i2c: E2 03 00 27 67 00 90 00 02 [23:23:24]RAPDU: 90 00 [23:23:24]wFMCommunicate OK [23:23:24]wFMCommunicate request_size=40 [23:23:24]MH_SAM_APDU [23:23:24]CAPDU: 80 0D 02 02 23 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 5F 08 00 00 35 04 06 00 55 A7 FA 5E 2C 17 [23:23:24]Write to MH i2c: E2 2B 00 28 67 80 0D 02 02 23 00 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 5F 08 00 00 35 04 06 00 55 A7 FA 5E 2C 17 00 00 C1 [23:23:24]Write i2c OK [23:23:24]MH_I2C_Read... [23:23:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:23:24]Read from MH i2c: E2 [23:23:24]MH_I2C_Read... [23:23:24]Read from MH i2c: E2 03 00 [23:23:24]MH_I2C_Read... [23:23:24]Read from MH i2c: E2 03 00 28 67 00 90 00 03 [23:23:24]RAPDU: 90 00 [23:23:24]wFMCommunicate OK [23:23:24]wFMCommunicate request_size=4 [23:23:24]MH_SAM_APDU [23:23:24]CAPDU: 80 0D 03 02 [23:23:24]Write to MH i2c: E2 08 00 29 67 80 0D 03 02 00 00 00 00 0B [23:23:24]Write i2c OK [23:23:24]MH_I2C_Read... [23:23:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:23:24]Read from MH i2c: E2 [23:23:24]MH_I2C_Read... [23:23:24]Read from MH i2c: E2 0B 00 [23:23:24]MH_I2C_Read... [23:23:24]Read from MH i2c: E2 0B 00 29 67 00 74 14 37 6F 57 76 89 6F 90 00 FF [23:23:24]RAPDU: 74 14 37 6F 57 76 89 6F 90 00 [23:23:24]wFMCommunicate OK [23:23:24]SAM_PROTO_SignData done [23:23:24]FM_MakeSignedData done [23:23:24]CreateOFDProtocolMessage [23:23:24]wFMCommunicate request_size=4 [23:23:24]MH_SAM_APDU [23:23:24]CAPDU: 80 11 00 00 [23:23:24]Write to MH i2c: E2 08 00 2A 67 80 11 00 00 00 00 00 00 0B [23:23:24]Write i2c OK [23:23:24]MH_I2C_Read... [23:23:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:23:24]Read from MH i2c: E2 [23:23:24]MH_I2C_Read... [23:23:24]Read from MH i2c: E2 17 00 [23:23:24]MH_I2C_Read... [23:23:24]Read from MH i2c: E2 17 00 2A 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 5B [23:23:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [23:23:24]wFMCommunicate OK [23:23:24]CreateOFDProtocolMessage done [23:23:24]OFDSenderStorePacket 2143 [23:23:24]StoreOFDPacket docnum=2143 [23:23:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2D 01 00 00 57 C3 25 01 77 C6 5A 03 01 00 03 00 19 01 1E 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 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 F2 D2 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 5F 08 00 00 35 04 06 00 55 A7 FA 5E 2C 17 74 14 37 6F 57 76 89 6F [23:23:24]CheckFolder [23:23:24]dirname=/storage/ofd_packets [23:23:24]CheckFolder done [23:23:24]ProducePacketName [23:23:24]name=ofd_packets/00002143 [23:23:24]NVStorageSaveData ofd_packets/00002143 [23:23:24]File name is /storage/ofd_packets/00002143 [23:23:24]Write 331 bytes [23:23:24]NVStorageSaveData done [23:23:24]OFDSenderStorePacket done [23:23:24]KKMCreateOFDPacket done [23:23:24]NVStorageSaveData kkm_last_timestamp [23:23:24]File name is /storage/kkm_last_timestamp [23:23:24]Write 4 bytes [23:23:24]NVStorageSaveData done [23:23:24]ExternCall_PrintAddStr [23:23:24]wPrintStart [23:23:24]Write to MH i2c: 01 00 00 2B 67 92 [23:23:24]Write i2c OK [23:23:24]MH_I2C_Read... [23:23:24]Read from MH i2c: 01 [23:23:24]MH_I2C_Read... [23:23:24]Read from MH i2c: 01 07 00 [23:23:24]MH_I2C_Read... [23:23:24]Read from MH i2c: 01 07 00 2B 67 00 00 00 00 00 FF 0F A7 [23:23:24]RasterBufferAndPrint [23:23:24]line Счет N : (3)126439 [23:23:24]line ИНН: 02508201610067 [23:23:24]line Контрольно-Кассовый Чек [23:23:24]line ПРОДАЖА [23:23:24]line Товар: 4011100977952 [23:23:24]line Шок Батончик Твикс 55г [23:23:24]line 1.000 * 60.00 [23:23:24]line = 60.00 [23:23:24]line НДС 12% НСП 1% [23:23:24]line > о реализуемом товаре [23:23:24]line ИТОГО: 60.00 [23:23:24]line НСП 1% : 0.53 [23:23:24]line НДС 12% : 6.37 [23:23:24]line Наличными: 0.00 [23:23:24]line Безнал.: 60.00 [23:23:24]line Место: АЗС № 127 "Партнер Нефть" [23:23:24]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [23:23:24]line СНО: Общий режим [23:23:24]line Чек 194 28.07.2024 23:23 [23:23:24]line Смена: 13 ФФД: 1.0 [23:23:24]line ЗНМ: 0300000161 [23:23:24]line РНМ: 0000000000189667 [23:23:24]line Версия ККМ: v1.0 [23:23:24]line Платежная система: Бакай Банк [23:23:24]line ФМ: 0000000002094248 [23:23:24]line ФД: 2143 [23:23:24]line ФПД: 94179948375063 [23:23:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T232330&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2143&fm=94179948375063&tin=02508201610067®Number=0000000000189667&sum=6000 [23:23:24]line 0 [23:23:24]OFD Sender: Processing packet 2143 [packets to send 1, broken 0] [23:23:24]ProducePacketName [23:23:24]name=ofd_packets/00002143 [23:23:24]OFD Sender: To server: pG, [23:23:24]CommunicateWithHost lk.salyk.kg:30040 [23:23:24]ConnectInit lk.salyk.kg [23:23:24]written 0, free lines is 4095 [23:23:24]Connected sock=10 [23:23:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2D 01 00 00 57 C3 25 01 77 C6 5A 03 01 00 03 00 19 01 1E 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 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 F2 D2 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 5F 08 00 00 35 04 06 00 55 A7 FA 5E 2C 17 74 14 37 6F 57 76 89 6F [23:23:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 D4 75 47 00 DC 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 5F 08 00 00 F4 03 04 00 61 7E A6 66 B6 04 01 00 00 A0 27 57 20 86 88 CA E0 [23:23:25]CommunicateWithHost err = 0 [23:23:25]CheckOFDResponse [23:23:25]1017 (14) - 77093643461234 [23:23:25]1041 (16) - 0000000002094248 [23:23:25]1040 (4) - 2143 [23:23:25]1012 (4) - 28.07.2024 17:22 [23:23:25]1206 (1) - 0 [23:23:25]OFD Sender: Remove packet 2143 [23:23:25]ProducePacketName [23:23:25]name=ofd_packets/00002143 [23:23:25]NVStorageDeleteData [23:23:25]Write to MH i2c: 01 00 00 55 67 BC [23:23:25]Write i2c OK [23:23:25]MH_I2C_Read... [23:23:25]Read from MH i2c: 01 [23:23:25]MH_I2C_Read... [23:23:25]Read from MH i2c: 01 07 00 [23:23:25]MH_I2C_Read... [23:23:25]Read from MH i2c: 01 07 00 55 67 00 00 00 00 00 06 0D D6 [23:23:25]RasterBufferAndPrint [23:23:25]line [23:23:25]line [23:23:25]line [23:23:25]line [23:23:25]line [23:23:25]written 0, free lines is 3343 [23:23:25]MH_Cut [23:23:25]Write to MH i2c: D1 01 00 5C 67 01 95 [23:23:25]Write i2c OK [23:23:25]MH_I2C_Read... [23:23:25]Read from MH i2c: D1 [23:23:25]MH_I2C_Read... [23:23:25]Read from MH i2c: D1 01 00 [23:23:25]MH_I2C_Read... [23:23:25]Read from MH i2c: D1 01 00 5C 67 00 94 [23:23:25]Write to MH i2c: 01 00 00 5D 67 C4 [23:23:25]Write i2c OK [23:23:25]MH_I2C_Read... [23:23:25]OFD Sender: No OFD packet to send [23:23:25]*** Cut start [23:23:25]*** Partial cut [23:23:25]*** CUTSNS_PIN = 1 [23:23:26]*** CUTSNS_PIN = 0 [23:23:26]*** Brake cut motor [23:23:26]Read from MH i2c: 01 [23:23:26]MH_I2C_Read... [23:23:26]*** Stop cut motor [23:23:26]*** Cut end [23:23:26]Read from MH i2c: 01 07 00 [23:23:26]MH_I2C_Read... [23:23:26]Read from MH i2c: 01 07 00 5D 67 00 00 00 00 00 FF 0F D9 [23:23:26]process_action close_receipt done [23:23:26]requested_data is exist [23:23:26]produce_requested_data [23:23:26]requested_item fm.sn is exist - process it [23:23:26]wFMCommunicate request_size=4 [23:23:26]MH_SAM_APDU [23:23:26]CAPDU: 80 11 00 00 [23:23:26]Write to MH i2c: E2 08 00 5E 67 80 11 00 00 00 00 00 00 3F [23:23:26]Write i2c OK [23:23:26]MH_I2C_Read... [23:23:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:23:26]Read from MH i2c: E2 [23:23:26]MH_I2C_Read... [23:23:26]Read from MH i2c: E2 17 00 [23:23:26]MH_I2C_Read... [23:23:26]Read from MH i2c: E2 17 00 5E 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 8F [23:23:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [23:23:26]wFMCommunicate OK [23:23:26]requested_item fd.num is exist - process it [23:23:26]SAM_PROTO_GetFieldsCounters [23:23:26]wFMCommunicate request_size=4 [23:23:26]MH_SAM_APDU [23:23:26]CAPDU: 80 13 00 00 [23:23:26]Write to MH i2c: E2 08 00 5F 67 80 13 00 00 00 00 00 00 42 [23:23:26]Write i2c OK [23:23:26]MH_I2C_Read... [23:23:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:23:26]Read from MH i2c: E2 [23:23:26]MH_I2C_Read... [23:23:26]Read from MH i2c: E2 62 00 [23:23:26]MH_I2C_Read... [23:23:26]Read from MH i2c: E2 62 00 5F 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 5F 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [23:23:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 5F 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:23:26]wFMCommunicate OK [23:23:26]SAM_PROTO_GetFieldsCounters done [23:23:26]requested_item shift.num is exist - process it [23:23:26]requested_item shift.opened is exist - process it [23:23:26]req_shift_opened [23:23:26]FM_GetShiftState [23:23:26]SAM_PROTO_GetShiftState [23:23:26]wFMCommunicate request_size=4 [23:23:26]MH_SAM_APDU [23:23:26]CAPDU: 80 13 01 00 [23:23:26]Write to MH i2c: E2 08 00 60 67 80 13 01 00 00 00 00 00 44 [23:23:26]Write i2c OK [23:23:26]MH_I2C_Read... [23:23:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:23:26]Read from MH i2c: E2 [23:23:26]MH_I2C_Read... [23:23:26]Read from MH i2c: E2 0E 00 [23:23:26]MH_I2C_Read... [23:23:26]Read from MH i2c: E2 0E 00 60 67 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 38 [23:23:26]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [23:23:26]wFMCommunicate OK [23:23:26]SAM_PROTO_GetShiftState done [23:23:26]FM_GetShiftState done [23:23:26]req_shift_opened done [23:23:26]requested_item shift.open_date is exist - process it [23:23:26]req_shift_open_date [23:23:26]req_shift_open_date done [23:23:26]produce_requested_data done [23:23:26]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2143,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [23:23:26]process_action_free close_receipt [23:23:26]json_value_free [23:23:26]json_value_free done [23:23:26]process_json_proto returns [23:23:26]Send response to host [23:23:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2143,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [23:23:26]free response buf [23:23:26]execute_script done [23:23:26]execute_script returns [23:23:26]free content buf [23:23:26]Sock 9.Close socket [23:23:26]Sock 9.Thread stoped [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]OFD Sender: No OFD packet to send [23:25:05]OFD Sender: No OFD packet to send [23:25:10]OFD Sender: No OFD packet to send [23:25:15]OFD Sender: No OFD packet to send [23:25:20]OFD Sender: No OFD packet to send [23:25:25]OFD Sender: No OFD packet to send [23:25:30]OFD Sender: No OFD packet to send [23:25:35]OFD Sender: No OFD packet to send [23:25:40]OFD Sender: No OFD packet to send [23:25:45]OFD Sender: No OFD packet to send [23:25:50]OFD Sender: No OFD packet to send [23:25:55]OFD Sender: No OFD packet to send [23:26:00]OFD Sender: No OFD packet to send [23:26:05]OFD Sender: No OFD packet to send [23:26:10]OFD Sender: No OFD packet to send [23:26:15]OFD Sender: No OFD packet to send [23:26:20]OFD Sender: No OFD packet to send [23:26:25]OFD Sender: No OFD packet to send [23:26:30]OFD Sender: No OFD packet to send [23:26:35]OFD Sender: No OFD packet to send [23:26:40]OFD Sender: No OFD packet to send [23:26:45]OFD Sender: No OFD packet to send [23:26:50]OFD Sender: No OFD packet to send [23:26:55]OFD Sender: No OFD packet to send [23:27:00]OFD Sender: No OFD packet to send [23:27:05]OFD Sender: No OFD packet to send [23:27:10]OFD Sender: No OFD packet to send [23:27:15]OFD Sender: No OFD packet to send [23:27:20]OFD Sender: No OFD packet to send [23:27:25]OFD Sender: No OFD packet to send [23:27:30]OFD Sender: No OFD packet to send [23:27:35]OFD Sender: No OFD packet to send [23:27:40]OFD Sender: No OFD packet to send [23:27:45]OFD Sender: No OFD packet to send [23:27:50]OFD Sender: No OFD packet to send [23:27:55]OFD Sender: No OFD packet to send [23:28:00]OFD Sender: No OFD packet to send [23:28:05]OFD Sender: No OFD packet to send [23:28:10]OFD Sender: No OFD packet to send [23:28:15]OFD Sender: No OFD packet to send [23:28:20]OFD Sender: No OFD packet to send [23:28:25]OFD Sender: No OFD packet to send [23:28:30]OFD Sender: No OFD packet to send [23:28:35]OFD Sender: No OFD packet to send [23:28:40]OFD Sender: No OFD packet to send [23:28:45]OFD Sender: No OFD packet to send [23:28:50]OFD Sender: No OFD packet to send [23:28:55]OFD Sender: No OFD packet to send [23:29:00]OFD Sender: No OFD packet to send [23:29:05]OFD Sender: No OFD packet to send [23:29:10]OFD Sender: No OFD packet to send [23:29:15]OFD Sender: No OFD packet to send [23:29:20]OFD Sender: No OFD packet to send [23:29:25]OFD Sender: No OFD packet to send [23:29:30]OFD Sender: No OFD packet to send [23:29:36]OFD Sender: No OFD packet to send [23:29:41]OFD Sender: No OFD packet to send [23:29:42]accept exits with 8 [23:29:42]New connection [23:29:42]New thread 3067317604 created [23:29:42]Thread 3067460964 joined [23:29:42]Waiting for new connection... [23:29:42] Sock 8.Parse request [23:29:42]Sock 8.Check first char [23:29:42]Sock 8.First char is OK [23:29:42]request: POST /json_proto HTTP/1.0 [23:29:42]Method: POST [23:29:42]URL: /json_proto [23:29:42]Method is POST - this is cgi request [23:29:42]url: /json_proto [23:29:42]query_string will be loaded in cgi processing [23:29:42]execute_cgi json_proto POST (null) [23:29:42]execute_cgi path=json_proto method=POST [23:29:42]POST find Content-Length [23:29:42]Host: 172.17.45.132:8080 [23:29:42]Content-Length: 1198 [23:29:42]Content-Type: application/json [23:29:42] [23:29:42]POST finish read [23:29:42]Found Content-Length = 1198 [23:29:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126440", "tax_sys" : 0, "items" : [ { "code": "4650243871781", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F Orange 0,45 \u0436/\u0431", "price" : 110.00, "quantity" : 1.000, "sum" : 110.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 }]} ,{ "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" : 281.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:29:42]execute_script... [23:29:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126440", "tax_sys" : 0, "items" : [ { "code": "4650243871781", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F Orange 0,45 \u0436/\u0431", "price" : 110.00, "quantity" : 1.000, "sum" : 110.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 }]} ,{ "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" : 281.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:29:42]POST & json_proto [23:29:42]process_json_proto [23:29:42]json parsed OK: [23:29:42]protocol is kg_v1.0 [23:29:42]action value=close_receipt [23:29:42]process_action close_receipt [23:29:42]cmd_close_receipt [23:29:42]MH_GetDate [23:29:42]Write to MH i2c: F0 00 00 61 67 B7 [23:29:42]Write i2c OK [23:29:42]MH_I2C_Read... [23:29:42]Read from MH i2c: F0 [23:29:42]MH_I2C_Read... [23:29:42]Read from MH i2c: F0 09 00 [23:29:42]MH_I2C_Read... [23:29:42]Read from MH i2c: F0 09 00 61 67 00 6E D4 A6 66 E3 0B 90 66 F2 [23:29:42]GetLastDocTimeStamp 1722209010 [23:29:42]current date 1722209390 [23:29:42]FM_GetShiftState [23:29:42]SAM_PROTO_GetShiftState [23:29:42]wFMCommunicate request_size=4 [23:29:42]MH_SAM_APDU [23:29:42]CAPDU: 80 13 01 00 [23:29:42]Write to MH i2c: E2 08 00 62 67 80 13 01 00 00 00 00 00 46 [23:29:42]Write i2c OK [23:29:42]MH_I2C_Read... [23:29:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:29:42]Read from MH i2c: E2 [23:29:42]MH_I2C_Read... [23:29:42]Read from MH i2c: E2 0E 00 [23:29:42]MH_I2C_Read... [23:29:42]Read from MH i2c: E2 0E 00 62 67 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 3A [23:29:42]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [23:29:42]wFMCommunicate OK [23:29:42]SAM_PROTO_GetShiftState done [23:29:42]FM_GetShiftState done [23:29:42]opened in 1722125648 [23:29:42]opened+sec_in_day 1722212048 [23:29:42]quantity*price = 11000 [23:29:42]sum+1 = 11001 [23:29:42]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160792 Снек Курут классический (круглый) 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870001570071 Напиток Pepsi 1л 1.000 * 111.00 = 111.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 281.00 НСП 1% : 2.48 НДС 12% : 29.84 Наличными: 281.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 195 28.07.2024 23:29 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2144 ФПД: 225621134022948 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T232950&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2144&fm=225621134022948&tin=02508201610067®Number=0000000000189667&sum=28100 0 [23:29:43]StoreToDocumentArchive [23:29:43]shift 13 fd 2144 [23:29:43]save to /storage/0013/doc_00002144 [23:29:43]save last doc name /storage/0013/doc_00002144 to /storage/kkm_last_doc_name [23:29:43]save OK [23:29:43]Clear old archive folders... [23:29:43]ProcessDocumentItem done err = 0, tmpTLVsize=508 [23:29:43]tlvbuf is 0217C680 [23:29:43]SAM_PROTO_ClearQueue [23:29:43]wFMCommunicate request_size=4 [23:29:43]MH_SAM_APDU [23:29:43]CAPDU: 80 09 00 00 [23:29:43]Write to MH i2c: E2 08 00 6F 67 80 09 00 00 00 00 00 00 48 [23:29:43]Write i2c OK [23:29:43]MH_I2C_Read... [23:29:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:29:43]Read from MH i2c: E2 [23:29:43]MH_I2C_Read... [23:29:43]Read from MH i2c: E2 03 00 [23:29:43]MH_I2C_Read... [23:29:43]Read from MH i2c: E2 03 00 6F 67 00 90 00 4A [23:29:43]RAPDU: 90 00 [23:29:43]wFMCommunicate OK [23:29:43]SAM_PROTO_ClearQueue done [23:29:43]KKMCreateOFDPacket [23:29:43]OFDProtocolAddRootSTLVToBuf [23:29:43]FM_MakeSignedData [23:29:43]FM_MakeSignedData [23:29:43]SAM_PROTO_SignData [23:29:43]wFMCommunicate request_size=4 [23:29:43]MH_SAM_APDU [23:29:43]CAPDU: 80 0D 01 02 [23:29:43]Write to MH i2c: E2 08 00 70 67 80 0D 01 02 00 00 00 00 50 [23:29:43]Write i2c OK [23:29:43]MH_I2C_Read... [23:29:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:29:43]Read from MH i2c: E2 [23:29:43]MH_I2C_Read... [23:29:43]Read from MH i2c: E2 03 00 [23:29:43]MH_I2C_Read... [23:29:43]Read from MH i2c: E2 03 00 70 67 00 90 00 4B [23:29:43]RAPDU: 90 00 [23:29:43]wFMCommunicate OK [23:29:43]wFMCommunicate request_size=255 [23:29:43]MH_SAM_APDU [23:29:43]CAPDU: 80 0D 02 02 FA 03 00 FC 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 37 38 31 06 04 25 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 4F 72 61 6E 67 65 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 [23:29:43]Write to MH i2c: E2 02 01 71 67 80 0D 02 02 FA 00 03 00 FC 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 37 38 31 06 04 25 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 4F 72 61 6E 67 65 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 00 00 59 [23:29:43]Write i2c OK [23:29:43]MH_I2C_Read... [23:29:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:29:44]Read from MH i2c: E2 [23:29:44]MH_I2C_Read... [23:29:44]Read from MH i2c: E2 03 00 [23:29:44]MH_I2C_Read... [23:29:44]Read from MH i2c: E2 03 00 71 67 00 90 00 4C [23:29:44]RAPDU: 90 00 [23:29:44]wFMCommunicate OK [23:29:44]wFMCommunicate request_size=255 [23:29:44]MH_SAM_APDU [23:29:44]CAPDU: 80 0D 02 02 FA 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 C4 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 A8 0B 00 00 00 00 07 04 06 00 C4 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 C3 00 00 00 F4 03 04 00 6E D4 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 60 08 [23:29:44]Write to MH i2c: E2 02 01 72 67 80 0D 02 02 FA 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 C4 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 A8 0B 00 00 00 00 07 04 06 00 C4 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 C3 00 00 00 F4 03 04 00 6E D4 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 60 08 00 00 44 [23:29:44]Write i2c OK [23:29:44]MH_I2C_Read... [23:29:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:29:44]Read from MH i2c: E2 [23:29:44]MH_I2C_Read... [23:29:44]Read from MH i2c: E2 03 00 [23:29:44]MH_I2C_Read... [23:29:44]Read from MH i2c: E2 03 00 72 67 00 90 00 4D [23:29:44]RAPDU: 90 00 [23:29:44]wFMCommunicate OK [23:29:44]wFMCommunicate request_size=17 [23:29:44]MH_SAM_APDU [23:29:44]CAPDU: 80 0D 02 02 0C 00 00 35 04 06 00 CD 33 83 8C 19 24 [23:29:44]Write to MH i2c: E2 14 00 73 67 80 0D 02 02 0C 00 00 00 35 04 06 00 CD 33 83 8C 19 24 00 00 F7 [23:29:44]Write i2c OK [23:29:44]MH_I2C_Read... [23:29:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:29:44]Read from MH i2c: E2 [23:29:44]MH_I2C_Read... [23:29:44]Read from MH i2c: E2 03 00 [23:29:44]MH_I2C_Read... [23:29:44]Read from MH i2c: E2 03 00 73 67 00 90 00 4E [23:29:44]RAPDU: 90 00 [23:29:44]wFMCommunicate OK [23:29:44]wFMCommunicate request_size=4 [23:29:44]MH_SAM_APDU [23:29:44]CAPDU: 80 0D 03 02 [23:29:44]Write to MH i2c: E2 08 00 74 67 80 0D 03 02 00 00 00 00 56 [23:29:44]Write i2c OK [23:29:44]MH_I2C_Read... [23:29:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:29:44]Read from MH i2c: E2 [23:29:44]MH_I2C_Read... [23:29:44]Read from MH i2c: E2 0B 00 [23:29:44]MH_I2C_Read... [23:29:44]Read from MH i2c: E2 0B 00 74 67 00 D9 A6 CC 70 AE 21 1C 2C 90 00 29 [23:29:44]RAPDU: D9 A6 CC 70 AE 21 1C 2C 90 00 [23:29:44]wFMCommunicate OK [23:29:44]SAM_PROTO_SignData done [23:29:44]FM_MakeSignedData done [23:29:44]CreateOFDProtocolMessage [23:29:44]wFMCommunicate request_size=4 [23:29:44]MH_SAM_APDU [23:29:44]CAPDU: 80 11 00 00 [23:29:44]Write to MH i2c: E2 08 00 75 67 80 11 00 00 00 00 00 00 56 [23:29:44]Write i2c OK [23:29:44]MH_I2C_Read... [23:29:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:29:44]Read from MH i2c: E2 [23:29:44]MH_I2C_Read... [23:29:44]Read from MH i2c: E2 17 00 [23:29:44]MH_I2C_Read... [23:29:44]Read from MH i2c: E2 17 00 75 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 A6 [23:29:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [23:29:44]wFMCommunicate OK [23:29:44]CreateOFDProtocolMessage done [23:29:44]OFDSenderStorePacket 2144 [23:29:44]StoreOFDPacket docnum=2144 [23:29:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 02 00 00 8F 6E 08 02 51 CF 5A 03 01 00 03 00 FC 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 37 38 31 06 04 25 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 4F 72 61 6E 67 65 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 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 C4 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 A8 0B 00 00 00 00 07 04 06 00 C4 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 C3 00 00 00 F4 03 04 00 6E D4 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 60 08 00 00 35 04 06 00 CD 33 83 8C 19 24 D9 A6 CC 70 AE 21 1C 2C [23:29:44]CheckFolder [23:29:44]dirname=/storage/ofd_packets [23:29:44]CheckFolder done [23:29:44]ProducePacketName [23:29:44]name=ofd_packets/00002144 [23:29:44]NVStorageSaveData ofd_packets/00002144 [23:29:44]File name is /storage/ofd_packets/00002144 [23:29:44]Write 558 bytes [23:29:44]NVStorageSaveData done [23:29:44]OFDSenderStorePacket done [23:29:44]KKMCreateOFDPacket done [23:29:44]NVStorageSaveData kkm_last_timestamp [23:29:44]File name is /storage/kkm_last_timestamp [23:29:44]Write 4 bytes [23:29:44]NVStorageSaveData done [23:29:44]ExternCall_PrintAddStr [23:29:44]wPrintStart [23:29:44]Write to MH i2c: 01 00 00 76 67 DD [23:29:44]Write i2c OK [23:29:44]MH_I2C_Read... [23:29:44]Read from MH i2c: 01 [23:29:44]MH_I2C_Read... [23:29:44]Read from MH i2c: 01 07 00 [23:29:44]MH_I2C_Read... [23:29:44]Read from MH i2c: 01 07 00 76 67 00 00 00 00 00 FF 0F F2 [23:29:44]RasterBufferAndPrint [23:29:44]line Счет N : (3)126440 [23:29:44]line ИНН: 02508201610067 [23:29:44]line Контрольно-Кассовый Чек [23:29:44]line ПРОДАЖА [23:29:44]line Товар: 4650243871781 [23:29:44]line Gorilla эн нап Orange 0,45 ж/б [23:29:44]line 1.000 * 110.00 [23:29:44]line = 110.00 [23:29:44]line НДС 12% НСП 1% [23:29:44]line > о реализуемом товаре [23:29:44]line Товар: 4700000160792 [23:29:44]line Снек Курут классический (круглый) [23:29:44]line 1.000 * 60.00 [23:29:44]line = 60.00 [23:29:44]line НДС 12% НСП 1% [23:29:44]line > о реализуемом товаре [23:29:44]line Товар: 4870001570071 [23:29:44]line Напиток Pepsi 1л [23:29:44]line 1.000 * 111.00 [23:29:44]line = 111.00 [23:29:44]line НДС 12% НСП 1% [23:29:44]line > о реализуемом товаре [23:29:44]line ИТОГО: 281.00 [23:29:44]line НСП 1% : 2.48 [23:29:44]line НДС 12% : 29.84 [23:29:44]line Наличными: 281.00 [23:29:44]line Безнал.: 0.00 [23:29:44]line Место: АЗС № 127 "Партнер Нефть" [23:29:44]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [23:29:44]line СНО: Общий режим [23:29:44]line Чек 195 28.07.2024 23:29 [23:29:44]line Смена: 13 ФФД: 1.0 [23:29:44]line ЗНМ: 0300000161 [23:29:44]line РНМ: 0000000000189667 [23:29:44]line Версия ККМ: v1.0 [23:29:44]line ФМ: 0000000002094248 [23:29:44]line ФД: 2144 [23:29:44]line ФПД: 225621134022948 [23:29:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T232950&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2144&fm=225621134022948&tin=02508201610067®Number=0000000000189667&sum=28100 [23:29:44]line 0 [23:29:44]OFD Sender: Processing packet 2144 [packets to send 1, broken 0] [23:29:44]ProducePacketName [23:29:44]name=ofd_packets/00002144 [23:29:44]OFD Sender: To server: pG, [23:29:44]CommunicateWithHost lk.salyk.kg:30040 [23:29:44]ConnectInit lk.salyk.kg [23:29:44]written 0, free lines is 4095 [23:29:44]Connected sock=10 [23:29:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 02 00 00 8F 6E 08 02 51 CF 5A 03 01 00 03 00 FC 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 37 38 31 06 04 25 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 4F 72 61 6E 67 65 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 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 C4 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 A8 0B 00 00 00 00 07 04 06 00 C4 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 C3 00 00 00 F4 03 04 00 6E D4 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 60 08 00 00 35 04 06 00 CD 33 83 8C 19 24 D9 A6 CC 70 AE 21 1C 2C [23:29:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 A5 D5 47 00 9D E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 60 08 00 00 F4 03 04 00 DD 7F A6 66 B6 04 01 00 00 48 3D 17 82 5B 97 CC 6D [23:29:45]CommunicateWithHost err = 0 [23:29:45]CheckOFDResponse [23:29:45]1017 (14) - 77093643461234 [23:29:45]1041 (16) - 0000000002094248 [23:29:45]1040 (4) - 2144 [23:29:45]1012 (4) - 28.07.2024 17:29 [23:29:45]1206 (1) - 0 [23:29:45]OFD Sender: Remove packet 2144 [23:29:45]ProducePacketName [23:29:45]name=ofd_packets/00002144 [23:29:45]NVStorageDeleteData [23:29:45]Write to MH i2c: 01 00 00 AB 67 12 [23:29:45]Write i2c OK [23:29:45]MH_I2C_Read... [23:29:45]Read from MH i2c: 01 [23:29:45]MH_I2C_Read... [23:29:45]Read from MH i2c: 01 07 00 [23:29:45]MH_I2C_Read... [23:29:45]Read from MH i2c: 01 07 00 AB 67 00 00 00 00 00 91 0C B6 [23:29:45]RasterBufferAndPrint [23:29:45]line [23:29:45]line [23:29:45]line [23:29:45]line [23:29:45]line [23:29:45]written 0, free lines is 3226 [23:29:45]MH_Cut [23:29:45]Write to MH i2c: D1 01 00 B2 67 01 EB [23:29:45]Write i2c OK [23:29:45]MH_I2C_Read... [23:29:45]Read from MH i2c: D1 [23:29:45]MH_I2C_Read... [23:29:45]Read from MH i2c: D1 01 00 [23:29:45]MH_I2C_Read... [23:29:45]Read from MH i2c: D1 01 00 B2 67 00 EA [23:29:45]Write to MH i2c: 01 00 00 B3 67 1A [23:29:45]Write i2c OK [23:29:45]MH_I2C_Read... [23:29:45]OFD Sender: No OFD packet to send [23:29:46]*** Cut start [23:29:46]*** Partial cut [23:29:46]*** CUTSNS_PIN = 1 [23:29:46]*** CUTSNS_PIN = 0 [23:29:46]*** Brake cut motor [23:29:46]Read from MH i2c: 01 [23:29:46]MH_I2C_Read... [23:29:46]*** Stop cut motor [23:29:46]*** Cut end [23:29:46]Read from MH i2c: 01 07 00 [23:29:46]MH_I2C_Read... [23:29:46]Read from MH i2c: 01 07 00 B3 67 00 00 00 00 00 FF 0F 2F [23:29:46]process_action close_receipt done [23:29:46]requested_data is exist [23:29:46]produce_requested_data [23:29:46]requested_item fm.sn is exist - process it [23:29:46]wFMCommunicate request_size=4 [23:29:46]MH_SAM_APDU [23:29:46]CAPDU: 80 11 00 00 [23:29:46]Write to MH i2c: E2 08 00 B4 67 80 11 00 00 00 00 00 00 95 [23:29:46]Write i2c OK [23:29:46]MH_I2C_Read... [23:29:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:29:46]Read from MH i2c: E2 [23:29:46]MH_I2C_Read... [23:29:46]Read from MH i2c: E2 17 00 [23:29:46]MH_I2C_Read... [23:29:46]Read from MH i2c: E2 17 00 B4 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 E5 [23:29:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [23:29:46]wFMCommunicate OK [23:29:46]requested_item fd.num is exist - process it [23:29:46]SAM_PROTO_GetFieldsCounters [23:29:46]wFMCommunicate request_size=4 [23:29:46]MH_SAM_APDU [23:29:46]CAPDU: 80 13 00 00 [23:29:46]Write to MH i2c: E2 08 00 B5 67 80 13 00 00 00 00 00 00 98 [23:29:46]Write i2c OK [23:29:46]MH_I2C_Read... [23:29:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:29:47]Read from MH i2c: E2 [23:29:47]MH_I2C_Read... [23:29:47]Read from MH i2c: E2 62 00 [23:29:47]MH_I2C_Read... [23:29:47]Read from MH i2c: E2 62 00 B5 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 60 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [23:29:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 60 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:29:47]wFMCommunicate OK [23:29:47]SAM_PROTO_GetFieldsCounters done [23:29:47]requested_item shift.num is exist - process it [23:29:47]requested_item shift.opened is exist - process it [23:29:47]req_shift_opened [23:29:47]FM_GetShiftState [23:29:47]SAM_PROTO_GetShiftState [23:29:47]wFMCommunicate request_size=4 [23:29:47]MH_SAM_APDU [23:29:47]CAPDU: 80 13 01 00 [23:29:47]Write to MH i2c: E2 08 00 B6 67 80 13 01 00 00 00 00 00 9A [23:29:47]Write i2c OK [23:29:47]MH_I2C_Read... [23:29:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:29:47]Read from MH i2c: E2 [23:29:47]MH_I2C_Read... [23:29:47]Read from MH i2c: E2 0E 00 [23:29:47]MH_I2C_Read... [23:29:47]Read from MH i2c: E2 0E 00 B6 67 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 8E [23:29:47]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [23:29:47]wFMCommunicate OK [23:29:47]SAM_PROTO_GetShiftState done [23:29:47]FM_GetShiftState done [23:29:47]req_shift_opened done [23:29:47]requested_item shift.open_date is exist - process it [23:29:47]req_shift_open_date [23:29:47]req_shift_open_date done [23:29:47]produce_requested_data done [23:29:47]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2144,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [23:29:47]process_action_free close_receipt [23:29:47]json_value_free [23:29:47]json_value_free done [23:29:47]process_json_proto returns [23:29:47]Send response to host [23:29:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2144,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [23:29:47]free response buf [23:29:47]execute_script done [23:29:47]execute_script returns [23:29:47]free content buf [23:29:47]Sock 8.Close socket [23:29:47]Sock 8.Thread stoped [23:29:50]OFD Sender: No OFD packet to send [23:29:55]OFD Sender: No OFD packet to send [23:30:00]OFD Sender: No OFD packet to send [23:30:05]OFD Sender: No OFD packet to send [23:30:10]OFD Sender: No OFD packet to send [23:30:15]OFD Sender: No OFD packet to send [23:30:20]OFD Sender: No OFD packet to send [23:30:25]OFD Sender: No OFD packet to send [23:30:30]OFD Sender: No OFD packet to send [23:30:35]OFD Sender: No OFD packet to send [23:30:40]OFD Sender: No OFD packet to send [23:30:45]OFD Sender: No OFD packet to send [23:30:50]OFD Sender: No OFD packet to send [23:30:55]OFD Sender: No OFD packet to send [23:31:00]OFD Sender: No OFD packet to send [23:31:05]OFD Sender: No OFD packet to send [23:31:10]OFD Sender: No OFD packet to send [23:31:14]accept exits with 9 [23:31:14]New connection [23:31:14]New thread 3067460964 created [23:31:14]Thread 3067317604 joined [23:31:14]Waiting for new connection... [23:31:14] Sock 9.Parse request [23:31:14]Sock 9.Check first char [23:31:14]Sock 9.First char is OK [23:31:14]request: POST /json_proto HTTP/1.0 [23:31:14]Method: POST [23:31:14]URL: /json_proto [23:31:14]Method is POST - this is cgi request [23:31:14]url: /json_proto [23:31:14]query_string will be loaded in cgi processing [23:31:14]execute_cgi json_proto POST (null) [23:31:14]execute_cgi path=json_proto method=POST [23:31:14]POST find Content-Length [23:31:14]Host: 172.17.45.132:8080 [23:31:14]Content-Length: 644 [23:31:14]Content-Type: application/json [23:31:14] [23:31:14]POST finish read [23:31:14]Found Content-Length = 644 [23:31:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126441", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 35.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:31:14]execute_script... [23:31:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126441", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 35.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:31:14]POST & json_proto [23:31:14]process_json_proto [23:31:14]json parsed OK: [23:31:14]protocol is kg_v1.0 [23:31:14]action value=close_receipt [23:31:14]process_action close_receipt [23:31:14]cmd_close_receipt [23:31:14]MH_GetDate [23:31:14]Write to MH i2c: F0 00 00 B7 67 0D [23:31:14]Write i2c OK [23:31:14]MH_I2C_Read... [23:31:14]Read from MH i2c: F0 [23:31:14]MH_I2C_Read... [23:31:14]Read from MH i2c: F0 09 00 [23:31:14]MH_I2C_Read... [23:31:14]Read from MH i2c: F0 09 00 B7 67 00 CA D4 A6 66 E3 0B 90 66 A4 [23:31:14]GetLastDocTimeStamp 1722209390 [23:31:14]current date 1722209482 [23:31:14]FM_GetShiftState [23:31:14]SAM_PROTO_GetShiftState [23:31:14]wFMCommunicate request_size=4 [23:31:14]MH_SAM_APDU [23:31:14]CAPDU: 80 13 01 00 [23:31:14]Write to MH i2c: E2 08 00 B8 67 80 13 01 00 00 00 00 00 9C [23:31:14]Write i2c OK [23:31:14]MH_I2C_Read... [23:31:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:31:14]Read from MH i2c: E2 [23:31:14]MH_I2C_Read... [23:31:14]Read from MH i2c: E2 0E 00 [23:31:14]MH_I2C_Read... [23:31:14]Read from MH i2c: E2 0E 00 B8 67 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 90 [23:31:14]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [23:31:14]wFMCommunicate OK [23:31:14]SAM_PROTO_GetShiftState done [23:31:14]FM_GetShiftState done [23:31:14]opened in 1722125648 [23:31:14]opened+sec_in_day 1722212048 [23:31:14]quantity*price = 3500 [23:31:14]sum+1 = 3501 [23:31:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 35.00 НСП 1% : 0.31 НДС 12% : 3.72 Наличными: 35.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 196 28.07.2024 23:31 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2145 ФПД: 226943085554142 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T233122&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2145&fm=226943085554142&tin=02508201610067®Number=0000000000189667&sum=3500 0 [23:31:15]StoreToDocumentArchive [23:31:15]shift 13 fd 2145 [23:31:15]save to /storage/0013/doc_00002145 [23:31:15]save last doc name /storage/0013/doc_00002145 to /storage/kkm_last_doc_name [23:31:15]save OK [23:31:15]Clear old archive folders... [23:31:15]ProcessDocumentItem done err = 0, tmpTLVsize=275 [23:31:15]tlvbuf is 01FE7BF0 [23:31:15]SAM_PROTO_ClearQueue [23:31:15]wFMCommunicate request_size=4 [23:31:15]MH_SAM_APDU [23:31:15]CAPDU: 80 09 00 00 [23:31:15]Write to MH i2c: E2 08 00 C5 67 80 09 00 00 00 00 00 00 9E [23:31:15]Write i2c OK [23:31:15]MH_I2C_Read... [23:31:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:31:15]Read from MH i2c: E2 [23:31:15]MH_I2C_Read... [23:31:15]Read from MH i2c: E2 03 00 [23:31:15]MH_I2C_Read... [23:31:15]Read from MH i2c: E2 03 00 C5 67 00 90 00 A0 [23:31:15]RAPDU: 90 00 [23:31:15]wFMCommunicate OK [23:31:15]SAM_PROTO_ClearQueue done [23:31:15]KKMCreateOFDPacket [23:31:15]OFDProtocolAddRootSTLVToBuf [23:31:15]FM_MakeSignedData [23:31:15]FM_MakeSignedData [23:31:15]SAM_PROTO_SignData [23:31:15]wFMCommunicate request_size=4 [23:31:15]MH_SAM_APDU [23:31:15]CAPDU: 80 0D 01 02 [23:31:15]Write to MH i2c: E2 08 00 C6 67 80 0D 01 02 00 00 00 00 A6 [23:31:15]Write i2c OK [23:31:15]MH_I2C_Read... [23:31:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:31:15]Read from MH i2c: E2 [23:31:15]MH_I2C_Read... [23:31:15]Read from MH i2c: E2 03 00 [23:31:15]MH_I2C_Read... [23:31:15]Read from MH i2c: E2 03 00 C6 67 00 90 00 A1 [23:31:15]RAPDU: 90 00 [23:31:15]wFMCommunicate OK [23:31:15]wFMCommunicate request_size=255 [23:31:15]MH_SAM_APDU [23:31:15]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 CA D4 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 [23:31:15]Write to MH i2c: E2 02 01 C7 67 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 CA D4 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 00 00 15 [23:31:15]Write i2c OK [23:31:15]MH_I2C_Read... [23:31:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:31:16]Read from MH i2c: E2 [23:31:16]MH_I2C_Read... [23:31:16]Read from MH i2c: E2 03 00 [23:31:16]MH_I2C_Read... [23:31:16]Read from MH i2c: E2 03 00 C7 67 00 90 00 A2 [23:31:16]RAPDU: 90 00 [23:31:16]wFMCommunicate OK [23:31:16]wFMCommunicate request_size=34 [23:31:16]MH_SAM_APDU [23:31:16]CAPDU: 80 0D 02 02 1D 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 61 08 00 00 35 04 06 00 CE 67 4D FF A9 DE [23:31:16]Write to MH i2c: E2 25 00 C8 67 80 0D 02 02 1D 00 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 61 08 00 00 35 04 06 00 CE 67 4D FF A9 DE 00 00 D8 [23:31:16]Write i2c OK [23:31:16]MH_I2C_Read... [23:31:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:31:16]Read from MH i2c: E2 [23:31:16]MH_I2C_Read... [23:31:16]Read from MH i2c: E2 03 00 [23:31:16]MH_I2C_Read... [23:31:16]Read from MH i2c: E2 03 00 C8 67 00 90 00 A3 [23:31:16]RAPDU: 90 00 [23:31:16]wFMCommunicate OK [23:31:16]wFMCommunicate request_size=4 [23:31:16]MH_SAM_APDU [23:31:16]CAPDU: 80 0D 03 02 [23:31:16]Write to MH i2c: E2 08 00 C9 67 80 0D 03 02 00 00 00 00 AB [23:31:16]Write i2c OK [23:31:16]MH_I2C_Read... [23:31:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:31:16]Read from MH i2c: E2 [23:31:16]MH_I2C_Read... [23:31:16]Read from MH i2c: E2 0B 00 [23:31:16]MH_I2C_Read... [23:31:16]Read from MH i2c: E2 0B 00 C9 67 00 F6 27 CF AC 5B 4F 67 F8 90 00 4D [23:31:16]RAPDU: F6 27 CF AC 5B 4F 67 F8 90 00 [23:31:16]wFMCommunicate OK [23:31:16]SAM_PROTO_SignData done [23:31:16]FM_MakeSignedData done [23:31:16]CreateOFDProtocolMessage [23:31:16]wFMCommunicate request_size=4 [23:31:16]MH_SAM_APDU [23:31:16]CAPDU: 80 11 00 00 [23:31:16]Write to MH i2c: E2 08 00 CA 67 80 11 00 00 00 00 00 00 AB [23:31:16]Write i2c OK [23:31:16]MH_I2C_Read... [23:31:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:31:16]Read from MH i2c: E2 [23:31:16]MH_I2C_Read... [23:31:16]Read from MH i2c: E2 17 00 [23:31:16]MH_I2C_Read... [23:31:16]Read from MH i2c: E2 17 00 CA 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 FB [23:31:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [23:31:16]wFMCommunicate OK [23:31:16]CreateOFDProtocolMessage done [23:31:16]OFDSenderStorePacket 2145 [23:31:16]StoreOFDPacket docnum=2145 [23:31:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 27 01 00 00 6F BC 1F 01 C5 DC 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 CA D4 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 61 08 00 00 35 04 06 00 CE 67 4D FF A9 DE F6 27 CF AC 5B 4F 67 F8 [23:31:16]CheckFolder [23:31:16]dirname=/storage/ofd_packets [23:31:16]CheckFolder done [23:31:16]ProducePacketName [23:31:16]name=ofd_packets/00002145 [23:31:16]NVStorageSaveData ofd_packets/00002145 [23:31:16]File name is /storage/ofd_packets/00002145 [23:31:16]Write 325 bytes [23:31:16]NVStorageSaveData done [23:31:16]OFDSenderStorePacket done [23:31:16]KKMCreateOFDPacket done [23:31:16]NVStorageSaveData kkm_last_timestamp [23:31:16]File name is /storage/kkm_last_timestamp [23:31:16]Write 4 bytes [23:31:16]NVStorageSaveData done [23:31:16]ExternCall_PrintAddStr [23:31:16]wPrintStart [23:31:16]Write to MH i2c: 01 00 00 CB 67 32 [23:31:16]Write i2c OK [23:31:16]MH_I2C_Read... [23:31:16]Read from MH i2c: 01 [23:31:16]MH_I2C_Read... [23:31:16]Read from MH i2c: 01 07 00 [23:31:16]MH_I2C_Read... [23:31:16]Read from MH i2c: 01 07 00 CB 67 00 00 00 00 00 FF 0F 47 [23:31:16]RasterBufferAndPrint [23:31:16]line Счет N : (3)126441 [23:31:16]line ИНН: 02508201610067 [23:31:16]line Контрольно-Кассовый Чек [23:31:16]line ПРОДАЖА [23:31:16]line Товар: 4700000310326 [23:31:16]line Вода Адыгене 1л б/г [23:31:16]line 1.000 * 35.00 [23:31:16]line = 35.00 [23:31:16]line НДС 12% НСП 1% [23:31:16]line > о реализуемом товаре [23:31:16]line ИТОГО: 35.00 [23:31:16]line НСП 1% : 0.31 [23:31:16]line НДС 12% : 3.72 [23:31:16]line Наличными: 35.00 [23:31:16]line Безнал.: 0.00 [23:31:16]line Место: АЗС № 127 "Партнер Нефть" [23:31:16]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [23:31:16]line СНО: Общий режим [23:31:16]line Чек 196 28.07.2024 23:31 [23:31:16]line Смена: 13 ФФД: 1.0 [23:31:16]line ЗНМ: 0300000161 [23:31:16]line РНМ: 0000000000189667 [23:31:16]line Версия ККМ: v1.0 [23:31:16]line ФМ: 0000000002094248 [23:31:16]line ФД: 2145 [23:31:16]line ФПД: 226943085554142 [23:31:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T233122&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2145&fm=226943085554142&tin=02508201610067®Number=0000000000189667&sum=3500 [23:31:16]line 0 [23:31:16]OFD Sender: Processing packet 2145 [packets to send 1, broken 0] [23:31:16]ProducePacketName [23:31:16]name=ofd_packets/00002145 [23:31:16]OFD Sender: To server: pG, [23:31:16]CommunicateWithHost lk.salyk.kg:30040 [23:31:16]ConnectInit lk.salyk.kg [23:31:16]written 0, free lines is 4095 [23:31:16]Connected sock=10 [23:31:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 27 01 00 00 6F BC 1F 01 C5 DC 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 CA D4 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 61 08 00 00 35 04 06 00 CE 67 4D FF A9 DE F6 27 CF AC 5B 4F 67 F8 [23:31:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 AD E7 47 00 0E 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 32 30 39 34 32 34 38 10 04 04 00 61 08 00 00 F4 03 04 00 38 80 A6 66 B6 04 01 00 00 45 75 41 47 0C E2 76 CE [23:31:17]CommunicateWithHost err = 0 [23:31:17]CheckOFDResponse [23:31:17]1017 (14) - 77093643461234 [23:31:17]1041 (16) - 0000000002094248 [23:31:17]1040 (4) - 2145 [23:31:17]1012 (4) - 28.07.2024 17:30 [23:31:17]1206 (1) - 0 [23:31:17]OFD Sender: Remove packet 2145 [23:31:17]ProducePacketName [23:31:17]name=ofd_packets/00002145 [23:31:17]NVStorageDeleteData [23:31:17]Write to MH i2c: 01 00 00 F3 67 5A [23:31:17]Write i2c OK [23:31:17]MH_I2C_Read... [23:31:17]Read from MH i2c: 01 [23:31:17]MH_I2C_Read... [23:31:17]Read from MH i2c: 01 07 00 [23:31:17]MH_I2C_Read... [23:31:17]Read from MH i2c: 01 07 00 F3 67 00 00 00 00 00 17 0D 85 [23:31:17]RasterBufferAndPrint [23:31:17]line [23:31:17]line [23:31:17]line [23:31:17]line [23:31:17]line [23:31:17]written 0, free lines is 3360 [23:31:17]MH_Cut [23:31:17]Write to MH i2c: D1 01 00 FA 67 01 33 [23:31:17]Write i2c OK [23:31:17]MH_I2C_Read... [23:31:17]Read from MH i2c: D1 [23:31:17]MH_I2C_Read... [23:31:17]Read from MH i2c: D1 01 00 [23:31:17]MH_I2C_Read... [23:31:17]Read from MH i2c: D1 01 00 FA 67 00 32 [23:31:17]Write to MH i2c: 01 00 00 FB 67 62 [23:31:17]Write i2c OK [23:31:17]MH_I2C_Read... [23:31:17]OFD Sender: No OFD packet to send [23:31:17]*** Cut start [23:31:17]*** Partial cut [23:31:17]*** CUTSNS_PIN = 1 [23:31:17]*** CUTSNS_PIN = 0 [23:31:18]*** Brake cut motor [23:31:18]Read from MH i2c: 01 [23:31:18]MH_I2C_Read... [23:31:18]*** Stop cut motor [23:31:18]*** Cut end [23:31:18]Read from MH i2c: 01 07 00 [23:31:18]MH_I2C_Read... [23:31:18]Read from MH i2c: 01 07 00 FB 67 00 00 00 00 00 FF 0F 77 [23:31:18]process_action close_receipt done [23:31:18]requested_data is exist [23:31:18]produce_requested_data [23:31:18]requested_item fm.sn is exist - process it [23:31:18]wFMCommunicate request_size=4 [23:31:18]MH_SAM_APDU [23:31:18]CAPDU: 80 11 00 00 [23:31:18]Write to MH i2c: E2 08 00 FC 67 80 11 00 00 00 00 00 00 DD [23:31:18]Write i2c OK [23:31:18]MH_I2C_Read... [23:31:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:31:18]Read from MH i2c: E2 [23:31:18]MH_I2C_Read... [23:31:18]Read from MH i2c: E2 17 00 [23:31:18]MH_I2C_Read... [23:31:18]Read from MH i2c: E2 17 00 FC 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 2D [23:31:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [23:31:18]wFMCommunicate OK [23:31:18]requested_item fd.num is exist - process it [23:31:18]SAM_PROTO_GetFieldsCounters [23:31:18]wFMCommunicate request_size=4 [23:31:18]MH_SAM_APDU [23:31:18]CAPDU: 80 13 00 00 [23:31:18]Write to MH i2c: E2 08 00 FD 67 80 13 00 00 00 00 00 00 E0 [23:31:18]Write i2c OK [23:31:18]MH_I2C_Read... [23:31:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:31:18]Read from MH i2c: E2 [23:31:18]MH_I2C_Read... [23:31:18]Read from MH i2c: E2 62 00 [23:31:18]MH_I2C_Read... [23:31:18]Read from MH i2c: E2 62 00 FD 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 61 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 CC [23:31:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 61 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:31:18]wFMCommunicate OK [23:31:18]SAM_PROTO_GetFieldsCounters done [23:31:18]requested_item shift.num is exist - process it [23:31:18]requested_item shift.opened is exist - process it [23:31:18]req_shift_opened [23:31:18]FM_GetShiftState [23:31:18]SAM_PROTO_GetShiftState [23:31:18]wFMCommunicate request_size=4 [23:31:18]MH_SAM_APDU [23:31:18]CAPDU: 80 13 01 00 [23:31:18]Write to MH i2c: E2 08 00 FE 67 80 13 01 00 00 00 00 00 E2 [23:31:18]Write i2c OK [23:31:18]MH_I2C_Read... [23:31:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:31:18]Read from MH i2c: E2 [23:31:18]MH_I2C_Read... [23:31:18]Read from MH i2c: E2 0E 00 [23:31:18]MH_I2C_Read... [23:31:18]Read from MH i2c: E2 0E 00 FE 67 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 D6 [23:31:18]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [23:31:18]wFMCommunicate OK [23:31:18]SAM_PROTO_GetShiftState done [23:31:18]FM_GetShiftState done [23:31:18]req_shift_opened done [23:31:18]requested_item shift.open_date is exist - process it [23:31:18]req_shift_open_date [23:31:18]req_shift_open_date done [23:31:18]produce_requested_data done [23:31:18]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2145,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [23:31:18]process_action_free close_receipt [23:31:18]json_value_free [23:31:18]json_value_free done [23:31:18]process_json_proto returns [23:31:18]Send response to host [23:31:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2145,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [23:31:18]free response buf [23:31:18]execute_script done [23:31:18]execute_script returns [23:31:18]free content buf [23:31:18]Sock 9.Close socket [23:31:18]Sock 9.Thread stoped [23:31:22]OFD Sender: No OFD packet to send [23:31:27]OFD Sender: No OFD packet to send [23:31:32]OFD Sender: No OFD packet to send [23:31:37]OFD Sender: No OFD packet to send [23:31:42]OFD Sender: No OFD packet to send [23:31:47]OFD Sender: No OFD packet to send [23:31:52]OFD Sender: No OFD packet to send [23:31:57]OFD Sender: No OFD packet to send [23:32:02]OFD Sender: No OFD packet to send [23:32:05]accept exits with 8 [23:32:05]New connection [23:32:05]New thread 3067317604 created [23:32:05]Thread 3067460964 joined [23:32:05]Waiting for new connection... [23:32:05] Sock 8.Parse request [23:32:05]Sock 8.Check first char [23:32:05]Sock 8.First char is OK [23:32:05]request: POST /json_proto HTTP/1.0 [23:32:05]Method: POST [23:32:05]URL: /json_proto [23:32:05]Method is POST - this is cgi request [23:32:05]url: /json_proto [23:32:05]query_string will be loaded in cgi processing [23:32:05]execute_cgi json_proto POST (null) [23:32:05]execute_cgi path=json_proto method=POST [23:32:05]POST find Content-Length [23:32:05]Host: 172.17.45.132:8080 [23:32:05]Content-Length: 959 [23:32:05]Content-Type: application/json [23:32:05] [23:32:05]POST finish read [23:32:05]Found Content-Length = 959 [23:32:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126442", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160099", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u0438\u043D\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043B\u044C\u043D\u044B\u0439", "price" : 15.00, "quantity" : 1.000, "sum" : 15.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 145.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:32:05]execute_script... [23:32:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126442", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160099", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u0438\u043D\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043B\u044C\u043D\u044B\u0439", "price" : 15.00, "quantity" : 1.000, "sum" : 15.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 145.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:32:05]POST & json_proto [23:32:05]process_json_proto [23:32:05]json parsed OK: [23:32:05]protocol is kg_v1.0 [23:32:05]action value=close_receipt [23:32:05]process_action close_receipt [23:32:05]cmd_close_receipt [23:32:05]MH_GetDate [23:32:05]Write to MH i2c: F0 00 00 FF 67 55 [23:32:05]Write i2c OK [23:32:05]MH_I2C_Read... [23:32:05]Read from MH i2c: F0 [23:32:05]MH_I2C_Read... [23:32:05]Read from MH i2c: F0 09 00 [23:32:05]MH_I2C_Read... [23:32:05]Read from MH i2c: F0 09 00 FF 67 00 FD D4 A6 66 E3 0B 90 66 1F [23:32:05]GetLastDocTimeStamp 1722209482 [23:32:05]current date 1722209533 [23:32:05]FM_GetShiftState [23:32:05]SAM_PROTO_GetShiftState [23:32:05]wFMCommunicate request_size=4 [23:32:05]MH_SAM_APDU [23:32:05]CAPDU: 80 13 01 00 [23:32:05]Write to MH i2c: E2 08 00 00 68 80 13 01 00 00 00 00 00 E5 [23:32:05]Write i2c OK [23:32:05]MH_I2C_Read... [23:32:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:32:05]Read from MH i2c: E2 [23:32:05]MH_I2C_Read... [23:32:05]Read from MH i2c: E2 0E 00 [23:32:05]MH_I2C_Read... [23:32:05]Read from MH i2c: E2 0E 00 00 68 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 D9 [23:32:05]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [23:32:05]wFMCommunicate OK [23:32:05]SAM_PROTO_GetShiftState done [23:32:05]FM_GetShiftState done [23:32:05]opened in 1722125648 [23:32:05]opened+sec_in_day 1722212048 [23:32:05]quantity*price = 13000 [23:32:05]sum+1 = 13001 [23:32:05]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160099 Снек Курут индивидуальный 1.000 * 15.00 = 15.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 145.00 НСП 1% : 1.28 НДС 12% : 15.39 Наличными: 145.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 197 28.07.2024 23:32 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2146 ФПД: 97499914018400 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T233213&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2146&fm=97499914018400&tin=02508201610067®Number=0000000000189667&sum=14500 0 [23:32:06]StoreToDocumentArchive [23:32:06]shift 13 fd 2146 [23:32:06]save to /storage/0013/doc_00002146 [23:32:06]save last doc name /storage/0013/doc_00002146 to /storage/kkm_last_doc_name [23:32:06]save OK [23:32:06]Clear old archive folders... [23:32:06]ProcessDocumentItem done err = 0, tmpTLVsize=392 [23:32:06]tlvbuf is 0207C2E0 [23:32:06]SAM_PROTO_ClearQueue [23:32:06]wFMCommunicate request_size=4 [23:32:06]MH_SAM_APDU [23:32:06]CAPDU: 80 09 00 00 [23:32:06]Write to MH i2c: E2 08 00 0D 68 80 09 00 00 00 00 00 00 E7 [23:32:06]Write i2c OK [23:32:06]MH_I2C_Read... [23:32:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:32:06]Read from MH i2c: E2 [23:32:06]MH_I2C_Read... [23:32:06]Read from MH i2c: E2 03 00 [23:32:06]MH_I2C_Read... [23:32:06]Read from MH i2c: E2 03 00 0D 68 00 90 00 E9 [23:32:06]RAPDU: 90 00 [23:32:06]wFMCommunicate OK [23:32:06]SAM_PROTO_ClearQueue done [23:32:06]KKMCreateOFDPacket [23:32:06]OFDProtocolAddRootSTLVToBuf [23:32:06]FM_MakeSignedData [23:32:06]FM_MakeSignedData [23:32:06]SAM_PROTO_SignData [23:32:06]wFMCommunicate request_size=4 [23:32:06]MH_SAM_APDU [23:32:06]CAPDU: 80 0D 01 02 [23:32:06]Write to MH i2c: E2 08 00 0E 68 80 0D 01 02 00 00 00 00 EF [23:32:06]Write i2c OK [23:32:06]MH_I2C_Read... [23:32:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:32:06]Read from MH i2c: E2 [23:32:06]MH_I2C_Read... [23:32:06]Read from MH i2c: E2 03 00 [23:32:06]MH_I2C_Read... [23:32:06]Read from MH i2c: E2 03 00 0E 68 00 90 00 EA [23:32:06]RAPDU: 90 00 [23:32:06]wFMCommunicate OK [23:32:06]wFMCommunicate request_size=255 [23:32:06]MH_SAM_APDU [23:32:06]CAPDU: 80 0D 02 02 FA 03 00 88 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD 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 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 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 39 39 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 DC 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 [23:32:06]Write to MH i2c: E2 02 01 0F 68 80 0D 02 02 FA 00 03 00 88 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD 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 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 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 39 39 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 DC 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 00 00 86 [23:32:06]Write i2c OK [23:32:06]MH_I2C_Read... [23:32:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:32:06]Read from MH i2c: E2 [23:32:06]MH_I2C_Read... [23:32:06]Read from MH i2c: E2 03 00 [23:32:06]MH_I2C_Read... [23:32:06]Read from MH i2c: E2 03 00 0F 68 00 90 00 EB [23:32:06]RAPDU: 90 00 [23:32:06]wFMCommunicate OK [23:32:06]wFMCommunicate request_size=151 [23:32:06]MH_SAM_APDU [23:32:06]CAPDU: 80 0D 02 02 92 03 01 00 01 F7 03 06 00 80 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 06 00 00 00 00 07 04 06 00 A4 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 FD D4 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 62 08 00 00 35 04 06 00 58 AC F7 BD 9E 60 [23:32:06]Write to MH i2c: E2 9A 00 10 68 80 0D 02 02 92 00 03 01 00 01 F7 03 06 00 80 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 06 00 00 00 00 07 04 06 00 A4 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 FD D4 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 62 08 00 00 35 04 06 00 58 AC F7 BD 9E 60 00 00 85 [23:32:06]Write i2c OK [23:32:06]MH_I2C_Read... [23:32:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:32:06]Read from MH i2c: E2 [23:32:06]MH_I2C_Read... [23:32:06]Read from MH i2c: E2 03 00 [23:32:06]MH_I2C_Read... [23:32:06]Read from MH i2c: E2 03 00 10 68 00 90 00 EC [23:32:06]RAPDU: 90 00 [23:32:06]wFMCommunicate OK [23:32:06]wFMCommunicate request_size=4 [23:32:06]MH_SAM_APDU [23:32:06]CAPDU: 80 0D 03 02 [23:32:06]Write to MH i2c: E2 08 00 11 68 80 0D 03 02 00 00 00 00 F4 [23:32:06]Write i2c OK [23:32:06]MH_I2C_Read... [23:32:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:32:06]Read from MH i2c: E2 [23:32:06]MH_I2C_Read... [23:32:06]Read from MH i2c: E2 0B 00 [23:32:06]MH_I2C_Read... [23:32:06]Read from MH i2c: E2 0B 00 11 68 00 E9 9B E6 40 A3 4F D6 36 90 00 9D [23:32:06]RAPDU: E9 9B E6 40 A3 4F D6 36 90 00 [23:32:06]wFMCommunicate OK [23:32:06]SAM_PROTO_SignData done [23:32:06]FM_MakeSignedData done [23:32:06]CreateOFDProtocolMessage [23:32:06]wFMCommunicate request_size=4 [23:32:06]MH_SAM_APDU [23:32:06]CAPDU: 80 11 00 00 [23:32:06]Write to MH i2c: E2 08 00 12 68 80 11 00 00 00 00 00 00 F4 [23:32:06]Write i2c OK [23:32:06]MH_I2C_Read... [23:32:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:32:06]Read from MH i2c: E2 [23:32:06]MH_I2C_Read... [23:32:06]Read from MH i2c: E2 17 00 [23:32:06]MH_I2C_Read... [23:32:06]Read from MH i2c: E2 17 00 12 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 44 [23:32:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [23:32:06]wFMCommunicate OK [23:32:06]CreateOFDProtocolMessage done [23:32:06]OFDSenderStorePacket 2146 [23:32:06]StoreOFDPacket docnum=2146 [23:32:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 9C 01 00 00 F7 D1 94 01 F0 EF 5A 03 01 00 03 00 88 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD 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 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 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 39 39 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 DC 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 06 00 00 00 00 07 04 06 00 A4 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 FD D4 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 62 08 00 00 35 04 06 00 58 AC F7 BD 9E 60 E9 9B E6 40 A3 4F D6 36 [23:32:06]CheckFolder [23:32:06]dirname=/storage/ofd_packets [23:32:06]CheckFolder done [23:32:06]ProducePacketName [23:32:06]name=ofd_packets/00002146 [23:32:06]NVStorageSaveData ofd_packets/00002146 [23:32:06]File name is /storage/ofd_packets/00002146 [23:32:06]Write 442 bytes [23:32:06]NVStorageSaveData done [23:32:06]OFDSenderStorePacket done [23:32:06]KKMCreateOFDPacket done [23:32:06]NVStorageSaveData kkm_last_timestamp [23:32:06]File name is /storage/kkm_last_timestamp [23:32:06]Write 4 bytes [23:32:07]NVStorageSaveData done [23:32:07]ExternCall_PrintAddStr [23:32:07]wPrintStart [23:32:07]Write to MH i2c: 01 00 00 13 68 7B [23:32:07]OFD Sender: Processing packet 2146 [packets to send 1, broken 0] [23:32:07]ProducePacketName [23:32:07]name=ofd_packets/00002146 [23:32:07]OFD Sender: To server: pG, [23:32:07]CommunicateWithHost lk.salyk.kg:30040 [23:32:07]ConnectInit lk.salyk.kg [23:32:07]Write i2c OK [23:32:07]MH_I2C_Read... [23:32:07]Read from MH i2c: 01 [23:32:07]MH_I2C_Read... [23:32:07]Read from MH i2c: 01 07 00 [23:32:07]MH_I2C_Read... [23:32:07]Read from MH i2c: 01 07 00 13 68 00 00 00 00 00 FF 0F 90 [23:32:07]RasterBufferAndPrint [23:32:07]line Счет N : (3)126442 [23:32:07]line ИНН: 02508201610067 [23:32:07]line Контрольно-Кассовый Чек [23:32:07]line ПРОДАЖА [23:32:07]line Товар: 47011656 [23:32:07]line Водка Пшеничная 0,1л [23:32:07]line 2.000 * 65.00 [23:32:07]line = 130.00 [23:32:07]line НДС 12% НСП 1% [23:32:07]line > о реализуемом товаре [23:32:07]line Товар: 4700000160099 [23:32:07]line Снек Курут индивидуальный [23:32:07]line 1.000 * 15.00 [23:32:07]line = 15.00 [23:32:07]line НДС 12% НСП 1% [23:32:07]line > о реализуемом товаре [23:32:07]line ИТОГО: 145.00 [23:32:07]line НСП 1% : 1.28 [23:32:07]line НДС 12% : 15.39 [23:32:07]line Наличными: 145.00 [23:32:07]line Безнал.: 0.00 [23:32:07]line Место: АЗС № 127 "Партнер Нефть" [23:32:07]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [23:32:07]line СНО: Общий режим [23:32:07]line Чек 197 28.07.2024 23:32 [23:32:07]line Смена: 13 ФФД: 1.0 [23:32:07]line ЗНМ: 0300000161 [23:32:07]line РНМ: 0000000000189667 [23:32:07]line Версия ККМ: v1.0 [23:32:07]line ФМ: 0000000002094248 [23:32:07]line ФД: 2146 [23:32:07]line ФПД: 97499914018400 [23:32:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T233213&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2146&fm=97499914018400&tin=02508201610067®Number=0000000000189667&sum=14500 [23:32:07]line 0 [23:32:07]written 0, free lines is 4095 [23:32:07]Connected sock=10 [23:32:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 9C 01 00 00 F7 D1 94 01 F0 EF 5A 03 01 00 03 00 88 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD 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 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 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 39 39 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 DC 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 06 00 00 00 00 07 04 06 00 A4 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 FD D4 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 62 08 00 00 35 04 06 00 58 AC F7 BD 9E 60 E9 9B E6 40 A3 4F D6 36 [23:32:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 83 9C 47 00 EB 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 62 08 00 00 F4 03 04 00 6B 80 A6 66 B6 04 01 00 00 37 1C 2F B2 FA CC 20 D9 [23:32:07]CommunicateWithHost err = 0 [23:32:07]CheckOFDResponse [23:32:07]1017 (14) - 77093643461234 [23:32:07]1041 (16) - 0000000002094248 [23:32:07]1040 (4) - 2146 [23:32:07]1012 (4) - 28.07.2024 17:31 [23:32:07]1206 (1) - 0 [23:32:07]OFD Sender: Remove packet 2146 [23:32:07]ProducePacketName [23:32:07]name=ofd_packets/00002146 [23:32:07]NVStorageDeleteData [23:32:07]Write to MH i2c: 01 00 00 41 68 A9 [23:32:07]Write i2c OK [23:32:07]MH_I2C_Read... [23:32:07]Read from MH i2c: 01 [23:32:07]MH_I2C_Read... [23:32:07]Read from MH i2c: 01 07 00 [23:32:07]MH_I2C_Read... [23:32:07]Read from MH i2c: 01 07 00 41 68 00 00 00 00 00 CB 0C 87 [23:32:07]RasterBufferAndPrint [23:32:07]line [23:32:07]line [23:32:07]line [23:32:07]line [23:32:07]line [23:32:07]written 0, free lines is 3284 [23:32:07]MH_Cut [23:32:07]Write to MH i2c: D1 01 00 48 68 01 82 [23:32:07]Write i2c OK [23:32:07]MH_I2C_Read... [23:32:07]Read from MH i2c: D1 [23:32:07]MH_I2C_Read... [23:32:07]Read from MH i2c: D1 01 00 [23:32:07]MH_I2C_Read... [23:32:07]Read from MH i2c: D1 01 00 48 68 00 81 [23:32:07]Write to MH i2c: 01 00 00 49 68 B1 [23:32:07]Write i2c OK [23:32:07]MH_I2C_Read... [23:32:08]OFD Sender: No OFD packet to send [23:32:08]*** Cut start [23:32:08]*** Partial cut [23:32:08]*** CUTSNS_PIN = 1 [23:32:08]*** CUTSNS_PIN = 0 [23:32:08]*** Brake cut motor [23:32:09]Read from MH i2c: 01 [23:32:09]MH_I2C_Read... [23:32:09]*** Stop cut motor [23:32:09]*** Cut end [23:32:09]Read from MH i2c: 01 07 00 [23:32:09]MH_I2C_Read... [23:32:09]Read from MH i2c: 01 07 00 49 68 00 00 00 00 00 FF 0F C6 [23:32:09]process_action close_receipt done [23:32:09]requested_data is exist [23:32:09]produce_requested_data [23:32:09]requested_item fm.sn is exist - process it [23:32:09]wFMCommunicate request_size=4 [23:32:09]MH_SAM_APDU [23:32:09]CAPDU: 80 11 00 00 [23:32:09]Write to MH i2c: E2 08 00 4A 68 80 11 00 00 00 00 00 00 2C [23:32:09]Write i2c OK [23:32:09]MH_I2C_Read... [23:32:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:32:09]Read from MH i2c: E2 [23:32:09]MH_I2C_Read... [23:32:09]Read from MH i2c: E2 17 00 [23:32:09]MH_I2C_Read... [23:32:09]Read from MH i2c: E2 17 00 4A 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 7C [23:32:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [23:32:09]wFMCommunicate OK [23:32:09]requested_item fd.num is exist - process it [23:32:09]SAM_PROTO_GetFieldsCounters [23:32:09]wFMCommunicate request_size=4 [23:32:09]MH_SAM_APDU [23:32:09]CAPDU: 80 13 00 00 [23:32:09]Write to MH i2c: E2 08 00 4B 68 80 13 00 00 00 00 00 00 2F [23:32:09]Write i2c OK [23:32:09]MH_I2C_Read... [23:32:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:32:09]Read from MH i2c: E2 [23:32:09]MH_I2C_Read... [23:32:09]Read from MH i2c: E2 62 00 [23:32:09]MH_I2C_Read... [23:32:09]Read from MH i2c: E2 62 00 4B 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 62 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 1F [23:32:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 62 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:32:09]wFMCommunicate OK [23:32:09]SAM_PROTO_GetFieldsCounters done [23:32:09]requested_item shift.num is exist - process it [23:32:09]requested_item shift.opened is exist - process it [23:32:09]req_shift_opened [23:32:09]FM_GetShiftState [23:32:09]SAM_PROTO_GetShiftState [23:32:09]wFMCommunicate request_size=4 [23:32:09]MH_SAM_APDU [23:32:09]CAPDU: 80 13 01 00 [23:32:09]Write to MH i2c: E2 08 00 4C 68 80 13 01 00 00 00 00 00 31 [23:32:09]Write i2c OK [23:32:09]MH_I2C_Read... [23:32:09]Read from MH i2c: E2 [23:32:09]MH_I2C_Read... [23:32:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:32:09]Read from MH i2c: E2 0E 00 [23:32:09]MH_I2C_Read... [23:32:09]Read from MH i2c: E2 0E 00 4C 68 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 25 [23:32:09]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [23:32:09]wFMCommunicate OK [23:32:09]SAM_PROTO_GetShiftState done [23:32:09]FM_GetShiftState done [23:32:09]req_shift_opened done [23:32:09]requested_item shift.open_date is exist - process it [23:32:09]req_shift_open_date [23:32:09]req_shift_open_date done [23:32:09]produce_requested_data done [23:32:09]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2146,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [23:32:09]process_action_free close_receipt [23:32:09]json_value_free [23:32:09]json_value_free done [23:32:09]process_json_proto returns [23:32:09]Send response to host [23:32:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2146,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [23:32:09]free response buf [23:32:09]execute_script done [23:32:09]execute_script returns [23:32:09]free content buf [23:32:09]Sock 8.Close socket [23:32:09]Sock 8.Thread stoped [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:43]OFD Sender: No OFD packet to send [23:34:48]OFD Sender: No OFD packet to send [23:34:53]OFD Sender: No OFD packet to send [23:34:58]OFD Sender: No OFD packet to send [23:35:03]OFD Sender: No OFD packet to send [23:35:08]OFD Sender: No OFD packet to send [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:51]accept exits with 9 [23:38:51]New connection [23:38:51]New thread 3067460964 created [23:38:51]Thread 3067317604 joined [23:38:51]Waiting for new connection... [23:38:51] Sock 9.Parse request [23:38:51]Sock 9.Check first char [23:38:51]Sock 9.First char is OK [23:38:51]request: POST /json_proto HTTP/1.0 [23:38:51]Method: POST [23:38:51]URL: /json_proto [23:38:51]Method is POST - this is cgi request [23:38:51]url: /json_proto [23:38:51]query_string will be loaded in cgi processing [23:38:51]execute_cgi json_proto POST (null) [23:38:51]execute_cgi path=json_proto method=POST [23:38:51]POST find Content-Length [23:38:51]Host: 172.17.45.132:8080 [23:38:51]Content-Length: 826 [23:38:51]Content-Type: application/json [23:38:51] [23:38:51]POST finish read [23:38:51]Found Content-Length = 826 [23:38:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126443", "tax_sys" : 0, "items" : [ { "code": "4860019001339", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,33\u043B \u0441\u0442", "price" : 103.00, "quantity" : 1.000, "sum" : 103.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 103.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:38:51]execute_script... [23:38:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126443", "tax_sys" : 0, "items" : [ { "code": "4860019001339", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,33\u043B \u0441\u0442", "price" : 103.00, "quantity" : 1.000, "sum" : 103.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 103.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:38:51]POST & json_proto [23:38:51]process_json_proto [23:38:51]json parsed OK: [23:38:51]protocol is kg_v1.0 [23:38:51]action value=close_receipt [23:38:51]process_action close_receipt [23:38:51]cmd_close_receipt [23:38:51]MH_GetDate [23:38:51]Write to MH i2c: F0 00 00 4D 68 A4 [23:38:51]Write i2c OK [23:38:51]MH_I2C_Read... [23:38:51]Read from MH i2c: F0 [23:38:51]MH_I2C_Read... [23:38:51]Read from MH i2c: F0 09 00 [23:38:51]MH_I2C_Read... [23:38:51]Read from MH i2c: F0 09 00 4D 68 00 93 D6 A6 66 E3 0B 90 66 06 [23:38:51]GetLastDocTimeStamp 1722209533 [23:38:51]current date 1722209939 [23:38:51]FM_GetShiftState [23:38:51]SAM_PROTO_GetShiftState [23:38:51]wFMCommunicate request_size=4 [23:38:51]MH_SAM_APDU [23:38:51]CAPDU: 80 13 01 00 [23:38:51]Write to MH i2c: E2 08 00 4E 68 80 13 01 00 00 00 00 00 33 [23:38:51]Write i2c OK [23:38:51]MH_I2C_Read... [23:38:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:38:51]Read from MH i2c: E2 [23:38:51]MH_I2C_Read... [23:38:51]Read from MH i2c: E2 0E 00 [23:38:51]MH_I2C_Read... [23:38:51]Read from MH i2c: E2 0E 00 4E 68 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 27 [23:38:51]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [23:38:51]wFMCommunicate OK [23:38:51]SAM_PROTO_GetShiftState done [23:38:51]FM_GetShiftState done [23:38:51]opened in 1722125648 [23:38:51]opened+sec_in_day 1722212048 [23:38:51]quantity*price = 10300 [23:38:51]sum+1 = 10301 [23:38:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 103.00 НСП 1% : 0.91 НДС 12% : 10.94 Наличными: 0.00 Безнал.: 103.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 198 28.07.2024 23:38 Смена: 13 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: Бакай Банк ФМ: 0000000002094248 ФД: 2147 ФПД: 76473268990739 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T233859&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2147&fm=76473268990739&tin=02508201610067®Number=0000000000189667&sum=10300 0 [23:38:52]StoreToDocumentArchive [23:38:52]shift 13 fd 2147 [23:38:52]save to /storage/0013/doc_00002147 [23:38:52]save last doc name /storage/0013/doc_00002147 to /storage/kkm_last_doc_name [23:38:52]save OK [23:38:52]Clear old archive folders... [23:38:52]ProcessDocumentItem done err = 0, tmpTLVsize=277 [23:38:52]tlvbuf is 021A4A30 [23:38:52]SAM_PROTO_ClearQueue [23:38:52]wFMCommunicate request_size=4 [23:38:52]MH_SAM_APDU [23:38:52]CAPDU: 80 09 00 00 [23:38:52]Write to MH i2c: E2 08 00 5B 68 80 09 00 00 00 00 00 00 35 [23:38:52]Write i2c OK [23:38:52]MH_I2C_Read... [23:38:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:38:52]Read from MH i2c: E2 [23:38:52]MH_I2C_Read... [23:38:52]Read from MH i2c: E2 03 00 [23:38:52]MH_I2C_Read... [23:38:52]Read from MH i2c: E2 03 00 5B 68 00 90 00 37 [23:38:52]RAPDU: 90 00 [23:38:52]wFMCommunicate OK [23:38:52]SAM_PROTO_ClearQueue done [23:38:52]KKMCreateOFDPacket [23:38:52]OFDProtocolAddRootSTLVToBuf [23:38:52]FM_MakeSignedData [23:38:52]FM_MakeSignedData [23:38:52]SAM_PROTO_SignData [23:38:52]wFMCommunicate request_size=4 [23:38:52]MH_SAM_APDU [23:38:52]CAPDU: 80 0D 01 02 [23:38:52]Write to MH i2c: E2 08 00 5C 68 80 0D 01 02 00 00 00 00 3D [23:38:52]Write i2c OK [23:38:52]MH_I2C_Read... [23:38:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:38:52]Read from MH i2c: E2 [23:38:52]MH_I2C_Read... [23:38:52]Read from MH i2c: E2 03 00 [23:38:52]MH_I2C_Read... [23:38:52]Read from MH i2c: E2 03 00 5C 68 00 90 00 38 [23:38:52]RAPDU: 90 00 [23:38:52]wFMCommunicate OK [23:38:52]wFMCommunicate request_size=255 [23:38:52]MH_SAM_APDU [23:38:52]CAPDU: 80 0D 02 02 FA 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 33 39 06 04 23 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 33 33 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 3C 28 00 00 00 00 13 04 06 00 3C 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3C 28 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 93 D6 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 [23:38:52]Write to MH i2c: E2 02 01 5D 68 80 0D 02 02 FA 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 33 39 06 04 23 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 33 33 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 3C 28 00 00 00 00 13 04 06 00 3C 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3C 28 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 93 D6 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 00 00 FF [23:38:52]Write i2c OK [23:38:52]MH_I2C_Read... [23:38:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:38:53]Read from MH i2c: E2 [23:38:53]MH_I2C_Read... [23:38:53]Read from MH i2c: E2 03 00 [23:38:53]MH_I2C_Read... [23:38:53]Read from MH i2c: E2 03 00 5D 68 00 90 00 39 [23:38:53]RAPDU: 90 00 [23:38:53]wFMCommunicate OK [23:38:53]wFMCommunicate request_size=36 [23:38:53]MH_SAM_APDU [23:38:53]CAPDU: 80 0D 02 02 1F 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 63 08 00 00 35 04 06 00 45 8D 52 08 73 13 [23:38:53]Write to MH i2c: E2 27 00 5E 68 80 0D 02 02 1F 00 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 63 08 00 00 35 04 06 00 45 8D 52 08 73 13 00 00 7F [23:38:53]Write i2c OK [23:38:53]MH_I2C_Read... [23:38:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:38:53]Read from MH i2c: E2 [23:38:53]MH_I2C_Read... [23:38:53]Read from MH i2c: E2 03 00 [23:38:53]MH_I2C_Read... [23:38:53]Read from MH i2c: E2 03 00 5E 68 00 90 00 3A [23:38:53]RAPDU: 90 00 [23:38:53]wFMCommunicate OK [23:38:53]wFMCommunicate request_size=4 [23:38:53]MH_SAM_APDU [23:38:53]CAPDU: 80 0D 03 02 [23:38:53]Write to MH i2c: E2 08 00 5F 68 80 0D 03 02 00 00 00 00 42 [23:38:53]Write i2c OK [23:38:53]MH_I2C_Read... [23:38:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:38:53]Read from MH i2c: E2 [23:38:53]MH_I2C_Read... [23:38:53]Read from MH i2c: E2 0B 00 [23:38:53]MH_I2C_Read... [23:38:53]Read from MH i2c: E2 0B 00 5F 68 00 09 16 FA E9 4B C0 05 2A 90 00 7F [23:38:53]RAPDU: 09 16 FA E9 4B C0 05 2A 90 00 [23:38:53]wFMCommunicate OK [23:38:53]SAM_PROTO_SignData done [23:38:53]FM_MakeSignedData done [23:38:53]CreateOFDProtocolMessage [23:38:53]wFMCommunicate request_size=4 [23:38:53]MH_SAM_APDU [23:38:53]CAPDU: 80 11 00 00 [23:38:53]Write to MH i2c: E2 08 00 60 68 80 11 00 00 00 00 00 00 42 [23:38:53]Write i2c OK [23:38:53]MH_I2C_Read... [23:38:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:38:53]Read from MH i2c: E2 [23:38:53]MH_I2C_Read... [23:38:53]Read from MH i2c: E2 17 00 [23:38:53]MH_I2C_Read... [23:38:53]Read from MH i2c: E2 17 00 60 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 92 [23:38:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [23:38:53]wFMCommunicate OK [23:38:53]CreateOFDProtocolMessage done [23:38:53]OFDSenderStorePacket 2147 [23:38:53]StoreOFDPacket docnum=2147 [23:38:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 29 01 00 00 BB 18 21 01 AD 33 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 33 39 06 04 23 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 33 33 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 3C 28 00 00 00 00 13 04 06 00 3C 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3C 28 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 93 D6 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 63 08 00 00 35 04 06 00 45 8D 52 08 73 13 09 16 FA E9 4B C0 05 2A [23:38:53]CheckFolder [23:38:53]dirname=/storage/ofd_packets [23:38:53]CheckFolder done [23:38:53]ProducePacketName [23:38:53]name=ofd_packets/00002147 [23:38:53]NVStorageSaveData ofd_packets/00002147 [23:38:53]File name is /storage/ofd_packets/00002147 [23:38:53]Write 327 bytes [23:38:53]NVStorageSaveData done [23:38:53]OFDSenderStorePacket done [23:38:53]KKMCreateOFDPacket done [23:38:53]NVStorageSaveData kkm_last_timestamp [23:38:53]File name is /storage/kkm_last_timestamp [23:38:53]Write 4 bytes [23:38:53]NVStorageSaveData done [23:38:53]ExternCall_PrintAddStr [23:38:53]wPrintStart [23:38:53]Write to MH i2c: 01 00 00 61 68 C9 [23:38:53]Write i2c OK [23:38:53]MH_I2C_Read... [23:38:53]Read from MH i2c: 01 [23:38:53]MH_I2C_Read... [23:38:53]Read from MH i2c: 01 07 00 [23:38:53]MH_I2C_Read... [23:38:53]Read from MH i2c: 01 07 00 61 68 00 00 00 00 00 FF 0F DE [23:38:53]RasterBufferAndPrint [23:38:53]line Счет N : (3)126443 [23:38:53]line ИНН: 02508201610067 [23:38:53]line Контрольно-Кассовый Чек [23:38:53]line ПРОДАЖА [23:38:53]line Товар: 4860019001339 [23:38:53]line Вода Боржоми 0,33л ст [23:38:53]line 1.000 * 103.00 [23:38:53]line = 103.00 [23:38:53]line НДС 12% НСП 1% [23:38:53]line > о реализуемом товаре [23:38:53]line ИТОГО: 103.00 [23:38:53]line НСП 1% : 0.91 [23:38:53]line НДС 12% : 10.94 [23:38:53]line Наличными: 0.00 [23:38:53]line Безнал.: 103.00 [23:38:53]line Место: АЗС № 127 "Партнер Нефть" [23:38:53]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [23:38:53]line СНО: Общий режим [23:38:53]line Чек 198 28.07.2024 23:38 [23:38:53]line Смена: 13 ФФД: 1.0 [23:38:53]line ЗНМ: 0300000161 [23:38:53]line РНМ: 0000000000189667 [23:38:53]line Версия ККМ: v1.0 [23:38:53]line Платежная система: Бакай Банк [23:38:53]line ФМ: 0000000002094248 [23:38:53]line ФД: 2147 [23:38:53]line ФПД: 76473268990739 [23:38:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T233859&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2147&fm=76473268990739&tin=02508201610067®Number=0000000000189667&sum=10300 [23:38:53]line 0 [23:38:53]OFD Sender: Processing packet 2147 [packets to send 1, broken 0] [23:38:53]ProducePacketName [23:38:53]name=ofd_packets/00002147 [23:38:53]OFD Sender: To server: pG, [23:38:53]CommunicateWithHost lk.salyk.kg:30040 [23:38:53]ConnectInit lk.salyk.kg [23:38:53]written 0, free lines is 4095 [23:38:53]Connected sock=10 [23:38:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 29 01 00 00 BB 18 21 01 AD 33 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 33 39 06 04 23 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 33 33 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 3C 28 00 00 00 00 13 04 06 00 3C 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3C 28 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 93 D6 A6 66 0E 04 04 00 0D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 63 08 00 00 35 04 06 00 45 8D 52 08 73 13 09 16 FA E9 4B C0 05 2A [23:38:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 40 0A 47 00 9E 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 63 08 00 00 F4 03 04 00 02 82 A6 66 B6 04 01 00 00 6A A3 48 61 A8 17 A0 13 [23:38:54]CommunicateWithHost err = 0 [23:38:54]CheckOFDResponse [23:38:54]1017 (14) - 77093643461234 [23:38:54]1041 (16) - 0000000002094248 [23:38:54]1040 (4) - 2147 [23:38:54]1012 (4) - 28.07.2024 17:38 [23:38:54]1206 (1) - 0 [23:38:54]OFD Sender: Remove packet 2147 [23:38:54]ProducePacketName [23:38:54]name=ofd_packets/00002147 [23:38:54]NVStorageDeleteData [23:38:54]Write to MH i2c: 01 00 00 8B 68 F3 [23:38:54]Write i2c OK [23:38:54]MH_I2C_Read... [23:38:54]Read from MH i2c: 01 [23:38:54]MH_I2C_Read... [23:38:54]Read from MH i2c: 01 07 00 [23:38:54]MH_I2C_Read... [23:38:54]Read from MH i2c: 01 07 00 8B 68 00 00 00 00 00 FD 0C 03 [23:38:54]RasterBufferAndPrint [23:38:54]line [23:38:54]line [23:38:54]line [23:38:54]line [23:38:54]line [23:38:54]written 0, free lines is 3331 [23:38:54]MH_Cut [23:38:54]Write to MH i2c: D1 01 00 92 68 01 CC [23:38:54]Write i2c OK [23:38:54]MH_I2C_Read... [23:38:54]Read from MH i2c: D1 [23:38:54]MH_I2C_Read... [23:38:54]Read from MH i2c: D1 01 00 [23:38:54]MH_I2C_Read... [23:38:54]Read from MH i2c: D1 01 00 92 68 00 CB [23:38:54]Write to MH i2c: 01 00 00 93 68 FB [23:38:54]Write i2c OK [23:38:54]MH_I2C_Read... [23:38:54]OFD Sender: No OFD packet to send [23:38:54]*** Cut start [23:38:54]*** Partial cut [23:38:54]*** CUTSNS_PIN = 1 [23:38:54]*** CUTSNS_PIN = 0 [23:38:55]*** Brake cut motor [23:38:55]Read from MH i2c: 01 [23:38:55]MH_I2C_Read... [23:38:55]*** Stop cut motor [23:38:55]*** Cut end [23:38:55]Read from MH i2c: 01 07 00 [23:38:55]MH_I2C_Read... [23:38:55]Read from MH i2c: 01 07 00 93 68 00 00 00 00 00 FF 0F 10 [23:38:55]process_action close_receipt done [23:38:55]requested_data is exist [23:38:55]produce_requested_data [23:38:55]requested_item fm.sn is exist - process it [23:38:55]wFMCommunicate request_size=4 [23:38:55]MH_SAM_APDU [23:38:55]CAPDU: 80 11 00 00 [23:38:55]Write to MH i2c: E2 08 00 94 68 80 11 00 00 00 00 00 00 76 [23:38:55]Write i2c OK [23:38:55]MH_I2C_Read... [23:38:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:38:55]Read from MH i2c: E2 [23:38:55]MH_I2C_Read... [23:38:55]Read from MH i2c: E2 17 00 [23:38:55]MH_I2C_Read... [23:38:55]Read from MH i2c: E2 17 00 94 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 C6 [23:38:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [23:38:55]wFMCommunicate OK [23:38:55]requested_item fd.num is exist - process it [23:38:55]SAM_PROTO_GetFieldsCounters [23:38:55]wFMCommunicate request_size=4 [23:38:55]MH_SAM_APDU [23:38:55]CAPDU: 80 13 00 00 [23:38:55]Write to MH i2c: E2 08 00 95 68 80 13 00 00 00 00 00 00 79 [23:38:55]Write i2c OK [23:38:55]MH_I2C_Read... [23:38:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:38:55]Read from MH i2c: E2 [23:38:55]MH_I2C_Read... [23:38:55]Read from MH i2c: E2 62 00 [23:38:55]MH_I2C_Read... [23:38:55]Read from MH i2c: E2 62 00 95 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 63 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 6D [23:38:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 63 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:38:55]wFMCommunicate OK [23:38:55]SAM_PROTO_GetFieldsCounters done [23:38:55]requested_item shift.num is exist - process it [23:38:55]requested_item shift.opened is exist - process it [23:38:55]req_shift_opened [23:38:55]FM_GetShiftState [23:38:55]SAM_PROTO_GetShiftState [23:38:55]wFMCommunicate request_size=4 [23:38:55]MH_SAM_APDU [23:38:55]CAPDU: 80 13 01 00 [23:38:55]Write to MH i2c: E2 08 00 96 68 80 13 01 00 00 00 00 00 7B [23:38:55]Write i2c OK [23:38:55]MH_I2C_Read... [23:38:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:38:55]Read from MH i2c: E2 [23:38:55]MH_I2C_Read... [23:38:55]Read from MH i2c: E2 0E 00 [23:38:55]MH_I2C_Read... [23:38:55]Read from MH i2c: E2 0E 00 96 68 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 6F [23:38:55]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [23:38:55]wFMCommunicate OK [23:38:55]SAM_PROTO_GetShiftState done [23:38:55]FM_GetShiftState done [23:38:55]req_shift_opened done [23:38:55]requested_item shift.open_date is exist - process it [23:38:55]req_shift_open_date [23:38:55]req_shift_open_date done [23:38:55]produce_requested_data done [23:38:55]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2147,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [23:38:55]process_action_free close_receipt [23:38:55]json_value_free [23:38:55]json_value_free done [23:38:55]process_json_proto returns [23:38:55]Send response to host [23:38:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2147,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [23:38:55]free response buf [23:38:55]execute_script done [23:38:55]execute_script returns [23:38:55]free content buf [23:38:55]Sock 9.Close socket [23:38:55]Sock 9.Thread stoped [23:38:59]OFD Sender: No OFD packet to send [23:39:04]OFD Sender: No OFD packet to send [23:39:09]OFD Sender: No OFD packet to send [23:39:14]OFD Sender: No OFD packet to send [23:39:19]OFD Sender: No OFD packet to send [23:39:24]OFD Sender: No OFD packet to send [23:39:29]OFD Sender: No OFD packet to send [23:39:34]OFD Sender: No OFD packet to send [23:39:39]OFD Sender: No OFD packet to send [23:39:44]OFD Sender: No OFD packet to send [23:39:49]OFD Sender: No OFD packet to send [23:39:54]OFD Sender: No OFD packet to send [23:39:59]OFD Sender: No OFD packet to send [23:40:04]OFD Sender: No OFD packet to send [23:40:09]OFD Sender: No OFD packet to send [23:40:14]OFD Sender: No OFD packet to send [23:40:19]OFD Sender: No OFD packet to send [23:40:24]OFD Sender: No OFD packet to send [23:40:29]OFD Sender: No OFD packet to send [23:40:34]OFD Sender: No OFD packet to send [23:40:39]OFD Sender: No OFD packet to send [23:40:44]OFD Sender: No OFD packet to send [23:40:49]OFD Sender: No OFD packet to send [23:40:54]OFD Sender: No OFD packet to send [23:40:59]OFD Sender: No OFD packet to send [23:41:04]OFD Sender: No OFD packet to send [23:41:09]OFD Sender: No OFD packet to send [23:41:14]OFD Sender: No OFD packet to send [23:41:19]OFD Sender: No OFD packet to send [23:41:24]OFD Sender: No OFD packet to send [23:41:29]OFD Sender: No OFD packet to send [23:41:34]OFD Sender: No OFD packet to send [23:41:39]OFD Sender: No OFD packet to send [23:41:44]OFD Sender: No OFD packet to send [23:41:49]OFD Sender: No OFD packet to send [23:41:54]OFD Sender: No OFD packet to send [23:41:59]OFD Sender: No OFD packet to send [23:42:04]OFD Sender: No OFD packet to send [23:42:09]OFD Sender: No OFD packet to send [23:42:14]OFD Sender: No OFD packet to send [23:42:19]OFD Sender: No OFD packet to send [23:42:24]OFD Sender: No OFD packet to send [23:42:29]OFD Sender: No OFD packet to send [23:42:34]OFD Sender: No OFD packet to send [23:42:39]OFD Sender: No OFD packet to send [23:42:44]OFD Sender: No OFD packet to send [23:42:49]OFD Sender: No OFD packet to send [23:42:54]OFD Sender: No OFD packet to send [23:42:59]OFD Sender: No OFD packet to send [23:43:04]OFD Sender: No OFD packet to send [23:43:09]OFD Sender: No OFD packet to send [23:43:14]OFD Sender: No OFD packet to send [23:43:19]OFD Sender: No OFD packet to send [23:43:24]OFD Sender: No OFD packet to send [23:43:29]OFD Sender: No OFD packet to send [23:43:34]OFD Sender: No OFD packet to send [23:43:39]OFD Sender: No OFD packet to send [23:43:44]OFD Sender: No OFD packet to send [23:43:49]OFD Sender: No OFD packet to send [23:43:54]OFD Sender: No OFD packet to send [23:43:59]OFD Sender: No OFD packet to send [23:44:04]OFD Sender: No OFD packet to send [23:44:09]OFD Sender: No OFD packet to send [23:44:14]OFD Sender: No OFD packet to send [23:44:19]OFD Sender: No OFD packet to send [23:44:24]OFD Sender: No OFD packet to send [23:44:29]OFD Sender: No OFD packet to send [23:44:34]OFD Sender: No OFD packet to send [23:44:39]OFD Sender: No OFD packet to send [23:44:44]OFD Sender: No OFD packet to send [23:44:49]OFD Sender: No OFD packet to send [23:44:54]OFD Sender: No OFD packet to send [23:44:59]OFD Sender: No OFD packet to send [23:45:04]OFD Sender: No OFD packet to send [23:45:09]OFD Sender: No OFD packet to send [23:45:14]OFD Sender: No OFD packet to send [23:45:19]OFD Sender: No OFD packet to send [23:45:24]OFD Sender: No OFD packet to send [23:45:29]OFD Sender: No OFD packet to send [23:45:34]OFD Sender: No OFD packet to send [23:45:39]OFD Sender: No OFD packet to send [23:45:44]OFD Sender: No OFD packet to send [23:45:49]OFD Sender: No OFD packet to send [23:45:54]OFD Sender: No OFD packet to send [23:45:59]OFD Sender: No OFD packet to send [23:46:04]OFD Sender: No OFD packet to send [23:46:09]OFD Sender: No OFD packet to send [23:46:14]OFD Sender: No OFD packet to send [23:46:19]OFD Sender: No OFD packet to send [23:46:24]OFD Sender: No OFD packet to send [23:46:29]OFD Sender: No OFD packet to send [23:46:34]OFD Sender: No OFD packet to send [23:46:39]OFD Sender: No OFD packet to send [23:46:44]OFD Sender: No OFD packet to send [23:46:50]OFD Sender: No OFD packet to send [23:46:55]OFD Sender: No OFD packet to send [23:47:00]OFD Sender: No OFD packet to send [23:47:05]OFD Sender: No OFD packet to send [23:47:10]OFD Sender: No OFD packet to send [23:47:15]OFD Sender: No OFD packet to send [23:47:20]OFD Sender: No OFD packet to send [23:47:25]OFD Sender: No OFD packet to send [23:47:30]OFD Sender: No OFD packet to send [23:47:35]OFD Sender: No OFD packet to send [23:47:40]OFD Sender: No OFD packet to send [23:47:45]OFD Sender: No OFD packet to send [23:47:50]OFD Sender: No OFD packet to send [23:47:55]OFD Sender: No OFD packet to send [23:48:00]OFD Sender: No OFD packet to send [23:48:05]OFD Sender: No OFD packet to send [23:48:10]OFD Sender: No OFD packet to send [23:48:15]OFD Sender: No OFD packet to send [23:48:20]OFD Sender: No OFD packet to send [23:48:25]OFD Sender: No OFD packet to send [23:48:30]OFD Sender: No OFD packet to send [23:48:35]OFD Sender: No OFD packet to send [23:48:40]OFD Sender: No OFD packet to send [23:48:45]OFD Sender: No OFD packet to send [23:48:50]OFD Sender: No OFD packet to send [23:48:55]OFD Sender: No OFD packet to send [23:49:00]OFD Sender: No OFD packet to send [23:49:05]OFD Sender: No OFD packet to send [23:49:10]OFD Sender: No OFD packet to send [23:49:15]OFD Sender: No OFD packet to send [23:49:20]OFD Sender: No OFD packet to send [23:49:25]OFD Sender: No OFD packet to send [23:49:30]OFD Sender: No OFD packet to send [23:49:35]OFD Sender: No OFD packet to send [23:49:40]OFD Sender: No OFD packet to send [23:49:45]OFD Sender: No OFD packet to send [23:49:50]OFD Sender: No OFD packet to send [23:49:55]OFD Sender: No OFD packet to send [23:50:00]OFD Sender: No OFD packet to send [23:50:05]OFD Sender: No OFD packet to send [23:50:10]OFD Sender: No OFD packet to send [23:50:15]OFD Sender: No OFD packet to send [23:50:20]OFD Sender: No OFD packet to send [23:50:25]OFD Sender: No OFD packet to send [23:50:30]OFD Sender: No OFD packet to send [23:50:35]OFD Sender: No OFD packet to send [23:50:40]OFD Sender: No OFD packet to send [23:50:45]OFD Sender: No OFD packet to send [23:50:50]OFD Sender: No OFD packet to send [23:50:55]OFD Sender: No OFD packet to send [23:51:00]OFD Sender: No OFD packet to send [23:51:05]OFD Sender: No OFD packet to send [23:51:10]OFD Sender: No OFD packet to send [23:51:15]OFD Sender: No OFD packet to send [23:51:20]OFD Sender: No OFD packet to send [23:51:25]OFD Sender: No OFD packet to send [23:51:30]OFD Sender: No OFD packet to send [23:51:35]OFD Sender: No OFD packet to send [23:51:40]OFD Sender: No OFD packet to send [23:51:45]OFD Sender: No OFD packet to send [23:51:50]OFD Sender: No OFD packet to send [23:51:55]OFD Sender: No OFD packet to send [23:52:00]OFD Sender: No OFD packet to send [23:52:05]OFD Sender: No OFD packet to send [23:52:10]OFD Sender: No OFD packet to send [23:52:15]OFD Sender: No OFD packet to send [23:52:20]OFD Sender: No OFD packet to send [23:52:25]OFD Sender: No OFD packet to send [23:52:30]OFD Sender: No OFD packet to send [23:52:35]OFD Sender: No OFD packet to send [23:52:40]OFD Sender: No OFD packet to send [23:52:45]OFD Sender: No OFD packet to send [23:52:50]OFD Sender: No OFD packet to send [23:52:55]OFD Sender: No OFD packet to send [23:53:00]OFD Sender: No OFD packet to send [23:53:05]OFD Sender: No OFD packet to send [23:53:10]OFD Sender: No OFD packet to send [23:53:15]OFD Sender: No OFD packet to send [23:53:20]OFD Sender: No OFD packet to send [23:53:25]OFD Sender: No OFD packet to send [23:53:30]OFD Sender: No OFD packet to send [23:53:35]OFD Sender: No OFD packet to send [23:53:40]OFD Sender: No OFD packet to send [23:53:45]OFD Sender: No OFD packet to send [23:53:50]OFD Sender: No OFD packet to send [23:53:55]OFD Sender: No OFD packet to send [23:54:00]OFD Sender: No OFD packet to send [23:54:05]OFD Sender: No OFD packet to send [23:54:10]OFD Sender: No OFD packet to send [23:54:15]OFD Sender: No OFD packet to send [23:54:20]OFD Sender: No OFD packet to send [23:54:25]OFD Sender: No OFD packet to send [23:54:30]OFD Sender: No OFD packet to send [23:54:35]OFD Sender: No OFD packet to send [23:54:40]OFD Sender: No OFD packet to send [23:54:45]OFD Sender: No OFD packet to send [23:54:50]OFD Sender: No OFD packet to send [23:54:55]OFD Sender: No OFD packet to send [23:55:00]OFD Sender: No OFD packet to send [23:55:05]OFD Sender: No OFD packet to send [23:55:10]OFD Sender: No OFD packet to send [23:55:15]OFD Sender: No OFD packet to send [23:55:20]OFD Sender: No OFD packet to send [23:55:25]OFD Sender: No OFD packet to send [23:55:30]OFD Sender: No OFD packet to send [23:55:35]OFD Sender: No OFD packet to send [23:55:40]OFD Sender: No OFD packet to send [23:55:45]OFD Sender: No OFD packet to send [23:55:50]OFD Sender: No OFD packet to send [23:55:55]OFD Sender: No OFD packet to send [23:56:00]OFD Sender: No OFD packet to send [23:56:05]OFD Sender: No OFD packet to send [23:56:10]OFD Sender: No OFD packet to send [23:56:15]OFD Sender: No OFD packet to send [23:56:20]OFD Sender: No OFD packet to send [23:56:25]OFD Sender: No OFD packet to send [23:56:30]OFD Sender: No OFD packet to send [23:56:35]OFD Sender: No OFD packet to send [23:56:40]OFD Sender: No OFD packet to send [23:56:45]OFD Sender: No OFD packet to send [23:56:50]OFD Sender: No OFD packet to send [23:56:55]OFD Sender: No OFD packet to send [23:57:00]OFD Sender: No OFD packet to send [23:57:05]OFD Sender: No OFD packet to send [23:57:10]OFD Sender: No OFD packet to send [23:57:15]OFD Sender: No OFD packet to send [23:57:20]OFD Sender: No OFD packet to send [23:57:25]OFD Sender: No OFD packet to send [23:57:30]OFD Sender: No OFD packet to send [23:57:35]OFD Sender: No OFD packet to send [23:57:40]OFD Sender: No OFD packet to send [23:57:45]OFD Sender: No OFD packet to send [23:57:50]OFD Sender: No OFD packet to send [23:57:55]OFD Sender: No OFD packet to send [23:58:00]OFD Sender: No OFD packet to send [23:58:05]OFD Sender: No OFD packet to send [23:58:10]OFD Sender: No OFD packet to send [23:58:15]OFD Sender: No OFD packet to send [23:58:20]OFD Sender: No OFD packet to send [23:58:25]OFD Sender: No OFD packet to send [23:58:30]OFD Sender: No OFD packet to send [23:58:35]OFD Sender: No OFD packet to send [23:58:40]OFD Sender: No OFD packet to send [23:58:45]OFD Sender: No OFD packet to send [23:58:50]OFD Sender: No OFD packet to send [23:58:55]OFD Sender: No OFD packet to send [23:59:00]OFD Sender: No OFD packet to send [23:59:05]OFD Sender: No OFD packet to send [23:59:10]OFD Sender: No OFD packet to send [23:59:15]OFD Sender: No OFD packet to send [23:59:20]OFD Sender: No OFD packet to send [23:59:25]OFD Sender: No OFD packet to send [23:59:30]OFD Sender: No OFD packet to send [23:59:35]OFD Sender: No OFD packet to send [23:59:40]OFD Sender: No OFD packet to send [23:59:45]OFD Sender: No OFD packet to send [23:59:50]OFD Sender: No OFD packet to send [23:59:55]OFD Sender: No OFD packet to send [00:00:00]OFD Sender: No OFD packet to send [00:00:05]OFD Sender: No OFD packet to send [00:00:10]OFD Sender: No OFD packet to send [00:00:15]OFD Sender: No OFD packet to send [00:00:20]OFD Sender: No OFD packet to send [00:00:24]accept exits with 8 [00:00:24]New connection [00:00:24]New thread 3067317604 created [00:00:24]Thread 3067460964 joined [00:00:24]Waiting for new connection... [00:00:24] Sock 8.Parse request [00:00:24]Sock 8.Check first char [00:00:24]Sock 8.First char is OK [00:00:24]request: POST /json_proto HTTP/1.0 [00:00:24]Method: POST [00:00:24]URL: /json_proto [00:00:24]Method is POST - this is cgi request [00:00:24]url: /json_proto [00:00:24]query_string will be loaded in cgi processing [00:00:24]execute_cgi json_proto POST (null) [00:00:24]execute_cgi path=json_proto method=POST [00:00:24]POST find Content-Length [00:00:24]Host: 172.17.45.132:8080 [00:00:24]Content-Length: 215 [00:00:24]Content-Type: application/json [00:00:24] [00:00:24]POST finish read [00:00:24]Found Content-Length = 215 [00:00:24]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:00:24]execute_script... [00:00:24]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:00:24]POST & json_proto [00:00:24]process_json_proto [00:00:24]json parsed OK: [00:00:24]protocol is kg_v1.0 [00:00:24]action value=get_value [00:00:24]process_action get_value [00:00:24]cmd_get_value [00:00:24]process_action get_value done [00:00:24]requested_data is exist [00:00:24]produce_requested_data [00:00:24]requested_item kkm.sn is exist - process it [00:00:24]requested_item kkm.ver is exist - process it [00:00:24]requested_item fm.sn is exist - process it [00:00:24]wFMCommunicate request_size=4 [00:00:24]MH_SAM_APDU [00:00:24]CAPDU: 80 11 00 00 [00:00:24]Write to MH i2c: E2 08 00 97 68 80 11 00 00 00 00 00 00 79 [00:00:24]Write i2c OK [00:00:24]MH_I2C_Read... [00:00:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:00:24]Read from MH i2c: E2 [00:00:24]MH_I2C_Read... [00:00:24]Read from MH i2c: E2 17 00 [00:00:24]MH_I2C_Read... [00:00:24]Read from MH i2c: E2 17 00 97 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 C9 [00:00:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [00:00:24]wFMCommunicate OK [00:00:24]requested_item fd.num is exist - process it [00:00:24]SAM_PROTO_GetFieldsCounters [00:00:24]wFMCommunicate request_size=4 [00:00:24]MH_SAM_APDU [00:00:24]CAPDU: 80 13 00 00 [00:00:24]Write to MH i2c: E2 08 00 98 68 80 13 00 00 00 00 00 00 7C [00:00:24]Write i2c OK [00:00:24]MH_I2C_Read... [00:00:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:00:25]Read from MH i2c: E2 [00:00:25]MH_I2C_Read... [00:00:25]Read from MH i2c: E2 62 00 [00:00:25]MH_I2C_Read... [00:00:25]Read from MH i2c: E2 62 00 98 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 63 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 70 [00:00:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 63 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:00:25]wFMCommunicate OK [00:00:25]SAM_PROTO_GetFieldsCounters done [00:00:25]requested_item shift.num is exist - process it [00:00:25]requested_item shift.opened is exist - process it [00:00:25]req_shift_opened [00:00:25]FM_GetShiftState [00:00:25]SAM_PROTO_GetShiftState [00:00:25]wFMCommunicate request_size=4 [00:00:25]MH_SAM_APDU [00:00:25]CAPDU: 80 13 01 00 [00:00:25]Write to MH i2c: E2 08 00 99 68 80 13 01 00 00 00 00 00 7E [00:00:25]Write i2c OK [00:00:25]MH_I2C_Read... [00:00:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:00:25]Read from MH i2c: E2 [00:00:25]MH_I2C_Read... [00:00:25]Read from MH i2c: E2 0E 00 [00:00:25]MH_I2C_Read... [00:00:25]Read from MH i2c: E2 0E 00 99 68 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 72 [00:00:25]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [00:00:25]wFMCommunicate OK [00:00:25]SAM_PROTO_GetShiftState done [00:00:25]FM_GetShiftState done [00:00:25]req_shift_opened done [00:00:25]requested_item shift.open_date is exist - process it [00:00:25]req_shift_open_date [00:00:25]req_shift_open_date done [00:00:25]produce_requested_data done [00:00:25]produce_requested_data return {"kkm.sn":"0300000161","kkm.ver":"v1.0","fm.sn":"0000000002094248","fd.num":2147,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [00:00:25]process_action_free get_value [00:00:25]json_value_free [00:00:25]json_value_free done [00:00:25]process_json_proto returns [00:00:25]Send response to host [00:00:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000161","kkm.ver":"v1.0","fm.sn":"0000000002094248","fd.num":2147,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [00:00:25]free response buf [00:00:25]execute_script done [00:00:25]execute_script returns [00:00:25]free content buf [00:00:25]Sock 8.Close socket [00:00:25]Sock 8.Thread stoped [00:00:25]accept exits with 9 [00:00:25]New connection [00:00:25]New thread 3067460964 created [00:00:25]Thread 3067317604 joined [00:00:25]Waiting for new connection... [00:00:25] Sock 9.Parse request [00:00:25]Sock 9.Check first char [00:00:25]Sock 9.First char is OK [00:00:25]request: POST /json_proto HTTP/1.0 [00:00:25]Method: POST [00:00:25]URL: /json_proto [00:00:25]Method is POST - this is cgi request [00:00:25]url: /json_proto [00:00:25]query_string will be loaded in cgi processing [00:00:25]execute_cgi json_proto POST (null) [00:00:25]execute_cgi path=json_proto method=POST [00:00:25]POST find Content-Length [00:00:25]Host: 172.17.45.132:8080 [00:00:25]Content-Length: 331 [00:00:25]Content-Type: application/json [00:00:25] [00:00:25]POST finish read [00:00:25]Found Content-Length = 331 [00:00:25]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:00:25]execute_script... [00:00:25]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:00:25]POST & json_proto [00:00:25]process_json_proto [00:00:25]json parsed OK: [00:00:25]protocol is kg_v1.0 [00:00:25]action value=get_value [00:00:25]process_action get_value [00:00:25]cmd_get_value [00:00:25]process_action get_value done [00:00:25]requested_data is exist [00:00:25]produce_requested_data [00:00:25]requested_item fm.sale.total is exist - process it [00:00:25]SAM_PROTO_GetFMData [00:00:25]wFMCommunicate request_size=4 [00:00:25]MH_SAM_APDU [00:00:25]CAPDU: 80 13 03 00 [00:00:25]Write to MH i2c: E2 08 00 9A 68 80 13 03 00 00 00 00 00 81 [00:00:25]Write i2c OK [00:00:25]MH_I2C_Read... [00:00:25]OFD Sender: No OFD packet to send [00:00:25]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:00:25]Read from MH i2c: E2 [00:00:25]MH_I2C_Read... [00:00:25]Read from MH i2c: E2 FD 00 [00:00:25]MH_I2C_Read... [00:00:25]Read from MH i2c: E2 FD 00 9A 68 00 C0 04 85 04 BC 04 6E 04 04 00 49 08 00 00 69 04 9F 00 6F 04 04 00 38 08 00 00 B1 04 04 00 12 FB 5A 05 70 04 04 00 C4 A8 76 03 72 04 04 00 4E 52 E4 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 9B 91 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 65 21 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 53 04 02 EF 03 09 00 F6 03 01 90 00 8F [00:00:25]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 49 08 00 00 69 04 9F 00 6F 04 04 00 38 08 00 00 B1 04 04 00 12 FB 5A 05 70 04 04 00 C4 A8 76 03 72 04 04 00 4E 52 E4 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 9B 91 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 65 21 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 53 04 02 EF 03 09 00 F6 03 01 90 00 [00:00:25]wFMCommunicate OK [00:00:25]wFMCommunicate request_size=4 [00:00:25]MH_SAM_APDU [00:00:25]CAPDU: 80 17 00 00 [00:00:25]Write to MH i2c: E2 08 00 9B 68 80 17 00 00 00 00 00 00 83 [00:00:25]Write i2c OK [00:00:25]MH_I2C_Read... [00:00:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:26]Read from MH i2c: E2 [00:00:26]MH_I2C_Read... [00:00:26]Read from MH i2c: E2 FD 00 [00:00:26]MH_I2C_Read... [00:00:26]Read from MH i2c: E2 FD 00 9B 68 00 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 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 90 00 E2 [00:00:26]RAPDU: 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 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 90 00 [00:00:26]wFMCommunicate OK [00:00:26]wFMCommunicate request_size=4 [00:00:26]MH_SAM_APDU [00:00:26]CAPDU: 80 17 00 00 [00:00:26]Write to MH i2c: E2 08 00 9C 68 80 17 00 00 00 00 00 00 84 [00:00:26]Write i2c OK [00:00:26]MH_I2C_Read... [00:00:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:26]Read from MH i2c: E2 [00:00:26]MH_I2C_Read... [00:00:26]Read from MH i2c: E2 FD 00 [00:00:26]MH_I2C_Read... [00:00:26]Read from MH i2c: E2 FD 00 9C 68 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 90 00 27 [00:00:26]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 90 00 [00:00:26]wFMCommunicate OK [00:00:26]wFMCommunicate request_size=4 [00:00:26]MH_SAM_APDU [00:00:26]CAPDU: 80 17 00 00 [00:00:26]Write to MH i2c: E2 08 00 9D 68 80 17 00 00 00 00 00 00 85 [00:00:26]Write i2c OK [00:00:26]MH_I2C_Read... [00:00:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:26]Read from MH i2c: E2 [00:00:26]MH_I2C_Read... [00:00:26]Read from MH i2c: E2 FD 00 [00:00:26]MH_I2C_Read... [00:00:26]Read from MH i2c: E2 FD 00 9D 68 00 01 00 04 F7 03 00 00 EF 03 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 90 00 FD [00:00:26]RAPDU: 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:00:26]wFMCommunicate OK [00:00:26]wFMCommunicate request_size=4 [00:00:26]MH_SAM_APDU [00:00:26]CAPDU: 80 17 00 00 [00:00:26]Write to MH i2c: E2 08 00 9E 68 80 17 00 00 00 00 00 00 86 [00:00:26]Write i2c OK [00:00:26]MH_I2C_Read... [00:00:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [00:00:26]Read from MH i2c: E2 [00:00:26]MH_I2C_Read... [00:00:26]Read from MH i2c: E2 DD 00 [00:00:26]MH_I2C_Read... [00:00:26]Read from MH i2c: E2 DD 00 9E 68 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 6E [00:00:26]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:00:26]wFMCommunicate OK [00:00:26]SAM_PROTO_GetFMData done [00:00:26]requested_item fm.sale_refund.total is exist - process it [00:00:26]requested_item fm.buy.total is exist - process it [00:00:26]requested_item shift.sale.total is exist - process it [00:00:26]SAM_PROTO_GetShiftData [00:00:26]wFMCommunicate request_size=4 [00:00:26]MH_SAM_APDU [00:00:26]CAPDU: 80 13 02 00 [00:00:26]Write to MH i2c: E2 08 00 9F 68 80 13 02 00 00 00 00 00 85 [00:00:26]Write i2c OK [00:00:26]MH_I2C_Read... [00:00:27]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:00:27]Read from MH i2c: E2 [00:00:27]MH_I2C_Read... [00:00:27]Read from MH i2c: E2 FD 00 [00:00:27]MH_I2C_Read... [00:00:27]Read from MH i2c: E2 FD 00 9F 68 00 BA 04 AA 04 B6 04 6E 04 04 00 C6 00 00 00 69 04 9B 00 6F 04 04 00 C2 00 00 00 B1 04 03 00 E3 C1 57 70 04 03 00 50 F1 3B 72 04 03 00 93 D0 1B 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 D4 51 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 BC C6 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 99 00 6F 04 04 00 04 00 00 00 B1 04 03 00 EC 8A 01 70 04 02 00 18 79 72 04 03 00 D4 11 01 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 F0 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 C5 [00:00:27]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 C6 00 00 00 69 04 9B 00 6F 04 04 00 C2 00 00 00 B1 04 03 00 E3 C1 57 70 04 03 00 50 F1 3B 72 04 03 00 93 D0 1B 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 D4 51 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 BC C6 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 99 00 6F 04 04 00 04 00 00 00 B1 04 03 00 EC 8A 01 70 04 02 00 18 79 72 04 03 00 D4 11 01 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 F0 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:00:27]wFMCommunicate OK [00:00:27]wFMCommunicate request_size=4 [00:00:27]MH_SAM_APDU [00:00:27]CAPDU: 80 17 00 00 [00:00:27]Write to MH i2c: E2 08 00 A0 68 80 17 00 00 00 00 00 00 88 [00:00:27]Write i2c OK [00:00:27]MH_I2C_Read... [00:00:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:27]Read from MH i2c: E2 [00:00:27]MH_I2C_Read... [00:00:27]Read from MH i2c: E2 FD 00 [00:00:27]MH_I2C_Read... [00:00:27]Read from MH i2c: E2 FD 00 A0 68 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 B4 [00:00:27]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 [00:00:27]wFMCommunicate OK [00:00:27]wFMCommunicate request_size=4 [00:00:27]MH_SAM_APDU [00:00:27]CAPDU: 80 17 00 00 [00:00:27]Write to MH i2c: E2 08 00 A1 68 80 17 00 00 00 00 00 00 89 [00:00:27]Write i2c OK [00:00:27]MH_I2C_Read... [00:00:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:27]Read from MH i2c: E2 [00:00:27]MH_I2C_Read... [00:00:27]Read from MH i2c: E2 FD 00 [00:00:27]MH_I2C_Read... [00:00:27]Read from MH i2c: E2 FD 00 A1 68 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 B5 [00:00:27]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 [00:00:27]wFMCommunicate OK [00:00:27]wFMCommunicate request_size=4 [00:00:27]MH_SAM_APDU [00:00:27]CAPDU: 80 17 00 00 [00:00:27]Write to MH i2c: E2 08 00 A2 68 80 17 00 00 00 00 00 00 8A [00:00:27]Write i2c OK [00:00:27]MH_I2C_Read... [00:00:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:28]Read from MH i2c: E2 [00:00:28]MH_I2C_Read... [00:00:28]Read from MH i2c: E2 FD 00 [00:00:28]MH_I2C_Read... [00:00:28]Read from MH i2c: E2 FD 00 A2 68 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 02 [00:00:28]RAPDU: 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 [00:00:28]wFMCommunicate OK [00:00:28]wFMCommunicate request_size=4 [00:00:28]MH_SAM_APDU [00:00:28]CAPDU: 80 17 00 00 [00:00:28]Write to MH i2c: E2 08 00 A3 68 80 17 00 00 00 00 00 00 8B [00:00:28]Write i2c OK [00:00:28]MH_I2C_Read... [00:00:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [00:00:28]Read from MH i2c: E2 [00:00:28]MH_I2C_Read... [00:00:28]Read from MH i2c: E2 D7 00 [00:00:28]MH_I2C_Read... [00:00:28]Read from MH i2c: E2 D7 00 A3 68 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 6E [00:00:28]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:00:28]wFMCommunicate OK [00:00:28]SAM_PROTO_GetShiftData done [00:00:28]requested_item shift.sale.total_cash is exist - process it [00:00:28]requested_item shift.sale_refund.total is exist - process it [00:00:28]requested_item shift.sale_refund.total_cash is exist - process it [00:00:28]requested_item shift.buy.total is exist - process it [00:00:28]requested_item shift.buy.total_cash is exist - process it [00:00:28]produce_requested_data done [00:00:28]produce_requested_data return {"fm.sale.total":898485.94,"fm.sale_refund.total":12447.00,"fm.buy.total":0.00,"shift.sale.total":57512.67,"shift.sale.total_cash":39284.00,"shift.sale_refund.total":1011.00,"shift.sale_refund.total_cash":310.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:00:28]process_action_free get_value [00:00:28]json_value_free [00:00:28]json_value_free done [00:00:28]process_json_proto returns [00:00:28]Send response to host [00:00:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":898485.94,"fm.sale_refund.total":12447.00,"fm.buy.total":0.00,"shift.sale.total":57512.67,"shift.sale.total_cash":39284.00,"shift.sale_refund.total":1011.00,"shift.sale_refund.total_cash":310.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:00:28]free response buf [00:00:28]execute_script done [00:00:28]execute_script returns [00:00:28]free content buf [00:00:28]Sock 9.Close socket [00:00:28]Sock 9.Thread stoped [00:00:28]accept exits with 8 [00:00:28]New connection [00:00:28]New thread 3067317604 created [00:00:28]Thread 3067460964 joined [00:00:28]Waiting for new connection... [00:00:28] Sock 8.Parse request [00:00:28]Sock 8.Check first char [00:00:28]Sock 8.First char is OK [00:00:28]request: POST /json_proto HTTP/1.0 [00:00:28]Method: POST [00:00:28]URL: /json_proto [00:00:28]Method is POST - this is cgi request [00:00:28]url: /json_proto [00:00:28]query_string will be loaded in cgi processing [00:00:28]execute_cgi json_proto POST (null) [00:00:28]execute_cgi path=json_proto method=POST [00:00:28]POST find Content-Length [00:00:28]Host: 172.17.45.132:8080 [00:00:28]Content-Length: 331 [00:00:28]Content-Type: application/json [00:00:28] [00:00:28]POST finish read [00:00:28]Found Content-Length = 331 [00:00:28]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:00:28]execute_script... [00:00:28]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:00:28]POST & json_proto [00:00:28]process_json_proto [00:00:28]json parsed OK: [00:00:28]protocol is kg_v1.0 [00:00:28]action value=get_value [00:00:28]process_action get_value [00:00:28]cmd_get_value [00:00:28]process_action get_value done [00:00:28]requested_data is exist [00:00:28]produce_requested_data [00:00:28]requested_item fm.sale.total is exist - process it [00:00:28]SAM_PROTO_GetFMData [00:00:28]wFMCommunicate request_size=4 [00:00:28]MH_SAM_APDU [00:00:28]CAPDU: 80 13 03 00 [00:00:28]Write to MH i2c: E2 08 00 A4 68 80 13 03 00 00 00 00 00 8B [00:00:28]Write i2c OK [00:00:28]MH_I2C_Read... [00:00:29]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:00:29]Read from MH i2c: E2 [00:00:29]MH_I2C_Read... [00:00:29]Read from MH i2c: E2 FD 00 [00:00:29]MH_I2C_Read... [00:00:29]Read from MH i2c: E2 FD 00 A4 68 00 C0 04 85 04 BC 04 6E 04 04 00 49 08 00 00 69 04 9F 00 6F 04 04 00 38 08 00 00 B1 04 04 00 12 FB 5A 05 70 04 04 00 C4 A8 76 03 72 04 04 00 4E 52 E4 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 9B 91 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 65 21 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 53 04 02 EF 03 09 00 F6 03 01 90 00 99 [00:00:29]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 49 08 00 00 69 04 9F 00 6F 04 04 00 38 08 00 00 B1 04 04 00 12 FB 5A 05 70 04 04 00 C4 A8 76 03 72 04 04 00 4E 52 E4 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 9B 91 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 65 21 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 53 04 02 EF 03 09 00 F6 03 01 90 00 [00:00:29]wFMCommunicate OK [00:00:29]wFMCommunicate request_size=4 [00:00:29]MH_SAM_APDU [00:00:29]CAPDU: 80 17 00 00 [00:00:29]Write to MH i2c: E2 08 00 A5 68 80 17 00 00 00 00 00 00 8D [00:00:29]Write i2c OK [00:00:29]MH_I2C_Read... [00:00:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:29]Read from MH i2c: E2 [00:00:29]MH_I2C_Read... [00:00:29]Read from MH i2c: E2 FD 00 [00:00:29]MH_I2C_Read... [00:00:29]Read from MH i2c: E2 FD 00 A5 68 00 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 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 90 00 EC [00:00:29]RAPDU: 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 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 90 00 [00:00:29]wFMCommunicate OK [00:00:29]wFMCommunicate request_size=4 [00:00:29]MH_SAM_APDU [00:00:29]CAPDU: 80 17 00 00 [00:00:29]Write to MH i2c: E2 08 00 A6 68 80 17 00 00 00 00 00 00 8E [00:00:29]Write i2c OK [00:00:29]MH_I2C_Read... [00:00:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:29]Read from MH i2c: E2 [00:00:29]MH_I2C_Read... [00:00:29]Read from MH i2c: E2 FD 00 [00:00:29]MH_I2C_Read... [00:00:29]Read from MH i2c: E2 FD 00 A6 68 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 90 00 31 [00:00:29]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 90 00 [00:00:29]wFMCommunicate OK [00:00:29]wFMCommunicate request_size=4 [00:00:29]MH_SAM_APDU [00:00:29]CAPDU: 80 17 00 00 [00:00:29]Write to MH i2c: E2 08 00 A7 68 80 17 00 00 00 00 00 00 8F [00:00:29]Write i2c OK [00:00:29]MH_I2C_Read... [00:00:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:30]Read from MH i2c: E2 [00:00:30]MH_I2C_Read... [00:00:30]Read from MH i2c: E2 FD 00 [00:00:30]MH_I2C_Read... [00:00:30]Read from MH i2c: E2 FD 00 A7 68 00 01 00 04 F7 03 00 00 EF 03 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 90 00 07 [00:00:30]RAPDU: 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:00:30]wFMCommunicate OK [00:00:30]wFMCommunicate request_size=4 [00:00:30]MH_SAM_APDU [00:00:30]CAPDU: 80 17 00 00 [00:00:30]Write to MH i2c: E2 08 00 A8 68 80 17 00 00 00 00 00 00 90 [00:00:30]Write i2c OK [00:00:30]MH_I2C_Read... [00:00:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [00:00:30]Read from MH i2c: E2 [00:00:30]MH_I2C_Read... [00:00:30]Read from MH i2c: E2 DD 00 [00:00:30]MH_I2C_Read... [00:00:30]Read from MH i2c: E2 DD 00 A8 68 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 78 [00:00:30]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:00:30]wFMCommunicate OK [00:00:30]SAM_PROTO_GetFMData done [00:00:30]requested_item fm.sale_refund.total is exist - process it [00:00:30]requested_item fm.buy.total is exist - process it [00:00:30]requested_item shift.sale.total is exist - process it [00:00:30]SAM_PROTO_GetShiftData [00:00:30]wFMCommunicate request_size=4 [00:00:30]MH_SAM_APDU [00:00:30]CAPDU: 80 13 02 00 [00:00:30]Write to MH i2c: E2 08 00 A9 68 80 13 02 00 00 00 00 00 8F [00:00:30]Write i2c OK [00:00:30]MH_I2C_Read... [00:00:30]OFD Sender: No OFD packet to send [00:00:31]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:00:31]Read from MH i2c: E2 [00:00:31]MH_I2C_Read... [00:00:31]Read from MH i2c: E2 FD 00 [00:00:31]MH_I2C_Read... [00:00:31]Read from MH i2c: E2 FD 00 A9 68 00 BA 04 AA 04 B6 04 6E 04 04 00 C6 00 00 00 69 04 9B 00 6F 04 04 00 C2 00 00 00 B1 04 03 00 E3 C1 57 70 04 03 00 50 F1 3B 72 04 03 00 93 D0 1B 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 D4 51 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 BC C6 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 99 00 6F 04 04 00 04 00 00 00 B1 04 03 00 EC 8A 01 70 04 02 00 18 79 72 04 03 00 D4 11 01 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 F0 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 CF [00:00:31]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 C6 00 00 00 69 04 9B 00 6F 04 04 00 C2 00 00 00 B1 04 03 00 E3 C1 57 70 04 03 00 50 F1 3B 72 04 03 00 93 D0 1B 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 D4 51 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 BC C6 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 99 00 6F 04 04 00 04 00 00 00 B1 04 03 00 EC 8A 01 70 04 02 00 18 79 72 04 03 00 D4 11 01 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 F0 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:00:31]wFMCommunicate OK [00:00:31]wFMCommunicate request_size=4 [00:00:31]MH_SAM_APDU [00:00:31]CAPDU: 80 17 00 00 [00:00:31]Write to MH i2c: E2 08 00 AA 68 80 17 00 00 00 00 00 00 92 [00:00:31]Write i2c OK [00:00:31]MH_I2C_Read... [00:00:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:31]Read from MH i2c: E2 [00:00:31]MH_I2C_Read... [00:00:31]Read from MH i2c: E2 FD 00 [00:00:31]MH_I2C_Read... [00:00:31]Read from MH i2c: E2 FD 00 AA 68 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 BE [00:00:31]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 [00:00:31]wFMCommunicate OK [00:00:31]wFMCommunicate request_size=4 [00:00:31]MH_SAM_APDU [00:00:31]CAPDU: 80 17 00 00 [00:00:31]Write to MH i2c: E2 08 00 AB 68 80 17 00 00 00 00 00 00 93 [00:00:31]Write i2c OK [00:00:31]MH_I2C_Read... [00:00:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:32]Read from MH i2c: E2 [00:00:32]MH_I2C_Read... [00:00:32]Read from MH i2c: E2 FD 00 [00:00:32]MH_I2C_Read... [00:00:32]Read from MH i2c: E2 FD 00 AB 68 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 BF [00:00:32]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 [00:00:32]wFMCommunicate OK [00:00:32]wFMCommunicate request_size=4 [00:00:32]MH_SAM_APDU [00:00:32]CAPDU: 80 17 00 00 [00:00:32]Write to MH i2c: E2 08 00 AC 68 80 17 00 00 00 00 00 00 94 [00:00:32]Write i2c OK [00:00:32]MH_I2C_Read... [00:00:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:32]Read from MH i2c: E2 [00:00:32]MH_I2C_Read... [00:00:32]Read from MH i2c: E2 FD 00 [00:00:32]MH_I2C_Read... [00:00:32]Read from MH i2c: E2 FD 00 AC 68 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 0C [00:00:32]RAPDU: 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 [00:00:32]wFMCommunicate OK [00:00:32]wFMCommunicate request_size=4 [00:00:32]MH_SAM_APDU [00:00:32]CAPDU: 80 17 00 00 [00:00:32]Write to MH i2c: E2 08 00 AD 68 80 17 00 00 00 00 00 00 95 [00:00:32]Write i2c OK [00:00:32]MH_I2C_Read... [00:00:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [00:00:32]Read from MH i2c: E2 [00:00:32]MH_I2C_Read... [00:00:32]Read from MH i2c: E2 D7 00 [00:00:32]MH_I2C_Read... [00:00:32]Read from MH i2c: E2 D7 00 AD 68 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 78 [00:00:32]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:00:33]wFMCommunicate OK [00:00:33]SAM_PROTO_GetShiftData done [00:00:33]requested_item shift.sale.total_cash is exist - process it [00:00:33]requested_item shift.sale_refund.total is exist - process it [00:00:33]requested_item shift.sale_refund.total_cash is exist - process it [00:00:33]requested_item shift.buy.total is exist - process it [00:00:33]requested_item shift.buy.total_cash is exist - process it [00:00:33]produce_requested_data done [00:00:33]produce_requested_data return {"fm.sale.total":898485.94,"fm.sale_refund.total":12447.00,"fm.buy.total":0.00,"shift.sale.total":57512.67,"shift.sale.total_cash":39284.00,"shift.sale_refund.total":1011.00,"shift.sale_refund.total_cash":310.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:00:33]process_action_free get_value [00:00:33]json_value_free [00:00:33]json_value_free done [00:00:33]process_json_proto returns [00:00:33]Send response to host [00:00:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":898485.94,"fm.sale_refund.total":12447.00,"fm.buy.total":0.00,"shift.sale.total":57512.67,"shift.sale.total_cash":39284.00,"shift.sale_refund.total":1011.00,"shift.sale_refund.total_cash":310.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:00:33]free response buf [00:00:33]execute_script done [00:00:33]execute_script returns [00:00:33]free content buf [00:00:33]Sock 8.Close socket [00:00:33]Sock 8.Thread stoped [00:00:33]accept exits with 9 [00:00:33]New connection [00:00:33]New thread 3067460964 created [00:00:33]Thread 3067317604 joined [00:00:33]Waiting for new connection... [00:00:33] Sock 9.Parse request [00:00:33]Sock 9.Check first char [00:00:33]Sock 9.First char is OK [00:00:33]request: POST /json_proto HTTP/1.0 [00:00:33]Method: POST [00:00:33]URL: /json_proto [00:00:33]Method is POST - this is cgi request [00:00:33]url: /json_proto [00:00:33]query_string will be loaded in cgi processing [00:00:33]execute_cgi json_proto POST (null) [00:00:33]execute_cgi path=json_proto method=POST [00:00:33]POST find Content-Length [00:00:33]Host: 172.17.45.132:8080 [00:00:33]Content-Length: 263 [00:00:33]Content-Type: application/json [00:00:33] [00:00:33]POST finish read [00:00:33]Found Content-Length = 263 [00:00:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0416\u044D\u044D\u043D\u043A\u0443\u043B\u043E\u0432 \u0416. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:00:33]execute_script... [00:00:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0416\u044D\u044D\u043D\u043A\u0443\u043B\u043E\u0432 \u0416. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:00:33]POST & json_proto [00:00:33]process_json_proto [00:00:33]json parsed OK: [00:00:33]protocol is kg_v1.0 [00:00:33]action value=x_report [00:00:33]process_action x_report [00:00:33]cmd_x_report [00:00:33]MH_GetDate [00:00:33]Write to MH i2c: F0 00 00 AE 68 05 [00:00:33]Write i2c OK [00:00:33]MH_I2C_Read... [00:00:33]Read from MH i2c: F0 [00:00:33]MH_I2C_Read... [00:00:33]Read from MH i2c: F0 09 00 [00:00:33]MH_I2C_Read... [00:00:33]Read from MH i2c: F0 09 00 AE 68 00 A9 DB A6 66 E3 0B 90 66 82 [00:00:33]GetLastDocTimeStamp 1722209939 [00:00:33]current date 1722211241 [00:00:33]FM_GetShiftState [00:00:33]SAM_PROTO_GetShiftState [00:00:33]wFMCommunicate request_size=4 [00:00:33]MH_SAM_APDU [00:00:33]CAPDU: 80 13 01 00 [00:00:33]Write to MH i2c: E2 08 00 AF 68 80 13 01 00 00 00 00 00 94 [00:00:33]Write i2c OK [00:00:33]MH_I2C_Read... [00:00:33]Read from MH i2c: E2 [00:00:33]MH_I2C_Read... [00:00:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:00:33]Read from MH i2c: E2 0E 00 [00:00:33]MH_I2C_Read... [00:00:33]Read from MH i2c: E2 0E 00 AF 68 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 88 [00:00:33]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [00:00:33]wFMCommunicate OK [00:00:33]SAM_PROTO_GetShiftState done [00:00:33]FM_GetShiftState done [00:00:33]KKMCreateXReportDocument [00:00:33]Load OK [00:00:33]Malloc new data [00:00:33]MH_GetDate [00:00:33]Write to MH i2c: F0 00 00 B0 68 07 [00:00:33]Write i2c OK [00:00:33]MH_I2C_Read... [00:00:33]Read from MH i2c: F0 [00:00:33]MH_I2C_Read... [00:00:33]Read from MH i2c: F0 09 00 [00:00:33]MH_I2C_Read... [00:00:33]Read from MH i2c: F0 09 00 B0 68 00 A9 DB A6 66 E3 0B 90 66 84 [00:00:33]Malloc new data [00:00:33]Malloc new data [00:00:33]wFMCommunicate request_size=4 [00:00:33]MH_SAM_APDU [00:00:33]CAPDU: 80 11 00 00 [00:00:33]Write to MH i2c: E2 08 00 B1 68 80 11 00 00 00 00 00 00 93 [00:00:33]Write i2c OK [00:00:33]MH_I2C_Read... [00:00:33]Read from MH i2c: E2 [00:00:33]MH_I2C_Read... [00:00:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:00:33]Read from MH i2c: E2 17 00 [00:00:33]MH_I2C_Read... [00:00:33]Read from MH i2c: E2 17 00 B1 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 E3 [00:00:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [00:00:33]wFMCommunicate OK [00:00:33]SAM_PROTO_GetFieldsCounters [00:00:33]wFMCommunicate request_size=4 [00:00:33]MH_SAM_APDU [00:00:33]CAPDU: 80 13 00 00 [00:00:33]Write to MH i2c: E2 08 00 B2 68 80 13 00 00 00 00 00 00 96 [00:00:33]Write i2c OK [00:00:33]MH_I2C_Read... [00:00:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:00:33]Read from MH i2c: E2 [00:00:33]MH_I2C_Read... [00:00:33]Read from MH i2c: E2 62 00 [00:00:33]MH_I2C_Read... [00:00:33]Read from MH i2c: E2 62 00 B2 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 63 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 8A [00:00:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 63 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:00:33]wFMCommunicate OK [00:00:33]SAM_PROTO_GetFieldsCounters done [00:00:33]Malloc new data [00:00:33]Malloc new data [00:00:33]Malloc new data [00:00:33]KKMCreateXReportDocument OK [00:00:33]KKMSetXReportData OK [00:00:33]KKMPrepareXReportFMData [00:00:33]SAM_PROTO_GetShiftData [00:00:33]wFMCommunicate request_size=4 [00:00:33]MH_SAM_APDU [00:00:33]CAPDU: 80 13 02 00 [00:00:33]Write to MH i2c: E2 08 00 B3 68 80 13 02 00 00 00 00 00 99 [00:00:33]Write i2c OK [00:00:33]MH_I2C_Read... [00:00:33]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:00:33]Read from MH i2c: E2 [00:00:33]MH_I2C_Read... [00:00:33]Read from MH i2c: E2 FD 00 [00:00:33]MH_I2C_Read... [00:00:33]Read from MH i2c: E2 FD 00 B3 68 00 BA 04 AA 04 B6 04 6E 04 04 00 C6 00 00 00 69 04 9B 00 6F 04 04 00 C2 00 00 00 B1 04 03 00 E3 C1 57 70 04 03 00 50 F1 3B 72 04 03 00 93 D0 1B 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 D4 51 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 BC C6 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 99 00 6F 04 04 00 04 00 00 00 B1 04 03 00 EC 8A 01 70 04 02 00 18 79 72 04 03 00 D4 11 01 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 F0 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 D9 [00:00:34]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 C6 00 00 00 69 04 9B 00 6F 04 04 00 C2 00 00 00 B1 04 03 00 E3 C1 57 70 04 03 00 50 F1 3B 72 04 03 00 93 D0 1B 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 D4 51 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 BC C6 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 99 00 6F 04 04 00 04 00 00 00 B1 04 03 00 EC 8A 01 70 04 02 00 18 79 72 04 03 00 D4 11 01 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 F0 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:00:34]wFMCommunicate OK [00:00:34]wFMCommunicate request_size=4 [00:00:34]MH_SAM_APDU [00:00:34]CAPDU: 80 17 00 00 [00:00:34]Write to MH i2c: E2 08 00 B4 68 80 17 00 00 00 00 00 00 9C [00:00:34]Write i2c OK [00:00:34]MH_I2C_Read... [00:00:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:34]Read from MH i2c: E2 [00:00:34]MH_I2C_Read... [00:00:34]Read from MH i2c: E2 FD 00 [00:00:34]MH_I2C_Read... [00:00:34]Read from MH i2c: E2 FD 00 B4 68 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 C8 [00:00:34]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 [00:00:34]wFMCommunicate OK [00:00:34]wFMCommunicate request_size=4 [00:00:34]MH_SAM_APDU [00:00:34]CAPDU: 80 17 00 00 [00:00:34]Write to MH i2c: E2 08 00 B5 68 80 17 00 00 00 00 00 00 9D [00:00:34]Write i2c OK [00:00:34]MH_I2C_Read... [00:00:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:34]Read from MH i2c: E2 [00:00:34]MH_I2C_Read... [00:00:34]Read from MH i2c: E2 FD 00 [00:00:34]MH_I2C_Read... [00:00:34]Read from MH i2c: E2 FD 00 B5 68 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 C9 [00:00:34]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 [00:00:35]wFMCommunicate OK [00:00:35]wFMCommunicate request_size=4 [00:00:35]MH_SAM_APDU [00:00:35]CAPDU: 80 17 00 00 [00:00:35]Write to MH i2c: E2 08 00 B6 68 80 17 00 00 00 00 00 00 9E [00:00:35]Write i2c OK [00:00:35]MH_I2C_Read... [00:00:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:35]Read from MH i2c: E2 [00:00:35]MH_I2C_Read... [00:00:35]Read from MH i2c: E2 FD 00 [00:00:35]MH_I2C_Read... [00:00:35]Read from MH i2c: E2 FD 00 B6 68 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 16 [00:00:35]RAPDU: 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 [00:00:35]wFMCommunicate OK [00:00:35]wFMCommunicate request_size=4 [00:00:35]MH_SAM_APDU [00:00:35]CAPDU: 80 17 00 00 [00:00:35]Write to MH i2c: E2 08 00 B7 68 80 17 00 00 00 00 00 00 9F [00:00:35]Write i2c OK [00:00:35]MH_I2C_Read... [00:00:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [00:00:35]Read from MH i2c: E2 [00:00:35]MH_I2C_Read... [00:00:35]Read from MH i2c: E2 D7 00 [00:00:35]MH_I2C_Read... [00:00:35]Read from MH i2c: E2 D7 00 B7 68 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 82 [00:00:35]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 OFD Sender: No OFD packet to send [00:00:36]09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:00:36]wFMCommunicate OK [00:00:36]SAM_PROTO_GetShiftData done [00:00:36]1194 (1206) - счетчики итогов смены [00:00:36] 1134 (4) - 198 - количество чеков со всеми признаками расчетов [00:00:36] 1129 (155) - счетчики операций «приход» [00:00:36] 1135 (4) - 194 - количество чеков по признаку расчетов [00:00:36] 1201 (3) - 57512.67 - общая итоговая сумма в чеках [00:00:36] 1136 (3) - 39284.00 - итоговая сумма в чеках наличными [00:00:36] 1138 (3) - 18228.67 - итоговая сумма в чеках безналичными [00:00:36] 1024 (122) - суммы налогов [00:00:36] 1006 (9) - суммы НДС [00:00:36] 1010 (1) - 0% - код ставки НДС [00:00:36] 1011 (0) - 0.00 - сумма НДС по ставке [00:00:36] 1006 (12) - суммы НДС [00:00:36] 1010 (1) - 12% - код ставки НДС [00:00:36] 1011 (3) - 6107.72 - сумма НДС по ставке [00:00:36] 1007 (9) - суммы НСП [00:00:36] 1014 (1) - 0% - код ставки НСП [00:00:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:36] 1007 (11) - суммы НСП [00:00:36] 1014 (1) - 1% - код ставки НСП [00:00:36] 1015 (2) - 508.76 - сумма НСП по ставке [00:00:36] 1007 (9) - суммы НСП [00:00:36] 1014 (1) - 2% - код ставки НСП [00:00:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:36] 1007 (9) - суммы НСП [00:00:36] 1014 (1) - 3% - код ставки НСП [00:00:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:36] 1007 (9) - суммы НСП [00:00:36] 1014 (1) - 5% - код ставки НСП [00:00:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:36] 1007 (9) - суммы НСП [00:00:36] 1014 (1) - 0,50% - код ставки НСП [00:00:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:36] 1007 (9) - суммы НСП [00:00:36] 1014 (1) - 1,50% - код ставки НСП [00:00:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:36] 1130 (153) - счетчики операций «возврат прихода» [00:00:36] 1135 (4) - 4 - количество чеков по признаку расчетов [00:00:36] 1201 (3) - 1011.00 - общая итоговая сумма в чеках [00:00:36] 1136 (2) - 310.00 - итоговая сумма в чеках наличными [00:00:36] 1138 (3) - 701.00 - итоговая сумма в чеках безналичными [00:00:36] 1024 (121) - суммы налогов [00:00:36] 1006 (9) - суммы НДС [00:00:36] 1010 (1) - 0% - код ставки НДС [00:00:36] 1011 (0) - 0.00 - сумма НДС по ставке [00:00:36] 1006 (11) - суммы НДС [00:00:36] 1010 (1) - 12% - код ставки НДС [00:00:36] 1011 (2) - 107.36 - сумма НДС по ставке [00:00:36] 1007 (9) - суммы НСП [00:00:36] 1014 (1) - 0% - код ставки НСП [00:00:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:36] 1007 (11) - суммы НСП [00:00:36] 1014 (1) - 1% - код ставки НСП [00:00:36] 1015 (2) - 8.95 - сумма НСП по ставке [00:00:36] 1007 (9) - суммы НСП [00:00:36] 1014 (1) - 2% - код ставки НСП [00:00:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:36] 1007 (9) - суммы НСП [00:00:36] 1014 (1) - 3% - код ставки НСП [00:00:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:36] 1007 (9) - суммы НСП [00:00:36] 1014 (1) - 5% - код ставки НСП [00:00:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:36] 1007 (9) - суммы НСП [00:00:36] 1014 (1) - 0,50% - код ставки НСП [00:00:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:36] 1007 (9) - суммы НСП [00:00:36] 1014 (1) - 1,50% - код ставки НСП [00:00:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:36] 1131 (141) - счетчики операций «расход» [00:00:36] 1135 (4) - 0 - количество чеков по признаку расчетов [00:00:36] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:00:36] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:00:36] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:00:36] 1024 (117) - суммы налогов [00:00:36] 1006 (9) - суммы НДС [00:00:36] 1010 (1) - 0% - код ставки НДС [00:00:36] 1011 (0) - 0.00 - сумма НДС по ставке [00:00:36] 1006 (9) - суммы НДС [00:00:36] 1010 (1) - 12% - код ставки НДС [00:00:36] 1011 (0) - 0.00 - сумма НДС по ставке [00:00:36] 1007 (9) - суммы НСП [00:00:36] 1014 (1) - 0% - код ставки НСП [00:00:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:36] 1007 (9) - суммы НСП [00:00:36] 1014 (1) - 1% - код ставки НСП [00:00:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:36] 1007 (9) - суммы НСП [00:00:36] 1014 (1) - 2% - код ставки НСП [00:00:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:36] 1007 (9) - суммы НСП [00:00:36] 1014 (1) - 3% - код ставки НСП [00:00:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:36] 1007 (9) - суммы НСП [00:00:36] 1014 (1) - 5% - код ставки НСП [00:00:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:36] 1007 (9) - суммы НСП [00:00:36] 1014 (1) - 0,50% - код ставки НСП [00:00:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:36] 1007 (9) - суммы НСП [00:00:36] 1014 (1) - 1,50% - код ставки НСП [00:00:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:36] 1132 (141) - счетчики операций «возврат расхода» [00:00:36] 1135 (4) - 0 - количество чеков по признаку расчетов [00:00:36] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:00:36] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:00:36] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:00:36] 1024 (117) - суммы налогов [00:00:36] 1006 (9) - суммы НДС [00:00:36] 1010 (1) - 0% - код ставки НДС [00:00:36] 1011 (0) - 0.00 - сумма НДС по ставке [00:00:36] 1006 (9) - суммы НДС [00:00:36] 1010 (1) - 12% - код ставки НДС [00:00:36] 1011 (0) - 0.00 - сумма НДС по ставке [00:00:36] 1007 (9) - суммы НСП [00:00:36] 1014 (1) - 0% - код ставки НСП [00:00:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:36] 1007 (9) - суммы НСП [00:00:36] 1014 (1) - 1% - код ставки НСП [00:00:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:36] 1007 (9) - суммы НСП [00:00:36] 1014 (1) - 2% - код ставки НСП [00:00:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:36] 1007 (9) - суммы НСП [00:00:36] 1014 (1) - 3% - код ставки НСП [00:00:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:36] 1007 (9) - суммы НСП [00:00:36] 1014 (1) - 5% - код ставки НСП [00:00:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:36] 1007 (9) - суммы НСП [00:00:36] 1014 (1) - 0,50% - код ставки НСП [00:00:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:36] 1007 (9) - суммы НСП [00:00:36] 1014 (1) - 1,50% - код ставки НСП [00:00:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:36] 1133 (588) - - счетчики коррекции - не используются [00:00:36]SetTLVBufToDocument [00:00:36]Processing tag 1194 (04AA) [00:00:36]Load OK [00:00:36]SetTLVBufToDocument [00:00:36]Processing tag 1134 (046E) [00:00:36]Malloc new data [00:00:36]Processing tag 1129 (0469) [00:00:36]Load OK [00:00:36]SetTLVBufToDocument [00:00:36]Processing tag 1135 (046F) [00:00:36]Malloc new data [00:00:36]Processing tag 1201 (04B1) [00:00:36]Malloc new data [00:00:36]Processing tag 1136 (0470) [00:00:36]Malloc new data [00:00:36]Processing tag 1138 (0472) [00:00:36]Malloc new data [00:00:36]Processing tag 1024 (0400) [00:00:36]Load OK [00:00:36]SetTLVBufToDocument [00:00:36]Processing tag 1006 (03EE) [00:00:36]Load OK [00:00:36]SetTLVBufToDocument [00:00:36]Processing tag 1010 (03F2) [00:00:36]Malloc new data [00:00:36]Processing tag 1011 (03F3) [00:00:36]Malloc new data [00:00:36]SetTLVBufToDocument err=0 [00:00:36]Processing tag 1006 (03EE) [00:00:36]Load OK [00:00:36]SetTLVBufToDocument [00:00:36]Processing tag 1010 (03F2) [00:00:36]Malloc new data [00:00:36]Processing tag 1011 (03F3) [00:00:36]Malloc new data [00:00:36]SetTLVBufToDocument err=0 [00:00:36]Processing tag 1007 (03EF) [00:00:36]Load OK [00:00:36]SetTLVBufToDocument [00:00:36]Processing tag 1014 (03F6) [00:00:36]Malloc new data [00:00:36]Processing tag 1015 (03F7) [00:00:36]Malloc new data [00:00:36]SetTLVBufToDocument err=0 [00:00:36]Processing tag 1007 (03EF) [00:00:36]Load OK [00:00:36]SetTLVBufToDocument [00:00:36]Processing tag 1014 (03F6) [00:00:36]Malloc new data [00:00:36]Processing tag 1015 (03F7) [00:00:36]Malloc new data [00:00:36]SetTLVBufToDocument err=0 [00:00:36]Processing tag 1007 (03EF) [00:00:36]Load OK [00:00:36]SetTLVBufToDocument [00:00:36]Processing tag 1014 (03F6) [00:00:36]Malloc new data [00:00:36]Processing tag 1015 (03F7) [00:00:36]Malloc new data [00:00:36]SetTLVBufToDocument err=0 [00:00:36]Processing tag 1007 (03EF) [00:00:36]Load OK [00:00:36]SetTLVBufToDocument [00:00:36]Processing tag 1014 (03F6) [00:00:36]Malloc new data [00:00:36]Processing tag 1015 (03F7) [00:00:36]Malloc new data [00:00:36]SetTLVBufToDocument err=0 [00:00:36]Processing tag 1007 (03EF) [00:00:36]Load OK [00:00:36]SetTLVBufToDocument [00:00:36]Processing tag 1014 (03F6) [00:00:36]Malloc new data [00:00:36]Processing tag 1015 (03F7) [00:00:36]Malloc new data [00:00:36]SetTLVBufToDocument err=0 [00:00:36]Processing tag 1007 (03EF) [00:00:36]Load OK [00:00:36]SetTLVBufToDocument [00:00:36]Processing tag 1014 (03F6) [00:00:36]Malloc new data [00:00:36]Processing tag 1015 (03F7) [00:00:36]Malloc new data [00:00:36]SetTLVBufToDocument err=0 [00:00:36]Processing tag 1007 (03EF) [00:00:36]Load OK [00:00:36]SetTLVBufToDocument [00:00:36]Processing tag 1014 (03F6) [00:00:36]Malloc new data [00:00:36]Processing tag 1015 (03F7) [00:00:36]Malloc new data [00:00:36]SetTLVBufToDocument err=0 [00:00:36]SetTLVBufToDocument err=0 [00:00:36]SetTLVBufToDocument err=0 [00:00:36]Processing tag 1130 (046A) [00:00:36]Load OK [00:00:36]SetTLVBufToDocument [00:00:36]Processing tag 1135 (046F) [00:00:36]Malloc new data [00:00:36]Processing tag 1201 (04B1) [00:00:36]Malloc new data [00:00:36]Processing tag 1136 (0470) [00:00:36]Malloc new data [00:00:36]Processing tag 1138 (0472) [00:00:36]Malloc new data [00:00:36]Processing tag 1024 (0400) [00:00:36]Load OK [00:00:36]SetTLVBufToDocument [00:00:36]Processing tag 1006 (03EE) [00:00:36]Load OK [00:00:36]SetTLVBufToDocument [00:00:36]Processing tag 1010 (03F2) [00:00:36]Malloc new data [00:00:36]Processing tag 1011 (03F3) [00:00:36]Malloc new data [00:00:36]SetTLVBufToDocument err=0 [00:00:36]Processing tag 1006 (03EE) [00:00:36]Load OK [00:00:36]SetTLVBufToDocument [00:00:36]Processing tag 1010 (03F2) [00:00:36]Malloc new data [00:00:36]Processing tag 1011 (03F3) [00:00:36]Malloc new data [00:00:36]SetTLVBufToDocument err=0 [00:00:36]Processing tag 1007 (03EF) [00:00:36]Load OK [00:00:36]SetTLVBufToDocument [00:00:36]Processing tag 1014 (03F6) [00:00:36]Malloc new data [00:00:36]Processing tag 1015 (03F7) [00:00:36]Malloc new data [00:00:36]SetTLVBufToDocument err=0 [00:00:36]Processing tag 1007 (03EF) [00:00:36]Load OK [00:00:36]SetTLVBufToDocument [00:00:36]Processing tag 1014 (03F6) [00:00:36]Malloc new data [00:00:36]Processing tag 1015 (03F7) [00:00:36]Malloc new data [00:00:36]SetTLVBufToDocument err=0 [00:00:36]Processing tag 1007 (03EF) [00:00:36]Load OK [00:00:36]SetTLVBufToDocument [00:00:36]Processing tag 1014 (03F6) [00:00:36]Malloc new data [00:00:36]Processing tag 1015 (03F7) [00:00:36]Malloc new data [00:00:36]SetTLVBufToDocument err=0 [00:00:36]Processing tag 1007 (03EF) [00:00:36]Load OK [00:00:36]SetTLVBufToDocument [00:00:36]Processing tag 1014 (03F6) [00:00:36]Malloc new data [00:00:36]Processing tag 1015 (03F7) [00:00:36]Malloc new data [00:00:36]SetTLVBufToDocument err=0 [00:00:36]Processing tag 1007 (03EF) [00:00:36]Load OK [00:00:36]SetTLVBufToDocument [00:00:36]Processing tag 1014 (03F6) [00:00:36]Malloc new data [00:00:36]Processing tag 1015 (03F7) [00:00:36]Malloc new data [00:00:36]SetTLVBufToDocument err=0 [00:00:36]Processing tag 1007 (03EF) [00:00:36]Load OK [00:00:36]SetTLVBufToDocument [00:00:36]Processing tag 1014 (03F6) [00:00:36]Malloc new data [00:00:36]Processing tag 1015 (03F7) [00:00:36]Malloc new data [00:00:36]SetTLVBufToDocument err=0 [00:00:36]Processing tag 1007 (03EF) [00:00:36]Load OK [00:00:36]SetTLVBufToDocument [00:00:36]Processing tag 1014 (03F6) [00:00:36]Malloc new data [00:00:36]Processing tag 1015 (03F7) [00:00:36]Malloc new data [00:00:36]SetTLVBufToDocument err=0 [00:00:36]SetTLVBufToDocument err=0 [00:00:36]SetTLVBufToDocument err=0 [00:00:36]Processing tag 1131 (046B) [00:00:36]Load OK [00:00:36]SetTLVBufToDocument [00:00:36]Processing tag 1135 (046F) [00:00:36]Malloc new data [00:00:36]Processing tag 1201 (04B1) [00:00:36]Malloc new data [00:00:36]Processing tag 1136 (0470) [00:00:36]Malloc new data [00:00:36]Processing tag 1138 (0472) [00:00:36]Malloc new data [00:00:36]Processing tag 1024 (0400) [00:00:36]Load OK [00:00:36]SetTLVBufToDocument [00:00:36]Processing tag 1006 (03EE) [00:00:36]Load OK [00:00:36]SetTLVBufToDocument [00:00:36]Processing tag 1010 (03F2) [00:00:36]Malloc new data [00:00:36]Processing tag 1011 (03F3) [00:00:36]Malloc new data [00:00:36]SetTLVBufToDocument err=0 [00:00:36]Processing tag 1006 (03EE) [00:00:36]Load OK [00:00:36]SetTLVBufToDocument [00:00:36]Processing tag 1010 (03F2) [00:00:36]Malloc new data [00:00:36]Processing tag 1011 (03F3) [00:00:36]Malloc new data [00:00:36]SetTLVBufToDocument err=0 [00:00:36]Processing tag 1007 (03EF) [00:00:36]Load OK [00:00:36]SetTLVBufToDocument [00:00:36]Processing tag 1014 (03F6) [00:00:36]Malloc new data [00:00:36]Processing tag 1015 (03F7) [00:00:36]Malloc new data [00:00:36]SetTLVBufToDocument err=0 [00:00:36]Processing tag 1007 (03EF) [00:00:36]Load OK [00:00:36]SetTLVBufToDocument [00:00:36]Processing tag 1014 (03F6) [00:00:36]Malloc new data [00:00:36]Processing tag 1015 (03F7) [00:00:36]Malloc new data [00:00:36]SetTLVBufToDocument err=0 [00:00:36]Processing tag 1007 (03EF) [00:00:36]Load OK [00:00:36]SetTLVBufToDocument [00:00:36]Processing tag 1014 (03F6) [00:00:36]Malloc new data [00:00:36]Processing tag 1015 (03F7) [00:00:36]Malloc new data [00:00:36]SetTLVBufToDocument err=0 [00:00:36]Processing tag 1007 (03EF) [00:00:36]Load OK [00:00:36]SetTLVBufToDocument [00:00:36]Processing tag 1014 (03F6) [00:00:36]Malloc new data [00:00:36]Processing tag 1015 (03F7) [00:00:36]Malloc new data [00:00:36]SetTLVBufToDocument err=0 [00:00:36]Processing tag 1007 (03EF) [00:00:36]Load OK [00:00:36]SetTLVBufToDocument [00:00:36]Processing tag 1014 (03F6) [00:00:36]Malloc new data [00:00:36]Processing tag 1015 (03F7) [00:00:36]Malloc new data [00:00:36]SetTLVBufToDocument err=0 [00:00:36]Processing tag 1007 (03EF) [00:00:36]Load OK [00:00:36]SetTLVBufToDocument [00:00:36]Processing tag 1014 (03F6) [00:00:36]Malloc new data [00:00:36]Processing tag 1015 (03F7) [00:00:36]Malloc new data [00:00:36]SetTLVBufToDocument err=0 [00:00:36]Processing tag 1007 (03EF) [00:00:36]Load OK [00:00:36]SetTLVBufToDocument [00:00:36]Processing tag 1014 (03F6) [00:00:36]Malloc new data [00:00:36]Processing tag 1015 (03F7) [00:00:36]Malloc new data [00:00:36]SetTLVBufToDocument err=0 [00:00:36]SetTLVBufToDocument err=0 [00:00:36]SetTLVBufToDocument err=0 [00:00:36]Processing tag 1132 (046C) [00:00:36]Load OK [00:00:36]SetTLVBufToDocument [00:00:36]Processing tag 1135 (046F) [00:00:36]Malloc new data [00:00:36]Processing tag 1201 (04B1) [00:00:36]Malloc new data [00:00:36]Processing tag 1136 (0470) [00:00:36]Malloc new data [00:00:36]Processing tag 1138 (0472) [00:00:36]Malloc new data [00:00:36]Processing tag 1024 (0400) [00:00:36]Load OK [00:00:36]SetTLVBufToDocument [00:00:36]Processing tag 1006 (03EE) [00:00:36]Load OK [00:00:36]SetTLVBufToDocument [00:00:36]Processing tag 1010 (03F2) [00:00:36]Malloc new data [00:00:36]Processing tag 1011 (03F3) [00:00:36]Malloc new data [00:00:36]SetTLVBufToDocument err=0 [00:00:36]Processing tag 1006 (03EE) [00:00:36]Load OK [00:00:36]SetTLVBufToDocument [00:00:36]Processing tag 1010 (03F2) [00:00:36]Malloc new data [00:00:36]Processing tag 1011 (03F3) [00:00:36]Malloc new data [00:00:36]SetTLVBufToDocument err=0 [00:00:36]Processing tag 1007 (03EF) [00:00:36]Load OK [00:00:36]SetTLVBufToDocument [00:00:36]Processing tag 1014 (03F6) [00:00:36]Malloc new data [00:00:36]Processing tag 1015 (03F7) [00:00:36]Malloc new data [00:00:36]SetTLVBufToDocument err=0 [00:00:36]Processing tag 1007 (03EF) [00:00:36]Load OK [00:00:36]SetTLVBufToDocument [00:00:36]Processing tag 1014 (03F6) [00:00:36]Malloc new data [00:00:36]Processing tag 1015 (03F7) [00:00:36]Malloc new data [00:00:36]SetTLVBufToDocument err=0 [00:00:36]Processing tag 1007 (03EF) [00:00:36]Load OK [00:00:37]SetTLVBufToDocument [00:00:37]Processing tag 1014 (03F6) [00:00:37]Malloc new data [00:00:37]Processing tag 1015 (03F7) [00:00:37]Malloc new data [00:00:37]SetTLVBufToDocument err=0 [00:00:37]Processing tag 1007 (03EF) [00:00:37]Load OK [00:00:37]SetTLVBufToDocument [00:00:37]Processing tag 1014 (03F6) [00:00:37]Malloc new data [00:00:37]Processing tag 1015 (03F7) [00:00:37]Malloc new data [00:00:37]SetTLVBufToDocument err=0 [00:00:37]Processing tag 1007 (03EF) [00:00:37]Load OK [00:00:37]SetTLVBufToDocument [00:00:37]Processing tag 1014 (03F6) [00:00:37]Malloc new data [00:00:37]Processing tag 1015 (03F7) [00:00:37]Malloc new data [00:00:37]SetTLVBufToDocument err=0 [00:00:37]Processing tag 1007 (03EF) [00:00:37]Load OK [00:00:37]SetTLVBufToDocument [00:00:37]Processing tag 1014 (03F6) [00:00:37]Malloc new data [00:00:37]Processing tag 1015 (03F7) [00:00:37]Malloc new data [00:00:37]SetTLVBufToDocument err=0 [00:00:37]Processing tag 1007 (03EF) [00:00:37]Load OK [00:00:37]SetTLVBufToDocument [00:00:37]Processing tag 1014 (03F6) [00:00:37]Malloc new data [00:00:37]Processing tag 1015 (03F7) [00:00:37]Malloc new data [00:00:37]SetTLVBufToDocument err=0 [00:00:37]SetTLVBufToDocument err=0 [00:00:37]SetTLVBufToDocument err=0 [00:00:37]Processing tag 1133 (046D) [00:00:37]Malloc new data [00:00:37]SetTLVBufToDocument err=0 [00:00:37]SetTLVBufToDocument err=0 [00:00:37]Malloc new data [00:00:37]SAM_PROTO_GetFMData [00:00:37]wFMCommunicate request_size=4 [00:00:37]MH_SAM_APDU [00:00:37]CAPDU: 80 13 03 00 [00:00:37]Write to MH i2c: E2 08 00 B8 68 80 13 03 00 00 00 00 00 9F [00:00:37]Write i2c OK [00:00:37]MH_I2C_Read... [00:00:37]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:00:37]Read from MH i2c: E2 [00:00:37]MH_I2C_Read... [00:00:37]Read from MH i2c: E2 FD 00 [00:00:37]MH_I2C_Read... [00:00:37]Read from MH i2c: E2 FD 00 B8 68 00 C0 04 85 04 BC 04 6E 04 04 00 49 08 00 00 69 04 9F 00 6F 04 04 00 38 08 00 00 B1 04 04 00 12 FB 5A 05 70 04 04 00 C4 A8 76 03 72 04 04 00 4E 52 E4 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 9B 91 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 65 21 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 53 04 02 EF 03 09 00 F6 03 01 90 00 AD [00:00:37]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 49 08 00 00 69 04 9F 00 6F 04 04 00 38 08 00 00 B1 04 04 00 12 FB 5A 05 70 04 04 00 C4 A8 76 03 72 04 04 00 4E 52 E4 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 9B 91 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 65 21 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 53 04 02 EF 03 09 00 F6 03 01 90 00 [00:00:37]wFMCommunicate OK [00:00:37]wFMCommunicate request_size=4 [00:00:37]MH_SAM_APDU [00:00:37]CAPDU: 80 17 00 00 [00:00:37]Write to MH i2c: E2 08 00 B9 68 80 17 00 00 00 00 00 00 A1 [00:00:37]Write i2c OK [00:00:37]MH_I2C_Read... [00:00:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:38]Read from MH i2c: E2 [00:00:38]MH_I2C_Read... [00:00:38]Read from MH i2c: E2 FD 00 [00:00:38]MH_I2C_Read... [00:00:38]Read from MH i2c: E2 FD 00 B9 68 00 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 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 90 00 00 [00:00:38]RAPDU: 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 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 90 00 [00:00:38]wFMCommunicate OK [00:00:38]wFMCommunicate request_size=4 [00:00:38]MH_SAM_APDU [00:00:38]CAPDU: 80 17 00 00 [00:00:38]Write to MH i2c: E2 08 00 BA 68 80 17 00 00 00 00 00 00 A2 [00:00:38]Write i2c OK [00:00:38]MH_I2C_Read... [00:00:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:38]Read from MH i2c: E2 [00:00:38]MH_I2C_Read... [00:00:38]Read from MH i2c: E2 FD 00 [00:00:38]MH_I2C_Read... [00:00:38]Read from MH i2c: E2 FD 00 BA 68 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 90 00 45 [00:00:38]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 90 00 [00:00:38]wFMCommunicate OK [00:00:39]wFMCommunicate request_size=4 [00:00:39]MH_SAM_APDU [00:00:39]CAPDU: 80 17 00 00 [00:00:39]Write to MH i2c: E2 08 00 BB 68 80 17 00 00 00 00 00 00 A3 [00:00:39]Write i2c OK [00:00:39]MH_I2C_Read... [00:00:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:39]Read from MH i2c: E2 [00:00:39]MH_I2C_Read... [00:00:39]Read from MH i2c: E2 FD 00 [00:00:39]MH_I2C_Read... [00:00:39]Read from MH i2c: E2 FD 00 BB 68 00 01 00 04 F7 03 00 00 EF 03 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 90 00 1B [00:00:39]RAPDU: 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:00:39]wFMCommunicate OK [00:00:39]wFMCommunicate request_size=4 [00:00:39]MH_SAM_APDU [00:00:39]CAPDU: 80 17 00 00 [00:00:39]Write to MH i2c: E2 08 00 BC 68 80 17 00 00 00 00 00 00 A4 [00:00:39]Write i2c OK [00:00:39]MH_I2C_Read... [00:00:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [00:00:39]Read from MH i2c: E2 [00:00:39]MH_I2C_Read... [00:00:39]Read from MH i2c: E2 DD 00 [00:00:39]MH_I2C_Read... [00:00:39]Read from MH i2c: E2 DD 00 BC 68 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 8C [00:00:39]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:00:40]wFMCommunicate OK [00:00:40]SAM_PROTO_GetFMData done [00:00:40]FM_GetFMData:85 04 BC 04 6E 04 04 00 49 08 00 00 69 04 9F 00 6F 04 04 00 38 08 00 00 B1 04 04 00 12 FB 5A 05 70 04 04 00 C4 A8 76 03 72 04 04 00 4E 52 E4 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 9B 91 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 65 21 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 53 04 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 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:00:40]oper:6F 04 04 00 38 08 00 00 B1 04 04 00 12 FB 5A 05 70 04 04 00 C4 A8 76 03 72 04 04 00 4E 52 E4 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 9B 91 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 65 21 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:00:40]total:12 FB 5A 05 [00:00:40]Malloc new data [00:00:40]oper:6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 53 04 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 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:00:40]total:1C FE 12 [00:00:40]Malloc new data [00:00:40]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:00:41]total: [00:00:41]Malloc new data [00:00:41]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:00:41]total: [00:00:41]Malloc new data [00:00:41]KKMPrepareXReportFMData err=0 [00:00:41]Х отчет ИНН: 02508201610067 Кассир: Жээнкулов Ж. 29.07.2024 00:00 Смена: 10 РНМ: 0000000000189667 ЗНМ: 0300000161 СНО: Общий режим Всего чеков: 198 ИТОГИ ПРИХОД Чеков: 194 Общий итог: 57512.67 Итого наличными: 39284.00 Итого безнал.: 18228.67 НДС 0% : 0.00 НДС 12% : 6107.72 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 508.76 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 4 Общий итог: 1011.00 Итого наличными: 310.00 Итого безнал.: 701.00 НДС 0% : 0.00 НДС 12% : 107.36 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 8.95 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 38974.00 НС Приход: 898485.94 НС Возвр.Прихода: 12447.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000002094248 [00:00:41]StoreToDocumentArchive [00:00:41]MH_GetDate [00:00:41]Write to MH i2c: F0 00 00 BD 68 14 [00:00:41]Write i2c OK [00:00:41]MH_I2C_Read... [00:00:41]Read from MH i2c: F0 [00:00:41]MH_I2C_Read... [00:00:41]Read from MH i2c: F0 09 00 [00:00:41]MH_I2C_Read... [00:00:41]OFD Sender: No OFD packet to send [00:00:41]Read from MH i2c: F0 09 00 BD 68 00 B1 DB A6 66 E3 0B 90 66 99 [00:00:41]shift 10 fd 1722211249 [00:00:41]Create dir for shift 0010 [00:00:41]save to /storage/0010/doc_1722211249 [00:00:41]save last doc name /storage/0010/doc_1722211249 to /storage/kkm_last_doc_name [00:00:41]save OK [00:00:41]Clear old archive folders... [00:00:41]NVStorageSaveData kkm_last_timestamp [00:00:41]File name is /storage/kkm_last_timestamp [00:00:41]Write 4 bytes [00:00:41]NVStorageSaveData done [00:00:41]ExternCall_PrintAddStr [00:00:41]wPrintStart [00:00:41]Write to MH i2c: 01 00 00 BE 68 26 [00:00:41]Write i2c OK [00:00:41]MH_I2C_Read... [00:00:41]Read from MH i2c: 01 [00:00:41]MH_I2C_Read... [00:00:41]Read from MH i2c: 01 07 00 [00:00:41]MH_I2C_Read... [00:00:41]Read from MH i2c: 01 07 00 BE 68 00 00 00 00 00 FF 0F 3B [00:00:41]RasterBufferAndPrint [00:00:41]line Х отчет [00:00:41]line ИНН: 02508201610067 [00:00:41]line Кассир: Жээнкулов Ж. [00:00:41]line 29.07.2024 00:00 [00:00:41]line Смена: 10 [00:00:41]line РНМ: 0000000000189667 [00:00:41]line ЗНМ: 0300000161 [00:00:41]line СНО: Общий режим [00:00:41]line Всего чеков: 198 [00:00:41]line ИТОГИ ПРИХОД [00:00:41]line Чеков: 194 [00:00:41]line Общий итог: 57512.67 [00:00:41]line Итого наличными: 39284.00 [00:00:41]line Итого безнал.: 18228.67 [00:00:41]line НДС 0% : 0.00 [00:00:41]line НДС 12% : 6107.72 [00:00:41]line НСП 0% : 0.00 [00:00:41]line НСП 1,50% : 0.00 [00:00:41]line НСП 0,50% : 0.00 [00:00:41]line НСП 5% : 0.00 [00:00:41]line НСП 3% : 0.00 [00:00:41]line НСП 2% : 0.00 [00:00:41]line НСП 1% : 508.76 [00:00:41]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:00:41]line Чеков: 4 [00:00:41]line Общий итог: 1011.00 [00:00:41]line Итого наличными: 310.00 [00:00:41]line Итого безнал.: 701.00 [00:00:41]line НДС 0% : 0.00 [00:00:41]line НДС 12% : 107.36 [00:00:41]line НСП 0% : 0.00 [00:00:41]line НСП 1,50% : 0.00 [00:00:41]line НСП 0,50% : 0.00 [00:00:41]line НСП 5% : 0.00 [00:00:41]line НСП 3% : 0.00 [00:00:41]line НСП 2% : 0.00 [00:00:41]line НСП 1% : 8.95 [00:00:41]line ИТОГИ РАСХОД [00:00:41]line Чеков: 0 [00:00:41]line Общий итог: 0.00 [00:00:41]line Итого наличными: 0.00 [00:00:41]line Итого безнал.: 0.00 [00:00:41]line НДС 0% : 0.00 [00:00:41]line НДС 12% : 0.00 [00:00:41]line НСП 0% : 0.00 [00:00:41]line НСП 1,50% : 0.00 [00:00:41]line НСП 0,50% : 0.00 [00:00:41]line НСП 5% : 0.00 [00:00:41]line НСП 3% : 0.00 [00:00:41]line НСП 2% : 0.00 [00:00:41]line НСП 1% : 0.00 [00:00:41]line ИТОГИ ВОЗВРАТ РАСХОДА [00:00:41]line Чеков: 0 [00:00:41]line Общий итог: 0.00 [00:00:41]line Итого наличными: 0.00 [00:00:41]line Итого безнал.: 0.00 [00:00:41]line НДС 0% : 0.00 [00:00:41]line НДС 12% : 0.00 [00:00:41]line НСП 0% : 0.00 [00:00:41]line НСП 1,50% : 0.00 [00:00:41]line НСП 0,50% : 0.00 [00:00:41]line НСП 5% : 0.00 [00:00:41]line НСП 3% : 0.00 [00:00:41]line НСП 2% : 0.00 [00:00:41]line НСП 1% : 0.00 [00:00:41]line Сумма внесений: 0.00 [00:00:41]line Сумма выплат: 0.00 [00:00:41]line Нал. в кассе: 38974.00 [00:00:41]line НС Приход: 898485.94 [00:00:41]line НС Возвр.Прихода: 12447.00 [00:00:41]line НС Расход: 0.00 [00:00:41]line НС Возвр.Расхода: 0.00 [00:00:41]line ФМ: 0000000002094248 [00:00:41]written 0, free lines is 4095 [00:00:41]Write to MH i2c: 01 00 00 09 69 72 [00:00:41]Write i2c OK [00:00:41]MH_I2C_Read... [00:00:41]Read from MH i2c: 01 [00:00:41]MH_I2C_Read... [00:00:41]Read from MH i2c: 01 07 00 [00:00:42]MH_I2C_Read... [00:00:42]Read from MH i2c: 01 07 00 09 69 00 00 00 00 00 1C 0B A0 [00:00:42]RasterBufferAndPrint [00:00:42]line [00:00:42]line [00:00:42]line [00:00:42]line [00:00:42]line [00:00:42]written 0, free lines is 2883 [00:00:42]MH_Cut [00:00:42]Write to MH i2c: D1 01 00 10 69 01 4B [00:00:42]Write i2c OK [00:00:42]MH_I2C_Read... [00:00:42]Read from MH i2c: D1 [00:00:42]MH_I2C_Read... [00:00:42]Read from MH i2c: D1 01 00 [00:00:42]MH_I2C_Read... [00:00:42]Read from MH i2c: D1 01 00 10 69 00 4A [00:00:42]Write to MH i2c: 01 00 00 11 69 7A [00:00:42]Write i2c OK [00:00:42]MH_I2C_Read... [00:00:42]*** Cut start [00:00:42]*** Partial cut [00:00:42]*** CUTSNS_PIN = 1 [00:00:43]*** CUTSNS_PIN = 0 [00:00:43]*** Brake cut motor [00:00:43]Read from MH i2c: 01 [00:00:43]MH_I2C_Read... [00:00:43]*** Stop cut motor [00:00:43]*** Cut end [00:00:43]Read from MH i2c: 01 07 00 [00:00:43]MH_I2C_Read... [00:00:43]Read from MH i2c: 01 07 00 11 69 00 00 00 00 00 FF 0F 8F [00:00:43]process_action x_report done [00:00:43]requested_data is exist [00:00:43]produce_requested_data [00:00:43]requested_item fd.num is exist - process it [00:00:43]SAM_PROTO_GetFieldsCounters [00:00:43]wFMCommunicate request_size=4 [00:00:43]MH_SAM_APDU [00:00:43]CAPDU: 80 13 00 00 [00:00:43]Write to MH i2c: E2 08 00 12 69 80 13 00 00 00 00 00 00 F7 [00:00:43]Write i2c OK [00:00:43]MH_I2C_Read... [00:00:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:00:43]Read from MH i2c: E2 [00:00:43]MH_I2C_Read... [00:00:43]Read from MH i2c: E2 62 00 [00:00:43]MH_I2C_Read... [00:00:43]Read from MH i2c: E2 62 00 12 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 63 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 EB [00:00:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 63 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:00:43]wFMCommunicate OK [00:00:43]SAM_PROTO_GetFieldsCounters done [00:00:43]requested_item shift.num is exist - process it [00:00:43]requested_item shift.opened is exist - process it [00:00:43]req_shift_opened [00:00:43]FM_GetShiftState [00:00:43]SAM_PROTO_GetShiftState [00:00:43]wFMCommunicate request_size=4 [00:00:43]MH_SAM_APDU [00:00:43]CAPDU: 80 13 01 00 [00:00:43]Write to MH i2c: E2 08 00 13 69 80 13 01 00 00 00 00 00 F9 [00:00:43]Write i2c OK [00:00:43]MH_I2C_Read... [00:00:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:00:43]Read from MH i2c: E2 [00:00:43]MH_I2C_Read... [00:00:43]Read from MH i2c: E2 0E 00 [00:00:43]MH_I2C_Read... [00:00:43]Read from MH i2c: E2 0E 00 13 69 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 ED [00:00:44]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [00:00:44]wFMCommunicate OK [00:00:44]SAM_PROTO_GetShiftState done [00:00:44]FM_GetShiftState done [00:00:44]req_shift_opened done [00:00:44]requested_item shift.open_date is exist - process it [00:00:44]req_shift_open_date [00:00:44]req_shift_open_date done [00:00:44]produce_requested_data done [00:00:44]produce_requested_data return {"fd.num":2147,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [00:00:44]process_action_free x_report [00:00:44]json_value_free [00:00:44]json_value_free done [00:00:44]process_json_proto returns [00:00:44]Send response to host [00:00:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":2147,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [00:00:44]free response buf [00:00:44]execute_script done [00:00:44]execute_script returns [00:00:44]free content buf [00:00:44]Sock 9.Close socket [00:00:44]Sock 9.Thread stoped [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:18]accept exits with 8 [00:01:18]New connection [00:01:18]New thread 3067317604 created [00:01:18]Thread 3067460964 joined [00:01:18]Waiting for new connection... [00:01:18] Sock 8.Parse request [00:01:18]Sock 8.Check first char [00:01:18]Sock 8.First char is OK [00:01:18]request: POST /json_proto HTTP/1.0 [00:01:18]Method: POST [00:01:18]URL: /json_proto [00:01:18]Method is POST - this is cgi request [00:01:18]url: /json_proto [00:01:18]query_string will be loaded in cgi processing [00:01:18]execute_cgi json_proto POST (null) [00:01:18]execute_cgi path=json_proto method=POST [00:01:18]POST find Content-Length [00:01:18]Host: 172.17.45.132:8080 [00:01:18]Content-Length: 215 [00:01:18]Content-Type: application/json [00:01:18] [00:01:18]POST finish read [00:01:18]Found Content-Length = 215 [00:01:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:01:18]execute_script... [00:01:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:01:18]POST & json_proto [00:01:18]process_json_proto [00:01:18]json parsed OK: [00:01:18]protocol is kg_v1.0 [00:01:18]action value=get_value [00:01:18]process_action get_value [00:01:18]cmd_get_value [00:01:18]process_action get_value done [00:01:18]requested_data is exist [00:01:18]produce_requested_data [00:01:18]requested_item kkm.sn is exist - process it [00:01:18]requested_item kkm.ver is exist - process it [00:01:18]requested_item fm.sn is exist - process it [00:01:18]wFMCommunicate request_size=4 [00:01:18]MH_SAM_APDU [00:01:18]CAPDU: 80 11 00 00 [00:01:18]Write to MH i2c: E2 08 00 14 69 80 11 00 00 00 00 00 00 F7 [00:01:18]Write i2c OK [00:01:18]MH_I2C_Read... [00:01:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:01:18]Read from MH i2c: E2 [00:01:18]MH_I2C_Read... [00:01:18]Read from MH i2c: E2 17 00 [00:01:18]MH_I2C_Read... [00:01:18]Read from MH i2c: E2 17 00 14 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 47 [00:01:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [00:01:18]wFMCommunicate OK [00:01:18]requested_item fd.num is exist - process it [00:01:18]SAM_PROTO_GetFieldsCounters [00:01:18]wFMCommunicate request_size=4 [00:01:18]MH_SAM_APDU [00:01:18]CAPDU: 80 13 00 00 [00:01:18]Write to MH i2c: E2 08 00 15 69 80 13 00 00 00 00 00 00 FA [00:01:18]Write i2c OK [00:01:18]MH_I2C_Read... [00:01:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:01:18]Read from MH i2c: E2 [00:01:18]MH_I2C_Read... [00:01:18]Read from MH i2c: E2 62 00 [00:01:18]MH_I2C_Read... [00:01:18]Read from MH i2c: E2 62 00 15 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 63 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 EE [00:01:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 63 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:01:18]wFMCommunicate OK [00:01:18]SAM_PROTO_GetFieldsCounters done [00:01:18]requested_item shift.num is exist - process it [00:01:18]requested_item shift.opened is exist - process it [00:01:18]req_shift_opened [00:01:18]FM_GetShiftState [00:01:18]SAM_PROTO_GetShiftState [00:01:18]wFMCommunicate request_size=4 [00:01:18]MH_SAM_APDU [00:01:18]CAPDU: 80 13 01 00 [00:01:18]Write to MH i2c: E2 08 00 16 69 80 13 01 00 00 00 00 00 FC [00:01:18]Write i2c OK [00:01:18]MH_I2C_Read... [00:01:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:01:18]Read from MH i2c: E2 [00:01:18]MH_I2C_Read... [00:01:18]Read from MH i2c: E2 0E 00 [00:01:18]MH_I2C_Read... [00:01:18]Read from MH i2c: E2 0E 00 16 69 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 F0 [00:01:18]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [00:01:18]wFMCommunicate OK [00:01:18]SAM_PROTO_GetShiftState done [00:01:18]FM_GetShiftState done [00:01:18]req_shift_opened done [00:01:18]requested_item shift.open_date is exist - process it [00:01:18]req_shift_open_date [00:01:18]req_shift_open_date done [00:01:18]produce_requested_data done [00:01:18]produce_requested_data return {"kkm.sn":"0300000161","kkm.ver":"v1.0","fm.sn":"0000000002094248","fd.num":2147,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648} [00:01:18]process_action_free get_value [00:01:18]json_value_free [00:01:18]json_value_free done [00:01:18]process_json_proto returns [00:01:18]Send response to host [00:01:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000161","kkm.ver":"v1.0","fm.sn":"0000000002094248","fd.num":2147,"shift.num":13,"shift.opened":1,"shift.open_date":1722125648}}} [00:01:18]free response buf [00:01:18]execute_script done [00:01:18]execute_script returns [00:01:18]free content buf [00:01:18]Sock 8.Close socket [00:01:18]Sock 8.Thread stoped [00:01:18]accept exits with 9 [00:01:18]New connection [00:01:18]New thread 3067460964 created [00:01:18]Thread 3067317604 joined [00:01:18]Waiting for new connection... [00:01:18] Sock 9.Parse request [00:01:18]Sock 9.Check first char [00:01:18]Sock 9.First char is OK [00:01:18]request: POST /json_proto HTTP/1.0 [00:01:18]Method: POST [00:01:18]URL: /json_proto [00:01:18]Method is POST - this is cgi request [00:01:18]url: /json_proto [00:01:18]query_string will be loaded in cgi processing [00:01:18]execute_cgi json_proto POST (null) [00:01:18]execute_cgi path=json_proto method=POST [00:01:18]POST find Content-Length [00:01:18]Host: 172.17.45.132:8080 [00:01:18]Content-Length: 331 [00:01:18]Content-Type: application/json [00:01:18] [00:01:18]POST finish read [00:01:18]Found Content-Length = 331 [00:01:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:01:18]execute_script... [00:01:18]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:01:18]POST & json_proto [00:01:18]process_json_proto [00:01:18]json parsed OK: [00:01:18]protocol is kg_v1.0 [00:01:18]action value=get_value [00:01:18]process_action get_value [00:01:18]cmd_get_value [00:01:18]process_action get_value done [00:01:18]requested_data is exist [00:01:18]produce_requested_data [00:01:18]requested_item fm.sale.total is exist - process it [00:01:18]SAM_PROTO_GetFMData [00:01:18]wFMCommunicate request_size=4 [00:01:18]MH_SAM_APDU [00:01:18]CAPDU: 80 13 03 00 [00:01:18]Write to MH i2c: E2 08 00 17 69 80 13 03 00 00 00 00 00 FF [00:01:18]Write i2c OK [00:01:18]MH_I2C_Read... [00:01:19]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:01:19]Read from MH i2c: E2 [00:01:19]MH_I2C_Read... [00:01:19]Read from MH i2c: E2 FD 00 [00:01:19]MH_I2C_Read... [00:01:19]Read from MH i2c: E2 FD 00 17 69 00 C0 04 85 04 BC 04 6E 04 04 00 49 08 00 00 69 04 9F 00 6F 04 04 00 38 08 00 00 B1 04 04 00 12 FB 5A 05 70 04 04 00 C4 A8 76 03 72 04 04 00 4E 52 E4 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 9B 91 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 65 21 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 53 04 02 EF 03 09 00 F6 03 01 90 00 0D [00:01:19]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 49 08 00 00 69 04 9F 00 6F 04 04 00 38 08 00 00 B1 04 04 00 12 FB 5A 05 70 04 04 00 C4 A8 76 03 72 04 04 00 4E 52 E4 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 9B 91 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 65 21 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 53 04 02 EF 03 09 00 F6 03 01 90 00 [00:01:19]wFMCommunicate OK [00:01:19]wFMCommunicate request_size=4 [00:01:19]MH_SAM_APDU [00:01:19]CAPDU: 80 17 00 00 [00:01:19]Write to MH i2c: E2 08 00 18 69 80 17 00 00 00 00 00 00 01 [00:01:19]Write i2c OK [00:01:19]MH_I2C_Read... [00:01:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:19]Read from MH i2c: E2 [00:01:19]MH_I2C_Read... [00:01:19]Read from MH i2c: E2 FD 00 [00:01:19]MH_I2C_Read... [00:01:19]Read from MH i2c: E2 FD 00 18 69 00 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 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 90 00 60 [00:01:19]RAPDU: 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 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 90 00 [00:01:19]wFMCommunicate OK [00:01:19]wFMCommunicate request_size=4 [00:01:19]MH_SAM_APDU [00:01:19]CAPDU: 80 17 00 00 [00:01:19]Write to MH i2c: E2 08 00 19 69 80 17 00 00 00 00 00 00 02 [00:01:19]Write i2c OK [00:01:19]MH_I2C_Read... [00:01:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:19]Read from MH i2c: E2 [00:01:19]MH_I2C_Read... [00:01:19]Read from MH i2c: E2 FD 00 [00:01:19]MH_I2C_Read... [00:01:19]Read from MH i2c: E2 FD 00 19 69 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 90 00 A5 [00:01:19]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 90 00 [00:01:19]wFMCommunicate OK [00:01:19]wFMCommunicate request_size=4 [00:01:19]MH_SAM_APDU [00:01:19]CAPDU: 80 17 00 00 [00:01:19]Write to MH i2c: E2 08 00 1A 69 80 17 00 00 00 00 00 00 03 [00:01:19]Write i2c OK [00:01:19]MH_I2C_Read... [00:01:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:19]Read from MH i2c: E2 [00:01:19]MH_I2C_Read... [00:01:19]Read from MH i2c: E2 FD 00 [00:01:19]MH_I2C_Read... [00:01:19]Read from MH i2c: E2 FD 00 1A 69 00 01 00 04 F7 03 00 00 EF 03 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 90 00 7B [00:01:19]RAPDU: 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:01:19]wFMCommunicate OK [00:01:19]wFMCommunicate request_size=4 [00:01:19]MH_SAM_APDU [00:01:19]CAPDU: 80 17 00 00 [00:01:19]Write to MH i2c: E2 08 00 1B 69 80 17 00 00 00 00 00 00 04 [00:01:19]Write i2c OK [00:01:19]MH_I2C_Read... [00:01:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [00:01:20]Read from MH i2c: E2 [00:01:20]MH_I2C_Read... [00:01:20]Read from MH i2c: E2 DD 00 [00:01:20]MH_I2C_Read... [00:01:20]Read from MH i2c: E2 DD 00 1B 69 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 EC [00:01:20]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:01:20]wFMCommunicate OK [00:01:20]SAM_PROTO_GetFMData done [00:01:20]requested_item fm.sale_refund.total is exist - process it [00:01:20]requested_item fm.buy.total is exist - process it [00:01:20]requested_item shift.sale.total is exist - process it [00:01:20]SAM_PROTO_GetShiftData [00:01:20]wFMCommunicate request_size=4 [00:01:20]MH_SAM_APDU [00:01:20]CAPDU: 80 13 02 00 [00:01:20]Write to MH i2c: E2 08 00 1C 69 80 13 02 00 00 00 00 00 03 [00:01:20]Write i2c OK [00:01:20]MH_I2C_Read... [00:01:20]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:01:20]Read from MH i2c: E2 [00:01:20]MH_I2C_Read... [00:01:20]Read from MH i2c: E2 FD 00 [00:01:20]MH_I2C_Read... [00:01:20]Read from MH i2c: E2 FD 00 1C 69 00 BA 04 AA 04 B6 04 6E 04 04 00 C6 00 00 00 69 04 9B 00 6F 04 04 00 C2 00 00 00 B1 04 03 00 E3 C1 57 70 04 03 00 50 F1 3B 72 04 03 00 93 D0 1B 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 D4 51 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 BC C6 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 99 00 6F 04 04 00 04 00 00 00 B1 04 03 00 EC 8A 01 70 04 02 00 18 79 72 04 03 00 D4 11 01 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 F0 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 43 [00:01:20]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 C6 00 00 00 69 04 9B 00 6F 04 04 00 C2 00 00 00 B1 04 03 00 E3 C1 57 70 04 03 00 50 F1 3B 72 04 03 00 93 D0 1B 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 D4 51 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 BC C6 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 99 00 6F 04 04 00 04 00 00 00 B1 04 03 00 EC 8A 01 70 04 02 00 18 79 72 04 03 00 D4 11 01 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 F0 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:01:20]wFMCommunicate OK [00:01:20]wFMCommunicate request_size=4 [00:01:20]MH_SAM_APDU [00:01:20]CAPDU: 80 17 00 00 [00:01:20]Write to MH i2c: E2 08 00 1D 69 80 17 00 00 00 00 00 00 06 [00:01:20]Write i2c OK [00:01:20]MH_I2C_Read... [00:01:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:20]Read from MH i2c: E2 [00:01:20]MH_I2C_Read... [00:01:20]Read from MH i2c: E2 FD 00 [00:01:20]MH_I2C_Read... [00:01:20]Read from MH i2c: E2 FD 00 1D 69 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 32 [00:01:21]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 [00:01:21]wFMCommunicate OK [00:01:21]wFMCommunicate request_size=4 [00:01:21]MH_SAM_APDU [00:01:21]CAPDU: 80 17 00 00 [00:01:21]Write to MH i2c: E2 08 00 1E 69 80 17 00 00 00 00 00 00 07 [00:01:21]Write i2c OK [00:01:21]MH_I2C_Read... [00:01:21]OFD Sender: No OFD packet to send [00:01:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:21]Read from MH i2c: E2 [00:01:21]MH_I2C_Read... [00:01:21]Read from MH i2c: E2 FD 00 [00:01:21]MH_I2C_Read... [00:01:21]Read from MH i2c: E2 FD 00 1E 69 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 33 [00:01:21]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 [00:01:21]wFMCommunicate OK [00:01:21]wFMCommunicate request_size=4 [00:01:21]MH_SAM_APDU [00:01:21]CAPDU: 80 17 00 00 [00:01:21]Write to MH i2c: E2 08 00 1F 69 80 17 00 00 00 00 00 00 08 [00:01:21]Write i2c OK [00:01:21]MH_I2C_Read... [00:01:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:21]Read from MH i2c: E2 [00:01:21]MH_I2C_Read... [00:01:21]Read from MH i2c: E2 FD 00 [00:01:21]MH_I2C_Read... [00:01:21]Read from MH i2c: E2 FD 00 1F 69 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 80 [00:01:21]RAPDU: 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 [00:01:21]wFMCommunicate OK [00:01:21]wFMCommunicate request_size=4 [00:01:21]MH_SAM_APDU [00:01:21]CAPDU: 80 17 00 00 [00:01:21]Write to MH i2c: E2 08 00 20 69 80 17 00 00 00 00 00 00 09 [00:01:21]Write i2c OK [00:01:21]MH_I2C_Read... [00:01:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [00:01:22]Read from MH i2c: E2 [00:01:22]MH_I2C_Read... [00:01:22]Read from MH i2c: E2 D7 00 [00:01:22]MH_I2C_Read... [00:01:22]Read from MH i2c: E2 D7 00 20 69 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 EC [00:01:22]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:01:22]wFMCommunicate OK [00:01:22]SAM_PROTO_GetShiftData done [00:01:22]requested_item shift.sale.total_cash is exist - process it [00:01:22]requested_item shift.sale_refund.total is exist - process it [00:01:22]requested_item shift.sale_refund.total_cash is exist - process it [00:01:22]requested_item shift.buy.total is exist - process it [00:01:22]requested_item shift.buy.total_cash is exist - process it [00:01:22]produce_requested_data done [00:01:22]produce_requested_data return {"fm.sale.total":898485.94,"fm.sale_refund.total":12447.00,"fm.buy.total":0.00,"shift.sale.total":57512.67,"shift.sale.total_cash":39284.00,"shift.sale_refund.total":1011.00,"shift.sale_refund.total_cash":310.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:01:22]process_action_free get_value [00:01:22]json_value_free [00:01:22]json_value_free done [00:01:22]process_json_proto returns [00:01:22]Send response to host [00:01:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":898485.94,"fm.sale_refund.total":12447.00,"fm.buy.total":0.00,"shift.sale.total":57512.67,"shift.sale.total_cash":39284.00,"shift.sale_refund.total":1011.00,"shift.sale_refund.total_cash":310.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:01:22]free response buf [00:01:22]execute_script done [00:01:22]execute_script returns [00:01:22]free content buf [00:01:22]Sock 9.Close socket [00:01:22]Sock 9.Thread stoped [00:01:22]accept exits with 8 [00:01:22]New connection [00:01:22]New thread 3067317604 created [00:01:22]Thread 3067460964 joined [00:01:22]Waiting for new connection... [00:01:22] Sock 8.Parse request [00:01:22]Sock 8.Check first char [00:01:22]Sock 8.First char is OK [00:01:22]request: POST /json_proto HTTP/1.0 [00:01:22]Method: POST [00:01:22]URL: /json_proto [00:01:22]Method is POST - this is cgi request [00:01:22]url: /json_proto [00:01:22]query_string will be loaded in cgi processing [00:01:22]execute_cgi json_proto POST (null) [00:01:22]execute_cgi path=json_proto method=POST [00:01:22]POST find Content-Length [00:01:22]Host: 172.17.45.132:8080 [00:01:22]Content-Length: 331 [00:01:22]Content-Type: application/json [00:01:22] [00:01:22]POST finish read [00:01:22]Found Content-Length = 331 [00:01:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:01:22]execute_script... [00:01:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:01:22]POST & json_proto [00:01:22]process_json_proto [00:01:22]json parsed OK: [00:01:22]protocol is kg_v1.0 [00:01:22]action value=get_value [00:01:22]process_action get_value [00:01:22]cmd_get_value [00:01:22]process_action get_value done [00:01:22]requested_data is exist [00:01:22]produce_requested_data [00:01:22]requested_item fm.sale.total is exist - process it [00:01:22]SAM_PROTO_GetFMData [00:01:22]wFMCommunicate request_size=4 [00:01:22]MH_SAM_APDU [00:01:22]CAPDU: 80 13 03 00 [00:01:22]Write to MH i2c: E2 08 00 21 69 80 13 03 00 00 00 00 00 09 [00:01:22]Write i2c OK [00:01:22]MH_I2C_Read... [00:01:22]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:01:22]Read from MH i2c: E2 [00:01:22]MH_I2C_Read... [00:01:22]Read from MH i2c: E2 FD 00 [00:01:22]MH_I2C_Read... [00:01:22]Read from MH i2c: E2 FD 00 21 69 00 C0 04 85 04 BC 04 6E 04 04 00 49 08 00 00 69 04 9F 00 6F 04 04 00 38 08 00 00 B1 04 04 00 12 FB 5A 05 70 04 04 00 C4 A8 76 03 72 04 04 00 4E 52 E4 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 9B 91 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 65 21 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 53 04 02 EF 03 09 00 F6 03 01 90 00 17 [00:01:22]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 49 08 00 00 69 04 9F 00 6F 04 04 00 38 08 00 00 B1 04 04 00 12 FB 5A 05 70 04 04 00 C4 A8 76 03 72 04 04 00 4E 52 E4 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 9B 91 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 65 21 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 53 04 02 EF 03 09 00 F6 03 01 90 00 [00:01:22]wFMCommunicate OK [00:01:22]wFMCommunicate request_size=4 [00:01:22]MH_SAM_APDU [00:01:22]CAPDU: 80 17 00 00 [00:01:22]Write to MH i2c: E2 08 00 22 69 80 17 00 00 00 00 00 00 0B [00:01:22]Write i2c OK [00:01:22]MH_I2C_Read... [00:01:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:23]Read from MH i2c: E2 [00:01:23]MH_I2C_Read... [00:01:23]Read from MH i2c: E2 FD 00 [00:01:23]MH_I2C_Read... [00:01:23]Read from MH i2c: E2 FD 00 22 69 00 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 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 90 00 6A [00:01:23]RAPDU: 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 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 90 00 [00:01:23]wFMCommunicate OK [00:01:23]wFMCommunicate request_size=4 [00:01:23]MH_SAM_APDU [00:01:23]CAPDU: 80 17 00 00 [00:01:23]Write to MH i2c: E2 08 00 23 69 80 17 00 00 00 00 00 00 0C [00:01:23]Write i2c OK [00:01:23]MH_I2C_Read... [00:01:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:23]Read from MH i2c: E2 [00:01:23]MH_I2C_Read... [00:01:23]Read from MH i2c: E2 FD 00 [00:01:23]MH_I2C_Read... [00:01:23]Read from MH i2c: E2 FD 00 23 69 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 90 00 AF [00:01:23]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 90 00 [00:01:23]wFMCommunicate OK [00:01:23]wFMCommunicate request_size=4 [00:01:23]MH_SAM_APDU [00:01:23]CAPDU: 80 17 00 00 [00:01:23]Write to MH i2c: E2 08 00 24 69 80 17 00 00 00 00 00 00 0D [00:01:23]Write i2c OK [00:01:23]MH_I2C_Read... [00:01:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:23]Read from MH i2c: E2 [00:01:23]MH_I2C_Read... [00:01:23]Read from MH i2c: E2 FD 00 [00:01:23]MH_I2C_Read... [00:01:23]Read from MH i2c: E2 FD 00 24 69 00 01 00 04 F7 03 00 00 EF 03 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 90 00 85 [00:01:23]RAPDU: 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:01:24]wFMCommunicate OK [00:01:24]wFMCommunicate request_size=4 [00:01:24]MH_SAM_APDU [00:01:24]CAPDU: 80 17 00 00 [00:01:24]Write to MH i2c: E2 08 00 25 69 80 17 00 00 00 00 00 00 0E [00:01:24]Write i2c OK [00:01:24]MH_I2C_Read... [00:01:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [00:01:24]Read from MH i2c: E2 [00:01:24]MH_I2C_Read... [00:01:24]Read from MH i2c: E2 DD 00 [00:01:24]MH_I2C_Read... [00:01:24]Read from MH i2c: E2 DD 00 25 69 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F6 [00:01:24]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:01:24]wFMCommunicate OK [00:01:24]SAM_PROTO_GetFMData done [00:01:24]requested_item fm.sale_refund.total is exist - process it [00:01:24]requested_item fm.buy.total is exist - process it [00:01:24]requested_item shift.sale.total is exist - process it [00:01:24]SAM_PROTO_GetShiftData [00:01:24]wFMCommunicate request_size=4 [00:01:24]MH_SAM_APDU [00:01:24]CAPDU: 80 13 02 00 [00:01:24]Write to MH i2c: E2 08 00 26 69 80 13 02 00 00 00 00 00 0D [00:01:24]Write i2c OK [00:01:24]MH_I2C_Read... [00:01:24]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:01:24]Read from MH i2c: E2 [00:01:24]MH_I2C_Read... [00:01:24]Read from MH i2c: E2 FD 00 [00:01:24]MH_I2C_Read... [00:01:24]Read from MH i2c: E2 FD 00 26 69 00 BA 04 AA 04 B6 04 6E 04 04 00 C6 00 00 00 69 04 9B 00 6F 04 04 00 C2 00 00 00 B1 04 03 00 E3 C1 57 70 04 03 00 50 F1 3B 72 04 03 00 93 D0 1B 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 D4 51 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 BC C6 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 99 00 6F 04 04 00 04 00 00 00 B1 04 03 00 EC 8A 01 70 04 02 00 18 79 72 04 03 00 D4 11 01 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 F0 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 4D [00:01:25]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 C6 00 00 00 69 04 9B 00 6F 04 04 00 C2 00 00 00 B1 04 03 00 E3 C1 57 70 04 03 00 50 F1 3B 72 04 03 00 93 D0 1B 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 D4 51 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 BC C6 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 99 00 6F 04 04 00 04 00 00 00 B1 04 03 00 EC 8A 01 70 04 02 00 18 79 72 04 03 00 D4 11 01 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 F0 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:01:25]wFMCommunicate OK [00:01:25]wFMCommunicate request_size=4 [00:01:25]MH_SAM_APDU [00:01:25]CAPDU: 80 17 00 00 [00:01:25]Write to MH i2c: E2 08 00 27 69 80 17 00 00 00 00 00 00 10 [00:01:25]Write i2c OK [00:01:25]MH_I2C_Read... [00:01:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:25]Read from MH i2c: E2 [00:01:25]MH_I2C_Read... [00:01:25]Read from MH i2c: E2 FD 00 [00:01:25]MH_I2C_Read... [00:01:25]Read from MH i2c: E2 FD 00 27 69 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 3C [00:01:25]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 [00:01:25]wFMCommunicate OK [00:01:25]wFMCommunicate request_size=4 [00:01:25]MH_SAM_APDU [00:01:25]CAPDU: 80 17 00 00 [00:01:25]Write to MH i2c: E2 08 00 28 69 80 17 00 00 00 00 00 00 11 [00:01:25]Write i2c OK [00:01:25]MH_I2C_Read... [00:01:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:25]Read from MH i2c: E2 [00:01:25]MH_I2C_Read... [00:01:25]Read from MH i2c: E2 FD 00 [00:01:25]MH_I2C_Read... [00:01:25]Read from MH i2c: E2 FD 00 28 69 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 3D [00:01:26]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 [00:01:26]wFMCommunicate OK [00:01:26]wFMCommunicate request_size=4 [00:01:26]MH_SAM_APDU [00:01:26]CAPDU: 80 17 00 00 [00:01:26]Write to MH i2c: E2 08 00 29 69 80 17 00 00 00 00 00 00 12 [00:01:26]Write i2c OK [00:01:26]MH_I2C_Read... [00:01:26]OFD Sender: No OFD packet to send [00:01:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:26]Read from MH i2c: E2 [00:01:26]MH_I2C_Read... [00:01:26]Read from MH i2c: E2 FD 00 [00:01:26]MH_I2C_Read... [00:01:26]Read from MH i2c: E2 FD 00 29 69 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 8A [00:01:26]RAPDU: 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 [00:01:26]wFMCommunicate OK [00:01:26]wFMCommunicate request_size=4 [00:01:26]MH_SAM_APDU [00:01:26]CAPDU: 80 17 00 00 [00:01:26]Write to MH i2c: E2 08 00 2A 69 80 17 00 00 00 00 00 00 13 [00:01:26]Write i2c OK [00:01:26]MH_I2C_Read... [00:01:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [00:01:26]Read from MH i2c: E2 [00:01:26]MH_I2C_Read... [00:01:26]Read from MH i2c: E2 D7 00 [00:01:26]MH_I2C_Read... [00:01:26]Read from MH i2c: E2 D7 00 2A 69 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 F6 [00:01:26]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:01:27]wFMCommunicate OK [00:01:27]SAM_PROTO_GetShiftData done [00:01:27]requested_item shift.sale.total_cash is exist - process it [00:01:27]requested_item shift.sale_refund.total is exist - process it [00:01:27]requested_item shift.sale_refund.total_cash is exist - process it [00:01:27]requested_item shift.buy.total is exist - process it [00:01:27]requested_item shift.buy.total_cash is exist - process it [00:01:27]produce_requested_data done [00:01:27]produce_requested_data return {"fm.sale.total":898485.94,"fm.sale_refund.total":12447.00,"fm.buy.total":0.00,"shift.sale.total":57512.67,"shift.sale.total_cash":39284.00,"shift.sale_refund.total":1011.00,"shift.sale_refund.total_cash":310.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:01:27]process_action_free get_value [00:01:27]json_value_free [00:01:27]json_value_free done [00:01:27]process_json_proto returns [00:01:27]Send response to host [00:01:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":898485.94,"fm.sale_refund.total":12447.00,"fm.buy.total":0.00,"shift.sale.total":57512.67,"shift.sale.total_cash":39284.00,"shift.sale_refund.total":1011.00,"shift.sale_refund.total_cash":310.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:01:27]free response buf [00:01:27]execute_script done [00:01:27]execute_script returns [00:01:27]free content buf [00:01:27]Sock 8.Close socket [00:01:27]Sock 8.Thread stoped [00:01:27]accept exits with 9 [00:01:27]New connection [00:01:27]New thread 3067460964 created [00:01:27]Thread 3067317604 joined [00:01:27]Waiting for new connection... [00:01:27] Sock 9.Parse request [00:01:27]Sock 9.Check first char [00:01:27]Sock 9.First char is OK [00:01:27]request: POST /json_proto HTTP/1.0 [00:01:27]Method: POST [00:01:27]URL: /json_proto [00:01:27]Method is POST - this is cgi request [00:01:27]url: /json_proto [00:01:27]query_string will be loaded in cgi processing [00:01:27]execute_cgi json_proto POST (null) [00:01:27]execute_cgi path=json_proto method=POST [00:01:27]POST find Content-Length [00:01:27]Host: 172.17.45.132:8080 [00:01:27]Content-Length: 266 [00:01:27]Content-Type: application/json [00:01:27] [00:01:27]POST finish read [00:01:27]Found Content-Length = 266 [00:01:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0416\u044D\u044D\u043D\u043A\u0443\u043B\u043E\u0432 \u0416. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:01:27]execute_script... [00:01:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0416\u044D\u044D\u043D\u043A\u0443\u043B\u043E\u0432 \u0416. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:01:27]POST & json_proto [00:01:27]process_json_proto [00:01:27]json parsed OK: [00:01:27]protocol is kg_v1.0 [00:01:27]action value=close_shift [00:01:27]process_action close_shift [00:01:27]cmd_close_shift [00:01:27]MH_GetDate [00:01:27]Write to MH i2c: F0 00 00 2B 69 83 [00:01:27]Write i2c OK [00:01:27]MH_I2C_Read... [00:01:27]Read from MH i2c: F0 [00:01:27]MH_I2C_Read... [00:01:27]Read from MH i2c: F0 09 00 [00:01:27]MH_I2C_Read... [00:01:27]Read from MH i2c: F0 09 00 2B 69 00 DF DB A6 66 E3 0B 90 66 36 [00:01:27]GetLastDocTimeStamp 1722211241 [00:01:27]current date 1722211295 [00:01:27]FM_GetShiftState [00:01:27]SAM_PROTO_GetShiftState [00:01:27]wFMCommunicate request_size=4 [00:01:27]MH_SAM_APDU [00:01:27]CAPDU: 80 13 01 00 [00:01:27]Write to MH i2c: E2 08 00 2C 69 80 13 01 00 00 00 00 00 12 [00:01:27]Write i2c OK [00:01:27]MH_I2C_Read... [00:01:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:01:27]Read from MH i2c: E2 [00:01:27]MH_I2C_Read... [00:01:27]Read from MH i2c: E2 0E 00 [00:01:27]MH_I2C_Read... [00:01:27]Read from MH i2c: E2 0E 00 2C 69 00 09 00 01 50 8D A5 66 00 00 00 00 90 00 06 [00:01:27]RAPDU: 09 00 01 50 8D A5 66 00 00 00 00 90 00 [00:01:27]wFMCommunicate OK [00:01:27]SAM_PROTO_GetShiftState done [00:01:27]FM_GetShiftState done [00:01:27]KKMCreateCloseShiftDocument [00:01:27]Load OK [00:01:27]Malloc new data [00:01:27]MH_GetDate [00:01:27]Write to MH i2c: F0 00 00 2D 69 85 [00:01:27]Write i2c OK [00:01:27]MH_I2C_Read... [00:01:27]Read from MH i2c: F0 [00:01:27]MH_I2C_Read... [00:01:27]Read from MH i2c: F0 09 00 [00:01:27]MH_I2C_Read... [00:01:27]Read from MH i2c: F0 09 00 2D 69 00 DF DB A6 66 E3 0B 90 66 38 [00:01:27]Malloc new data [00:01:27]Malloc new data [00:01:27]Malloc new data [00:01:27]Malloc new data [00:01:27]KKMCreateCloseShiftDocument OK [00:01:27]KKMSetCloseShiftData OK [00:01:27]ProcessDocumentItem done err = 0, tmpTLVsize=73 [00:01:27]tlvbuf is 01FCB470 [00:01:27]KKMLoadAndSignCloseShiftData [00:01:27]SAM_PROTO_ProcessDocument [00:01:27]wFMCommunicate request_size=9 [00:01:27]MH_SAM_APDU [00:01:27]CAPDU: 80 15 01 00 04 05 00 49 00 [00:01:27]Write to MH i2c: E2 0C 00 2E 69 80 15 01 00 04 00 05 00 49 00 00 00 6C [00:01:27]Write i2c OK [00:01:27]MH_I2C_Read... [00:01:27]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:01:27]Read from MH i2c: E2 [00:01:27]MH_I2C_Read... [00:01:27]Read from MH i2c: E2 03 00 [00:01:27]MH_I2C_Read... [00:01:27]Read from MH i2c: E2 03 00 2E 69 00 90 00 0B [00:01:27]RAPDU: 90 00 [00:01:27]wFMCommunicate OK [00:01:27]wFMCommunicate request_size=23 [00:01:27]MH_SAM_APDU [00:01:27]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:01:27]Write to MH i2c: E2 1A 00 2F 69 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 0D [00:01:27]Write i2c OK [00:01:27]MH_I2C_Read... [00:01:27]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:01:27]Read from MH i2c: E2 [00:01:27]MH_I2C_Read... [00:01:27]Read from MH i2c: E2 03 00 [00:01:27]MH_I2C_Read... [00:01:27]Read from MH i2c: E2 03 00 2F 69 00 90 00 0C [00:01:27]RAPDU: 90 00 [00:01:27]wFMCommunicate OK [00:01:27]wFMCommunicate request_size=32 [00:01:27]MH_SAM_APDU [00:01:27]CAPDU: 80 15 02 00 1B FD 03 17 00 D0 96 D1 8D D1 8D D0 BD D0 BA D1 83 D0 BB D0 BE D0 B2 20 D0 96 2E 20 [00:01:27]Write to MH i2c: E2 23 00 30 69 80 15 02 00 1B 00 FD 03 17 00 D0 96 D1 8D D1 8D D0 BD D0 BA D1 83 D0 BB D0 BE D0 B2 20 D0 96 2E 20 00 00 62 [00:01:27]Write i2c OK [00:01:27]MH_I2C_Read... [00:01:27]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:01:27]Read from MH i2c: E2 [00:01:27]MH_I2C_Read... [00:01:27]Read from MH i2c: E2 03 00 [00:01:27]MH_I2C_Read... [00:01:27]Read from MH i2c: E2 03 00 30 69 00 90 00 0D [00:01:27]RAPDU: 90 00 [00:01:27]wFMCommunicate OK [00:01:27]wFMCommunicate request_size=13 [00:01:27]MH_SAM_APDU [00:01:27]CAPDU: 80 15 02 00 08 F4 03 04 00 DF DB A6 66 [00:01:27]Write to MH i2c: E2 10 00 31 69 80 15 02 00 08 00 F4 03 04 00 DF DB A6 66 00 00 EB [00:01:27]Write i2c OK [00:01:27]MH_I2C_Read... [00:01:27]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:01:27]Read from MH i2c: E2 [00:01:27]MH_I2C_Read... [00:01:27]Read from MH i2c: E2 03 00 [00:01:27]MH_I2C_Read... [00:01:27]Read from MH i2c: E2 03 00 31 69 00 90 00 0E [00:01:27]RAPDU: 90 00 [00:01:27]wFMCommunicate OK [00:01:27]wFMCommunicate request_size=25 [00:01:27]MH_SAM_APDU [00:01:27]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 [00:01:27]Write to MH i2c: E2 1C 00 32 69 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 00 00 89 [00:01:27]Write i2c OK [00:01:27]MH_I2C_Read... [00:01:27]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:01:27]Read from MH i2c: E2 [00:01:27]MH_I2C_Read... [00:01:27]Read from MH i2c: E2 03 00 [00:01:27]MH_I2C_Read... [00:01:27]Read from MH i2c: E2 03 00 32 69 00 90 00 0F [00:01:27]RAPDU: 90 00 [00:01:27]wFMCommunicate OK [00:01:27]wFMCommunicate request_size=4 [00:01:27]MH_SAM_APDU [00:01:27]CAPDU: 80 15 03 00 [00:01:27]Write to MH i2c: E2 08 00 33 69 80 15 03 00 00 00 00 00 1D [00:01:27]Write i2c OK [00:01:27]MH_I2C_Read... [00:01:28]Read from MH i2c: E2 [00:01:28]MH_I2C_Read... [00:01:28]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:01:28]Read from MH i2c: E2 FD 00 [00:01:28]MH_I2C_Read... [00:01:28]Read from MH i2c: E2 FD 00 33 69 00 FD 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 64 08 00 00 0E 04 04 00 0D 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C8 00 00 00 AA 04 B6 04 6E 04 04 00 C6 00 00 00 69 04 9B 00 6F 04 04 00 C2 00 00 00 B1 04 03 00 E3 C1 57 70 04 03 00 50 F1 3B 72 04 03 00 93 D0 1B 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 D4 51 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 BC C6 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 99 00 6F 04 04 00 04 00 00 00 B1 04 03 00 EC 8A 01 70 90 00 4C [00:01:28]RAPDU: FD 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 64 08 00 00 0E 04 04 00 0D 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C8 00 00 00 AA 04 B6 04 6E 04 04 00 C6 00 00 00 69 04 9B 00 6F 04 04 00 C2 00 00 00 B1 04 03 00 E3 C1 57 70 04 03 00 50 F1 3B 72 04 03 00 93 D0 1B 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 D4 51 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 BC C6 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 99 00 6F 04 04 00 04 00 00 00 B1 04 03 00 EC 8A 01 70 90 00 [00:01:28]wFMCommunicate OK [00:01:28]SAM_PROTO_ProcessDocument answer len = 1277 [00:01:28]SAM_PROTO_ProcessDocument remain to read = 1029 [00:01:28]wFMCommunicate request_size=4 [00:01:28]MH_SAM_APDU [00:01:28]CAPDU: 80 17 00 00 [00:01:28]Write to MH i2c: E2 08 00 34 69 80 17 00 00 00 00 00 00 1D [00:01:28]Write i2c OK [00:01:28]MH_I2C_Read... [00:01:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:28]Read from MH i2c: E2 [00:01:28]MH_I2C_Read... [00:01:28]Read from MH i2c: E2 FD 00 [00:01:28]MH_I2C_Read... [00:01:28]Read from MH i2c: E2 FD 00 34 69 00 04 02 00 18 79 72 04 03 00 D4 11 01 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 F0 29 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 7F 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 9B [00:01:28]RAPDU: 04 02 00 18 79 72 04 03 00 D4 11 01 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 F0 29 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 7F 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:01:29]wFMCommunicate OK [00:01:29]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:01:29]SAM_PROTO_ProcessDocument remain to read = 779 [00:01:29]wFMCommunicate request_size=4 [00:01:29]MH_SAM_APDU [00:01:29]CAPDU: 80 17 00 00 [00:01:29]Write to MH i2c: E2 08 00 35 69 80 17 00 00 00 00 00 00 1E [00:01:29]Write i2c OK [00:01:29]MH_I2C_Read... [00:01:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:29]Read from MH i2c: E2 [00:01:29]MH_I2C_Read... [00:01:29]Read from MH i2c: E2 FD 00 [00:01:29]MH_I2C_Read... [00:01:29]Read from MH i2c: E2 FD 00 35 69 00 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 90 00 84 [00:01:29]RAPDU: 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:01:29]wFMCommunicate OK [00:01:29]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:01:29]SAM_PROTO_ProcessDocument remain to read = 529 [00:01:29]wFMCommunicate request_size=4 [00:01:29]MH_SAM_APDU [00:01:29]CAPDU: 80 17 00 00 [00:01:29]Write to MH i2c: E2 08 00 36 69 80 17 00 00 00 00 00 00 1F [00:01:29]Write i2c OK [00:01:29]MH_I2C_Read... [00:01:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:29]Read from MH i2c: E2 [00:01:29]MH_I2C_Read... [00:01:29]Read from MH i2c: E2 FD 00 [00:01:29]MH_I2C_Read... [00:01:29]Read from MH i2c: E2 FD 00 36 69 00 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 90 00 2E [00:01:30]RAPDU: 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 90 00 [00:01:30]wFMCommunicate OK [00:01:30]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:01:30]SAM_PROTO_ProcessDocument remain to read = 279 [00:01:30]wFMCommunicate request_size=4 [00:01:30]MH_SAM_APDU [00:01:30]CAPDU: 80 17 00 00 [00:01:30]Write to MH i2c: E2 08 00 37 69 80 17 00 00 00 00 00 00 20 [00:01:30]Write i2c OK [00:01:30]MH_I2C_Read... [00:01:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:30]Read from MH i2c: E2 [00:01:30]MH_I2C_Read... [00:01:30]Read from MH i2c: E2 FD 00 [00:01:30]MH_I2C_Read... [00:01:30]Read from MH i2c: E2 FD 00 37 69 00 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 5E [00:01:30]RAPDU: 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:01:30]wFMCommunicate OK [00:01:30]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:01:30]SAM_PROTO_ProcessDocument remain to read = 29 [00:01:30]wFMCommunicate request_size=4 [00:01:30]MH_SAM_APDU [00:01:30]CAPDU: 80 17 00 00 [00:01:30]Write to MH i2c: E2 08 00 38 69 80 17 00 00 00 00 00 00 21 [00:01:30]Write i2c OK [00:01:30]MH_I2C_Read... [00:01:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 29! [00:01:30]Read from MH i2c: E2 [00:01:30]MH_I2C_Read... [00:01:30]Read from MH i2c: E2 20 00 [00:01:30]MH_I2C_Read... [00:01:30]Read from MH i2c: E2 20 00 38 69 00 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 5B 2E 8B CD 65 AC 90 00 57 [00:01:30]RAPDU: 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 5B 2E 8B CD 65 AC 90 00 [00:01:30]wFMCommunicate OK [00:01:30]SAM_PROTO_ProcessDocument received (without SW) 29 bytes [00:01:30]SAM_PROTO_ProcessDocument done [00:01:30]1209 (1) - 1.0 - номер версии ФФД [00:01:30]1041 (16) - 0000000002094248 - номер ФМ [00:01:30]1040 (4) - 2148 - номер ФД [00:01:30]1038 (4) - 13 - номер смены [00:01:30]1118 (4) - 198 - количество кассовых чеков за смену [00:01:30]1111 (4) - 200 - общее количество ФД за смену [00:01:30]1194 (1206) - счетчики итогов смены [00:01:30] 1134 (4) - 198 - количество чеков со всеми признаками расчетов [00:01:30] 1129 (155) - счетчики операций «приход» [00:01:30] 1135 (4) - 194 - количество чеков по признаку расчетов [00:01:30] 1201 (3) - 57512.67 - общая итоговая сумма в чеках [00:01:30] 1136 (3) - 39284.00 - итоговая сумма в чеках наличными [00:01:30] 1138 (3) - 18228.67 - итоговая сумма в чеках безналичными [00:01:30] 1024 (122) - суммы налогов [00:01:30] 1006 (9) - суммы НДС [00:01:30] 1010 (1) - 0% - код ставки НДС [00:01:30] 1011 (0) - 0.00 - сумма НДС по ставке [00:01:30] 1006 (12) - суммы НДС [00:01:30] 1010 (1) - 12% - код ставки НДС [00:01:30] 1011 (3) - 6107.72 - сумма НДС по ставке [00:01:30] 1007 (9) - суммы НСП [00:01:30] 1014 (1) - 0% - код ставки НСП [00:01:30] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:30] 1007 (11) - суммы НСП [00:01:30] 1014 (1) - 1% - код ставки НСП [00:01:30] 1015 (2) - 508.76 - сумма НСП по ставке [00:01:30] 1007 (9) - суммы НСП [00:01:30] 1014 (1) - 2% - код ставки НСП [00:01:30] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:30] 1007 (9) - суммы НСП [00:01:30] 1014 (1) - 3% - код ставки НСП [00:01:30] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:30] 1007 (9) - суммы НСП [00:01:30] 1014 (1) - 5% - код ставки НСП [00:01:30] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:30] 1007 (9) - суммы НСП [00:01:30] 1014 (1) - 0,50% - код ставки НСП [00:01:30] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:30] 1007 (9) - суммы НСП [00:01:30] 1014 (1) - 1,50% - код ставки НСП [00:01:30] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:30] 1130 (153) - счетчики операций «возврат прихода» [00:01:30] 1135 (4) - 4 - количество чеков по признаку расчетов [00:01:30] 1201 (3) - 1011.00 - общая итоговая сумма в чеках [00:01:30] 1136 (2) - 310.00 - итоговая сумма в чеках наличными [00:01:30] 1138 (3) - 701.00 - итоговая сумма в чеках безналичными [00:01:30] 1024 (121) - суммы налогов [00:01:30] 1006 (9) - суммы НДС [00:01:30] 1010 (1) - 0% - код ставки НДС [00:01:30] 1011 (0) - 0.00 - сумма НДС по ставке [00:01:30] 1006 (11) - суммы НДС [00:01:30] 1010 (1) - 12% - код ставки НДС [00:01:30] 1011 (2) - 107.36 - сумма НДС по ставке [00:01:31] 1007 (9) - суммы НСП [00:01:31] 1014 (1) - 0% - код ставки НСП [00:01:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:31] 1007 (11) - суммы НСП [00:01:31] 1014 (1) - 1% - код ставки НСП [00:01:31] 1015 (2) - 8.95 - сумма НСП по ставке [00:01:31] 1007 (9) - суммы НСП [00:01:31] 1014 (1) - 2% - код ставки НСП [00:01:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:31] 1007 (9) - суммы НСП [00:01:31] 1014 (1) - 3% - код ставки НСП [00:01:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:31] 1007 (9) - суммы НСП [00:01:31] 1014 (1) - 5% - код ставки НСП [00:01:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:31] 1007 (9) - суммы НСП [00:01:31] 1014 (1) - 0,50% - код ставки НСП [00:01:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:31] 1007 (9) - суммы НСП [00:01:31] 1014 (1) - 1,50% - код ставки НСП [00:01:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:31] 1131 (141) - счетчики операций «расход» [00:01:31] 1135 (4) - 0 - количество чеков по признаку расчетов [00:01:31] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:01:31] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:01:31] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:01:31] 1024 (117) - суммы налогов [00:01:31] 1006 (9) - суммы НДС [00:01:31] 1010 (1) - 0% - код ставки НДС [00:01:31] 1011 (0) - 0.00 - сумма НДС по ставке [00:01:31] 1006 (9) - суммы НДС [00:01:31] 1010 (1) - 12% - код ставки НДС [00:01:31] 1011 (0) - 0.00 - сумма НДС по ставке [00:01:31] 1007 (9) - суммы НСП [00:01:31] 1014 (1) - 0% - код ставки НСП [00:01:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:31] 1007 (9) - суммы НСП [00:01:31] 1014 (1) - 1% - код ставки НСП [00:01:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:31] 1007 (9) - суммы НСП [00:01:31] 1014 (1) - 2% - код ставки НСП [00:01:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:31] 1007 (9) - суммы НСП [00:01:31] 1014 (1) - 3% - код ставки НСП [00:01:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:31] 1007 (9) - суммы НСП [00:01:31] 1014 (1) - 5% - код ставки НСП [00:01:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:31] 1007 (9) - суммы НСП [00:01:31] 1014 (1) - 0,50% - код ставки НСП [00:01:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:31] 1007 (9) - суммы НСП [00:01:31] 1014 (1) - 1,50% - код ставки НСП [00:01:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:31] 1132 (141) - счетчики операций «возврат расхода» [00:01:31] 1135 (4) - 0 - количество чеков по признаку расчетов [00:01:31] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:01:31] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:01:31] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:01:31] 1024 (117) - суммы налогов [00:01:31] 1006 (9) - суммы НДС [00:01:31] 1010 (1) - 0% - код ставки НДС [00:01:31] 1011 (0) - 0.00 - сумма НДС по ставке [00:01:31] 1006 (9) - суммы НДС [00:01:31] 1010 (1) - 12% - код ставки НДС [00:01:31] 1011 (0) - 0.00 - сумма НДС по ставке [00:01:31] 1007 (9) - суммы НСП [00:01:31] 1014 (1) - 0% - код ставки НСП [00:01:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:31] 1007 (9) - суммы НСП [00:01:31] 1014 (1) - 1% - код ставки НСП [00:01:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:31] 1007 (9) - суммы НСП [00:01:31] 1014 (1) - 2% - код ставки НСП [00:01:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:31] 1007 (9) - суммы НСП [00:01:31] 1014 (1) - 3% - код ставки НСП [00:01:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:31] 1007 (9) - суммы НСП [00:01:31] 1014 (1) - 5% - код ставки НСП [00:01:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:31] 1007 (9) - суммы НСП [00:01:31] 1014 (1) - 0,50% - код ставки НСП [00:01:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:31] 1007 (9) - суммы НСП [00:01:31] 1014 (1) - 1,50% - код ставки НСП [00:01:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:31] 1133 (588) - - счетчики коррекции - не используются [00:01:31]1077 (6) - 100255472117164 - ФПД [00:01:31]SetTLVBufToDocument [00:01:31]Processing tag 1209 (04B9) [00:01:31]Malloc new data [00:01:31]Processing tag 1041 (0411) [00:01:31]Processing tag 1040 (0410) [00:01:31]Malloc new data [00:01:31]Processing tag 1038 (040E) [00:01:31]Malloc new data [00:01:31]Processing tag 1118 (045E) [00:01:31]Malloc new data [00:01:31]Processing tag 1111 (0457) [00:01:31]Malloc new data [00:01:31]Processing tag 1194 (04AA) [00:01:31]Load OK [00:01:31]SetTLVBufToDocument [00:01:31]Processing tag 1134 (046E) [00:01:31]Malloc new data [00:01:31]Processing tag 1129 (0469) [00:01:31]Load OK [00:01:31]SetTLVBufToDocument [00:01:31]Processing tag 1135 (046F) [00:01:31]Malloc new data [00:01:31]Processing tag 1201 (04B1) [00:01:31]Malloc new data [00:01:31]Processing tag 1136 (0470) [00:01:31]Malloc new data [00:01:31]Processing tag 1138 (0472) [00:01:31]Malloc new data [00:01:31]Processing tag 1024 (0400) [00:01:31]Load OK [00:01:31]SetTLVBufToDocument [00:01:31]Processing tag 1006 (03EE) [00:01:31]Load OK [00:01:31]SetTLVBufToDocument [00:01:31]Processing tag 1010 (03F2) [00:01:31]Malloc new data [00:01:31]Processing tag 1011 (03F3) [00:01:31]Malloc new data [00:01:31]SetTLVBufToDocument err=0 [00:01:31]Processing tag 1006 (03EE) [00:01:31]Load OK [00:01:31]SetTLVBufToDocument [00:01:31]Processing tag 1010 (03F2) [00:01:31]Malloc new data [00:01:31]Processing tag 1011 (03F3) [00:01:31]Malloc new data [00:01:31]SetTLVBufToDocument err=0 [00:01:31]Processing tag 1007 (03EF) [00:01:31]Load OK [00:01:31]SetTLVBufToDocument [00:01:31]Processing tag 1014 (03F6) [00:01:31]Malloc new data [00:01:31]Processing tag 1015 (03F7) [00:01:31]Malloc new data [00:01:31]SetTLVBufToDocument err=0 [00:01:31]Processing tag 1007 (03EF) [00:01:31]Load OK [00:01:31]SetTLVBufToDocument [00:01:31]Processing tag 1014 (03F6) [00:01:31]Malloc new data [00:01:31]Processing tag 1015 (03F7) [00:01:31]Malloc new data [00:01:31]SetTLVBufToDocument err=0 [00:01:31]Processing tag 1007 (03EF) [00:01:31]Load OK [00:01:31]SetTLVBufToDocument [00:01:31]Processing tag 1014 (03F6) [00:01:31]Malloc new data [00:01:31]Processing tag 1015 (03F7) [00:01:31]Malloc new data [00:01:31]SetTLVBufToDocument err=0 [00:01:31]Processing tag 1007 (03EF) [00:01:31]Load OK [00:01:31]SetTLVBufToDocument [00:01:31]Processing tag 1014 (03F6) [00:01:31]Malloc new data [00:01:31]Processing tag 1015 (03F7) [00:01:31]Malloc new data [00:01:31]SetTLVBufToDocument err=0 [00:01:31]Processing tag 1007 (03EF) [00:01:31]Load OK [00:01:31]SetTLVBufToDocument [00:01:31]Processing tag 1014 (03F6) [00:01:31]Malloc new data [00:01:31]Processing tag 1015 (03F7) [00:01:31]Malloc new data [00:01:31]SetTLVBufToDocument err=0 [00:01:31]Processing tag 1007 (03EF) [00:01:31]Load OK [00:01:31]SetTLVBufToDocument [00:01:31]Processing tag 1014 (03F6) [00:01:31]Malloc new data [00:01:31]Processing tag 1015 (03F7) [00:01:31]Malloc new data [00:01:31]SetTLVBufToDocument err=0 [00:01:31]Processing tag 1007 (03EF) [00:01:31]Load OK [00:01:31]SetTLVBufToDocument [00:01:31]Processing tag 1014 (03F6) [00:01:31]Malloc new data [00:01:31]Processing tag 1015 (03F7) [00:01:31]Malloc new data [00:01:31]SetTLVBufToDocument err=0 [00:01:31]SetTLVBufToDocument err=0 [00:01:31]SetTLVBufToDocument err=0 [00:01:31]Processing tag 1130 (046A) [00:01:31]Load OK [00:01:31]SetTLVBufToDocument [00:01:31]Processing tag 1135 (046F) [00:01:31]Malloc new data [00:01:31]Processing tag 1201 (04B1) [00:01:31]Malloc new data [00:01:31]Processing tag 1136 (0470) [00:01:31]Malloc new data [00:01:31]Processing tag 1138 (0472) [00:01:31]Malloc new data [00:01:31]Processing tag 1024 (0400) [00:01:31]Load OK [00:01:31]SetTLVBufToDocument [00:01:31]Processing tag 1006 (03EE) [00:01:31]Load OK [00:01:31]SetTLVBufToDocument [00:01:31]Processing tag 1010 (03F2) [00:01:31]Malloc new data [00:01:31]Processing tag 1011 (03F3) [00:01:31]Malloc new data [00:01:31]SetTLVBufToDocument err=0 [00:01:31]Processing tag 1006 (03EE) [00:01:31]Load OK [00:01:31]OFD Sender: No OFD packet to send [00:01:31]SetTLVBufToDocument [00:01:31]Processing tag 1010 (03F2) [00:01:31]Malloc new data [00:01:31]Processing tag 1011 (03F3) [00:01:31]Malloc new data [00:01:31]SetTLVBufToDocument err=0 [00:01:31]Processing tag 1007 (03EF) [00:01:31]Load OK [00:01:31]SetTLVBufToDocument [00:01:31]Processing tag 1014 (03F6) [00:01:31]Malloc new data [00:01:31]Processing tag 1015 (03F7) [00:01:31]Malloc new data [00:01:31]SetTLVBufToDocument err=0 [00:01:31]Processing tag 1007 (03EF) [00:01:31]Load OK [00:01:31]SetTLVBufToDocument [00:01:31]Processing tag 1014 (03F6) [00:01:31]Malloc new data [00:01:31]Processing tag 1015 (03F7) [00:01:31]Malloc new data [00:01:31]SetTLVBufToDocument err=0 [00:01:31]Processing tag 1007 (03EF) [00:01:31]Load OK [00:01:31]SetTLVBufToDocument [00:01:31]Processing tag 1014 (03F6) [00:01:31]Malloc new data [00:01:31]Processing tag 1015 (03F7) [00:01:31]Malloc new data [00:01:31]SetTLVBufToDocument err=0 [00:01:31]Processing tag 1007 (03EF) [00:01:31]Load OK [00:01:31]SetTLVBufToDocument [00:01:31]Processing tag 1014 (03F6) [00:01:31]Malloc new data [00:01:31]Processing tag 1015 (03F7) [00:01:31]Malloc new data [00:01:31]SetTLVBufToDocument err=0 [00:01:31]Processing tag 1007 (03EF) [00:01:31]Load OK [00:01:31]SetTLVBufToDocument [00:01:31]Processing tag 1014 (03F6) [00:01:31]Malloc new data [00:01:31]Processing tag 1015 (03F7) [00:01:31]Malloc new data [00:01:31]SetTLVBufToDocument err=0 [00:01:31]Processing tag 1007 (03EF) [00:01:31]Load OK [00:01:31]SetTLVBufToDocument [00:01:31]Processing tag 1014 (03F6) [00:01:31]Malloc new data [00:01:31]Processing tag 1015 (03F7) [00:01:31]Malloc new data [00:01:31]SetTLVBufToDocument err=0 [00:01:31]Processing tag 1007 (03EF) [00:01:31]Load OK [00:01:31]SetTLVBufToDocument [00:01:31]Processing tag 1014 (03F6) [00:01:31]Malloc new data [00:01:31]Processing tag 1015 (03F7) [00:01:31]Malloc new data [00:01:31]SetTLVBufToDocument err=0 [00:01:31]SetTLVBufToDocument err=0 [00:01:31]SetTLVBufToDocument err=0 [00:01:31]Processing tag 1131 (046B) [00:01:31]Load OK [00:01:31]SetTLVBufToDocument [00:01:31]Processing tag 1135 (046F) [00:01:31]Malloc new data [00:01:31]Processing tag 1201 (04B1) [00:01:31]Malloc new data [00:01:31]Processing tag 1136 (0470) [00:01:31]Malloc new data [00:01:31]Processing tag 1138 (0472) [00:01:31]Malloc new data [00:01:31]Processing tag 1024 (0400) [00:01:31]Load OK [00:01:31]SetTLVBufToDocument [00:01:31]Processing tag 1006 (03EE) [00:01:31]Load OK [00:01:31]SetTLVBufToDocument [00:01:31]Processing tag 1010 (03F2) [00:01:31]Malloc new data [00:01:31]Processing tag 1011 (03F3) [00:01:31]Malloc new data [00:01:31]SetTLVBufToDocument err=0 [00:01:31]Processing tag 1006 (03EE) [00:01:31]Load OK [00:01:31]SetTLVBufToDocument [00:01:31]Processing tag 1010 (03F2) [00:01:31]Malloc new data [00:01:31]Processing tag 1011 (03F3) [00:01:31]Malloc new data [00:01:31]SetTLVBufToDocument err=0 [00:01:31]Processing tag 1007 (03EF) [00:01:31]Load OK [00:01:31]SetTLVBufToDocument [00:01:31]Processing tag 1014 (03F6) [00:01:31]Malloc new data [00:01:31]Processing tag 1015 (03F7) [00:01:31]Malloc new data [00:01:31]SetTLVBufToDocument err=0 [00:01:31]Processing tag 1007 (03EF) [00:01:31]Load OK [00:01:31]SetTLVBufToDocument [00:01:31]Processing tag 1014 (03F6) [00:01:31]Malloc new data [00:01:31]Processing tag 1015 (03F7) [00:01:31]Malloc new data [00:01:31]SetTLVBufToDocument err=0 [00:01:31]Processing tag 1007 (03EF) [00:01:31]Load OK [00:01:31]SetTLVBufToDocument [00:01:31]Processing tag 1014 (03F6) [00:01:31]Malloc new data [00:01:31]Processing tag 1015 (03F7) [00:01:31]Malloc new data [00:01:31]SetTLVBufToDocument err=0 [00:01:31]Processing tag 1007 (03EF) [00:01:31]Load OK [00:01:31]SetTLVBufToDocument [00:01:31]Processing tag 1014 (03F6) [00:01:31]Malloc new data [00:01:31]Processing tag 1015 (03F7) [00:01:31]Malloc new data [00:01:31]SetTLVBufToDocument err=0 [00:01:31]Processing tag 1007 (03EF) [00:01:31]Load OK [00:01:31]SetTLVBufToDocument [00:01:31]Processing tag 1014 (03F6) [00:01:31]Malloc new data [00:01:31]Processing tag 1015 (03F7) [00:01:31]Malloc new data [00:01:31]SetTLVBufToDocument err=0 [00:01:31]Processing tag 1007 (03EF) [00:01:31]Load OK [00:01:31]SetTLVBufToDocument [00:01:31]Processing tag 1014 (03F6) [00:01:31]Malloc new data [00:01:31]Processing tag 1015 (03F7) [00:01:31]Malloc new data [00:01:31]SetTLVBufToDocument err=0 [00:01:31]Processing tag 1007 (03EF) [00:01:31]Load OK [00:01:31]SetTLVBufToDocument [00:01:31]Processing tag 1014 (03F6) [00:01:31]Malloc new data [00:01:31]Processing tag 1015 (03F7) [00:01:31]Malloc new data [00:01:31]SetTLVBufToDocument err=0 [00:01:31]SetTLVBufToDocument err=0 [00:01:31]SetTLVBufToDocument err=0 [00:01:31]Processing tag 1132 (046C) [00:01:31]Load OK [00:01:31]SetTLVBufToDocument [00:01:31]Processing tag 1135 (046F) [00:01:31]Malloc new data [00:01:31]Processing tag 1201 (04B1) [00:01:31]Malloc new data [00:01:31]Processing tag 1136 (0470) [00:01:31]Malloc new data [00:01:31]Processing tag 1138 (0472) [00:01:31]Malloc new data [00:01:31]Processing tag 1024 (0400) [00:01:31]Load OK [00:01:31]SetTLVBufToDocument [00:01:31]Processing tag 1006 (03EE) [00:01:31]Load OK [00:01:31]SetTLVBufToDocument [00:01:31]Processing tag 1010 (03F2) [00:01:31]Malloc new data [00:01:31]Processing tag 1011 (03F3) [00:01:31]Malloc new data [00:01:31]SetTLVBufToDocument err=0 [00:01:31]Processing tag 1006 (03EE) [00:01:31]Load OK [00:01:31]SetTLVBufToDocument [00:01:31]Processing tag 1010 (03F2) [00:01:31]Malloc new data [00:01:31]Processing tag 1011 (03F3) [00:01:31]Malloc new data [00:01:31]SetTLVBufToDocument err=0 [00:01:31]Processing tag 1007 (03EF) [00:01:31]Load OK [00:01:31]SetTLVBufToDocument [00:01:31]Processing tag 1014 (03F6) [00:01:31]Malloc new data [00:01:31]Processing tag 1015 (03F7) [00:01:31]Malloc new data [00:01:31]SetTLVBufToDocument err=0 [00:01:31]Processing tag 1007 (03EF) [00:01:31]Load OK [00:01:31]SetTLVBufToDocument [00:01:31]Processing tag 1014 (03F6) [00:01:31]Malloc new data [00:01:31]Processing tag 1015 (03F7) [00:01:31]Malloc new data [00:01:31]SetTLVBufToDocument err=0 [00:01:31]Processing tag 1007 (03EF) [00:01:31]Load OK [00:01:31]SetTLVBufToDocument [00:01:31]Processing tag 1014 (03F6) [00:01:31]Malloc new data [00:01:31]Processing tag 1015 (03F7) [00:01:31]Malloc new data [00:01:31]SetTLVBufToDocument err=0 [00:01:31]Processing tag 1007 (03EF) [00:01:31]Load OK [00:01:31]SetTLVBufToDocument [00:01:31]Processing tag 1014 (03F6) [00:01:31]Malloc new data [00:01:31]Processing tag 1015 (03F7) [00:01:31]Malloc new data [00:01:31]SetTLVBufToDocument err=0 [00:01:31]Processing tag 1007 (03EF) [00:01:31]Load OK [00:01:31]SetTLVBufToDocument [00:01:31]Processing tag 1014 (03F6) [00:01:31]Malloc new data [00:01:31]Processing tag 1015 (03F7) [00:01:31]Malloc new data [00:01:31]SetTLVBufToDocument err=0 [00:01:31]Processing tag 1007 (03EF) [00:01:31]Load OK [00:01:31]SetTLVBufToDocument [00:01:31]Processing tag 1014 (03F6) [00:01:31]Malloc new data [00:01:31]Processing tag 1015 (03F7) [00:01:31]Malloc new data [00:01:31]SetTLVBufToDocument err=0 [00:01:31]Processing tag 1007 (03EF) [00:01:31]Load OK [00:01:31]SetTLVBufToDocument [00:01:31]Processing tag 1014 (03F6) [00:01:31]Malloc new data [00:01:31]Processing tag 1015 (03F7) [00:01:31]Malloc new data [00:01:31]SetTLVBufToDocument err=0 [00:01:31]SetTLVBufToDocument err=0 [00:01:31]SetTLVBufToDocument err=0 [00:01:31]Processing tag 1133 (046D) [00:01:31]Malloc new data [00:01:31]SetTLVBufToDocument err=0 [00:01:31]Processing tag 1077 (0435) [00:01:31]Malloc new data [00:01:31]SetTLVBufToDocument err=0 [00:01:31]Malloc new data [00:01:31]SAM_PROTO_GetFMData [00:01:31]wFMCommunicate request_size=4 [00:01:31]MH_SAM_APDU [00:01:31]CAPDU: 80 13 03 00 [00:01:31]Write to MH i2c: E2 08 00 39 69 80 13 03 00 00 00 00 00 21 [00:01:31]Write i2c OK [00:01:31]MH_I2C_Read... [00:01:32]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:01:32]Read from MH i2c: E2 [00:01:32]MH_I2C_Read... [00:01:32]Read from MH i2c: E2 FD 00 [00:01:32]MH_I2C_Read... [00:01:32]Read from MH i2c: E2 FD 00 39 69 00 C0 04 85 04 BC 04 6E 04 04 00 49 08 00 00 69 04 9F 00 6F 04 04 00 38 08 00 00 B1 04 04 00 12 FB 5A 05 70 04 04 00 C4 A8 76 03 72 04 04 00 4E 52 E4 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 9B 91 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 65 21 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 53 04 02 EF 03 09 00 F6 03 01 90 00 2F [00:01:32]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 49 08 00 00 69 04 9F 00 6F 04 04 00 38 08 00 00 B1 04 04 00 12 FB 5A 05 70 04 04 00 C4 A8 76 03 72 04 04 00 4E 52 E4 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 9B 91 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 65 21 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 53 04 02 EF 03 09 00 F6 03 01 90 00 [00:01:32]wFMCommunicate OK [00:01:32]wFMCommunicate request_size=4 [00:01:32]MH_SAM_APDU [00:01:32]CAPDU: 80 17 00 00 [00:01:32]Write to MH i2c: E2 08 00 3A 69 80 17 00 00 00 00 00 00 23 [00:01:32]Write i2c OK [00:01:32]MH_I2C_Read... [00:01:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:32]Read from MH i2c: E2 [00:01:32]MH_I2C_Read... [00:01:32]Read from MH i2c: E2 FD 00 [00:01:32]MH_I2C_Read... [00:01:32]Read from MH i2c: E2 FD 00 3A 69 00 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 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 90 00 82 [00:01:33]RAPDU: 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 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 90 00 [00:01:33]wFMCommunicate OK [00:01:33]wFMCommunicate request_size=4 [00:01:33]MH_SAM_APDU [00:01:33]CAPDU: 80 17 00 00 [00:01:33]Write to MH i2c: E2 08 00 3B 69 80 17 00 00 00 00 00 00 24 [00:01:33]Write i2c OK [00:01:33]MH_I2C_Read... [00:01:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:33]Read from MH i2c: E2 [00:01:33]MH_I2C_Read... [00:01:33]Read from MH i2c: E2 FD 00 [00:01:33]MH_I2C_Read... [00:01:33]Read from MH i2c: E2 FD 00 3B 69 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 90 00 C7 [00:01:33]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 90 00 [00:01:33]wFMCommunicate OK [00:01:33]wFMCommunicate request_size=4 [00:01:33]MH_SAM_APDU [00:01:33]CAPDU: 80 17 00 00 [00:01:33]Write to MH i2c: E2 08 00 3C 69 80 17 00 00 00 00 00 00 25 [00:01:33]Write i2c OK [00:01:33]MH_I2C_Read... [00:01:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:34]Read from MH i2c: E2 [00:01:34]MH_I2C_Read... [00:01:34]Read from MH i2c: E2 FD 00 [00:01:34]MH_I2C_Read... [00:01:34]Read from MH i2c: E2 FD 00 3C 69 00 01 00 04 F7 03 00 00 EF 03 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 90 00 9D [00:01:34]RAPDU: 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:01:34]wFMCommunicate OK [00:01:34]wFMCommunicate request_size=4 [00:01:34]MH_SAM_APDU [00:01:34]CAPDU: 80 17 00 00 [00:01:34]Write to MH i2c: E2 08 00 3D 69 80 17 00 00 00 00 00 00 26 [00:01:34]Write i2c OK [00:01:34]MH_I2C_Read... [00:01:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [00:01:34]Read from MH i2c: E2 [00:01:34]MH_I2C_Read... [00:01:34]Read from MH i2c: E2 DD 00 [00:01:34]MH_I2C_Read... [00:01:34]Read from MH i2c: E2 DD 00 3D 69 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0E [00:01:34]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:01:35]wFMCommunicate OK [00:01:35]SAM_PROTO_GetFMData done [00:01:35]Malloc new data [00:01:35]Malloc new data [00:01:35]Malloc new data [00:01:35]Malloc new data [00:01:35]KKMLoadAndSignCloseShiftData err=0 [00:01:35]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Жээнкулов Ж. 29.07.2024 00:01 Смена: 13 РНМ: 0000000000189667 ЗНМ: 0300000161 СНО: Общий режим Чеков за смену: 198 ФД за смену: 200 Всего чеков: 198 ИТОГИ ПРИХОД Чеков: 194 Общий итог: 57512.67 Итого наличными: 39284.00 Итого безнал.: 18228.67 НДС 0% : 0.00 НДС 12% : 6107.72 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 508.76 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 4 Общий итог: 1011.00 Итого наличными: 310.00 Итого безнал.: 701.00 НДС 0% : 0.00 НДС 12% : 107.36 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 8.95 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 38974.00 НС Приход: 898485.94 НС Возвр.Прихода: 12447.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 2148 ФМ: 0000000002094248 ФПД: 100255472117164 [00:01:35]StoreToDocumentArchive [00:01:35]shift 13 fd 2148 [00:01:35]save to /storage/0013/doc_00002148 [00:01:35]save last doc name /storage/0013/doc_00002148 to /storage/kkm_last_doc_name [00:01:35]save OK [00:01:35]Clear old archive folders... [00:01:35]Remove dir /storage/0010 [00:01:35]opendir ok [00:01:35]file . [00:01:35]file .. [00:01:35]file doc_1722211249 [00:01:35]remove file /storage/0010/doc_1722211249 [00:01:35]remove dir /storage/0010 [00:01:35]NVStorageSaveData kkm_registers [00:01:35]File name is /storage/kkm_registers [00:01:35]Write 24 bytes [00:01:35]NVStorageSaveData done [00:01:35]NVStorageSaveData kkm_registers [00:01:35]File name is /storage/kkm_registers [00:01:35]Write 24 bytes [00:01:35]NVStorageSaveData done [00:01:35]ProcessDocumentItem done err = 0, tmpTLVsize=1388 [00:01:35]tlvbuf is 0222A470 [00:01:35]SAM_PROTO_ClearQueue [00:01:35]wFMCommunicate request_size=4 [00:01:35]MH_SAM_APDU [00:01:35]CAPDU: 80 09 00 00 [00:01:35]Write to MH i2c: E2 08 00 3E 69 80 09 00 00 00 00 00 00 19 [00:01:35]Write i2c OK [00:01:35]MH_I2C_Read... [00:01:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:01:35]Read from MH i2c: E2 [00:01:35]MH_I2C_Read... [00:01:35]Read from MH i2c: E2 03 00 [00:01:35]MH_I2C_Read... [00:01:35]Read from MH i2c: E2 03 00 3E 69 00 90 00 1B [00:01:35]RAPDU: 90 00 [00:01:35]wFMCommunicate OK [00:01:35]SAM_PROTO_ClearQueue done [00:01:35]KKMCreateOFDPacket [00:01:35]OFDProtocolAddRootSTLVToBuf [00:01:35]FM_MakeSignedData [00:01:35]FM_MakeSignedData [00:01:35]SAM_PROTO_SignData [00:01:35]wFMCommunicate request_size=4 [00:01:35]MH_SAM_APDU [00:01:35]CAPDU: 80 0D 01 02 [00:01:35]Write to MH i2c: E2 08 00 3F 69 80 0D 01 02 00 00 00 00 21 [00:01:35]Write i2c OK [00:01:35]MH_I2C_Read... [00:01:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:01:35]Read from MH i2c: E2 [00:01:35]MH_I2C_Read... [00:01:35]Read from MH i2c: E2 03 00 [00:01:35]MH_I2C_Read... [00:01:35]Read from MH i2c: E2 03 00 3F 69 00 90 00 1C [00:01:35]RAPDU: 90 00 [00:01:35]wFMCommunicate OK [00:01:35]wFMCommunicate request_size=255 [00:01:35]MH_SAM_APDU [00:01:35]CAPDU: 80 0D 02 02 FA 05 00 6C 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 96 D1 8D D1 8D D0 BD D0 BA D1 83 D0 BB D0 BE D0 B2 20 D0 96 2E 20 F4 03 04 00 DF DB A6 66 0E 04 04 00 0D 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 5E 04 04 00 C6 00 00 00 57 04 04 00 C8 00 00 00 AA 04 DC 04 6E 04 04 00 C6 00 00 00 69 04 A2 00 6F 04 04 00 C2 00 00 00 B1 04 03 00 E3 C1 57 70 04 03 00 50 F1 3B 72 04 03 00 93 D0 1B 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 D4 51 09 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 [00:01:35]Write to MH i2c: E2 02 01 40 69 80 0D 02 02 FA 00 05 00 6C 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 96 D1 8D D1 8D D0 BD D0 BA D1 83 D0 BB D0 BE D0 B2 20 D0 96 2E 20 F4 03 04 00 DF DB A6 66 0E 04 04 00 0D 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 5E 04 04 00 C6 00 00 00 57 04 04 00 C8 00 00 00 AA 04 DC 04 6E 04 04 00 C6 00 00 00 69 04 A2 00 6F 04 04 00 C2 00 00 00 B1 04 03 00 E3 C1 57 70 04 03 00 50 F1 3B 72 04 03 00 93 D0 1B 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 D4 51 09 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 00 00 B1 [00:01:35]Write i2c OK [00:01:35]MH_I2C_Read... [00:01:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:01:35]Read from MH i2c: E2 [00:01:35]MH_I2C_Read... [00:01:35]Read from MH i2c: E2 03 00 [00:01:35]MH_I2C_Read... [00:01:35]Read from MH i2c: E2 03 00 40 69 00 90 00 1D [00:01:35]RAPDU: 90 00 [00:01:35]wFMCommunicate OK [00:01:35]wFMCommunicate request_size=255 [00:01:35]MH_SAM_APDU [00:01:35]CAPDU: 80 0D 02 02 FA 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 BC C6 6A 04 A0 00 6F 04 04 00 04 00 00 00 B1 04 03 00 EC 8A 01 70 04 02 00 18 79 72 04 03 00 D4 11 01 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 F0 29 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 7F 03 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:36]Write to MH i2c: E2 02 01 41 69 80 0D 02 02 FA 00 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 BC C6 6A 04 A0 00 6F 04 04 00 04 00 00 00 B1 04 03 00 EC 8A 01 70 04 02 00 18 79 72 04 03 00 D4 11 01 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 F0 29 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 7F 03 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 00 B7 [00:01:36]Write i2c OK [00:01:36]MH_I2C_Read... [00:01:36]OFD Sender: No OFD packet to send [00:01:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:01:36]Read from MH i2c: E2 [00:01:36]MH_I2C_Read... [00:01:36]Read from MH i2c: E2 03 00 [00:01:36]MH_I2C_Read... [00:01:36]Read from MH i2c: E2 03 00 41 69 00 90 00 1E [00:01:36]RAPDU: 90 00 [00:01:36]wFMCommunicate OK [00:01:36]wFMCommunicate request_size=255 [00:01:36]MH_SAM_APDU [00:01:36]CAPDU: 80 0D 02 02 FA 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 [00:01:36]Write to MH i2c: E2 02 01 42 69 80 0D 02 02 FA 00 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 00 00 DF [00:01:36]Write i2c OK [00:01:36]MH_I2C_Read... [00:01:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:01:37]Read from MH i2c: E2 [00:01:37]MH_I2C_Read... [00:01:37]Read from MH i2c: E2 03 00 [00:01:37]MH_I2C_Read... [00:01:37]Read from MH i2c: E2 03 00 42 69 00 90 00 1F [00:01:37]RAPDU: 90 00 [00:01:37]wFMCommunicate OK [00:01:37]wFMCommunicate request_size=255 [00:01:37]MH_SAM_APDU [00:01:37]CAPDU: 80 0D 02 02 FA 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF [00:01:37]Write to MH i2c: E2 02 01 43 69 80 0D 02 02 FA 00 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 00 00 E9 [00:01:37]Write i2c OK [00:01:37]MH_I2C_Read... [00:01:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:01:37]Read from MH i2c: E2 [00:01:37]MH_I2C_Read... [00:01:37]Read from MH i2c: E2 03 00 [00:01:37]MH_I2C_Read... [00:01:37]Read from MH i2c: E2 03 00 43 69 00 90 00 20 [00:01:37]RAPDU: 90 00 [00:01:37]wFMCommunicate OK [00:01:37]wFMCommunicate request_size=255 [00:01:37]MH_SAM_APDU [00:01:37]CAPDU: 80 0D 02 02 FA 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 [00:01:38]Write to MH i2c: E2 02 01 44 69 80 0D 02 02 FA 00 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 00 00 C8 [00:01:38]Write i2c OK [00:01:38]MH_I2C_Read... [00:01:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:01:38]Read from MH i2c: E2 [00:01:38]MH_I2C_Read... [00:01:38]Read from MH i2c: E2 03 00 [00:01:38]MH_I2C_Read... [00:01:38]Read from MH i2c: E2 03 00 44 69 00 90 00 21 [00:01:38]RAPDU: 90 00 [00:01:38]wFMCommunicate OK [00:01:38]wFMCommunicate request_size=147 [00:01:38]MH_SAM_APDU [00:01:38]CAPDU: 80 0D 02 02 8E EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 64 08 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 35 04 06 00 5B 2E 8B CD 65 AC [00:01:38]Write to MH i2c: E2 96 00 45 69 80 0D 02 02 8E 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 64 08 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 35 04 06 00 5B 2E 8B CD 65 AC 00 00 C0 [00:01:38]Write i2c OK [00:01:38]MH_I2C_Read... [00:01:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:01:38]Read from MH i2c: E2 [00:01:38]MH_I2C_Read... [00:01:38]Read from MH i2c: E2 03 00 [00:01:38]MH_I2C_Read... [00:01:38]Read from MH i2c: E2 03 00 45 69 00 90 00 22 [00:01:38]RAPDU: 90 00 [00:01:38]wFMCommunicate OK [00:01:38]wFMCommunicate request_size=4 [00:01:38]MH_SAM_APDU [00:01:38]CAPDU: 80 0D 03 02 [00:01:38]Write to MH i2c: E2 08 00 46 69 80 0D 03 02 00 00 00 00 2A [00:01:38]Write i2c OK [00:01:38]MH_I2C_Read... [00:01:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:01:38]Read from MH i2c: E2 [00:01:38]MH_I2C_Read... [00:01:38]Read from MH i2c: E2 0B 00 [00:01:38]MH_I2C_Read... [00:01:38]Read from MH i2c: E2 0B 00 46 69 00 5F 04 62 FD 45 97 37 53 90 00 53 [00:01:38]RAPDU: 5F 04 62 FD 45 97 37 53 90 00 [00:01:38]wFMCommunicate OK [00:01:38]SAM_PROTO_SignData done [00:01:38]FM_MakeSignedData done [00:01:38]CreateOFDProtocolMessage [00:01:38]wFMCommunicate request_size=4 [00:01:38]MH_SAM_APDU [00:01:38]CAPDU: 80 11 00 00 [00:01:38]Write to MH i2c: E2 08 00 47 69 80 11 00 00 00 00 00 00 2A [00:01:38]Write i2c OK [00:01:39]MH_I2C_Read... [00:01:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:01:39]Read from MH i2c: E2 [00:01:39]MH_I2C_Read... [00:01:39]Read from MH i2c: E2 17 00 [00:01:39]MH_I2C_Read... [00:01:39]Read from MH i2c: E2 17 00 47 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 7A [00:01:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [00:01:39]wFMCommunicate OK [00:01:39]CreateOFDProtocolMessage done [00:01:39]OFDSenderStorePacket 2148 [00:01:39]StoreOFDPacket docnum=2148 [00:01:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 80 05 00 00 B8 6D 78 05 2E 61 5A 05 01 00 05 00 6C 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 96 D1 8D D1 8D D0 BD D0 BA D1 83 D0 BB D0 BE D0 B2 20 D0 96 2E 20 F4 03 04 00 DF DB A6 66 0E 04 04 00 0D 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 5E 04 04 00 C6 00 00 00 57 04 04 00 C8 00 00 00 AA 04 DC 04 6E 04 04 00 C6 00 00 00 69 04 A2 00 6F 04 04 00 C2 00 00 00 B1 04 03 00 E3 C1 57 70 04 03 00 50 F1 3B 72 04 03 00 93 D0 1B 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 D4 51 09 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 BC C6 6A 04 A0 00 6F 04 04 00 04 00 00 00 B1 04 03 00 EC 8A 01 70 04 02 00 18 79 72 04 03 00 D4 11 01 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 F0 29 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 7F 03 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 64 08 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 35 04 06 00 5B 2E 8B CD 65 AC 5F 04 62 FD 45 97 37 53 [00:01:39]CheckFolder [00:01:39]dirname=/storage/ofd_packets [00:01:39]CheckFolder done [00:01:39]ProducePacketName [00:01:39]name=ofd_packets/00002148 [00:01:39]NVStorageSaveData ofd_packets/00002148 [00:01:39]File name is /storage/ofd_packets/00002148 [00:01:39]Write 1438 bytes [00:01:39]NVStorageSaveData done [00:01:39]OFDSenderStorePacket done [00:01:39]KKMCreateOFDPacket done [00:01:39]NVStorageSaveData kkm_last_timestamp [00:01:39]File name is /storage/kkm_last_timestamp [00:01:39]Write 4 bytes [00:01:39]NVStorageSaveData done [00:01:39]ExternCall_PrintAddStr [00:01:39]wPrintStart [00:01:39]Write to MH i2c: 01 00 00 48 69 B1 [00:01:39]Write i2c OK [00:01:39]MH_I2C_Read... [00:01:39]Read from MH i2c: 01 [00:01:39]MH_I2C_Read... [00:01:39]Read from MH i2c: 01 07 00 [00:01:39]MH_I2C_Read... [00:01:39]Read from MH i2c: 01 07 00 48 69 00 00 00 00 00 FF 0F C6 [00:01:39]RasterBufferAndPrint [00:01:39]line Отчет о закрытии смены [00:01:39]line ФФД: 1.0 [00:01:39]line ИНН: 02508201610067 [00:01:39]line Кассир: Жээнкулов Ж. [00:01:39]line 29.07.2024 00:01 [00:01:39]line Смена: 13 [00:01:39]line РНМ: 0000000000189667 [00:01:39]line ЗНМ: 0300000161 [00:01:39]line СНО: Общий режим [00:01:39]line Чеков за смену: 198 [00:01:39]line ФД за смену: 200 [00:01:39]line Всего чеков: 198 [00:01:39]line ИТОГИ ПРИХОД [00:01:39]line Чеков: 194 [00:01:39]line Общий итог: 57512.67 [00:01:39]line Итого наличными: 39284.00 [00:01:39]line Итого безнал.: 18228.67 [00:01:39]line НДС 0% : 0.00 [00:01:39]line НДС 12% : 6107.72 [00:01:39]line НСП 0% : 0.00 [00:01:39]line НСП 1,50% : 0.00 [00:01:39]line НСП 0,50% : 0.00 [00:01:39]line НСП 5% : 0.00 [00:01:39]line НСП 3% : 0.00 [00:01:39]line НСП 2% : 0.00 [00:01:39]line НСП 1% : 508.76 [00:01:39]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:01:39]line Чеков: 4 [00:01:39]line Общий итог: 1011.00 [00:01:39]line Итого наличными: 310.00 [00:01:39]line Итого безнал.: 701.00 [00:01:39]line НДС 0% : 0.00 [00:01:39]line НДС 12% : 107.36 [00:01:39]line НСП 0% : 0.00 [00:01:39]line НСП 1,50% : 0.00 [00:01:39]line НСП 0,50% : 0.00 [00:01:39]line НСП 5% : 0.00 [00:01:39]line НСП 3% : 0.00 [00:01:39]line НСП 2% : 0.00 [00:01:39]line НСП 1% : 8.95 [00:01:39]line ИТОГИ РАСХОД [00:01:39]line Чеков: 0 [00:01:39]line Общий итог: 0.00 [00:01:39]line Итого наличными: 0.00 [00:01:39]line Итого безнал.: 0.00 [00:01:39]line НДС 0% : 0.00 [00:01:39]line НДС 12% : 0.00 [00:01:39]line НСП 0% : 0.00 [00:01:39]line НСП 1,50% : 0.00 [00:01:39]line НСП 0,50% : 0.00 [00:01:39]line НСП 5% : 0.00 [00:01:39]line НСП 3% : 0.00 [00:01:39]line НСП 2% : 0.00 [00:01:39]line НСП 1% : 0.00 [00:01:39]line ИТОГИ ВОЗВРАТ РАСХОДА [00:01:39]line Чеков: 0 [00:01:39]line Общий итог: 0.00 [00:01:39]line Итого наличными: 0.00 [00:01:39]line Итого безнал.: 0.00 [00:01:39]line НДС 0% : 0.00 [00:01:39]line НДС 12% : 0.00 [00:01:39]line НСП 0% : 0.00 [00:01:39]line НСП 1,50% : 0.00 [00:01:39]line НСП 0,50% : 0.00 [00:01:39]line НСП 5% : 0.00 [00:01:39]line НСП 3% : 0.00 [00:01:39]line НСП 2% : 0.00 [00:01:39]line НСП 1% : 0.00 [00:01:39]line Сумма внесений: 0.00 [00:01:39]line Сумма выплат: 0.00 [00:01:39]line Нал. в кассе: 38974.00 [00:01:39]line НС Приход: 898485.94 [00:01:39]line НС Возвр.Прихода: 12447.00 [00:01:39]line НС Расход: 0.00 [00:01:39]line НС Возвр.Расхода: 0.00 [00:01:39]line ФД: 2148 [00:01:39]line ФМ: 0000000002094248 [00:01:39]line ФПД: 100255472117164 [00:01:39]OFD Sender: Processing packet 2148 [packets to send 1, broken 0] [00:01:39]ProducePacketName [00:01:39]name=ofd_packets/00002148 [00:01:39]OFD Sender: To server: pG, [00:01:39]CommunicateWithHost lk.salyk.kg:30040 [00:01:39]ConnectInit lk.salyk.kg [00:01:39]written 0, free lines is 4095 [00:01:39]Connected sock=10 [00:01:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 80 05 00 00 B8 6D 78 05 2E 61 5A 05 01 00 05 00 6C 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 96 D1 8D D1 8D D0 BD D0 BA D1 83 D0 BB D0 BE D0 B2 20 D0 96 2E 20 F4 03 04 00 DF DB A6 66 0E 04 04 00 0D 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 5E 04 04 00 C6 00 00 00 57 04 04 00 C8 00 00 00 AA 04 DC 04 6E 04 04 00 C6 00 00 00 69 04 A2 00 6F 04 04 00 C2 00 00 00 B1 04 03 00 E3 C1 57 70 04 03 00 50 F1 3B 72 04 03 00 93 D0 1B 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 D4 51 09 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 BC C6 6A 04 A0 00 6F 04 04 00 04 00 00 00 B1 04 03 00 EC 8A 01 70 04 02 00 18 79 72 04 03 00 D4 11 01 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 F0 29 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 7F 03 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 Write to MH i2c: 03 01 01 00 00 00 01 98 F7 69 03 01 01 [00:01:40]00 Write i2c OK [00:01:40]00 MH_I2C_Read... [00:01:40]6D Read from MH i2c: 04 01 4C [00:01:40]02 MH_I2C_Read... [00:01:40]78 04 04 00 00 00 00 00 79 04 8D 00 Read from MH i2c: 6F 01 04 07 04 00 00 [00:01:40]00 MH_I2C_Read... [00:01:40]00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 Read from MH i2c: 04 01 75 07 00 00 EE 98 03 69 09 00 00 00 F2 00 03 00 01 00 00 5F 00 0C F3 73 03 [00:01:40]00 RasterBufferAndPrint [00:01:40]00 line [00:01:40]EE line [00:01:40]03 line [00:01:40]09 line [00:01:40]00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 line [00:01:40]F6 03 written 0, free lines is 3332 [00:01:40]01 00 00 F7 03 00 00 EF 03 09 00 F6 03 MH_Cut [00:01:40]01 Write to MH i2c: 00 D1 01 01 F7 00 03 9F 00 69 00 01 EF DA 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 [00:01:40]00 F6 03 01 00 03 F7 03 00 00 EF 03 Write i2c OK [00:01:40]09 MH_I2C_Read... [00:01:40]00 Read from MH i2c: F6 D1 03 [00:01:40]01 MH_I2C_Read... [00:01:40]00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 Read from MH i2c: 05 D1 F7 01 03 00 00 [00:01:40]00 MH_I2C_Read... [00:01:40]EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 Read from MH i2c: 8D D1 00 01 6F 00 04 9F 04 69 00 00 00 D9 00 [00:01:40]00 Write to MH i2c: 00 01 B1 00 04 00 00 A0 00 69 70 09 04 [00:01:40]00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 Write i2c OK [00:01:41]F6 MH_I2C_Read... [00:01:41]03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 64 08 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 35 04 06 00 5B 2E 8B CD 65 AC 5F 04 62 FD 45 97 37 53 [00:01:41]*** Cut start [00:01:41]*** Partial cut [00:01:41]*** CUTSNS_PIN = 1 [00:01:41]*** CUTSNS_PIN = 0 [00:01:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 17 *** Brake cut motor [00:01:41]EC 47 00 46 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 64 08 00 00 F4 03 04 00 59 87 A6 66 B6 04 01 00 00 24 CB 83 E7 41 04 0B D4 [00:01:41]CommunicateWithHost err = 0 [00:01:41]CheckOFDResponse [00:01:41]1017 (14) - 77093643461234 [00:01:41]1041 (16) - 0000000002094248 [00:01:41]1040 (4) - 2148 [00:01:41]1012 (4) - 28.07.2024 18:00 [00:01:41]1206 (1) - 0 [00:01:41]OFD Sender: Remove packet 2148 [00:01:41]ProducePacketName [00:01:41]name=ofd_packets/00002148 [00:01:41]NVStorageDeleteData [00:01:42]Read from MH i2c: 01 [00:01:42]MH_I2C_Read... [00:01:42]*** Stop cut motor [00:01:42]*** Cut end [00:01:42]Read from MH i2c: 01 07 00 [00:01:42]MH_I2C_Read... [00:01:42]Read from MH i2c: 01 07 00 A0 69 00 00 00 00 00 FF 0F 1E [00:01:42]process_action close_shift done [00:01:42]requested_data is exist [00:01:42]produce_requested_data [00:01:42]requested_item fd.num is exist - process it [00:01:42]SAM_PROTO_GetFieldsCounters [00:01:42]wFMCommunicate request_size=4 [00:01:42]MH_SAM_APDU [00:01:42]CAPDU: 80 13 00 00 [00:01:42]Write to MH i2c: E2 08 00 A1 69 80 13 00 00 00 00 00 00 86 [00:01:42]Write i2c OK [00:01:42]MH_I2C_Read... [00:01:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:01:42]Read from MH i2c: E2 [00:01:42]MH_I2C_Read... [00:01:42]Read from MH i2c: E2 62 00 [00:01:42]MH_I2C_Read... [00:01:42]Read from MH i2c: E2 62 00 A1 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 64 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [00:01:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 64 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:01:42]wFMCommunicate OK [00:01:42]SAM_PROTO_GetFieldsCounters done [00:01:42]requested_item shift.num is exist - process it [00:01:42]requested_item shift.opened is exist - process it [00:01:42]req_shift_opened [00:01:42]FM_GetShiftState [00:01:42]SAM_PROTO_GetShiftState [00:01:42]wFMCommunicate request_size=4 [00:01:42]MH_SAM_APDU [00:01:42]CAPDU: 80 13 01 00 [00:01:42]Write to MH i2c: E2 08 00 A2 69 80 13 01 00 00 00 00 00 88 [00:01:42]Write i2c OK [00:01:42]MH_I2C_Read... [00:01:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:01:42]Read from MH i2c: E2 [00:01:42]MH_I2C_Read... [00:01:42]Read from MH i2c: E2 0E 00 [00:01:42]MH_I2C_Read... [00:01:42]OFD Sender: No OFD packet to send [00:01:42]Read from MH i2c: E2 0E 00 A2 69 00 09 00 00 00 00 00 00 00 00 00 00 90 00 93 [00:01:42]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:01:42]wFMCommunicate OK [00:01:42]SAM_PROTO_GetShiftState done [00:01:42]FM_GetShiftState done [00:01:42]req_shift_opened done [00:01:42]requested_item shift.open_date is exist - process it [00:01:42]req_shift_open_date [00:01:42]FM_GetShiftState [00:01:42]SAM_PROTO_GetShiftState [00:01:42]wFMCommunicate request_size=4 [00:01:42]MH_SAM_APDU [00:01:42]CAPDU: 80 13 01 00 [00:01:42]Write to MH i2c: E2 08 00 A3 69 80 13 01 00 00 00 00 00 89 [00:01:42]Write i2c OK [00:01:42]MH_I2C_Read... [00:01:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:01:42]Read from MH i2c: E2 [00:01:42]MH_I2C_Read... [00:01:42]Read from MH i2c: E2 0E 00 [00:01:42]MH_I2C_Read... [00:01:42]Read from MH i2c: E2 0E 00 A3 69 00 09 00 00 00 00 00 00 00 00 00 00 90 00 94 [00:01:42]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:01:42]wFMCommunicate OK [00:01:42]SAM_PROTO_GetShiftState done [00:01:42]FM_GetShiftState done [00:01:42]req_shift_open_date done [00:01:42]produce_requested_data done [00:01:42]produce_requested_data return {"fd.num":2148,"shift.num":13,"shift.opened":0,"shift.open_date":0} [00:01:42]process_action_free close_shift [00:01:42]json_value_free [00:01:42]json_value_free done [00:01:42]process_json_proto returns [00:01:42]Send response to host [00:01:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":2148,"shift.num":13,"shift.opened":0,"shift.open_date":0}}} [00:01:42]free response buf [00:01:42]execute_script done [00:01:42]execute_script returns [00:01:42]free content buf [00:01:42]Sock 9.Close socket [00:01:42]Sock 9.Thread stoped [00:01:47]OFD Sender: No OFD packet to send [00:01:52]OFD Sender: No OFD packet to send [00:01:57]OFD Sender: No OFD packet to send [00:02:02]OFD Sender: No OFD packet to send [00:02:07]OFD Sender: No OFD packet to send [00:02:12]OFD Sender: No OFD packet to send [00:02:17]OFD Sender: No OFD packet to send [00:02:22]OFD Sender: No OFD packet to send [00:02:27]OFD Sender: No OFD packet to send [00:02:32]OFD Sender: No OFD packet to send [00:02:37]OFD Sender: No OFD packet to send [00:02:42]OFD Sender: No OFD packet to send [00:02:47]OFD Sender: No OFD packet to send [00:02:52]OFD Sender: No OFD packet to send [00:02:57]OFD Sender: No OFD packet to send [00:03:02]OFD Sender: No OFD packet to send [00:03:07]OFD Sender: No OFD packet to send [00:03:12]OFD Sender: No OFD packet to send [00:03:17]OFD Sender: No OFD packet to send [00:03:22]OFD Sender: No OFD packet to send [00:03:27]OFD Sender: No OFD packet to send [00:03:32]OFD Sender: No OFD packet to send [00:03:37]OFD Sender: No OFD packet to send [00:03:42]OFD Sender: No OFD packet to send [00:03:47]OFD Sender: No OFD packet to send [00:03:52]OFD Sender: No OFD packet to send [00:03:57]OFD Sender: No OFD packet to send [00:04:02]OFD Sender: No OFD packet to send [00:04:07]OFD Sender: No OFD packet to send [00:04:12]OFD Sender: No OFD packet to send [00:04:17]OFD Sender: No OFD packet to send [00:04:22]OFD Sender: No OFD packet to send [00:04:27]OFD Sender: No OFD packet to send [00:04:32]OFD Sender: No OFD packet to send [00:04:37]OFD Sender: No OFD packet to send [00:04:42]OFD Sender: No OFD packet to send [00:04:47]OFD Sender: No OFD packet to send [00:04:52]OFD Sender: No OFD packet to send [00:04:57]OFD Sender: No OFD packet to send [00:05:02]OFD Sender: No OFD packet to send [00:05:07]OFD Sender: No OFD packet to send [00:05:12]OFD Sender: No OFD packet to send [00:05:17]OFD Sender: No OFD packet to send [00:05:22]OFD Sender: No OFD packet to send [00:05:27]OFD Sender: No OFD packet to send [00:05:32]OFD Sender: No OFD packet to send [00:05:37]OFD Sender: No OFD packet to send [00:05:42]OFD Sender: No OFD packet to send [00:05:47]OFD Sender: No OFD packet to send [00:05:52]OFD Sender: No OFD packet to send [00:05:57]OFD Sender: No OFD packet to send [00:06:02]OFD Sender: No OFD packet to send [00:06:07]OFD Sender: No OFD packet to send [00:06:12]OFD Sender: No OFD packet to send [00:06:17]OFD Sender: No OFD packet to send [00:06:22]OFD Sender: No OFD packet to send [00:06:27]OFD Sender: No OFD packet to send [00:06:32]OFD Sender: No OFD packet to send [00:06:37]OFD Sender: No OFD packet to send [00:06:42]OFD Sender: No OFD packet to send [00:06:47]OFD Sender: No OFD packet to send [00:06:52]OFD Sender: No OFD packet to send [00:06:57]OFD Sender: No OFD packet to send [00:07:02]OFD Sender: No OFD packet to send [00:07:07]OFD Sender: No OFD packet to send [00:07:12]OFD Sender: No OFD packet to send [00:07:17]OFD Sender: No OFD packet to send [00:07:22]OFD Sender: No OFD packet to send [00:07:27]OFD Sender: No OFD packet to send [00:07:32]OFD Sender: No OFD packet to send [00:07:37]OFD Sender: No OFD packet to send [00:07:42]OFD Sender: No OFD packet to send [00:07:47]OFD Sender: No OFD packet to send [00:07:52]OFD Sender: No OFD packet to send [00:07:57]OFD Sender: No OFD packet to send [00:08:02]OFD Sender: No OFD packet to send [00:08:07]OFD Sender: No OFD packet to send [00:08:12]OFD Sender: No OFD packet to send [00:08:17]OFD Sender: No OFD packet to send [00:08:22]OFD Sender: No OFD packet to send [00:08:27]OFD Sender: No OFD packet to send [00:08:32]OFD Sender: No OFD packet to send [00:08:37]OFD Sender: No OFD packet to send [00:08:42]OFD Sender: No OFD packet to send [00:08:47]OFD Sender: No OFD packet to send [00:08:52]OFD Sender: No OFD packet to send [00:08:57]OFD Sender: No OFD packet to send [00:09:02]OFD Sender: No OFD packet to send [00:09:07]OFD Sender: No OFD packet to send [00:09:12]OFD Sender: No OFD packet to send [00:09:17]OFD Sender: No OFD packet to send [00:09:22]OFD Sender: No OFD packet to send [00:09:27]OFD Sender: No OFD packet to send [00:09:32]OFD Sender: No OFD packet to send [00:09:37]OFD Sender: No OFD packet to send [00:09:42]OFD Sender: No OFD packet to send [00:09:47]OFD Sender: No OFD packet to send [00:09:52]OFD Sender: No OFD packet to send [00:09:57]OFD Sender: No OFD packet to send [00:10:02]OFD Sender: No OFD packet to send [00:10:07]OFD Sender: No OFD packet to send [00:10:12]OFD Sender: No OFD packet to send [00:10:17]OFD Sender: No OFD packet to send [00:10:22]OFD Sender: No OFD packet to send [00:10:27]OFD Sender: No OFD packet to send [00:10:32]OFD Sender: No OFD packet to send [00:10:37]OFD Sender: No OFD packet to send [00:10:42]OFD Sender: No OFD packet to send [00:10:47]OFD Sender: No OFD packet to send [00:10:52]OFD Sender: No OFD packet to send [00:10:57]OFD Sender: No OFD packet to send [00:11:02]OFD Sender: No OFD packet to send [00:11:07]OFD Sender: No OFD packet to send [00:11:12]OFD Sender: No OFD packet to send [00:11:17]OFD Sender: No OFD packet to send [00:11:22]OFD Sender: No OFD packet to send [00:11:27]OFD Sender: No OFD packet to send [00:11:32]OFD Sender: No OFD packet to send [00:11:37]OFD Sender: No OFD packet to send [00:11:42]OFD Sender: No OFD packet to send [00:11:47]OFD Sender: No OFD packet to send [00:11:52]OFD Sender: No OFD packet to send [00:11:57]OFD Sender: No OFD packet to send [00:12:02]OFD Sender: No OFD packet to send [00:12:07]OFD Sender: No OFD packet to send [00:12:12]OFD Sender: No OFD packet to send [00:12:14]accept exits with 8 [00:12:14]New connection [00:12:14]New thread 3067317604 created [00:12:14]Thread 3067460964 joined [00:12:14]Waiting for new connection... [00:12:14] Sock 8.Parse request [00:12:14]Sock 8.Check first char [00:12:14]Sock 8.First char is OK [00:12:14]request: POST /json_proto HTTP/1.0 [00:12:14]Method: POST [00:12:14]URL: /json_proto [00:12:14]Method is POST - this is cgi request [00:12:14]url: /json_proto [00:12:14]query_string will be loaded in cgi processing [00:12:14]execute_cgi json_proto POST (null) [00:12:14]execute_cgi path=json_proto method=POST [00:12:14]POST find Content-Length [00:12:14]Host: 172.17.45.132:8080 [00:12:14]Content-Length: 215 [00:12:14]Content-Type: application/json [00:12:14] [00:12:14]POST finish read [00:12:14]Found Content-Length = 215 [00:12:14]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:12:14]execute_script... [00:12:14]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:12:14]POST & json_proto [00:12:14]process_json_proto [00:12:14]json parsed OK: [00:12:14]protocol is kg_v1.0 [00:12:14]action value=get_value [00:12:14]process_action get_value [00:12:14]cmd_get_value [00:12:14]process_action get_value done [00:12:14]requested_data is exist [00:12:14]produce_requested_data [00:12:14]requested_item kkm.sn is exist - process it [00:12:14]requested_item kkm.ver is exist - process it [00:12:14]requested_item fm.sn is exist - process it [00:12:14]wFMCommunicate request_size=4 [00:12:14]MH_SAM_APDU [00:12:14]CAPDU: 80 11 00 00 [00:12:14]Write to MH i2c: E2 08 00 A4 69 80 11 00 00 00 00 00 00 87 [00:12:14]Write i2c OK [00:12:14]MH_I2C_Read... [00:12:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:12:14]Read from MH i2c: E2 [00:12:14]MH_I2C_Read... [00:12:14]Read from MH i2c: E2 17 00 [00:12:14]MH_I2C_Read... [00:12:14]Read from MH i2c: E2 17 00 A4 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 D7 [00:12:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [00:12:14]wFMCommunicate OK [00:12:14]requested_item fd.num is exist - process it [00:12:14]SAM_PROTO_GetFieldsCounters [00:12:14]wFMCommunicate request_size=4 [00:12:14]MH_SAM_APDU [00:12:14]CAPDU: 80 13 00 00 [00:12:14]Write to MH i2c: E2 08 00 A5 69 80 13 00 00 00 00 00 00 8A [00:12:14]Write i2c OK [00:12:14]MH_I2C_Read... [00:12:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:12:15]Read from MH i2c: E2 [00:12:15]MH_I2C_Read... [00:12:15]Read from MH i2c: E2 62 00 [00:12:15]MH_I2C_Read... [00:12:15]Read from MH i2c: E2 62 00 A5 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 64 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [00:12:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 64 08 00 00 0E 04 04 00 0D 00 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:12:15]wFMCommunicate OK [00:12:15]SAM_PROTO_GetFieldsCounters done [00:12:15]requested_item shift.num is exist - process it [00:12:15]requested_item shift.opened is exist - process it [00:12:15]req_shift_opened [00:12:15]FM_GetShiftState [00:12:15]SAM_PROTO_GetShiftState [00:12:15]wFMCommunicate request_size=4 [00:12:15]MH_SAM_APDU [00:12:15]CAPDU: 80 13 01 00 [00:12:15]Write to MH i2c: E2 08 00 A6 69 80 13 01 00 00 00 00 00 8C [00:12:15]Write i2c OK [00:12:15]MH_I2C_Read... [00:12:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:12:15]Read from MH i2c: E2 [00:12:15]MH_I2C_Read... [00:12:15]Read from MH i2c: E2 0E 00 [00:12:15]MH_I2C_Read... [00:12:15]Read from MH i2c: E2 0E 00 A6 69 00 09 00 00 00 00 00 00 00 00 00 00 90 00 97 [00:12:15]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:12:15]wFMCommunicate OK [00:12:15]SAM_PROTO_GetShiftState done [00:12:15]FM_GetShiftState done [00:12:15]req_shift_opened done [00:12:15]requested_item shift.open_date is exist - process it [00:12:15]req_shift_open_date [00:12:15]FM_GetShiftState [00:12:15]SAM_PROTO_GetShiftState [00:12:15]wFMCommunicate request_size=4 [00:12:15]MH_SAM_APDU [00:12:15]CAPDU: 80 13 01 00 [00:12:15]Write to MH i2c: E2 08 00 A7 69 80 13 01 00 00 00 00 00 8D [00:12:15]Write i2c OK [00:12:15]MH_I2C_Read... [00:12:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:12:15]Read from MH i2c: E2 [00:12:15]MH_I2C_Read... [00:12:15]Read from MH i2c: E2 0E 00 [00:12:15]MH_I2C_Read... [00:12:15]Read from MH i2c: E2 0E 00 A7 69 00 09 00 00 00 00 00 00 00 00 00 00 90 00 98 [00:12:15]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:12:15]wFMCommunicate OK [00:12:15]SAM_PROTO_GetShiftState done [00:12:15]FM_GetShiftState done [00:12:15]req_shift_open_date done [00:12:15]produce_requested_data done [00:12:15]produce_requested_data return {"kkm.sn":"0300000161","kkm.ver":"v1.0","fm.sn":"0000000002094248","fd.num":2148,"shift.num":13,"shift.opened":0,"shift.open_date":0} [00:12:15]process_action_free get_value [00:12:15]json_value_free [00:12:15]json_value_free done [00:12:15]process_json_proto returns [00:12:15]Send response to host [00:12:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000161","kkm.ver":"v1.0","fm.sn":"0000000002094248","fd.num":2148,"shift.num":13,"shift.opened":0,"shift.open_date":0}}} [00:12:15]free response buf [00:12:15]execute_script done [00:12:15]execute_script returns [00:12:15]free content buf [00:12:15]Sock 8.Close socket [00:12:15]Sock 8.Thread stoped [00:12:15]accept exits with 9 [00:12:15]New connection [00:12:15]New thread 3067460964 created [00:12:15]Thread 3067317604 joined [00:12:15]Waiting for new connection... [00:12:15] Sock 9.Parse request [00:12:15]Sock 9.Check first char [00:12:15]Sock 9.First char is OK [00:12:15]request: POST /json_proto HTTP/1.0 [00:12:15]Method: POST [00:12:15]URL: /json_proto [00:12:15]Method is POST - this is cgi request [00:12:15]url: /json_proto [00:12:15]query_string will be loaded in cgi processing [00:12:15]execute_cgi json_proto POST (null) [00:12:15]execute_cgi path=json_proto method=POST [00:12:15]POST find Content-Length [00:12:15]Host: 172.17.45.132:8080 [00:12:15]Content-Length: 331 [00:12:15]Content-Type: application/json [00:12:15] [00:12:15]POST finish read [00:12:15]Found Content-Length = 331 [00:12:15]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:12:15]execute_script... [00:12:15]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:12:15]POST & json_proto [00:12:15]process_json_proto [00:12:15]json parsed OK: [00:12:15]protocol is kg_v1.0 [00:12:15]action value=get_value [00:12:15]process_action get_value [00:12:15]cmd_get_value [00:12:15]process_action get_value done [00:12:15]requested_data is exist [00:12:15]produce_requested_data [00:12:15]requested_item fm.sale.total is exist - process it [00:12:15]SAM_PROTO_GetFMData [00:12:15]wFMCommunicate request_size=4 [00:12:15]MH_SAM_APDU [00:12:15]CAPDU: 80 13 03 00 [00:12:15]Write to MH i2c: E2 08 00 A8 69 80 13 03 00 00 00 00 00 90 [00:12:15]Write i2c OK [00:12:15]MH_I2C_Read... [00:12:15]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:12:15]Read from MH i2c: E2 [00:12:15]MH_I2C_Read... [00:12:15]Read from MH i2c: E2 FD 00 [00:12:15]MH_I2C_Read... [00:12:15]Read from MH i2c: E2 FD 00 A8 69 00 C0 04 85 04 BC 04 6E 04 04 00 49 08 00 00 69 04 9F 00 6F 04 04 00 38 08 00 00 B1 04 04 00 12 FB 5A 05 70 04 04 00 C4 A8 76 03 72 04 04 00 4E 52 E4 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 9B 91 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 65 21 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 53 04 02 EF 03 09 00 F6 03 01 90 00 9E [00:12:15]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 49 08 00 00 69 04 9F 00 6F 04 04 00 38 08 00 00 B1 04 04 00 12 FB 5A 05 70 04 04 00 C4 A8 76 03 72 04 04 00 4E 52 E4 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 9B 91 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 65 21 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 53 04 02 EF 03 09 00 F6 03 01 90 00 [00:12:15]wFMCommunicate OK [00:12:15]wFMCommunicate request_size=4 [00:12:15]MH_SAM_APDU [00:12:15]CAPDU: 80 17 00 00 [00:12:15]Write to MH i2c: E2 08 00 A9 69 80 17 00 00 00 00 00 00 92 [00:12:15]Write i2c OK [00:12:15]MH_I2C_Read... [00:12:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:16]Read from MH i2c: E2 [00:12:16]MH_I2C_Read... [00:12:16]Read from MH i2c: E2 FD 00 [00:12:16]MH_I2C_Read... [00:12:16]Read from MH i2c: E2 FD 00 A9 69 00 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 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 90 00 F1 [00:12:16]RAPDU: 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 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 90 00 [00:12:16]wFMCommunicate OK [00:12:16]wFMCommunicate request_size=4 [00:12:16]MH_SAM_APDU [00:12:16]CAPDU: 80 17 00 00 [00:12:16]Write to MH i2c: E2 08 00 AA 69 80 17 00 00 00 00 00 00 93 [00:12:16]Write i2c OK [00:12:16]MH_I2C_Read... [00:12:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:16]Read from MH i2c: E2 [00:12:16]MH_I2C_Read... [00:12:16]Read from MH i2c: E2 FD 00 [00:12:16]MH_I2C_Read... [00:12:16]Read from MH i2c: E2 FD 00 AA 69 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 90 00 36 [00:12:16]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 90 00 [00:12:16]wFMCommunicate OK [00:12:16]wFMCommunicate request_size=4 [00:12:16]MH_SAM_APDU [00:12:16]CAPDU: 80 17 00 00 [00:12:16]Write to MH i2c: E2 08 00 AB 69 80 17 00 00 00 00 00 00 94 [00:12:16]Write i2c OK [00:12:16]MH_I2C_Read... [00:12:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:16]Read from MH i2c: E2 [00:12:16]MH_I2C_Read... [00:12:16]Read from MH i2c: E2 FD 00 [00:12:16]MH_I2C_Read... [00:12:16]Read from MH i2c: E2 FD 00 AB 69 00 01 00 04 F7 03 00 00 EF 03 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 90 00 0C [00:12:16]RAPDU: 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:12:16]wFMCommunicate OK [00:12:16]wFMCommunicate request_size=4 [00:12:16]MH_SAM_APDU [00:12:16]CAPDU: 80 17 00 00 [00:12:16]Write to MH i2c: E2 08 00 AC 69 80 17 00 00 00 00 00 00 95 [00:12:16]Write i2c OK [00:12:16]MH_I2C_Read... [00:12:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [00:12:16]Read from MH i2c: E2 [00:12:16]MH_I2C_Read... [00:12:16]Read from MH i2c: E2 DD 00 [00:12:16]MH_I2C_Read... [00:12:16]Read from MH i2c: E2 DD 00 AC 69 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7D [00:12:16]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:12:16]wFMCommunicate OK [00:12:16]SAM_PROTO_GetFMData done [00:12:16]requested_item fm.sale_refund.total is exist - process it [00:12:16]requested_item fm.buy.total is exist - process it [00:12:16]requested_item shift.sale.total is exist - process it [00:12:16]SAM_PROTO_GetShiftData [00:12:16]wFMCommunicate request_size=4 [00:12:16]MH_SAM_APDU [00:12:16]CAPDU: 80 13 02 00 [00:12:16]Write to MH i2c: E2 08 00 AD 69 80 13 02 00 00 00 00 00 94 [00:12:16]Write i2c OK [00:12:16]MH_I2C_Read... [00:12:17]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:12:17]Read from MH i2c: E2 [00:12:17]MH_I2C_Read... [00:12:17]Read from MH i2c: E2 FD 00 [00:12:17]MH_I2C_Read... [00:12:17]Read from MH i2c: E2 FD 00 AD 69 00 BA 04 AA 04 B6 04 6E 04 04 00 C6 00 00 00 69 04 9B 00 6F 04 04 00 C2 00 00 00 B1 04 03 00 E3 C1 57 70 04 03 00 50 F1 3B 72 04 03 00 93 D0 1B 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 D4 51 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 BC C6 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 99 00 6F 04 04 00 04 00 00 00 B1 04 03 00 EC 8A 01 70 04 02 00 18 79 72 04 03 00 D4 11 01 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 F0 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 D4 [00:12:17]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 C6 00 00 00 69 04 9B 00 6F 04 04 00 C2 00 00 00 B1 04 03 00 E3 C1 57 70 04 03 00 50 F1 3B 72 04 03 00 93 D0 1B 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 D4 51 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 BC C6 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 99 00 6F 04 04 00 04 00 00 00 B1 04 03 00 EC 8A 01 70 04 02 00 18 79 72 04 03 00 D4 11 01 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 F0 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:12:17]wFMCommunicate OK [00:12:17]wFMCommunicate request_size=4 [00:12:17]MH_SAM_APDU [00:12:17]CAPDU: 80 17 00 00 [00:12:17]Write to MH i2c: E2 08 00 AE 69 80 17 00 00 00 00 00 00 97 [00:12:17]Write i2c OK [00:12:17]MH_I2C_Read... [00:12:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:17]Read from MH i2c: E2 [00:12:17]MH_I2C_Read... [00:12:17]Read from MH i2c: E2 FD 00 [00:12:17]MH_I2C_Read... [00:12:17]Read from MH i2c: E2 FD 00 AE 69 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 C3 [00:12:17]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 [00:12:17]wFMCommunicate OK [00:12:17]wFMCommunicate request_size=4 [00:12:17]MH_SAM_APDU [00:12:17]CAPDU: 80 17 00 00 [00:12:17]Write to MH i2c: E2 08 00 AF 69 80 17 00 00 00 00 00 00 98 [00:12:17]Write i2c OK [00:12:17]MH_I2C_Read... [00:12:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:17]Read from MH i2c: E2 [00:12:17]MH_I2C_Read... [00:12:18]Read from MH i2c: E2 FD 00 [00:12:18]MH_I2C_Read... [00:12:18]Read from MH i2c: E2 FD 00 AF 69 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 C4 [00:12:18]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 [00:12:18]wFMCommunicate OK [00:12:18]wFMCommunicate request_size=4 [00:12:18]MH_SAM_APDU [00:12:18]CAPDU: 80 17 00 00 [00:12:18]Write to MH i2c: E2 08 00 B0 69 80 17 00 00 00 00 00 00 99 [00:12:18]OFD Sender: No OFD packet to send [00:12:18]Write i2c OK [00:12:18]MH_I2C_Read... [00:12:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:18]Read from MH i2c: E2 [00:12:18]MH_I2C_Read... [00:12:18]Read from MH i2c: E2 FD 00 [00:12:18]MH_I2C_Read... [00:12:18]Read from MH i2c: E2 FD 00 B0 69 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 11 [00:12:18]RAPDU: 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 [00:12:18]wFMCommunicate OK [00:12:18]wFMCommunicate request_size=4 [00:12:18]MH_SAM_APDU [00:12:18]CAPDU: 80 17 00 00 [00:12:18]Write to MH i2c: E2 08 00 B1 69 80 17 00 00 00 00 00 00 9A [00:12:18]Write i2c OK [00:12:18]MH_I2C_Read... [00:12:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [00:12:18]Read from MH i2c: E2 [00:12:18]MH_I2C_Read... [00:12:18]Read from MH i2c: E2 D7 00 [00:12:18]MH_I2C_Read... [00:12:18]Read from MH i2c: E2 D7 00 B1 69 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7D [00:12:18]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:12:18]wFMCommunicate OK [00:12:18]SAM_PROTO_GetShiftData done [00:12:18]requested_item shift.sale.total_cash is exist - process it [00:12:18]requested_item shift.sale_refund.total is exist - process it [00:12:18]requested_item shift.sale_refund.total_cash is exist - process it [00:12:18]requested_item shift.buy.total is exist - process it [00:12:18]requested_item shift.buy.total_cash is exist - process it [00:12:18]produce_requested_data done [00:12:18]produce_requested_data return {"fm.sale.total":898485.94,"fm.sale_refund.total":12447.00,"fm.buy.total":0.00,"shift.sale.total":57512.67,"shift.sale.total_cash":39284.00,"shift.sale_refund.total":1011.00,"shift.sale_refund.total_cash":310.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:12:18]process_action_free get_value [00:12:18]json_value_free [00:12:18]json_value_free done [00:12:18]process_json_proto returns [00:12:18]Send response to host [00:12:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":898485.94,"fm.sale_refund.total":12447.00,"fm.buy.total":0.00,"shift.sale.total":57512.67,"shift.sale.total_cash":39284.00,"shift.sale_refund.total":1011.00,"shift.sale_refund.total_cash":310.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:12:18]free response buf [00:12:18]execute_script done [00:12:18]execute_script returns [00:12:18]free content buf [00:12:18]Sock 9.Close socket [00:12:18]Sock 9.Thread stoped [00:12:18]accept exits with 8 [00:12:18]New connection [00:12:18]New thread 3067317604 created [00:12:18]Thread 3067460964 joined [00:12:18]Waiting for new connection... [00:12:18] Sock 8.Parse request [00:12:18]Sock 8.Check first char [00:12:18]Sock 8.First char is OK [00:12:18]request: POST /json_proto HTTP/1.0 [00:12:18]Method: POST [00:12:18]URL: /json_proto [00:12:18]Method is POST - this is cgi request [00:12:18]url: /json_proto [00:12:18]query_string will be loaded in cgi processing [00:12:18]execute_cgi json_proto POST (null) [00:12:18]execute_cgi path=json_proto method=POST [00:12:18]POST find Content-Length [00:12:18]Host: 172.17.45.132:8080 [00:12:18]Content-Length: 259 [00:12:18]Content-Type: application/json [00:12:18] [00:12:18]POST finish read [00:12:18]Found Content-Length = 259 [00:12:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u041C\u0430\u043D\u0441\u0443\u0440\u043E\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:12:18]execute_script... [00:12:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u041C\u0430\u043D\u0441\u0443\u0440\u043E\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:12:18]POST & json_proto [00:12:18]process_json_proto [00:12:18]json parsed OK: [00:12:18]protocol is kg_v1.0 [00:12:18]action value=open_shift [00:12:18]process_action open_shift [00:12:18]cmd_open_shift [00:12:18]MH_GetDate [00:12:18]Write to MH i2c: F0 00 00 B2 69 0A [00:12:18]Write i2c OK [00:12:18]MH_I2C_Read... [00:12:18]Read from MH i2c: F0 [00:12:18]MH_I2C_Read... [00:12:18]Read from MH i2c: F0 09 00 [00:12:18]MH_I2C_Read... [00:12:18]Read from MH i2c: F0 09 00 B2 69 00 6B DE A6 66 E3 0B 90 66 4C [00:12:18]GetLastDocTimeStamp 1722211295 [00:12:18]current date 1722211947 [00:12:18]FM_GetShiftState [00:12:18]SAM_PROTO_GetShiftState [00:12:18]wFMCommunicate request_size=4 [00:12:18]MH_SAM_APDU [00:12:18]CAPDU: 80 13 01 00 [00:12:18]Write to MH i2c: E2 08 00 B3 69 80 13 01 00 00 00 00 00 99 [00:12:18]Write i2c OK [00:12:18]MH_I2C_Read... [00:12:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:12:18]Read from MH i2c: E2 [00:12:18]MH_I2C_Read... [00:12:18]Read from MH i2c: E2 0E 00 [00:12:18]MH_I2C_Read... [00:12:18]Read from MH i2c: E2 0E 00 B3 69 00 09 00 00 00 00 00 00 00 00 00 00 90 00 A4 [00:12:18]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:12:18]wFMCommunicate OK [00:12:18]SAM_PROTO_GetShiftState done [00:12:18]FM_GetShiftState done [00:12:18]KKMCreateOpenShiftDocument [00:12:18]Load OK [00:12:18]Malloc new data [00:12:18]MH_GetDate [00:12:18]Write to MH i2c: F0 00 00 B4 69 0C [00:12:18]Write i2c OK [00:12:18]MH_I2C_Read... [00:12:18]Read from MH i2c: F0 [00:12:18]MH_I2C_Read... [00:12:18]Read from MH i2c: F0 09 00 [00:12:18]MH_I2C_Read... [00:12:18]Read from MH i2c: F0 09 00 B4 69 00 6B DE A6 66 E3 0B 90 66 4E [00:12:18]Malloc new data [00:12:18]KKMCreateOpenShiftDocument OK [00:12:18]KKMSetOpenShiftData OK [00:12:18]ProcessDocumentItem done err = 0, tmpTLVsize=201 [00:12:18]tlvbuf is 02025760 [00:12:18]KKMLoadAndSignOpenShiftData [00:12:18]SAM_PROTO_ProcessDocument [00:12:18]wFMCommunicate request_size=9 [00:12:18]MH_SAM_APDU [00:12:18]CAPDU: 80 15 01 00 04 02 00 C9 00 [00:12:18]Write to MH i2c: E2 0C 00 B5 69 80 15 01 00 04 00 02 00 C9 00 00 00 70 [00:12:18]Write i2c OK [00:12:18]MH_I2C_Read... [00:12:19]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:12:19]Read from MH i2c: E2 [00:12:19]MH_I2C_Read... [00:12:19]Read from MH i2c: E2 03 00 [00:12:19]MH_I2C_Read... [00:12:19]Read from MH i2c: E2 03 00 B5 69 00 90 00 92 [00:12:19]RAPDU: 90 00 [00:12:19]wFMCommunicate OK [00:12:19]wFMCommunicate request_size=23 [00:12:19]MH_SAM_APDU [00:12:19]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:12:19]Write to MH i2c: E2 1A 00 B6 69 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 94 [00:12:19]Write i2c OK [00:12:19]MH_I2C_Read... [00:12:19]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:12:19]Read from MH i2c: E2 [00:12:19]MH_I2C_Read... [00:12:19]Read from MH i2c: E2 03 00 [00:12:19]MH_I2C_Read... [00:12:19]Read from MH i2c: E2 03 00 B6 69 00 90 00 93 [00:12:19]RAPDU: 90 00 [00:12:19]wFMCommunicate OK [00:12:19]wFMCommunicate request_size=30 [00:12:19]MH_SAM_APDU [00:12:19]CAPDU: 80 15 02 00 19 FD 03 15 00 D0 9C D0 B0 D0 BD D1 81 D1 83 D1 80 D0 BE D0 B2 20 D0 90 2E 20 [00:12:19]Write to MH i2c: E2 21 00 B7 69 80 15 02 00 19 00 FD 03 15 00 D0 9C D0 B0 D0 BD D1 81 D1 83 D1 80 D0 BE D0 B2 20 D0 90 2E 20 00 00 35 [00:12:19]Write i2c OK [00:12:19]MH_I2C_Read... [00:12:19]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:12:19]Read from MH i2c: E2 [00:12:19]MH_I2C_Read... [00:12:19]Read from MH i2c: E2 03 00 [00:12:19]MH_I2C_Read... [00:12:19]Read from MH i2c: E2 03 00 B7 69 00 90 00 94 [00:12:19]RAPDU: 90 00 [00:12:19]wFMCommunicate OK [00:12:19]wFMCommunicate request_size=89 [00:12:19]MH_SAM_APDU [00:12:19]CAPDU: 80 15 02 00 54 F1 03 50 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 91 D0 B0 D1 82 D0 BA D0 B5 D0 BD 2C 20 D0 BA D0 B2 D0 B0 D1 80 D1 82 D0 B0 D0 BB 20 D0 9A D1 8B D0 B7 D1 8B D0 BB 20 D0 94 D0 BE D0 BD 2C 20 34 30 2E 30 37 34 39 36 30 2C 20 37 30 2E 38 34 30 36 35 30 [00:12:19]Write to MH i2c: E2 5C 00 B8 69 80 15 02 00 54 00 F1 03 50 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 91 D0 B0 D1 82 D0 BA D0 B5 D0 BD 2C 20 D0 BA D0 B2 D0 B0 D1 80 D1 82 D0 B0 D0 BB 20 D0 9A D1 8B D0 B7 D1 8B D0 BB 20 D0 94 D0 BE D0 BD 2C 20 34 30 2E 30 37 34 39 36 30 2C 20 37 30 2E 38 34 30 36 35 30 00 00 4E [00:12:19]Write i2c OK [00:12:19]MH_I2C_Read... [00:12:19]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:12:19]Read from MH i2c: E2 [00:12:19]MH_I2C_Read... [00:12:19]Read from MH i2c: E2 03 00 [00:12:19]MH_I2C_Read... [00:12:19]Read from MH i2c: E2 03 00 B8 69 00 90 00 95 [00:12:19]RAPDU: 90 00 [00:12:19]wFMCommunicate OK [00:12:19]wFMCommunicate request_size=51 [00:12:19]MH_SAM_APDU [00:12:19]CAPDU: 80 15 02 00 2E A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 32 37 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:12:19]Write to MH i2c: E2 36 00 B9 69 80 15 02 00 2E 00 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 32 37 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 4E [00:12:19]Write i2c OK [00:12:19]MH_I2C_Read... [00:12:19]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:12:19]Read from MH i2c: E2 [00:12:19]MH_I2C_Read... [00:12:19]Read from MH i2c: E2 03 00 [00:12:19]MH_I2C_Read... [00:12:19]Read from MH i2c: E2 03 00 B9 69 00 90 00 96 [00:12:19]RAPDU: 90 00 [00:12:19]wFMCommunicate OK [00:12:19]wFMCommunicate request_size=13 [00:12:19]MH_SAM_APDU [00:12:19]CAPDU: 80 15 02 00 08 F4 03 04 00 6B DE A6 66 [00:12:19]Write to MH i2c: E2 10 00 BA 69 80 15 02 00 08 00 F4 03 04 00 6B DE A6 66 00 00 03 [00:12:19]Write i2c OK [00:12:19]MH_I2C_Read... [00:12:19]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:12:19]Read from MH i2c: E2 [00:12:19]MH_I2C_Read... [00:12:19]Read from MH i2c: E2 03 00 [00:12:19]MH_I2C_Read... [00:12:19]Read from MH i2c: E2 03 00 BA 69 00 90 00 97 [00:12:19]RAPDU: 90 00 [00:12:19]wFMCommunicate OK [00:12:19]wFMCommunicate request_size=25 [00:12:19]MH_SAM_APDU [00:12:19]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 [00:12:19]Write to MH i2c: E2 1C 00 BB 69 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 00 00 12 [00:12:19]Write i2c OK [00:12:19]MH_I2C_Read... [00:12:19]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:12:19]Read from MH i2c: E2 [00:12:19]MH_I2C_Read... [00:12:19]Read from MH i2c: E2 03 00 [00:12:19]MH_I2C_Read... [00:12:19]Read from MH i2c: E2 03 00 BB 69 00 90 00 98 [00:12:19]RAPDU: 90 00 [00:12:19]wFMCommunicate OK [00:12:19]wFMCommunicate request_size=4 [00:12:19]MH_SAM_APDU [00:12:19]CAPDU: 80 15 03 00 [00:12:19]Write to MH i2c: E2 08 00 BC 69 80 15 03 00 00 00 00 00 A6 [00:12:19]Write i2c OK [00:12:19]MH_I2C_Read... [00:12:19]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:12:19]Read from MH i2c: E2 [00:12:19]MH_I2C_Read... [00:12:19]Read from MH i2c: E2 38 00 [00:12:19]MH_I2C_Read... [00:12:19]Read from MH i2c: E2 38 00 BC 69 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 65 08 00 00 0E 04 04 00 0E 00 00 00 35 04 06 00 C7 E3 CD 68 BF 10 90 00 98 [00:12:19]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 65 08 00 00 0E 04 04 00 0E 00 00 00 35 04 06 00 C7 E3 CD 68 BF 10 90 00 [00:12:19]wFMCommunicate OK [00:12:19]SAM_PROTO_ProcessDocument answer len = 51 [00:12:19]SAM_PROTO_ProcessDocument done [00:12:19]SetTLVBufToDocument [00:12:19]Processing tag 1209 (04B9) [00:12:19]Malloc new data [00:12:19]Processing tag 1041 (0411) [00:12:19]Processing tag 1040 (0410) [00:12:19]Malloc new data [00:12:19]Processing tag 1038 (040E) [00:12:19]Malloc new data [00:12:19]Processing tag 1077 (0435) [00:12:19]Malloc new data [00:12:19]SetTLVBufToDocument err=0 [00:12:19]KKMLoadAndSignOpenShiftData store KKM data [00:12:19]KKMLoadAndSignOpenShiftData err=0 [00:12:19]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Мансуров А. Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 Место: АЗС № 127 "Партнер Нефть" 29.07.2024 00:12 Смена: 14 РНМ: 0000000000189667 ЗНМ: 0300000161 ФД: 2149 ФМ: 0000000002094248 ФПД: 219781217697552 [00:12:19]StoreToDocumentArchive [00:12:19]shift 14 fd 2149 [00:12:19]Create dir for shift 0014 [00:12:19]save to /storage/0014/doc_00002149 [00:12:19]save last doc name /storage/0014/doc_00002149 to /storage/kkm_last_doc_name [00:12:19]save OK [00:12:19]Clear old archive folders... [00:12:19]Remove dir /storage/0013 [00:12:19]opendir ok [00:12:19]file . [00:12:19]file .. [00:12:19]file doc_00001949 [00:12:19]remove file /storage/0013/doc_00001949 [00:12:19]file doc_00001950 [00:12:19]remove file /storage/0013/doc_00001950 [00:12:19]file doc_00001951 [00:12:19]remove file /storage/0013/doc_00001951 [00:12:19]file doc_00001952 [00:12:19]remove file /storage/0013/doc_00001952 [00:12:19]file doc_00001953 [00:12:19]remove file /storage/0013/doc_00001953 [00:12:19]file doc_00001954 [00:12:19]remove file /storage/0013/doc_00001954 [00:12:19]file doc_00001955 [00:12:19]remove file /storage/0013/doc_00001955 [00:12:19]file doc_00001956 [00:12:19]remove file /storage/0013/doc_00001956 [00:12:19]file doc_00001957 [00:12:19]remove file /storage/0013/doc_00001957 [00:12:19]file doc_00001958 [00:12:19]remove file /storage/0013/doc_00001958 [00:12:19]file doc_00001959 [00:12:19]remove file /storage/0013/doc_00001959 [00:12:19]file doc_00001960 [00:12:19]remove file /storage/0013/doc_00001960 [00:12:19]file doc_00001961 [00:12:19]remove file /storage/0013/doc_00001961 [00:12:19]file doc_00001962 [00:12:19]remove file /storage/0013/doc_00001962 [00:12:19]file doc_00001963 [00:12:19]remove file /storage/0013/doc_00001963 [00:12:19]file doc_00001964 [00:12:19]remove file /storage/0013/doc_00001964 [00:12:19]file doc_00001965 [00:12:19]remove file /storage/0013/doc_00001965 [00:12:19]file doc_00001966 [00:12:19]remove file /storage/0013/doc_00001966 [00:12:19]file doc_00001967 [00:12:19]remove file /storage/0013/doc_00001967 [00:12:19]file doc_00001968 [00:12:19]remove file /storage/0013/doc_00001968 [00:12:19]file doc_00001969 [00:12:19]remove file /storage/0013/doc_00001969 [00:12:19]file doc_00001970 [00:12:19]remove file /storage/0013/doc_00001970 [00:12:19]file doc_00001971 [00:12:19]remove file /storage/0013/doc_00001971 [00:12:19]file doc_00001972 [00:12:19]remove file /storage/0013/doc_00001972 [00:12:19]file doc_00001973 [00:12:19]remove file /storage/0013/doc_00001973 [00:12:19]file doc_00001974 [00:12:19]remove file /storage/0013/doc_00001974 [00:12:19]file doc_00001975 [00:12:19]remove file /storage/0013/doc_00001975 [00:12:19]file doc_00001976 [00:12:19]remove file /storage/0013/doc_00001976 [00:12:19]file doc_00001977 [00:12:19]remove file /storage/0013/doc_00001977 [00:12:19]file doc_00001978 [00:12:19]remove file /storage/0013/doc_00001978 [00:12:19]file doc_00001979 [00:12:19]remove file /storage/0013/doc_00001979 [00:12:19]file doc_00001980 [00:12:19]remove file /storage/0013/doc_00001980 [00:12:19]file doc_00001981 [00:12:19]remove file /storage/0013/doc_00001981 [00:12:19]file doc_00001982 [00:12:19]remove file /storage/0013/doc_00001982 [00:12:19]file doc_00001983 [00:12:19]remove file /storage/0013/doc_00001983 [00:12:19]file doc_00001984 [00:12:19]remove file /storage/0013/doc_00001984 [00:12:19]file doc_00001985 [00:12:19]remove file /storage/0013/doc_00001985 [00:12:19]file doc_00001986 [00:12:19]remove file /storage/0013/doc_00001986 [00:12:19]file doc_00001987 [00:12:19]remove file /storage/0013/doc_00001987 [00:12:19]file doc_00001988 [00:12:19]remove file /storage/0013/doc_00001988 [00:12:19]file doc_00001989 [00:12:19]remove file /storage/0013/doc_00001989 [00:12:19]file doc_00001990 [00:12:19]remove file /storage/0013/doc_00001990 [00:12:19]file doc_00001991 [00:12:19]remove file /storage/0013/doc_00001991 [00:12:19]file doc_00001992 [00:12:19]remove file /storage/0013/doc_00001992 [00:12:19]file doc_00001993 [00:12:19]remove file /storage/0013/doc_00001993 [00:12:19]file doc_00001994 [00:12:19]remove file /storage/0013/doc_00001994 [00:12:19]file doc_00001995 [00:12:19]remove file /storage/0013/doc_00001995 [00:12:19]file doc_00001996 [00:12:19]remove file /storage/0013/doc_00001996 [00:12:19]file doc_00001997 [00:12:19]remove file /storage/0013/doc_00001997 [00:12:19]file doc_00001998 [00:12:19]remove file /storage/0013/doc_00001998 [00:12:19]file doc_00001999 [00:12:19]remove file /storage/0013/doc_00001999 [00:12:19]file doc_00002000 [00:12:19]remove file /storage/0013/doc_00002000 [00:12:19]file doc_00002001 [00:12:19]remove file /storage/0013/doc_00002001 [00:12:19]file doc_00002002 [00:12:19]remove file /storage/0013/doc_00002002 [00:12:19]file doc_00002003 [00:12:19]remove file /storage/0013/doc_00002003 [00:12:19]file doc_00002004 [00:12:19]remove file /storage/0013/doc_00002004 [00:12:19]file doc_00002005 [00:12:19]remove file /storage/0013/doc_00002005 [00:12:19]file doc_00002006 [00:12:19]remove file /storage/0013/doc_00002006 [00:12:19]file doc_00002007 [00:12:19]remove file /storage/0013/doc_00002007 [00:12:19]file doc_00002008 [00:12:19]remove file /storage/0013/doc_00002008 [00:12:19]file doc_00002009 [00:12:19]remove file /storage/0013/doc_00002009 [00:12:19]file doc_00002010 [00:12:19]remove file /storage/0013/doc_00002010 [00:12:19]file doc_00002011 [00:12:19]remove file /storage/0013/doc_00002011 [00:12:19]file doc_00002012 [00:12:19]remove file /storage/0013/doc_00002012 [00:12:19]file doc_00002013 [00:12:19]remove file /storage/0013/doc_00002013 [00:12:19]file doc_00002014 [00:12:19]remove file /storage/0013/doc_00002014 [00:12:19]file doc_00002015 [00:12:19]remove file /storage/0013/doc_00002015 [00:12:19]file doc_00002016 [00:12:19]remove file /storage/0013/doc_00002016 [00:12:19]file doc_00002017 [00:12:19]remove file /storage/0013/doc_00002017 [00:12:19]file doc_00002018 [00:12:19]remove file /storage/0013/doc_00002018 [00:12:19]file doc_00002019 [00:12:19]remove file /storage/0013/doc_00002019 [00:12:19]file doc_00002020 [00:12:19]remove file /storage/0013/doc_00002020 [00:12:19]file doc_00002021 [00:12:19]remove file /storage/0013/doc_00002021 [00:12:19]file doc_00002022 [00:12:19]remove file /storage/0013/doc_00002022 [00:12:19]file doc_00002023 [00:12:19]remove file /storage/0013/doc_00002023 [00:12:19]file doc_00002024 [00:12:20]remove file /storage/0013/doc_00002024 [00:12:20]file doc_00002025 [00:12:20]remove file /storage/0013/doc_00002025 [00:12:20]file doc_00002026 [00:12:20]remove file /storage/0013/doc_00002026 [00:12:20]file doc_00002027 [00:12:20]remove file /storage/0013/doc_00002027 [00:12:20]file doc_00002028 [00:12:20]remove file /storage/0013/doc_00002028 [00:12:20]file doc_00002029 [00:12:20]remove file /storage/0013/doc_00002029 [00:12:20]file doc_00002030 [00:12:20]remove file /storage/0013/doc_00002030 [00:12:20]file doc_00002031 [00:12:20]remove file /storage/0013/doc_00002031 [00:12:20]file doc_00002032 [00:12:20]remove file /storage/0013/doc_00002032 [00:12:20]file doc_00002033 [00:12:20]remove file /storage/0013/doc_00002033 [00:12:20]file doc_00002034 [00:12:20]remove file /storage/0013/doc_00002034 [00:12:20]file doc_00002035 [00:12:20]remove file /storage/0013/doc_00002035 [00:12:20]file doc_00002036 [00:12:20]remove file /storage/0013/doc_00002036 [00:12:20]file doc_00002037 [00:12:20]remove file /storage/0013/doc_00002037 [00:12:20]file doc_00002038 [00:12:20]remove file /storage/0013/doc_00002038 [00:12:20]file doc_00002039 [00:12:20]remove file /storage/0013/doc_00002039 [00:12:20]file doc_00002040 [00:12:20]remove file /storage/0013/doc_00002040 [00:12:20]file doc_00002041 [00:12:20]remove file /storage/0013/doc_00002041 [00:12:20]file doc_00002042 [00:12:20]remove file /storage/0013/doc_00002042 [00:12:20]file doc_00002043 [00:12:20]remove file /storage/0013/doc_00002043 [00:12:20]file doc_00002044 [00:12:20]remove file /storage/0013/doc_00002044 [00:12:20]file doc_00002045 [00:12:20]remove file /storage/0013/doc_00002045 [00:12:20]file doc_00002046 [00:12:20]remove file /storage/0013/doc_00002046 [00:12:20]file doc_00002047 [00:12:20]remove file /storage/0013/doc_00002047 [00:12:20]file doc_00002048 [00:12:20]remove file /storage/0013/doc_00002048 [00:12:20]file doc_00002049 [00:12:20]remove file /storage/0013/doc_00002049 [00:12:20]file doc_00002050 [00:12:20]remove file /storage/0013/doc_00002050 [00:12:20]file doc_00002051 [00:12:20]remove file /storage/0013/doc_00002051 [00:12:20]file doc_00002052 [00:12:20]remove file /storage/0013/doc_00002052 [00:12:20]file doc_00002053 [00:12:20]remove file /storage/0013/doc_00002053 [00:12:20]file doc_00002054 [00:12:20]remove file /storage/0013/doc_00002054 [00:12:20]file doc_00002055 [00:12:20]remove file /storage/0013/doc_00002055 [00:12:20]file doc_00002056 [00:12:20]remove file /storage/0013/doc_00002056 [00:12:20]file doc_00002057 [00:12:20]remove file /storage/0013/doc_00002057 [00:12:20]file doc_00002058 [00:12:20]remove file /storage/0013/doc_00002058 [00:12:20]file doc_00002059 [00:12:20]remove file /storage/0013/doc_00002059 [00:12:20]file doc_00002060 [00:12:20]remove file /storage/0013/doc_00002060 [00:12:20]file doc_00002061 [00:12:20]remove file /storage/0013/doc_00002061 [00:12:20]file doc_00002062 [00:12:20]remove file /storage/0013/doc_00002062 [00:12:20]file doc_00002063 [00:12:20]remove file /storage/0013/doc_00002063 [00:12:20]file doc_00002064 [00:12:20]remove file /storage/0013/doc_00002064 [00:12:20]file doc_00002065 [00:12:20]remove file /storage/0013/doc_00002065 [00:12:20]file doc_00002066 [00:12:20]remove file /storage/0013/doc_00002066 [00:12:20]file doc_00002067 [00:12:20]remove file /storage/0013/doc_00002067 [00:12:20]file doc_00002068 [00:12:20]remove file /storage/0013/doc_00002068 [00:12:20]file doc_00002069 [00:12:20]remove file /storage/0013/doc_00002069 [00:12:20]file doc_00002070 [00:12:20]remove file /storage/0013/doc_00002070 [00:12:20]file doc_00002071 [00:12:20]remove file /storage/0013/doc_00002071 [00:12:20]file doc_00002072 [00:12:20]remove file /storage/0013/doc_00002072 [00:12:20]file doc_00002073 [00:12:20]remove file /storage/0013/doc_00002073 [00:12:20]file doc_00002074 [00:12:20]remove file /storage/0013/doc_00002074 [00:12:20]file doc_00002075 [00:12:20]remove file /storage/0013/doc_00002075 [00:12:20]file doc_00002076 [00:12:20]remove file /storage/0013/doc_00002076 [00:12:20]file doc_00002077 [00:12:20]remove file /storage/0013/doc_00002077 [00:12:20]file doc_00002078 [00:12:20]remove file /storage/0013/doc_00002078 [00:12:20]file doc_00002079 [00:12:20]remove file /storage/0013/doc_00002079 [00:12:20]file doc_00002080 [00:12:20]remove file /storage/0013/doc_00002080 [00:12:20]file doc_00002081 [00:12:20]remove file /storage/0013/doc_00002081 [00:12:20]file doc_00002082 [00:12:20]remove file /storage/0013/doc_00002082 [00:12:20]file doc_00002083 [00:12:20]remove file /storage/0013/doc_00002083 [00:12:20]file doc_00002084 [00:12:20]remove file /storage/0013/doc_00002084 [00:12:20]file doc_00002085 [00:12:20]remove file /storage/0013/doc_00002085 [00:12:20]file doc_00002086 [00:12:20]remove file /storage/0013/doc_00002086 [00:12:20]file doc_00002087 [00:12:20]remove file /storage/0013/doc_00002087 [00:12:20]file doc_00002088 [00:12:20]remove file /storage/0013/doc_00002088 [00:12:20]file doc_00002089 [00:12:20]remove file /storage/0013/doc_00002089 [00:12:20]file doc_00002090 [00:12:20]remove file /storage/0013/doc_00002090 [00:12:20]file doc_00002091 [00:12:20]remove file /storage/0013/doc_00002091 [00:12:20]file doc_00002092 [00:12:20]remove file /storage/0013/doc_00002092 [00:12:20]file doc_00002093 [00:12:20]remove file /storage/0013/doc_00002093 [00:12:20]file doc_00002094 [00:12:20]remove file /storage/0013/doc_00002094 [00:12:20]file doc_00002095 [00:12:20]remove file /storage/0013/doc_00002095 [00:12:20]file doc_00002096 [00:12:20]remove file /storage/0013/doc_00002096 [00:12:20]file doc_00002097 [00:12:20]remove file /storage/0013/doc_00002097 [00:12:20]file doc_00002098 [00:12:20]remove file /storage/0013/doc_00002098 [00:12:20]file doc_00002099 [00:12:20]remove file /storage/0013/doc_00002099 [00:12:20]file doc_00002100 [00:12:20]remove file /storage/0013/doc_00002100 [00:12:20]file doc_00002101 [00:12:20]remove file /storage/0013/doc_00002101 [00:12:20]file doc_00002102 [00:12:20]remove file /storage/0013/doc_00002102 [00:12:20]file doc_00002103 [00:12:20]remove file /storage/0013/doc_00002103 [00:12:20]file doc_00002104 [00:12:20]remove file /storage/0013/doc_00002104 [00:12:20]file doc_00002105 [00:12:20]remove file /storage/0013/doc_00002105 [00:12:20]file doc_00002106 [00:12:20]remove file /storage/0013/doc_00002106 [00:12:20]file doc_00002107 [00:12:20]remove file /storage/0013/doc_00002107 [00:12:20]file doc_00002108 [00:12:20]remove file /storage/0013/doc_00002108 [00:12:20]file doc_00002109 [00:12:20]remove file /storage/0013/doc_00002109 [00:12:20]file doc_00002110 [00:12:20]remove file /storage/0013/doc_00002110 [00:12:20]file doc_00002111 [00:12:20]remove file /storage/0013/doc_00002111 [00:12:20]file doc_00002112 [00:12:20]remove file /storage/0013/doc_00002112 [00:12:20]file doc_00002113 [00:12:20]remove file /storage/0013/doc_00002113 [00:12:20]file doc_00002114 [00:12:20]remove file /storage/0013/doc_00002114 [00:12:20]file doc_00002115 [00:12:20]remove file /storage/0013/doc_00002115 [00:12:20]file doc_00002116 [00:12:20]remove file /storage/0013/doc_00002116 [00:12:20]file doc_00002117 [00:12:20]remove file /storage/0013/doc_00002117 [00:12:20]file doc_00002118 [00:12:20]remove file /storage/0013/doc_00002118 [00:12:20]file doc_00002119 [00:12:20]remove file /storage/0013/doc_00002119 [00:12:20]file doc_00002120 [00:12:20]remove file /storage/0013/doc_00002120 [00:12:20]file doc_00002121 [00:12:20]remove file /storage/0013/doc_00002121 [00:12:20]file doc_00002122 [00:12:20]remove file /storage/0013/doc_00002122 [00:12:20]file doc_00002123 [00:12:20]remove file /storage/0013/doc_00002123 [00:12:20]file doc_00002124 [00:12:20]remove file /storage/0013/doc_00002124 [00:12:20]file doc_00002125 [00:12:20]remove file /storage/0013/doc_00002125 [00:12:20]file doc_00002126 [00:12:20]remove file /storage/0013/doc_00002126 [00:12:20]file doc_00002127 [00:12:20]remove file /storage/0013/doc_00002127 [00:12:20]file doc_00002128 [00:12:20]remove file /storage/0013/doc_00002128 [00:12:20]file doc_00002129 [00:12:20]remove file /storage/0013/doc_00002129 [00:12:20]file doc_00002130 [00:12:20]remove file /storage/0013/doc_00002130 [00:12:20]file doc_00002131 [00:12:20]remove file /storage/0013/doc_00002131 [00:12:20]file doc_00002132 [00:12:20]remove file /storage/0013/doc_00002132 [00:12:20]file doc_00002133 [00:12:20]remove file /storage/0013/doc_00002133 [00:12:20]file doc_00002134 [00:12:20]remove file /storage/0013/doc_00002134 [00:12:20]file doc_00002135 [00:12:20]remove file /storage/0013/doc_00002135 [00:12:20]file doc_00002136 [00:12:20]remove file /storage/0013/doc_00002136 [00:12:20]file doc_00002137 [00:12:20]remove file /storage/0013/doc_00002137 [00:12:20]file doc_00002138 [00:12:20]remove file /storage/0013/doc_00002138 [00:12:20]file doc_00002139 [00:12:20]remove file /storage/0013/doc_00002139 [00:12:20]file doc_00002140 [00:12:20]remove file /storage/0013/doc_00002140 [00:12:20]file doc_00002141 [00:12:20]remove file /storage/0013/doc_00002141 [00:12:20]file doc_00002142 [00:12:20]remove file /storage/0013/doc_00002142 [00:12:20]file doc_00002143 [00:12:20]remove file /storage/0013/doc_00002143 [00:12:20]file doc_00002144 [00:12:20]remove file /storage/0013/doc_00002144 [00:12:20]file doc_00002145 [00:12:20]remove file /storage/0013/doc_00002145 [00:12:20]file doc_00002146 [00:12:20]remove file /storage/0013/doc_00002146 [00:12:20]file doc_00002147 [00:12:20]remove file /storage/0013/doc_00002147 [00:12:20]file doc_00002148 [00:12:20]remove file /storage/0013/doc_00002148 [00:12:20]remove dir /storage/0013 [00:12:20]ProcessDocumentItem done err = 0, tmpTLVsize=252 [00:12:20]tlvbuf is 01FF7930 [00:12:20]SAM_PROTO_ClearQueue [00:12:20]wFMCommunicate request_size=4 [00:12:20]MH_SAM_APDU [00:12:20]CAPDU: 80 09 00 00 [00:12:20]Write to MH i2c: E2 08 00 BD 69 80 09 00 00 00 00 00 00 98 [00:12:20]Write i2c OK [00:12:20]MH_I2C_Read... [00:12:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:12:20]Read from MH i2c: E2 [00:12:20]MH_I2C_Read... [00:12:20]Read from MH i2c: E2 03 00 [00:12:20]MH_I2C_Read... [00:12:20]Read from MH i2c: E2 03 00 BD 69 00 90 00 9A [00:12:20]RAPDU: 90 00 [00:12:20]wFMCommunicate OK [00:12:20]SAM_PROTO_ClearQueue done [00:12:20]KKMCreateOFDPacket [00:12:20]OFDProtocolAddRootSTLVToBuf [00:12:20]FM_MakeSignedData [00:12:20]FM_MakeSignedData [00:12:20]SAM_PROTO_SignData [00:12:20]wFMCommunicate request_size=4 [00:12:20]MH_SAM_APDU [00:12:20]CAPDU: 80 0D 01 02 [00:12:20]Write to MH i2c: E2 08 00 BE 69 80 0D 01 02 00 00 00 00 A0 [00:12:20]Write i2c OK [00:12:20]MH_I2C_Read... [00:12:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:12:20]Read from MH i2c: E2 [00:12:20]MH_I2C_Read... [00:12:20]Read from MH i2c: E2 03 00 [00:12:20]MH_I2C_Read... [00:12:20]Read from MH i2c: E2 03 00 BE 69 00 90 00 9B [00:12:20]RAPDU: 90 00 [00:12:20]wFMCommunicate OK [00:12:20]wFMCommunicate request_size=255 [00:12:20]MH_SAM_APDU [00:12:20]CAPDU: 80 0D 02 02 FA 02 00 FC 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 9C D0 B0 D0 BD D1 81 D1 83 D1 80 D0 BE D0 B2 20 D0 90 2E 20 F1 03 50 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 91 D0 B0 D1 82 D0 BA D0 B5 D0 BD 2C 20 D0 BA D0 B2 D0 B0 D1 80 D1 82 D0 B0 D0 BB 20 D0 9A D1 8B D0 B7 D1 8B D0 BB 20 D0 94 D0 BE D0 BD 2C 20 34 30 2E 30 37 34 39 36 30 2C 20 37 30 2E 38 34 30 36 35 30 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 32 37 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 6B DE A6 66 0E 04 04 00 0E 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 65 08 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 35 04 06 00 [00:12:21]Write to MH i2c: E2 02 01 BF 69 80 0D 02 02 FA 00 02 00 FC 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 9C D0 B0 D0 BD D1 81 D1 83 D1 80 D0 BE D0 B2 20 D0 90 2E 20 F1 03 50 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 91 D0 B0 D1 82 D0 BA D0 B5 D0 BD 2C 20 D0 BA D0 B2 D0 B0 D1 80 D1 82 D0 B0 D0 BB 20 D0 9A D1 8B D0 B7 D1 8B D0 BB 20 D0 94 D0 BE D0 BD 2C 20 34 30 2E 30 37 34 39 36 30 2C 20 37 30 2E 38 34 30 36 35 30 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 32 37 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 6B DE A6 66 0E 04 04 00 0E 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 65 08 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 35 04 06 00 00 00 9D [00:12:21]Write i2c OK [00:12:21]MH_I2C_Read... [00:12:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:12:21]Read from MH i2c: E2 [00:12:21]MH_I2C_Read... [00:12:21]Read from MH i2c: E2 03 00 [00:12:21]MH_I2C_Read... [00:12:21]Read from MH i2c: E2 03 00 BF 69 00 90 00 9C [00:12:21]RAPDU: 90 00 [00:12:21]wFMCommunicate OK [00:12:21]wFMCommunicate request_size=11 [00:12:21]MH_SAM_APDU [00:12:21]CAPDU: 80 0D 02 02 06 C7 E3 CD 68 BF 10 [00:12:21]Write to MH i2c: E2 0E 00 C0 69 80 0D 02 02 06 00 C7 E3 CD 68 BF 10 00 00 5D [00:12:21]Write i2c OK [00:12:21]MH_I2C_Read... [00:12:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:12:21]Read from MH i2c: E2 [00:12:21]MH_I2C_Read... [00:12:21]Read from MH i2c: E2 03 00 [00:12:21]MH_I2C_Read... [00:12:21]Read from MH i2c: E2 03 00 C0 69 00 90 00 9D [00:12:21]RAPDU: 90 00 [00:12:21]wFMCommunicate OK [00:12:21]wFMCommunicate request_size=4 [00:12:21]MH_SAM_APDU [00:12:21]CAPDU: 80 0D 03 02 [00:12:21]Write to MH i2c: E2 08 00 C1 69 80 0D 03 02 00 00 00 00 A5 [00:12:21]Write i2c OK [00:12:21]MH_I2C_Read... [00:12:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:12:21]Read from MH i2c: E2 [00:12:21]MH_I2C_Read... [00:12:21]Read from MH i2c: E2 0B 00 [00:12:21]MH_I2C_Read... [00:12:21]Read from MH i2c: E2 0B 00 C1 69 00 B4 7A 23 54 4E 22 B4 A1 90 00 10 [00:12:21]RAPDU: B4 7A 23 54 4E 22 B4 A1 90 00 [00:12:21]wFMCommunicate OK [00:12:21]SAM_PROTO_SignData done [00:12:21]FM_MakeSignedData done [00:12:21]CreateOFDProtocolMessage [00:12:21]wFMCommunicate request_size=4 [00:12:21]MH_SAM_APDU [00:12:21]CAPDU: 80 11 00 00 [00:12:21]Write to MH i2c: E2 08 00 C2 69 80 11 00 00 00 00 00 00 A5 [00:12:21]Write i2c OK [00:12:21]MH_I2C_Read... [00:12:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:12:21]Read from MH i2c: E2 [00:12:21]MH_I2C_Read... [00:12:21]Read from MH i2c: E2 17 00 [00:12:21]MH_I2C_Read... [00:12:21]Read from MH i2c: E2 17 00 C2 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 F5 [00:12:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [00:12:21]wFMCommunicate OK [00:12:21]CreateOFDProtocolMessage done [00:12:21]OFDSenderStorePacket 2149 [00:12:21]StoreOFDPacket docnum=2149 [00:12:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 01 00 00 DB BE 08 01 67 1D 5A 02 01 00 02 00 FC 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 9C D0 B0 D0 BD D1 81 D1 83 D1 80 D0 BE D0 B2 20 D0 90 2E 20 F1 03 50 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 91 D0 B0 D1 82 D0 BA D0 B5 D0 BD 2C 20 D0 BA D0 B2 D0 B0 D1 80 D1 82 D0 B0 D0 BB 20 D0 9A D1 8B D0 B7 D1 8B D0 BB 20 D0 94 D0 BE D0 BD 2C 20 34 30 2E 30 37 34 39 36 30 2C 20 37 30 2E 38 34 30 36 35 30 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 32 37 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 6B DE A6 66 0E 04 04 00 0E 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 65 08 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 35 04 06 00 C7 E3 CD 68 BF 10 B4 7A 23 54 4E 22 B4 A1 [00:12:21]CheckFolder [00:12:21]dirname=/storage/ofd_packets [00:12:21]CheckFolder done [00:12:21]ProducePacketName [00:12:21]name=ofd_packets/00002149 [00:12:21]NVStorageSaveData ofd_packets/00002149 [00:12:21]File name is /storage/ofd_packets/00002149 [00:12:21]Write 302 bytes [00:12:21]NVStorageSaveData done [00:12:21]OFDSenderStorePacket done [00:12:21]KKMCreateOFDPacket done [00:12:21]NVStorageSaveData kkm_last_timestamp [00:12:21]File name is /storage/kkm_last_timestamp [00:12:21]Write 4 bytes [00:12:21]NVStorageSaveData done [00:12:21]ExternCall_PrintAddStr [00:12:21]wPrintStart [00:12:21]Write to MH i2c: 01 00 00 C3 69 2C [00:12:21]OFD Sender: Processing packet 2149 [packets to send 1, broken 0] [00:12:21]ProducePacketName [00:12:21]name=ofd_packets/00002149 [00:12:21]OFD Sender: To server: pG, [00:12:21]CommunicateWithHost lk.salyk.kg:30040 [00:12:21]ConnectInit lk.salyk.kg [00:12:21]Write i2c OK [00:12:21]MH_I2C_Read... [00:12:21]Read from MH i2c: 01 [00:12:21]MH_I2C_Read... [00:12:21]Read from MH i2c: 01 07 00 [00:12:21]MH_I2C_Read... [00:12:21]Read from MH i2c: 01 07 00 C3 69 00 00 00 00 00 FF 0F 41 [00:12:21]RasterBufferAndPrint [00:12:21]line Отчет об открытии смены [00:12:21]line ФФД: 1.0 [00:12:21]line ИНН: 02508201610067 [00:12:21]line Кассир: Мансуров А. [00:12:21]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [00:12:21]line Место: АЗС № 127 "Партнер Нефть" [00:12:21]line 29.07.2024 00:12 [00:12:21]line Смена: 14 [00:12:21]line РНМ: 0000000000189667 [00:12:21]line ЗНМ: 0300000161 [00:12:21]line ФД: 2149 [00:12:21]line ФМ: 0000000002094248 [00:12:21]line ФПД: 219781217697552 [00:12:21]written 0, free lines is 4095 [00:12:21]Connected sock=10 [00:12:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 01 00 00 DB BE 08 01 67 1D 5A 02 01 00 02 00 FC 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 9C D0 B0 D0 BD D1 81 D1 83 D1 80 D0 BE D0 B2 20 D0 90 2E 20 F1 03 50 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 91 D0 B0 D1 82 D0 BA D0 B5 D0 BD 2C 20 D0 BA D0 B2 D0 B0 D1 80 D1 82 D0 B0 D0 BB 20 D0 9A D1 8B D0 B7 D1 8B D0 BB 20 D0 94 D0 BE D0 BD 2C 20 34 30 2E 30 37 34 39 36 30 2C 20 37 30 2E 38 34 30 36 35 30 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 32 37 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 6B DE A6 66 0E 04 04 00 0E 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 65 08 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 35 04 06 00 C7 E3 CD 68 BF 10 B4 7A 23 54 4E 22 B4 A1 [00:12:21]Write to MH i2c: 01 00 00 D5 69 3E [00:12:21]Write i2c OK [00:12:21]MH_I2C_Read... [00:12:21]Read from MH i2c: 01 [00:12:21]MH_I2C_Read... [00:12:21]Read from MH i2c: 01 07 00 [00:12:21]MH_I2C_Read... [00:12:21]Read from MH i2c: 01 07 00 D5 69 00 00 00 00 00 99 0E EC [00:12:21]RasterBufferAndPrint [00:12:21]line [00:12:21]line [00:12:21]line [00:12:21]line [00:12:21]line [00:12:21]written 0, free lines is 3762 [00:12:21]MH_Cut [00:12:21]Write to MH i2c: D1 01 00 DC 69 01 17 [00:12:21]Write i2c OK [00:12:21]MH_I2C_Read... [00:12:21]Read from MH i2c: D1 [00:12:21]MH_I2C_Read... [00:12:21]Read from MH i2c: D1 01 00 [00:12:21]MH_I2C_Read... [00:12:21]Read from MH i2c: D1 01 00 DC 69 00 16 [00:12:21]Write to MH i2c: 01 00 00 DD 69 46 [00:12:21]Write i2c OK [00:12:21]MH_I2C_Read... [00:12:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 14 DC 47 00 8E 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 65 08 00 00 F4 03 04 00 D9 89 A6 66 B6 04 01 00 00 F0 4F 07 83 12 E1 55 E7 [00:12:22]CommunicateWithHost err = 0 [00:12:22]CheckOFDResponse [00:12:22]1017 (14) - 77093643461234 [00:12:22]1041 (16) - 0000000002094248 [00:12:22]1040 (4) - 2149 [00:12:22]1012 (4) - 28.07.2024 18:11 [00:12:22]1206 (1) - 0 [00:12:22]OFD Sender: Remove packet 2149 [00:12:22]ProducePacketName [00:12:22]name=ofd_packets/00002149 [00:12:22]NVStorageDeleteData [00:12:22]*** Cut start [00:12:22]*** Partial cut [00:12:22]*** CUTSNS_PIN = 1 [00:12:22]*** CUTSNS_PIN = 0 [00:12:22]*** Brake cut motor [00:12:22]OFD Sender: No OFD packet to send [00:12:22]Read from MH i2c: 01 [00:12:22]MH_I2C_Read... [00:12:22]*** Stop cut motor [00:12:22]*** Cut end [00:12:22]Read from MH i2c: 01 07 00 [00:12:22]MH_I2C_Read... [00:12:22]Read from MH i2c: 01 07 00 DD 69 00 00 00 00 00 FF 0F 5B [00:12:22]process_action open_shift done [00:12:22]requested_data is exist [00:12:22]produce_requested_data [00:12:22]requested_item fd.num is exist - process it [00:12:22]SAM_PROTO_GetFieldsCounters [00:12:22]wFMCommunicate request_size=4 [00:12:22]MH_SAM_APDU [00:12:22]CAPDU: 80 13 00 00 [00:12:22]Write to MH i2c: E2 08 00 DE 69 80 13 00 00 00 00 00 00 C3 [00:12:22]Write i2c OK [00:12:22]MH_I2C_Read... [00:12:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:12:23]Read from MH i2c: E2 [00:12:23]MH_I2C_Read... [00:12:23]Read from MH i2c: E2 62 00 [00:12:23]MH_I2C_Read... [00:12:23]Read from MH i2c: E2 62 00 DE 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 65 08 00 00 0E 04 04 00 0E 00 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 68 [00:12:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 65 08 00 00 0E 04 04 00 0E 00 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:12:23]wFMCommunicate OK [00:12:23]SAM_PROTO_GetFieldsCounters done [00:12:23]requested_item shift.num is exist - process it [00:12:23]requested_item shift.opened is exist - process it [00:12:23]req_shift_opened [00:12:23]FM_GetShiftState [00:12:23]SAM_PROTO_GetShiftState [00:12:23]wFMCommunicate request_size=4 [00:12:23]MH_SAM_APDU [00:12:23]CAPDU: 80 13 01 00 [00:12:23]Write to MH i2c: E2 08 00 DF 69 80 13 01 00 00 00 00 00 C5 [00:12:23]Write i2c OK [00:12:23]MH_I2C_Read... [00:12:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:12:23]Read from MH i2c: E2 [00:12:23]MH_I2C_Read... [00:12:23]Read from MH i2c: E2 0E 00 [00:12:23]MH_I2C_Read... [00:12:23]Read from MH i2c: E2 0E 00 DF 69 00 09 00 01 6B DE A6 66 00 00 00 00 90 00 26 [00:12:23]RAPDU: 09 00 01 6B DE A6 66 00 00 00 00 90 00 [00:12:23]wFMCommunicate OK [00:12:23]SAM_PROTO_GetShiftState done [00:12:23]FM_GetShiftState done [00:12:23]req_shift_opened done [00:12:23]requested_item shift.open_date is exist - process it [00:12:23]req_shift_open_date [00:12:23]req_shift_open_date done [00:12:23]produce_requested_data done [00:12:23]produce_requested_data return {"fd.num":2149,"shift.num":14,"shift.opened":1,"shift.open_date":1722211947} [00:12:23]process_action_free open_shift [00:12:23]json_value_free [00:12:23]json_value_free done [00:12:23]process_json_proto returns [00:12:23]Send response to host [00:12:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":2149,"shift.num":14,"shift.opened":1,"shift.open_date":1722211947}}} [00:12:23]free response buf [00:12:23]execute_script done [00:12:23]execute_script returns [00:12:23]free content buf [00:12:23]Sock 8.Close socket [00:12:23]Sock 8.Thread stoped [00:12:23]accept exits with 9 [00:12:23]New connection [00:12:23]New thread 3067460964 created [00:12:23]Thread 3067317604 joined [00:12:23]Waiting for new connection... [00:12:23] Sock 9.Parse request [00:12:23]Sock 9.Check first char [00:12:23]Sock 9.First char is OK [00:12:23]request: POST /json_proto HTTP/1.0 [00:12:23]Method: POST [00:12:23]URL: /json_proto [00:12:23]Method is POST - this is cgi request [00:12:23]url: /json_proto [00:12:23]query_string will be loaded in cgi processing [00:12:23]execute_cgi json_proto POST (null) [00:12:23]execute_cgi path=json_proto method=POST [00:12:23]POST find Content-Length [00:12:23]Host: 172.17.45.132:8080 [00:12:23]Content-Length: 331 [00:12:23]Content-Type: application/json [00:12:23] [00:12:23]POST finish read [00:12:23]Found Content-Length = 331 [00:12:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:12:23]execute_script... [00:12:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:12:23]POST & json_proto [00:12:23]process_json_proto [00:12:23]json parsed OK: [00:12:23]protocol is kg_v1.0 [00:12:23]action value=get_value [00:12:23]process_action get_value [00:12:23]cmd_get_value [00:12:23]process_action get_value done [00:12:23]requested_data is exist [00:12:23]produce_requested_data [00:12:23]requested_item fm.sale.total is exist - process it [00:12:23]SAM_PROTO_GetFMData [00:12:23]wFMCommunicate request_size=4 [00:12:23]MH_SAM_APDU [00:12:23]CAPDU: 80 13 03 00 [00:12:23]Write to MH i2c: E2 08 00 E0 69 80 13 03 00 00 00 00 00 C8 [00:12:23]Write i2c OK [00:12:23]MH_I2C_Read... [00:12:23]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:12:23]Read from MH i2c: E2 [00:12:23]MH_I2C_Read... [00:12:23]Read from MH i2c: E2 FD 00 [00:12:23]MH_I2C_Read... [00:12:23]Read from MH i2c: E2 FD 00 E0 69 00 C0 04 85 04 BC 04 6E 04 04 00 49 08 00 00 69 04 9F 00 6F 04 04 00 38 08 00 00 B1 04 04 00 12 FB 5A 05 70 04 04 00 C4 A8 76 03 72 04 04 00 4E 52 E4 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 9B 91 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 65 21 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 53 04 02 EF 03 09 00 F6 03 01 90 00 D6 [00:12:23]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 49 08 00 00 69 04 9F 00 6F 04 04 00 38 08 00 00 B1 04 04 00 12 FB 5A 05 70 04 04 00 C4 A8 76 03 72 04 04 00 4E 52 E4 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 9B 91 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 65 21 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 53 04 02 EF 03 09 00 F6 03 01 90 00 [00:12:23]wFMCommunicate OK [00:12:23]wFMCommunicate request_size=4 [00:12:23]MH_SAM_APDU [00:12:23]CAPDU: 80 17 00 00 [00:12:23]Write to MH i2c: E2 08 00 E1 69 80 17 00 00 00 00 00 00 CA [00:12:23]Write i2c OK [00:12:23]MH_I2C_Read... [00:12:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:24]Read from MH i2c: E2 [00:12:24]MH_I2C_Read... [00:12:24]Read from MH i2c: E2 FD 00 [00:12:24]MH_I2C_Read... [00:12:24]Read from MH i2c: E2 FD 00 E1 69 00 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 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 90 00 29 [00:12:24]RAPDU: 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 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 90 00 [00:12:24]wFMCommunicate OK [00:12:24]wFMCommunicate request_size=4 [00:12:24]MH_SAM_APDU [00:12:24]CAPDU: 80 17 00 00 [00:12:24]Write to MH i2c: E2 08 00 E2 69 80 17 00 00 00 00 00 00 CB [00:12:24]Write i2c OK [00:12:24]MH_I2C_Read... [00:12:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:24]Read from MH i2c: E2 [00:12:24]MH_I2C_Read... [00:12:24]Read from MH i2c: E2 FD 00 [00:12:24]MH_I2C_Read... [00:12:24]Read from MH i2c: E2 FD 00 E2 69 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 90 00 6E [00:12:24]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 90 00 [00:12:24]wFMCommunicate OK [00:12:24]wFMCommunicate request_size=4 [00:12:24]MH_SAM_APDU [00:12:24]CAPDU: 80 17 00 00 [00:12:24]Write to MH i2c: E2 08 00 E3 69 80 17 00 00 00 00 00 00 CC [00:12:24]Write i2c OK [00:12:24]MH_I2C_Read... [00:12:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:25]Read from MH i2c: E2 [00:12:25]MH_I2C_Read... [00:12:25]Read from MH i2c: E2 FD 00 [00:12:25]MH_I2C_Read... [00:12:25]Read from MH i2c: E2 FD 00 E3 69 00 01 00 04 F7 03 00 00 EF 03 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 90 00 44 [00:12:25]RAPDU: 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:12:25]wFMCommunicate OK [00:12:25]wFMCommunicate request_size=4 [00:12:25]MH_SAM_APDU [00:12:25]CAPDU: 80 17 00 00 [00:12:25]Write to MH i2c: E2 08 00 E4 69 80 17 00 00 00 00 00 00 CD [00:12:25]Write i2c OK [00:12:25]MH_I2C_Read... [00:12:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [00:12:25]Read from MH i2c: E2 [00:12:25]MH_I2C_Read... [00:12:25]Read from MH i2c: E2 DD 00 [00:12:25]MH_I2C_Read... [00:12:25]Read from MH i2c: E2 DD 00 E4 69 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 B5 [00:12:25]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:12:25]wFMCommunicate OK [00:12:25]SAM_PROTO_GetFMData done [00:12:25]requested_item fm.sale_refund.total is exist - process it [00:12:25]requested_item fm.buy.total is exist - process it [00:12:25]requested_item shift.sale.total is exist - process it [00:12:25]SAM_PROTO_GetShiftData [00:12:25]wFMCommunicate request_size=4 [00:12:25]MH_SAM_APDU [00:12:25]CAPDU: 80 13 02 00 [00:12:25]Write to MH i2c: E2 08 00 E5 69 80 13 02 00 00 00 00 00 CC [00:12:25]Write i2c OK [00:12:25]MH_I2C_Read... [00:12:26]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:12:26]Read from MH i2c: E2 [00:12:26]MH_I2C_Read... [00:12:26]Read from MH i2c: E2 FD 00 [00:12:26]MH_I2C_Read... [00:12:26]Read from MH i2c: E2 FD 00 E5 69 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 3F [00:12:26]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:12:26]wFMCommunicate OK [00:12:26]wFMCommunicate request_size=4 [00:12:26]MH_SAM_APDU [00:12:26]CAPDU: 80 17 00 00 [00:12:26]Write to MH i2c: E2 08 00 E6 69 80 17 00 00 00 00 00 00 CF [00:12:26]Write i2c OK [00:12:26]MH_I2C_Read... [00:12:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:26]Read from MH i2c: E2 [00:12:26]MH_I2C_Read... [00:12:26]Read from MH i2c: E2 FD 00 [00:12:26]MH_I2C_Read... [00:12:26]Read from MH i2c: E2 FD 00 E6 69 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 D7 [00:12:26]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:12:26]wFMCommunicate OK [00:12:26]wFMCommunicate request_size=4 [00:12:26]MH_SAM_APDU [00:12:26]CAPDU: 80 17 00 00 [00:12:26]Write to MH i2c: E2 08 00 E7 69 80 17 00 00 00 00 00 00 D0 [00:12:26]Write i2c OK [00:12:26]MH_I2C_Read... [00:12:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:27]Read from MH i2c: E2 [00:12:27]MH_I2C_Read... [00:12:27]Read from MH i2c: E2 FD 00 [00:12:27]MH_I2C_Read... [00:12:27]Read from MH i2c: E2 FD 00 E7 69 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 A2 [00:12:27]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:12:27]wFMCommunicate OK [00:12:27]wFMCommunicate request_size=4 [00:12:27]MH_SAM_APDU [00:12:27]CAPDU: 80 17 00 00 [00:12:27]Write to MH i2c: E2 08 00 E8 69 80 17 00 00 00 00 00 00 D1 [00:12:27]Write i2c OK [00:12:27]MH_I2C_Read... [00:12:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:27]Read from MH i2c: E2 [00:12:27]MH_I2C_Read... [00:12:27]Read from MH i2c: E2 FD 00 [00:12:27]MH_I2C_Read... [00:12:27]Read from MH i2c: E2 FD 00 E8 69 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 43 [00:12:27]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 OFD Sender: No OFD packet to send [00:12:27]04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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:12:27]wFMCommunicate OK [00:12:27]wFMCommunicate request_size=4 [00:12:27]MH_SAM_APDU [00:12:27]CAPDU: 80 17 00 00 [00:12:27]Write to MH i2c: E2 08 00 E9 69 80 17 00 00 00 00 00 00 D2 [00:12:27]Write i2c OK [00:12:27]MH_I2C_Read... [00:12:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:12:28]Read from MH i2c: E2 [00:12:28]MH_I2C_Read... [00:12:28]Read from MH i2c: E2 BD 00 [00:12:28]MH_I2C_Read... [00:12:28]Read from MH i2c: E2 BD 00 E9 69 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 B8 [00:12:28]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:12:28]wFMCommunicate OK [00:12:28]SAM_PROTO_GetShiftData done [00:12:28]requested_item shift.sale.total_cash is exist - process it [00:12:28]requested_item shift.sale_refund.total is exist - process it [00:12:28]requested_item shift.sale_refund.total_cash is exist - process it [00:12:28]requested_item shift.buy.total is exist - process it [00:12:28]requested_item shift.buy.total_cash is exist - process it [00:12:28]produce_requested_data done [00:12:28]produce_requested_data return {"fm.sale.total":898485.94,"fm.sale_refund.total":12447.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:12:28]process_action_free get_value [00:12:28]json_value_free [00:12:28]json_value_free done [00:12:28]process_json_proto returns [00:12:28]Send response to host [00:12:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":898485.94,"fm.sale_refund.total":12447.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:12:28]free response buf [00:12:28]execute_script done [00:12:28]execute_script returns [00:12:28]free content buf [00:12:28]Sock 9.Close socket [00:12:28]Sock 9.Thread stoped [00:12:32]OFD Sender: No OFD packet to send [00:12:37]OFD Sender: No OFD packet to send [00:12:42]OFD Sender: No OFD packet to send [00:12:47]OFD Sender: No OFD packet to send [00:12:52]OFD Sender: No OFD packet to send [00:12:57]OFD Sender: No OFD packet to send [00:13:02]OFD Sender: No OFD packet to send [00:13:07]OFD Sender: No OFD packet to send [00:13:12]OFD Sender: No OFD packet to send [00:13:17]OFD Sender: No OFD packet to send [00:13:22]OFD Sender: No OFD packet to send [00:13:27]OFD Sender: No OFD packet to send [00:13:32]OFD Sender: No OFD packet to send [00:13:37]OFD Sender: No OFD packet to send [00:13:42]OFD Sender: No OFD packet to send [00:13:47]OFD Sender: No OFD packet to send [00:13:52]OFD Sender: No OFD packet to send [00:13:57]accept exits with 8 [00:13:57]New connection [00:13:57]New thread 3067317604 created [00:13:57]Thread 3067460964 joined [00:13:57]Waiting for new connection... [00:13:57] Sock 8.Parse request [00:13:57]Sock 8.Check first char [00:13:57]Sock 8.First char is OK [00:13:57]request: POST /json_proto HTTP/1.0 [00:13:57]Method: POST [00:13:57]URL: /json_proto [00:13:57]Method is POST - this is cgi request [00:13:57]url: /json_proto [00:13:57]query_string will be loaded in cgi processing [00:13:57]execute_cgi json_proto POST (null) [00:13:57]execute_cgi path=json_proto method=POST [00:13:57]POST find Content-Length [00:13:57]Host: 172.17.45.132:8080 [00:13:57]Content-Length: 215 [00:13:57]Content-Type: application/json [00:13:57] [00:13:57]POST finish read [00:13:57]Found Content-Length = 215 [00:13: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" ] } } [00:13:57]execute_script... [00:13: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" ] } } [00:13:57]POST & json_proto [00:13:57]process_json_proto [00:13:57]json parsed OK: [00:13:57]protocol is kg_v1.0 [00:13:57]action value=get_value [00:13:57]process_action get_value [00:13:57]cmd_get_value [00:13:57]process_action get_value done [00:13:57]requested_data is exist [00:13:57]produce_requested_data [00:13:57]requested_item kkm.sn is exist - process it [00:13:57]requested_item kkm.ver is exist - process it [00:13:57]requested_item fm.sn is exist - process it [00:13:57]wFMCommunicate request_size=4 [00:13:57]MH_SAM_APDU [00:13:57]CAPDU: 80 11 00 00 [00:13:57]Write to MH i2c: E2 08 00 EA 69 80 11 00 00 00 00 00 00 CD [00:13:57]Write i2c OK [00:13:57]MH_I2C_Read... [00:13:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:13:57]Read from MH i2c: E2 [00:13:57]MH_I2C_Read... [00:13:57]Read from MH i2c: E2 17 00 [00:13:57]MH_I2C_Read... [00:13:57]Read from MH i2c: E2 17 00 EA 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 1D [00:13:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [00:13:57]wFMCommunicate OK [00:13:57]requested_item fd.num is exist - process it [00:13:57]SAM_PROTO_GetFieldsCounters [00:13:57]wFMCommunicate request_size=4 [00:13:57]MH_SAM_APDU [00:13:57]CAPDU: 80 13 00 00 [00:13:57]Write to MH i2c: E2 08 00 EB 69 80 13 00 00 00 00 00 00 D0 [00:13:57]Write i2c OK [00:13:57]MH_I2C_Read... [00:13:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:13:57]Read from MH i2c: E2 [00:13:57]MH_I2C_Read... [00:13:57]Read from MH i2c: E2 62 00 [00:13:57]MH_I2C_Read... [00:13:57]Read from MH i2c: E2 62 00 EB 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 65 08 00 00 0E 04 04 00 0E 00 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 75 [00:13:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 65 08 00 00 0E 04 04 00 0E 00 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:13:57]wFMCommunicate OK [00:13:57]SAM_PROTO_GetFieldsCounters done [00:13:57]requested_item shift.num is exist - process it [00:13:57]requested_item shift.opened is exist - process it [00:13:57]req_shift_opened [00:13:57]FM_GetShiftState [00:13:57]SAM_PROTO_GetShiftState [00:13:57]wFMCommunicate request_size=4 [00:13:57]MH_SAM_APDU [00:13:57]CAPDU: 80 13 01 00 [00:13:57]Write to MH i2c: E2 08 00 EC 69 80 13 01 00 00 00 00 00 D2 [00:13:57]Write i2c OK [00:13:57]MH_I2C_Read... [00:13:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:13:57]Read from MH i2c: E2 [00:13:57]MH_I2C_Read... [00:13:57]Read from MH i2c: E2 0E 00 [00:13:57]MH_I2C_Read... [00:13:57]Read from MH i2c: E2 0E 00 EC 69 00 09 00 01 6B DE A6 66 00 00 00 00 90 00 33 [00:13:57]RAPDU: 09 00 01 6B DE A6 66 00 00 00 00 90 00 [00:13:57]wFMCommunicate OK [00:13:57]SAM_PROTO_GetShiftState done [00:13:57]FM_GetShiftState done [00:13:57]req_shift_opened done [00:13:57]requested_item shift.open_date is exist - process it [00:13:57]req_shift_open_date [00:13:57]req_shift_open_date done [00:13:57]produce_requested_data done [00:13:57]produce_requested_data return {"kkm.sn":"0300000161","kkm.ver":"v1.0","fm.sn":"0000000002094248","fd.num":2149,"shift.num":14,"shift.opened":1,"shift.open_date":1722211947} [00:13:57]process_action_free get_value [00:13:57]json_value_free [00:13:57]json_value_free done [00:13:57]process_json_proto returns [00:13:57]Send response to host [00:13:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000161","kkm.ver":"v1.0","fm.sn":"0000000002094248","fd.num":2149,"shift.num":14,"shift.opened":1,"shift.open_date":1722211947}}} [00:13:57]free response buf [00:13:57]execute_script done [00:13:57]execute_script returns [00:13:57]free content buf [00:13:57]Sock 8.Close socket [00:13:57]Sock 8.Thread stoped [00:13:57]accept exits with 9 [00:13:57]New connection [00:13:57]New thread 3067460964 created [00:13:57]Thread 3067317604 joined [00:13:57]Waiting for new connection... [00:13:57] Sock 9.Parse request [00:13:57]Sock 9.Check first char [00:13:57]Sock 9.First char is OK [00:13:57]request: POST /json_proto HTTP/1.0 [00:13:57]Method: POST [00:13:57]URL: /json_proto [00:13:57]Method is POST - this is cgi request [00:13:57]url: /json_proto [00:13:57]query_string will be loaded in cgi processing [00:13:57]execute_cgi json_proto POST (null) [00:13:57]execute_cgi path=json_proto method=POST [00:13:57]POST find Content-Length [00:13:57]Host: 172.17.45.132:8080 [00:13:57]Content-Length: 331 [00:13:57]Content-Type: application/json [00:13:57] [00:13:57]POST finish read [00:13:57]Found Content-Length = 331 [00:13: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" ] } } [00:13:57]execute_script... [00:13: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" ] } } [00:13:57]POST & json_proto [00:13:57]process_json_proto [00:13:57]json parsed OK: [00:13:57]protocol is kg_v1.0 [00:13:57]action value=get_value [00:13:57]process_action get_value [00:13:57]cmd_get_value [00:13:57]process_action get_value done [00:13:57]requested_data is exist [00:13:57]produce_requested_data [00:13:57]requested_item fm.sale.total is exist - process it [00:13:57]SAM_PROTO_GetFMData [00:13:57]wFMCommunicate request_size=4 [00:13:57]MH_SAM_APDU [00:13:57]CAPDU: 80 13 03 00 [00:13:57]Write to MH i2c: E2 08 00 ED 69 80 13 03 00 00 00 00 00 D5 [00:13:57]Write i2c OK [00:13:57]MH_I2C_Read... [00:13:57]OFD Sender: No OFD packet to send [00:13:58]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:13:58]Read from MH i2c: E2 [00:13:58]MH_I2C_Read... [00:13:58]Read from MH i2c: E2 FD 00 [00:13:58]MH_I2C_Read... [00:13:58]Read from MH i2c: E2 FD 00 ED 69 00 C0 04 85 04 BC 04 6E 04 04 00 49 08 00 00 69 04 9F 00 6F 04 04 00 38 08 00 00 B1 04 04 00 12 FB 5A 05 70 04 04 00 C4 A8 76 03 72 04 04 00 4E 52 E4 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 9B 91 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 65 21 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 53 04 02 EF 03 09 00 F6 03 01 90 00 E3 [00:13:58]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 49 08 00 00 69 04 9F 00 6F 04 04 00 38 08 00 00 B1 04 04 00 12 FB 5A 05 70 04 04 00 C4 A8 76 03 72 04 04 00 4E 52 E4 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 9B 91 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 65 21 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 53 04 02 EF 03 09 00 F6 03 01 90 00 [00:13:58]wFMCommunicate OK [00:13:58]wFMCommunicate request_size=4 [00:13:58]MH_SAM_APDU [00:13:58]CAPDU: 80 17 00 00 [00:13:58]Write to MH i2c: E2 08 00 EE 69 80 17 00 00 00 00 00 00 D7 [00:13:58]Write i2c OK [00:13:58]MH_I2C_Read... [00:13:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:13:58]Read from MH i2c: E2 [00:13:58]MH_I2C_Read... [00:13:58]Read from MH i2c: E2 FD 00 [00:13:58]MH_I2C_Read... [00:13:58]Read from MH i2c: E2 FD 00 EE 69 00 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 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 90 00 36 [00:13:58]RAPDU: 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 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 90 00 [00:13:58]wFMCommunicate OK [00:13:58]wFMCommunicate request_size=4 [00:13:58]MH_SAM_APDU [00:13:58]CAPDU: 80 17 00 00 [00:13:58]Write to MH i2c: E2 08 00 EF 69 80 17 00 00 00 00 00 00 D8 [00:13:58]Write i2c OK [00:13:58]MH_I2C_Read... [00:13:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:13:58]Read from MH i2c: E2 [00:13:58]MH_I2C_Read... [00:13:58]Read from MH i2c: E2 FD 00 [00:13:58]MH_I2C_Read... [00:13:58]Read from MH i2c: E2 FD 00 EF 69 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 90 00 7B [00:13:58]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 90 00 [00:13:58]wFMCommunicate OK [00:13:58]wFMCommunicate request_size=4 [00:13:58]MH_SAM_APDU [00:13:58]CAPDU: 80 17 00 00 [00:13:58]Write to MH i2c: E2 08 00 F0 69 80 17 00 00 00 00 00 00 D9 [00:13:58]Write i2c OK [00:13:58]MH_I2C_Read... [00:13:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:13:59]Read from MH i2c: E2 [00:13:59]MH_I2C_Read... [00:13:59]Read from MH i2c: E2 FD 00 [00:13:59]MH_I2C_Read... [00:13:59]Read from MH i2c: E2 FD 00 F0 69 00 01 00 04 F7 03 00 00 EF 03 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 90 00 51 [00:13:59]RAPDU: 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:13:59]wFMCommunicate OK [00:13:59]wFMCommunicate request_size=4 [00:13:59]MH_SAM_APDU [00:13:59]CAPDU: 80 17 00 00 [00:13:59]Write to MH i2c: E2 08 00 F1 69 80 17 00 00 00 00 00 00 DA [00:13:59]Write i2c OK [00:13:59]MH_I2C_Read... [00:13:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [00:13:59]Read from MH i2c: E2 [00:13:59]MH_I2C_Read... [00:13:59]Read from MH i2c: E2 DD 00 [00:13:59]MH_I2C_Read... [00:13:59]Read from MH i2c: E2 DD 00 F1 69 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:13:59]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:13:59]wFMCommunicate OK [00:13:59]SAM_PROTO_GetFMData done [00:13:59]requested_item fm.sale_refund.total is exist - process it [00:13:59]requested_item fm.buy.total is exist - process it [00:13:59]requested_item shift.sale.total is exist - process it [00:13:59]SAM_PROTO_GetShiftData [00:13:59]wFMCommunicate request_size=4 [00:13:59]MH_SAM_APDU [00:13:59]CAPDU: 80 13 02 00 [00:13:59]Write to MH i2c: E2 08 00 F2 69 80 13 02 00 00 00 00 00 D9 [00:13:59]Write i2c OK [00:13:59]MH_I2C_Read... [00:13:59]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:13:59]Read from MH i2c: E2 [00:13:59]MH_I2C_Read... [00:13:59]Read from MH i2c: E2 FD 00 [00:13:59]MH_I2C_Read... [00:13:59]Read from MH i2c: E2 FD 00 F2 69 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 4C [00:13:59]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:13:59]wFMCommunicate OK [00:13:59]wFMCommunicate request_size=4 [00:13:59]MH_SAM_APDU [00:13:59]CAPDU: 80 17 00 00 [00:13:59]Write to MH i2c: E2 08 00 F3 69 80 17 00 00 00 00 00 00 DC [00:13:59]Write i2c OK [00:13:59]MH_I2C_Read... [00:14:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:14:00]Read from MH i2c: E2 [00:14:00]MH_I2C_Read... [00:14:00]Read from MH i2c: E2 FD 00 [00:14:00]MH_I2C_Read... [00:14:00]Read from MH i2c: E2 FD 00 F3 69 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 E4 [00:14:00]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:14:00]wFMCommunicate OK [00:14:00]wFMCommunicate request_size=4 [00:14:00]MH_SAM_APDU [00:14:00]CAPDU: 80 17 00 00 [00:14:00]Write to MH i2c: E2 08 00 F4 69 80 17 00 00 00 00 00 00 DD [00:14:00]Write i2c OK [00:14:00]MH_I2C_Read... [00:14:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:14:00]Read from MH i2c: E2 [00:14:00]MH_I2C_Read... [00:14:00]Read from MH i2c: E2 FD 00 [00:14:00]MH_I2C_Read... [00:14:00]Read from MH i2c: E2 FD 00 F4 69 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 AF [00:14:00]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:14:00]wFMCommunicate OK [00:14:00]wFMCommunicate request_size=4 [00:14:00]MH_SAM_APDU [00:14:00]CAPDU: 80 17 00 00 [00:14:00]Write to MH i2c: E2 08 00 F5 69 80 17 00 00 00 00 00 00 DE [00:14:00]Write i2c OK [00:14:00]MH_I2C_Read... [00:14:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:14:00]Read from MH i2c: E2 [00:14:00]MH_I2C_Read... [00:14:00]Read from MH i2c: E2 FD 00 [00:14:00]MH_I2C_Read... [00:14:00]Read from MH i2c: E2 FD 00 F5 69 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 50 [00:14:00]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:14:00]wFMCommunicate OK [00:14:00]wFMCommunicate request_size=4 [00:14:00]MH_SAM_APDU [00:14:00]CAPDU: 80 17 00 00 [00:14:00]Write to MH i2c: E2 08 00 F6 69 80 17 00 00 00 00 00 00 DF [00:14:00]Write i2c OK [00:14:00]MH_I2C_Read... [00:14:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:14:01]Read from MH i2c: E2 [00:14:01]MH_I2C_Read... [00:14:01]Read from MH i2c: E2 BD 00 [00:14:01]MH_I2C_Read... [00:14:01]Read from MH i2c: E2 BD 00 F6 69 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 C5 [00:14:01]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:14:01]wFMCommunicate OK [00:14:01]SAM_PROTO_GetShiftData done [00:14:01]requested_item shift.sale.total_cash is exist - process it [00:14:01]requested_item shift.sale_refund.total is exist - process it [00:14:01]requested_item shift.sale_refund.total_cash is exist - process it [00:14:01]requested_item shift.buy.total is exist - process it [00:14:01]requested_item shift.buy.total_cash is exist - process it [00:14:01]produce_requested_data done [00:14:01]produce_requested_data return {"fm.sale.total":898485.94,"fm.sale_refund.total":12447.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:14:01]process_action_free get_value [00:14:01]json_value_free [00:14:01]json_value_free done [00:14:01]process_json_proto returns [00:14:01]Send response to host [00:14:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":898485.94,"fm.sale_refund.total":12447.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:14:01]free response buf [00:14:01]execute_script done [00:14:01]execute_script returns [00:14:01]free content buf [00:14:01]Sock 9.Close socket [00:14:01]Sock 9.Thread stoped [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:04]accept exits with 8 [00:17:04]New connection [00:17:04]New thread 3067317604 created [00:17:04]Thread 3067460964 joined [00:17:04]Waiting for new connection... [00:17:04] Sock 8.Parse request [00:17:04]Sock 8.Check first char [00:17:04]Sock 8.First char is OK [00:17:04]request: POST /json_proto HTTP/1.0 [00:17:04]Method: POST [00:17:04]URL: /json_proto [00:17:04]Method is POST - this is cgi request [00:17:04]url: /json_proto [00:17:04]query_string will be loaded in cgi processing [00:17:04]execute_cgi json_proto POST (null) [00:17:04]execute_cgi path=json_proto method=POST [00:17:04]POST find Content-Length [00:17:04]Host: 172.17.45.132:8080 [00:17:04]Content-Length: 215 [00:17:04]Content-Type: application/json [00:17:04] [00:17:04]POST finish read [00:17:04]Found Content-Length = 215 [00:17:04]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:17:04]execute_script... [00:17:04]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:17:04]POST & json_proto [00:17:04]process_json_proto [00:17:04]json parsed OK: [00:17:04]protocol is kg_v1.0 [00:17:04]action value=get_value [00:17:04]process_action get_value [00:17:04]cmd_get_value [00:17:04]process_action get_value done [00:17:04]requested_data is exist [00:17:04]produce_requested_data [00:17:04]requested_item kkm.sn is exist - process it [00:17:04]requested_item kkm.ver is exist - process it [00:17:04]requested_item fm.sn is exist - process it [00:17:04]wFMCommunicate request_size=4 [00:17:04]MH_SAM_APDU [00:17:04]CAPDU: 80 11 00 00 [00:17:04]Write to MH i2c: E2 08 00 F7 69 80 11 00 00 00 00 00 00 DA [00:17:04]Write i2c OK [00:17:04]MH_I2C_Read... [00:17:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:17:04]Read from MH i2c: E2 [00:17:04]MH_I2C_Read... [00:17:04]Read from MH i2c: E2 17 00 [00:17:04]MH_I2C_Read... [00:17:04]Read from MH i2c: E2 17 00 F7 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 2A [00:17:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [00:17:04]wFMCommunicate OK [00:17:04]requested_item fd.num is exist - process it [00:17:04]SAM_PROTO_GetFieldsCounters [00:17:04]wFMCommunicate request_size=4 [00:17:04]MH_SAM_APDU [00:17:04]CAPDU: 80 13 00 00 [00:17:04]Write to MH i2c: E2 08 00 F8 69 80 13 00 00 00 00 00 00 DD [00:17:04]Write i2c OK [00:17:04]MH_I2C_Read... [00:17:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:17:04]Read from MH i2c: E2 [00:17:04]MH_I2C_Read... [00:17:04]Read from MH i2c: E2 62 00 [00:17:04]MH_I2C_Read... [00:17:04]Read from MH i2c: E2 62 00 F8 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 65 08 00 00 0E 04 04 00 0E 00 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 82 [00:17:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 65 08 00 00 0E 04 04 00 0E 00 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:17:04]wFMCommunicate OK [00:17:04]SAM_PROTO_GetFieldsCounters done [00:17:04]requested_item shift.num is exist - process it [00:17:04]requested_item shift.opened is exist - process it [00:17:04]req_shift_opened [00:17:04]FM_GetShiftState [00:17:04]SAM_PROTO_GetShiftState [00:17:04]wFMCommunicate request_size=4 [00:17:04]MH_SAM_APDU [00:17:04]CAPDU: 80 13 01 00 [00:17:04]Write to MH i2c: E2 08 00 F9 69 80 13 01 00 00 00 00 00 DF [00:17:04]Write i2c OK [00:17:04]MH_I2C_Read... [00:17:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:17:04]Read from MH i2c: E2 [00:17:04]MH_I2C_Read... [00:17:04]Read from MH i2c: E2 0E 00 [00:17:04]MH_I2C_Read... [00:17:04]Read from MH i2c: E2 0E 00 F9 69 00 09 00 01 6B DE A6 66 00 00 00 00 90 00 40 [00:17:04]RAPDU: 09 00 01 6B DE A6 66 00 00 00 00 90 00 [00:17:04]wFMCommunicate OK [00:17:04]SAM_PROTO_GetShiftState done [00:17:04]FM_GetShiftState done [00:17:04]req_shift_opened done [00:17:04]requested_item shift.open_date is exist - process it [00:17:04]req_shift_open_date [00:17:04]req_shift_open_date done [00:17:04]produce_requested_data done [00:17:04]produce_requested_data return {"kkm.sn":"0300000161","kkm.ver":"v1.0","fm.sn":"0000000002094248","fd.num":2149,"shift.num":14,"shift.opened":1,"shift.open_date":1722211947} [00:17:04]process_action_free get_value [00:17:04]json_value_free [00:17:04]json_value_free done [00:17:04]process_json_proto returns [00:17:04]Send response to host [00:17:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000161","kkm.ver":"v1.0","fm.sn":"0000000002094248","fd.num":2149,"shift.num":14,"shift.opened":1,"shift.open_date":1722211947}}} [00:17:04]free response buf [00:17:04]execute_script done [00:17:04]execute_script returns [00:17:04]free content buf [00:17:04]Sock 8.Close socket [00:17:04]Sock 8.Thread stoped [00:17:07]accept exits with 9 [00:17:07]New connection [00:17:07]New thread 3067460964 created [00:17:07]Thread 3067317604 joined [00:17:07]Waiting for new connection... [00:17:07] Sock 9.Parse request [00:17:07]Sock 9.Check first char [00:17:07]Sock 9.First char is OK [00:17:07]request: POST /json_proto HTTP/1.0 [00:17:07]Method: POST [00:17:07]URL: /json_proto [00:17:07]Method is POST - this is cgi request [00:17:07]url: /json_proto [00:17:07]query_string will be loaded in cgi processing [00:17:07]execute_cgi json_proto POST (null) [00:17:07]execute_cgi path=json_proto method=POST [00:17:07]POST find Content-Length [00:17:07]Host: 172.17.45.132:8080 [00:17:07]Content-Length: 331 [00:17:07]Content-Type: application/json [00:17:07] [00:17:07]POST finish read [00:17:07]Found Content-Length = 331 [00:17:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:17:07]execute_script... [00:17:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:17:07]POST & json_proto [00:17:07]process_json_proto [00:17:07]json parsed OK: [00:17:07]protocol is kg_v1.0 [00:17:07]action value=get_value [00:17:07]process_action get_value [00:17:07]cmd_get_value [00:17:07]process_action get_value done [00:17:07]requested_data is exist [00:17:07]produce_requested_data [00:17:07]requested_item fm.sale.total is exist - process it [00:17:07]SAM_PROTO_GetFMData [00:17:07]wFMCommunicate request_size=4 [00:17:07]MH_SAM_APDU [00:17:07]CAPDU: 80 13 03 00 [00:17:07]Write to MH i2c: E2 08 00 FA 69 80 13 03 00 00 00 00 00 E2 [00:17:07]Write i2c OK [00:17:07]MH_I2C_Read... [00:17:08]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:17:08]Read from MH i2c: E2 [00:17:08]MH_I2C_Read... [00:17:08]Read from MH i2c: E2 FD 00 [00:17:08]MH_I2C_Read... [00:17:08]Read from MH i2c: E2 FD 00 FA 69 00 C0 04 85 04 BC 04 6E 04 04 00 49 08 00 00 69 04 9F 00 6F 04 04 00 38 08 00 00 B1 04 04 00 12 FB 5A 05 70 04 04 00 C4 A8 76 03 72 04 04 00 4E 52 E4 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 9B 91 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 65 21 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 53 04 02 EF 03 09 00 F6 03 01 90 00 F0 [00:17:08]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 49 08 00 00 69 04 9F 00 6F 04 04 00 38 08 00 00 B1 04 04 00 12 FB 5A 05 70 04 04 00 C4 A8 76 03 72 04 04 00 4E 52 E4 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 9B 91 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 65 21 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 53 04 02 EF 03 09 00 F6 03 01 90 00 [00:17:08]wFMCommunicate OK [00:17:08]wFMCommunicate request_size=4 [00:17:08]MH_SAM_APDU [00:17:08]CAPDU: 80 17 00 00 [00:17:08]Write to MH i2c: E2 08 00 FB 69 80 17 00 00 00 00 00 00 E4 [00:17:08]Write i2c OK [00:17:08]MH_I2C_Read... [00:17:08]OFD Sender: No OFD packet to send [00:17:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:17:08]Read from MH i2c: E2 [00:17:08]MH_I2C_Read... [00:17:08]Read from MH i2c: E2 FD 00 [00:17:08]MH_I2C_Read... [00:17:08]Read from MH i2c: E2 FD 00 FB 69 00 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 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 90 00 43 [00:17:08]RAPDU: 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 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 90 00 [00:17:08]wFMCommunicate OK [00:17:08]wFMCommunicate request_size=4 [00:17:08]MH_SAM_APDU [00:17:08]CAPDU: 80 17 00 00 [00:17:08]Write to MH i2c: E2 08 00 FC 69 80 17 00 00 00 00 00 00 E5 [00:17:08]Write i2c OK [00:17:08]MH_I2C_Read... [00:17:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:17:08]Read from MH i2c: E2 [00:17:08]MH_I2C_Read... [00:17:08]Read from MH i2c: E2 FD 00 [00:17:08]MH_I2C_Read... [00:17:08]Read from MH i2c: E2 FD 00 FC 69 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 90 00 88 [00:17:08]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 90 00 [00:17:08]wFMCommunicate OK [00:17:08]wFMCommunicate request_size=4 [00:17:08]MH_SAM_APDU [00:17:08]CAPDU: 80 17 00 00 [00:17:08]Write to MH i2c: E2 08 00 FD 69 80 17 00 00 00 00 00 00 E6 [00:17:08]Write i2c OK [00:17:08]MH_I2C_Read... [00:17:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:17:08]Read from MH i2c: E2 [00:17:08]MH_I2C_Read... [00:17:08]Read from MH i2c: E2 FD 00 [00:17:08]MH_I2C_Read... [00:17:08]Read from MH i2c: E2 FD 00 FD 69 00 01 00 04 F7 03 00 00 EF 03 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 90 00 5E [00:17:08]RAPDU: 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:17:08]wFMCommunicate OK [00:17:08]wFMCommunicate request_size=4 [00:17:08]MH_SAM_APDU [00:17:08]CAPDU: 80 17 00 00 [00:17:08]Write to MH i2c: E2 08 00 FE 69 80 17 00 00 00 00 00 00 E7 [00:17:08]Write i2c OK [00:17:08]MH_I2C_Read... [00:17:09]Read from MH i2c: E2 [00:17:09]MH_I2C_Read... [00:17:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [00:17:09]Read from MH i2c: E2 DD 00 [00:17:09]MH_I2C_Read... [00:17:09]Read from MH i2c: E2 DD 00 FE 69 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 CF [00:17:09]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:17:09]wFMCommunicate OK [00:17:09]SAM_PROTO_GetFMData done [00:17:09]requested_item fm.sale_refund.total is exist - process it [00:17:09]requested_item fm.buy.total is exist - process it [00:17:09]requested_item shift.sale.total is exist - process it [00:17:09]SAM_PROTO_GetShiftData [00:17:09]wFMCommunicate request_size=4 [00:17:09]MH_SAM_APDU [00:17:09]CAPDU: 80 13 02 00 [00:17:09]Write to MH i2c: E2 08 00 FF 69 80 13 02 00 00 00 00 00 E6 [00:17:09]Write i2c OK [00:17:09]MH_I2C_Read... [00:17:09]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:17:09]Read from MH i2c: E2 [00:17:09]MH_I2C_Read... [00:17:09]Read from MH i2c: E2 FD 00 [00:17:09]MH_I2C_Read... [00:17:09]Read from MH i2c: E2 FD 00 FF 69 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 59 [00:17:09]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:17:09]wFMCommunicate OK [00:17:09]wFMCommunicate request_size=4 [00:17:09]MH_SAM_APDU [00:17:09]CAPDU: 80 17 00 00 [00:17:09]Write to MH i2c: E2 08 00 00 6A 80 17 00 00 00 00 00 00 EA [00:17:09]Write i2c OK [00:17:09]MH_I2C_Read... [00:17:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:17:09]Read from MH i2c: E2 [00:17:09]MH_I2C_Read... [00:17:09]Read from MH i2c: E2 FD 00 [00:17:09]MH_I2C_Read... [00:17:09]Read from MH i2c: E2 FD 00 00 6A 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 F2 [00:17:09]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:17:09]wFMCommunicate OK [00:17:09]wFMCommunicate request_size=4 [00:17:09]MH_SAM_APDU [00:17:09]CAPDU: 80 17 00 00 [00:17:09]Write to MH i2c: E2 08 00 01 6A 80 17 00 00 00 00 00 00 EB [00:17:09]Write i2c OK [00:17:09]MH_I2C_Read... [00:17:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:17:10]Read from MH i2c: E2 [00:17:10]MH_I2C_Read... [00:17:10]Read from MH i2c: E2 FD 00 [00:17:10]MH_I2C_Read... [00:17:10]Read from MH i2c: E2 FD 00 01 6A 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 BD [00:17:10]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:17:10]wFMCommunicate OK [00:17:10]wFMCommunicate request_size=4 [00:17:10]MH_SAM_APDU [00:17:10]CAPDU: 80 17 00 00 [00:17:10]Write to MH i2c: E2 08 00 02 6A 80 17 00 00 00 00 00 00 EC [00:17:10]Write i2c OK [00:17:10]MH_I2C_Read... [00:17:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:17:10]Read from MH i2c: E2 [00:17:10]MH_I2C_Read... [00:17:10]Read from MH i2c: E2 FD 00 [00:17:10]MH_I2C_Read... [00:17:10]Read from MH i2c: E2 FD 00 02 6A 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 5E [00:17:10]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:17:10]wFMCommunicate OK [00:17:10]wFMCommunicate request_size=4 [00:17:10]MH_SAM_APDU [00:17:10]CAPDU: 80 17 00 00 [00:17:10]Write to MH i2c: E2 08 00 03 6A 80 17 00 00 00 00 00 00 ED [00:17:10]Write i2c OK [00:17:10]MH_I2C_Read... [00:17:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:17:10]Read from MH i2c: E2 [00:17:10]MH_I2C_Read... [00:17:10]Read from MH i2c: E2 BD 00 [00:17:10]MH_I2C_Read... [00:17:10]Read from MH i2c: E2 BD 00 03 6A 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 D3 [00:17:10]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:17:10]wFMCommunicate OK [00:17:10]SAM_PROTO_GetShiftData done [00:17:10]requested_item shift.sale.total_cash is exist - process it [00:17:10]requested_item shift.sale_refund.total is exist - process it [00:17:10]requested_item shift.sale_refund.total_cash is exist - process it [00:17:10]requested_item shift.buy.total is exist - process it [00:17:10]requested_item shift.buy.total_cash is exist - process it [00:17:10]produce_requested_data done [00:17:10]produce_requested_data return {"fm.sale.total":898485.94,"fm.sale_refund.total":12447.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:17:10]process_action_free get_value [00:17:10]json_value_free [00:17:10]json_value_free done [00:17:10]process_json_proto returns [00:17:10]Send response to host [00:17:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":898485.94,"fm.sale_refund.total":12447.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:17:10]free response buf [00:17:10]execute_script done [00:17:10]execute_script returns [00:17:10]free content buf [00:17:10]Sock 9.Close socket [00:17:10]Sock 9.Thread stoped [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]accept exits with 8 [00:18:23]New connection [00:18:23]New thread 3067317604 created [00:18:23]Thread 3067460964 joined [00:18:23]Waiting for new connection... [00:18:23] Sock 8.Parse request [00:18:23]Sock 8.Check first char [00:18:23]Sock 8.First char is OK [00:18:23]request: POST /json_proto HTTP/1.0 [00:18:23]Method: POST [00:18:23]URL: /json_proto [00:18:23]Method is POST - this is cgi request [00:18:23]url: /json_proto [00:18:23]query_string will be loaded in cgi processing [00:18:23]execute_cgi json_proto POST (null) [00:18:23]execute_cgi path=json_proto method=POST [00:18:23]POST find Content-Length [00:18:23]Host: 172.17.45.132:8080 [00:18:23]Content-Length: 215 [00:18:23]Content-Type: application/json [00:18:23] [00:18:23]POST finish read [00:18:23]Found Content-Length = 215 [00:18:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:18:23]execute_script... [00:18:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:18:23]POST & json_proto [00:18:23]process_json_proto [00:18:23]json parsed OK: [00:18:23]protocol is kg_v1.0 [00:18:23]action value=get_value [00:18:23]process_action get_value [00:18:23]cmd_get_value [00:18:23]process_action get_value done [00:18:23]requested_data is exist [00:18:23]produce_requested_data [00:18:23]requested_item kkm.sn is exist - process it [00:18:23]requested_item kkm.ver is exist - process it [00:18:23]requested_item fm.sn is exist - process it [00:18:23]wFMCommunicate request_size=4 [00:18:23]MH_SAM_APDU [00:18:23]CAPDU: 80 11 00 00 [00:18:23]Write to MH i2c: E2 08 00 04 6A 80 11 00 00 00 00 00 00 E8 [00:18:23]Write i2c OK [00:18:23]MH_I2C_Read... [00:18:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:18:23]Read from MH i2c: E2 [00:18:23]MH_I2C_Read... [00:18:23]Read from MH i2c: E2 17 00 [00:18:23]MH_I2C_Read... [00:18:23]Read from MH i2c: E2 17 00 04 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 38 [00:18:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [00:18:23]wFMCommunicate OK [00:18:23]requested_item fd.num is exist - process it [00:18:23]SAM_PROTO_GetFieldsCounters [00:18:23]wFMCommunicate request_size=4 [00:18:23]MH_SAM_APDU [00:18:23]CAPDU: 80 13 00 00 [00:18:23]Write to MH i2c: E2 08 00 05 6A 80 13 00 00 00 00 00 00 EB [00:18:23]Write i2c OK [00:18:23]MH_I2C_Read... [00:18:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:18:23]Read from MH i2c: E2 [00:18:23]MH_I2C_Read... [00:18:23]Read from MH i2c: E2 62 00 [00:18:23]MH_I2C_Read... [00:18:23]Read from MH i2c: E2 62 00 05 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 65 08 00 00 0E 04 04 00 0E 00 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 90 [00:18:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 65 08 00 00 0E 04 04 00 0E 00 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:18:23]wFMCommunicate OK [00:18:23]SAM_PROTO_GetFieldsCounters done [00:18:23]requested_item shift.num is exist - process it [00:18:23]requested_item shift.opened is exist - process it [00:18:23]req_shift_opened [00:18:23]FM_GetShiftState [00:18:23]SAM_PROTO_GetShiftState [00:18:23]wFMCommunicate request_size=4 [00:18:23]MH_SAM_APDU [00:18:23]CAPDU: 80 13 01 00 [00:18:23]Write to MH i2c: E2 08 00 06 6A 80 13 01 00 00 00 00 00 ED [00:18:23]Write i2c OK [00:18:23]MH_I2C_Read... [00:18:23]OFD Sender: No OFD packet to send [00:18:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:18:23]Read from MH i2c: E2 [00:18:23]MH_I2C_Read... [00:18:23]Read from MH i2c: E2 0E 00 [00:18:23]MH_I2C_Read... [00:18:23]Read from MH i2c: E2 0E 00 06 6A 00 09 00 01 6B DE A6 66 00 00 00 00 90 00 4E [00:18:23]RAPDU: 09 00 01 6B DE A6 66 00 00 00 00 90 00 [00:18:23]wFMCommunicate OK [00:18:23]SAM_PROTO_GetShiftState done [00:18:23]FM_GetShiftState done [00:18:23]req_shift_opened done [00:18:23]requested_item shift.open_date is exist - process it [00:18:23]req_shift_open_date [00:18:23]req_shift_open_date done [00:18:23]produce_requested_data done [00:18:23]produce_requested_data return {"kkm.sn":"0300000161","kkm.ver":"v1.0","fm.sn":"0000000002094248","fd.num":2149,"shift.num":14,"shift.opened":1,"shift.open_date":1722211947} [00:18:23]process_action_free get_value [00:18:23]json_value_free [00:18:23]json_value_free done [00:18:23]process_json_proto returns [00:18:23]Send response to host [00:18:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000161","kkm.ver":"v1.0","fm.sn":"0000000002094248","fd.num":2149,"shift.num":14,"shift.opened":1,"shift.open_date":1722211947}}} [00:18:23]free response buf [00:18:23]execute_script done [00:18:23]execute_script returns [00:18:23]free content buf [00:18:23]Sock 8.Close socket [00:18:23]Sock 8.Thread stoped [00:18:23]accept exits with 10 [00:18:23]New connection [00:18:23]New thread 3067460964 created [00:18:23]Thread 3067317604 joined [00:18:23]Waiting for new connection... [00:18:23] Sock 10.Parse request [00:18:23]Sock 10.Check first char [00:18:23]Sock 10.First char is OK [00:18:23]request: POST /json_proto HTTP/1.0 [00:18:23]Method: POST [00:18:23]URL: /json_proto [00:18:23]Method is POST - this is cgi request [00:18:23]url: /json_proto [00:18:23]query_string will be loaded in cgi processing [00:18:23]execute_cgi json_proto POST (null) [00:18:23]execute_cgi path=json_proto method=POST [00:18:23]POST find Content-Length [00:18:23]Host: 172.17.45.132:8080 [00:18:23]Content-Length: 331 [00:18:23]Content-Type: application/json [00:18:23] [00:18:23]POST finish read [00:18:23]Found Content-Length = 331 [00:18:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:18:23]execute_script... [00:18:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:18:23]POST & json_proto [00:18:23]process_json_proto [00:18:23]json parsed OK: [00:18:23]protocol is kg_v1.0 [00:18:23]action value=get_value [00:18:23]process_action get_value [00:18:23]cmd_get_value [00:18:23]process_action get_value done [00:18:23]requested_data is exist [00:18:23]produce_requested_data [00:18:23]requested_item fm.sale.total is exist - process it [00:18:23]SAM_PROTO_GetFMData [00:18:23]wFMCommunicate request_size=4 [00:18:23]MH_SAM_APDU [00:18:23]CAPDU: 80 13 03 00 [00:18:23]Write to MH i2c: E2 08 00 07 6A 80 13 03 00 00 00 00 00 F0 [00:18:23]Write i2c OK [00:18:23]MH_I2C_Read... [00:18:24]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:18:24]Read from MH i2c: E2 [00:18:24]MH_I2C_Read... [00:18:24]Read from MH i2c: E2 FD 00 [00:18:24]MH_I2C_Read... [00:18:24]Read from MH i2c: E2 FD 00 07 6A 00 C0 04 85 04 BC 04 6E 04 04 00 49 08 00 00 69 04 9F 00 6F 04 04 00 38 08 00 00 B1 04 04 00 12 FB 5A 05 70 04 04 00 C4 A8 76 03 72 04 04 00 4E 52 E4 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 9B 91 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 65 21 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 53 04 02 EF 03 09 00 F6 03 01 90 00 FE [00:18:24]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 49 08 00 00 69 04 9F 00 6F 04 04 00 38 08 00 00 B1 04 04 00 12 FB 5A 05 70 04 04 00 C4 A8 76 03 72 04 04 00 4E 52 E4 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 9B 91 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 65 21 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 53 04 02 EF 03 09 00 F6 03 01 90 00 [00:18:24]wFMCommunicate OK [00:18:24]wFMCommunicate request_size=4 [00:18:24]MH_SAM_APDU [00:18:24]CAPDU: 80 17 00 00 [00:18:24]Write to MH i2c: E2 08 00 08 6A 80 17 00 00 00 00 00 00 F2 [00:18:24]Write i2c OK [00:18:24]MH_I2C_Read... [00:18:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:24]Read from MH i2c: E2 [00:18:24]MH_I2C_Read... [00:18:24]Read from MH i2c: E2 FD 00 [00:18:24]MH_I2C_Read... [00:18:24]Read from MH i2c: E2 FD 00 08 6A 00 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 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 90 00 51 [00:18:24]RAPDU: 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 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 90 00 [00:18:24]wFMCommunicate OK [00:18:24]wFMCommunicate request_size=4 [00:18:24]MH_SAM_APDU [00:18:24]CAPDU: 80 17 00 00 [00:18:24]Write to MH i2c: E2 08 00 09 6A 80 17 00 00 00 00 00 00 F3 [00:18:24]Write i2c OK [00:18:24]MH_I2C_Read... [00:18:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:24]Read from MH i2c: E2 [00:18:24]MH_I2C_Read... [00:18:24]Read from MH i2c: E2 FD 00 [00:18:24]MH_I2C_Read... [00:18:24]Read from MH i2c: E2 FD 00 09 6A 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 90 00 96 [00:18:24]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 90 00 [00:18:24]wFMCommunicate OK [00:18:24]wFMCommunicate request_size=4 [00:18:24]MH_SAM_APDU [00:18:24]CAPDU: 80 17 00 00 [00:18:24]Write to MH i2c: E2 08 00 0A 6A 80 17 00 00 00 00 00 00 F4 [00:18:24]Write i2c OK [00:18:24]MH_I2C_Read... [00:18:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:24]Read from MH i2c: E2 [00:18:24]MH_I2C_Read... [00:18:24]Read from MH i2c: E2 FD 00 [00:18:24]MH_I2C_Read... [00:18:24]Read from MH i2c: E2 FD 00 0A 6A 00 01 00 04 F7 03 00 00 EF 03 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 90 00 6C [00:18:24]RAPDU: 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:18:24]wFMCommunicate OK [00:18:24]wFMCommunicate request_size=4 [00:18:24]MH_SAM_APDU [00:18:24]CAPDU: 80 17 00 00 [00:18:24]Write to MH i2c: E2 08 00 0B 6A 80 17 00 00 00 00 00 00 F5 [00:18:24]Write i2c OK [00:18:24]MH_I2C_Read... [00:18:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [00:18:25]Read from MH i2c: E2 [00:18:25]MH_I2C_Read... [00:18:25]Read from MH i2c: E2 DD 00 [00:18:25]MH_I2C_Read... [00:18:25]Read from MH i2c: E2 DD 00 0B 6A 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:18:25]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:18:25]wFMCommunicate OK [00:18:25]SAM_PROTO_GetFMData done [00:18:25]requested_item fm.sale_refund.total is exist - process it [00:18:25]requested_item fm.buy.total is exist - process it [00:18:25]requested_item shift.sale.total is exist - process it [00:18:25]SAM_PROTO_GetShiftData [00:18:25]wFMCommunicate request_size=4 [00:18:25]MH_SAM_APDU [00:18:25]CAPDU: 80 13 02 00 [00:18:25]Write to MH i2c: E2 08 00 0C 6A 80 13 02 00 00 00 00 00 F4 [00:18:25]Write i2c OK [00:18:25]MH_I2C_Read... [00:18:25]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:18:25]Read from MH i2c: E2 [00:18:25]MH_I2C_Read... [00:18:25]Read from MH i2c: E2 FD 00 [00:18:25]MH_I2C_Read... [00:18:25]Read from MH i2c: E2 FD 00 0C 6A 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 67 [00:18:25]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:18:25]wFMCommunicate OK [00:18:25]wFMCommunicate request_size=4 [00:18:25]MH_SAM_APDU [00:18:25]CAPDU: 80 17 00 00 [00:18:25]Write to MH i2c: E2 08 00 0D 6A 80 17 00 00 00 00 00 00 F7 [00:18:25]Write i2c OK [00:18:25]MH_I2C_Read... [00:18:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:25]Read from MH i2c: E2 [00:18:25]MH_I2C_Read... [00:18:25]Read from MH i2c: E2 FD 00 [00:18:25]MH_I2C_Read... [00:18:25]Read from MH i2c: E2 FD 00 0D 6A 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 FF [00:18:25]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:18:25]wFMCommunicate OK [00:18:25]wFMCommunicate request_size=4 [00:18:25]MH_SAM_APDU [00:18:25]CAPDU: 80 17 00 00 [00:18:25]Write to MH i2c: E2 08 00 0E 6A 80 17 00 00 00 00 00 00 F8 [00:18:25]Write i2c OK [00:18:25]MH_I2C_Read... [00:18:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:26]Read from MH i2c: E2 [00:18:26]MH_I2C_Read... [00:18:26]Read from MH i2c: E2 FD 00 [00:18:26]MH_I2C_Read... [00:18:26]Read from MH i2c: E2 FD 00 0E 6A 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 CA [00:18:26]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:18:26]wFMCommunicate OK [00:18:26]wFMCommunicate request_size=4 [00:18:26]MH_SAM_APDU [00:18:26]CAPDU: 80 17 00 00 [00:18:26]Write to MH i2c: E2 08 00 0F 6A 80 17 00 00 00 00 00 00 F9 [00:18:26]Write i2c OK [00:18:26]MH_I2C_Read... [00:18:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:26]Read from MH i2c: E2 [00:18:26]MH_I2C_Read... [00:18:26]Read from MH i2c: E2 FD 00 [00:18:26]MH_I2C_Read... [00:18:26]Read from MH i2c: E2 FD 00 0F 6A 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 6B [00:18:26]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:18:26]wFMCommunicate OK [00:18:26]wFMCommunicate request_size=4 [00:18:26]MH_SAM_APDU [00:18:26]CAPDU: 80 17 00 00 [00:18:26]Write to MH i2c: E2 08 00 10 6A 80 17 00 00 00 00 00 00 FA [00:18:26]Write i2c OK [00:18:26]MH_I2C_Read... [00:18:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:18:26]Read from MH i2c: E2 [00:18:26]MH_I2C_Read... [00:18:26]Read from MH i2c: E2 BD 00 [00:18:26]MH_I2C_Read... [00:18:26]Read from MH i2c: E2 BD 00 10 6A 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 E0 [00:18:26]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:18:26]wFMCommunicate OK [00:18:26]SAM_PROTO_GetShiftData done [00:18:26]requested_item shift.sale.total_cash is exist - process it [00:18:26]requested_item shift.sale_refund.total is exist - process it [00:18:26]requested_item shift.sale_refund.total_cash is exist - process it [00:18:26]requested_item shift.buy.total is exist - process it [00:18:26]requested_item shift.buy.total_cash is exist - process it [00:18:26]produce_requested_data done [00:18:26]produce_requested_data return {"fm.sale.total":898485.94,"fm.sale_refund.total":12447.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:18:26]process_action_free get_value [00:18:26]json_value_free [00:18:26]json_value_free done [00:18:26]process_json_proto returns [00:18:26]Send response to host [00:18:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":898485.94,"fm.sale_refund.total":12447.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:18:26]free response buf [00:18:26]execute_script done [00:18:26]execute_script returns [00:18:26]free content buf [00:18:26]Sock 10.Close socket [00:18:26]Sock 10.Thread stoped [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:31]accept exits with 8 [00:20:31]New connection [00:20:31]New thread 3067317604 created [00:20:31]Thread 3067460964 joined [00:20:31]Waiting for new connection... [00:20:31] Sock 8.Parse request [00:20:31]Sock 8.Check first char [00:20:31]Sock 8.First char is OK [00:20:31]request: POST /json_proto HTTP/1.0 [00:20:31]Method: POST [00:20:31]URL: /json_proto [00:20:31]Method is POST - this is cgi request [00:20:31]url: /json_proto [00:20:31]query_string will be loaded in cgi processing [00:20:31]execute_cgi json_proto POST (null) [00:20:31]execute_cgi path=json_proto method=POST [00:20:31]POST find Content-Length [00:20:31]Host: 172.17.45.132:8080 [00:20:31]Content-Length: 215 [00:20:31]Content-Type: application/json [00:20:31] [00:20:31]POST finish read [00:20:31]Found Content-Length = 215 [00:20:31]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:20:31]execute_script... [00:20:31]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:20:31]POST & json_proto [00:20:31]process_json_proto [00:20:31]json parsed OK: [00:20:31]protocol is kg_v1.0 [00:20:31]action value=get_value [00:20:31]process_action get_value [00:20:31]cmd_get_value [00:20:31]process_action get_value done [00:20:31]requested_data is exist [00:20:31]produce_requested_data [00:20:31]requested_item kkm.sn is exist - process it [00:20:31]requested_item kkm.ver is exist - process it [00:20:31]requested_item fm.sn is exist - process it [00:20:31]wFMCommunicate request_size=4 [00:20:31]MH_SAM_APDU [00:20:31]CAPDU: 80 11 00 00 [00:20:31]Write to MH i2c: E2 08 00 11 6A 80 11 00 00 00 00 00 00 F5 [00:20:31]Write i2c OK [00:20:31]MH_I2C_Read... [00:20:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:20:31]Read from MH i2c: E2 [00:20:31]MH_I2C_Read... [00:20:31]Read from MH i2c: E2 17 00 [00:20:31]MH_I2C_Read... [00:20:31]Read from MH i2c: E2 17 00 11 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 45 [00:20:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [00:20:31]wFMCommunicate OK [00:20:31]requested_item fd.num is exist - process it [00:20:31]SAM_PROTO_GetFieldsCounters [00:20:31]wFMCommunicate request_size=4 [00:20:31]MH_SAM_APDU [00:20:31]CAPDU: 80 13 00 00 [00:20:31]Write to MH i2c: E2 08 00 12 6A 80 13 00 00 00 00 00 00 F8 [00:20:31]Write i2c OK [00:20:31]MH_I2C_Read... [00:20:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:20:31]Read from MH i2c: E2 [00:20:31]MH_I2C_Read... [00:20:31]Read from MH i2c: E2 62 00 [00:20:31]MH_I2C_Read... [00:20:31]Read from MH i2c: E2 62 00 12 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 65 08 00 00 0E 04 04 00 0E 00 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 9D [00:20:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 65 08 00 00 0E 04 04 00 0E 00 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:20:31]wFMCommunicate OK [00:20:31]SAM_PROTO_GetFieldsCounters done [00:20:31]requested_item shift.num is exist - process it [00:20:31]requested_item shift.opened is exist - process it [00:20:31]req_shift_opened [00:20:31]FM_GetShiftState [00:20:31]SAM_PROTO_GetShiftState [00:20:31]wFMCommunicate request_size=4 [00:20:31]MH_SAM_APDU [00:20:31]CAPDU: 80 13 01 00 [00:20:31]Write to MH i2c: E2 08 00 13 6A 80 13 01 00 00 00 00 00 FA [00:20:31]Write i2c OK [00:20:31]MH_I2C_Read... [00:20:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:20:31]Read from MH i2c: E2 [00:20:31]MH_I2C_Read... [00:20:31]Read from MH i2c: E2 0E 00 [00:20:31]MH_I2C_Read... [00:20:31]Read from MH i2c: E2 0E 00 13 6A 00 09 00 01 6B DE A6 66 00 00 00 00 90 00 5B [00:20:31]RAPDU: 09 00 01 6B DE A6 66 00 00 00 00 90 00 [00:20:31]wFMCommunicate OK [00:20:31]SAM_PROTO_GetShiftState done [00:20:31]FM_GetShiftState done [00:20:31]req_shift_opened done [00:20:31]requested_item shift.open_date is exist - process it [00:20:31]req_shift_open_date [00:20:31]req_shift_open_date done [00:20:31]produce_requested_data done [00:20:31]produce_requested_data return {"kkm.sn":"0300000161","kkm.ver":"v1.0","fm.sn":"0000000002094248","fd.num":2149,"shift.num":14,"shift.opened":1,"shift.open_date":1722211947} [00:20:31]process_action_free get_value [00:20:31]json_value_free [00:20:31]json_value_free done [00:20:31]process_json_proto returns [00:20:31]Send response to host [00:20:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000161","kkm.ver":"v1.0","fm.sn":"0000000002094248","fd.num":2149,"shift.num":14,"shift.opened":1,"shift.open_date":1722211947}}} [00:20:31]free response buf [00:20:31]execute_script done [00:20:31]execute_script returns [00:20:31]free content buf [00:20:31]Sock 8.Close socket [00:20:31]Sock 8.Thread stoped [00:20:31]accept exits with 10 [00:20:31]New connection [00:20:31]New thread 3067460964 created [00:20:31]Thread 3067317604 joined [00:20:31]Waiting for new connection... [00:20:31] Sock 10.Parse request [00:20:31]Sock 10.Check first char [00:20:31]Sock 10.First char is OK [00:20:31]request: POST /json_proto HTTP/1.0 [00:20:31]Method: POST [00:20:31]URL: /json_proto [00:20:31]Method is POST - this is cgi request [00:20:31]url: /json_proto [00:20:31]query_string will be loaded in cgi processing [00:20:31]execute_cgi json_proto POST (null) [00:20:31]execute_cgi path=json_proto method=POST [00:20:31]POST find Content-Length [00:20:31]Host: 172.17.45.132:8080 [00:20:31]Content-Length: 331 [00:20:31]Content-Type: application/json [00:20:31] [00:20:31]POST finish read [00:20:31]Found Content-Length = 331 [00:20:31]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:20:31]execute_script... [00:20:32]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:20:32]POST & json_proto [00:20:32]process_json_proto [00:20:32]json parsed OK: [00:20:32]protocol is kg_v1.0 [00:20:32]action value=get_value [00:20:32]process_action get_value [00:20:32]cmd_get_value [00:20:32]process_action get_value done [00:20:32]requested_data is exist [00:20:32]produce_requested_data [00:20:32]requested_item fm.sale.total is exist - process it [00:20:32]SAM_PROTO_GetFMData [00:20:32]wFMCommunicate request_size=4 [00:20:32]MH_SAM_APDU [00:20:32]CAPDU: 80 13 03 00 [00:20:32]Write to MH i2c: E2 08 00 14 6A 80 13 03 00 00 00 00 00 FD [00:20:32]Write i2c OK [00:20:32]MH_I2C_Read... [00:20:32]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:20:32]Read from MH i2c: E2 [00:20:32]MH_I2C_Read... [00:20:32]Read from MH i2c: E2 FD 00 [00:20:32]MH_I2C_Read... [00:20:32]Read from MH i2c: E2 FD 00 14 6A 00 C0 04 85 04 BC 04 6E 04 04 00 49 08 00 00 69 04 9F 00 6F 04 04 00 38 08 00 00 B1 04 04 00 12 FB 5A 05 70 04 04 00 C4 A8 76 03 72 04 04 00 4E 52 E4 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 9B 91 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 65 21 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 53 04 02 EF 03 09 00 F6 03 01 90 00 0B [00:20:32]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 49 08 00 00 69 04 9F 00 6F 04 04 00 38 08 00 00 B1 04 04 00 12 FB 5A 05 70 04 04 00 C4 A8 76 03 72 04 04 00 4E 52 E4 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 9B 91 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 65 21 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 53 04 02 EF 03 09 00 F6 03 01 90 00 [00:20:32]wFMCommunicate OK [00:20:32]wFMCommunicate request_size=4 [00:20:32]MH_SAM_APDU [00:20:32]CAPDU: 80 17 00 00 [00:20:32]Write to MH i2c: E2 08 00 15 6A 80 17 00 00 00 00 00 00 FF [00:20:32]Write i2c OK [00:20:32]MH_I2C_Read... [00:20:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:32]Read from MH i2c: E2 [00:20:32]MH_I2C_Read... [00:20:32]Read from MH i2c: E2 FD 00 [00:20:32]MH_I2C_Read... [00:20:32]Read from MH i2c: E2 FD 00 15 6A 00 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 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 90 00 5E [00:20:32]RAPDU: 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 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 90 00 [00:20:32]wFMCommunicate OK [00:20:32]wFMCommunicate request_size=4 [00:20:32]MH_SAM_APDU [00:20:32]CAPDU: 80 17 00 00 [00:20:32]Write to MH i2c: E2 08 00 16 6A 80 17 00 00 00 00 00 00 00 [00:20:32]Write i2c OK [00:20:32]MH_I2C_Read... [00:20:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:32]Read from MH i2c: E2 [00:20:32]MH_I2C_Read... [00:20:32]Read from MH i2c: E2 FD 00 [00:20:32]MH_I2C_Read... [00:20:32]Read from MH i2c: E2 FD 00 16 6A 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 90 00 A3 [00:20:32]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 90 00 [00:20:32]wFMCommunicate OK [00:20:32]wFMCommunicate request_size=4 [00:20:32]MH_SAM_APDU [00:20:32]CAPDU: 80 17 00 00 [00:20:32]Write to MH i2c: E2 08 00 17 6A 80 17 00 00 00 00 00 00 01 [00:20:32]Write i2c OK [00:20:32]MH_I2C_Read... [00:20:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:33]Read from MH i2c: E2 [00:20:33]MH_I2C_Read... [00:20:33]Read from MH i2c: E2 FD 00 [00:20:33]MH_I2C_Read... [00:20:33]Read from MH i2c: E2 FD 00 17 6A 00 01 00 04 F7 03 00 00 EF 03 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 90 00 79 [00:20:33]RAPDU: 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:20:33]wFMCommunicate OK [00:20:33]wFMCommunicate request_size=4 [00:20:33]MH_SAM_APDU [00:20:33]CAPDU: 80 17 00 00 [00:20:33]Write to MH i2c: E2 08 00 18 6A 80 17 00 00 00 00 00 00 02 [00:20:33]Write i2c OK [00:20:33]MH_I2C_Read... [00:20:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [00:20:33]Read from MH i2c: E2 [00:20:33]MH_I2C_Read... [00:20:33]Read from MH i2c: E2 DD 00 [00:20:33]MH_I2C_Read... [00:20:33]Read from MH i2c: E2 DD 00 18 6A 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 EA [00:20:33]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:20:33]wFMCommunicate OK [00:20:33]SAM_PROTO_GetFMData done [00:20:33]requested_item fm.sale_refund.total is exist - process it [00:20:33]requested_item fm.buy.total is exist - process it [00:20:33]requested_item shift.sale.total is exist - process it [00:20:33]SAM_PROTO_GetShiftData [00:20:33]wFMCommunicate request_size=4 [00:20:33]MH_SAM_APDU [00:20:33]CAPDU: 80 13 02 00 [00:20:33]Write to MH i2c: E2 08 00 19 6A 80 13 02 00 00 00 00 00 01 [00:20:33]Write i2c OK [00:20:33]MH_I2C_Read... [00:20:33]OFD Sender: No OFD packet to send [00:20:33]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:20:33]Read from MH i2c: E2 [00:20:33]MH_I2C_Read... [00:20:33]Read from MH i2c: E2 FD 00 [00:20:33]MH_I2C_Read... [00:20:33]Read from MH i2c: E2 FD 00 19 6A 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 74 [00:20:33]RAPDU: A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [00:20:34]wFMCommunicate OK [00:20:34]wFMCommunicate request_size=4 [00:20:34]MH_SAM_APDU [00:20:34]CAPDU: 80 17 00 00 [00:20:34]Write to MH i2c: E2 08 00 1A 6A 80 17 00 00 00 00 00 00 04 [00:20:34]Write i2c OK [00:20:34]MH_I2C_Read... [00:20:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:34]Read from MH i2c: E2 [00:20:34]MH_I2C_Read... [00:20:34]Read from MH i2c: E2 FD 00 [00:20:34]MH_I2C_Read... [00:20:34]Read from MH i2c: E2 FD 00 1A 6A 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 0C [00:20:34]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 [00:20:34]wFMCommunicate OK [00:20:34]wFMCommunicate request_size=4 [00:20:34]MH_SAM_APDU [00:20:34]CAPDU: 80 17 00 00 [00:20:34]Write to MH i2c: E2 08 00 1B 6A 80 17 00 00 00 00 00 00 05 [00:20:34]Write i2c OK [00:20:34]MH_I2C_Read... [00:20:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:34]Read from MH i2c: E2 [00:20:34]MH_I2C_Read... [00:20:34]Read from MH i2c: E2 FD 00 [00:20:34]MH_I2C_Read... [00:20:34]Read from MH i2c: E2 FD 00 1B 6A 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 D7 [00:20:34]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 [00:20:34]wFMCommunicate OK [00:20:34]wFMCommunicate request_size=4 [00:20:34]MH_SAM_APDU [00:20:34]CAPDU: 80 17 00 00 [00:20:34]Write to MH i2c: E2 08 00 1C 6A 80 17 00 00 00 00 00 00 06 [00:20:34]Write i2c OK [00:20:34]MH_I2C_Read... [00:20:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:34]Read from MH i2c: E2 [00:20:34]MH_I2C_Read... [00:20:34]Read from MH i2c: E2 FD 00 [00:20:34]MH_I2C_Read... [00:20:34]Read from MH i2c: E2 FD 00 1C 6A 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 78 [00:20:34]RAPDU: 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:20:34]wFMCommunicate OK [00:20:34]wFMCommunicate request_size=4 [00:20:34]MH_SAM_APDU [00:20:34]CAPDU: 80 17 00 00 [00:20:34]Write to MH i2c: E2 08 00 1D 6A 80 17 00 00 00 00 00 00 07 [00:20:34]Write i2c OK [00:20:34]MH_I2C_Read... [00:20:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:20:35]Read from MH i2c: E2 [00:20:35]MH_I2C_Read... [00:20:35]Read from MH i2c: E2 BD 00 [00:20:35]MH_I2C_Read... [00:20:35]Read from MH i2c: E2 BD 00 1D 6A 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 ED [00:20:35]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:20:35]wFMCommunicate OK [00:20:35]SAM_PROTO_GetShiftData done [00:20:35]requested_item shift.sale.total_cash is exist - process it [00:20:35]requested_item shift.sale_refund.total is exist - process it [00:20:35]requested_item shift.sale_refund.total_cash is exist - process it [00:20:35]requested_item shift.buy.total is exist - process it [00:20:35]requested_item shift.buy.total_cash is exist - process it [00:20:35]produce_requested_data done [00:20:35]produce_requested_data return {"fm.sale.total":898485.94,"fm.sale_refund.total":12447.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:20:35]process_action_free get_value [00:20:35]json_value_free [00:20:35]json_value_free done [00:20:35]process_json_proto returns [00:20:35]Send response to host [00:20:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":898485.94,"fm.sale_refund.total":12447.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:20:35]free response buf [00:20:35]execute_script done [00:20:35]execute_script returns [00:20:35]free content buf [00:20:35]Sock 10.Close socket [00:20:35]Sock 10.Thread stoped [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]accept exits with 8 [00:21:23]New connection [00:21:23]New thread 3067317604 created [00:21:23]Thread 3067460964 joined [00:21:23]Waiting for new connection... [00:21:23] Sock 8.Parse request [00:21:23]Sock 8.Check first char [00:21:23]Sock 8.First char is OK [00:21:23]request: POST /json_proto HTTP/1.0 [00:21:23]Method: POST [00:21:23]URL: /json_proto [00:21:23]Method is POST - this is cgi request [00:21:23]url: /json_proto [00:21:23]query_string will be loaded in cgi processing [00:21:23]execute_cgi json_proto POST (null) [00:21:23]execute_cgi path=json_proto method=POST [00:21:23]POST find Content-Length [00:21:23]Host: 172.17.45.132:8080 [00:21:23]Content-Length: 215 [00:21:23]Content-Type: application/json [00:21:23] [00:21:23]POST finish read [00:21:23]Found Content-Length = 215 [00:21:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:21:23]execute_script... [00:21:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:21:23]POST & json_proto [00:21:23]process_json_proto [00:21:23]json parsed OK: [00:21:23]protocol is kg_v1.0 [00:21:23]action value=get_value [00:21:23]process_action get_value [00:21:23]cmd_get_value [00:21:23]process_action get_value done [00:21:23]requested_data is exist [00:21:23]produce_requested_data [00:21:23]requested_item kkm.sn is exist - process it [00:21:23]requested_item kkm.ver is exist - process it [00:21:23]requested_item fm.sn is exist - process it [00:21:23]wFMCommunicate request_size=4 [00:21:23]MH_SAM_APDU [00:21:23]CAPDU: 80 11 00 00 [00:21:23]Write to MH i2c: E2 08 00 1E 6A 80 11 00 00 00 00 00 00 02 [00:21:23]Write i2c OK [00:21:23]MH_I2C_Read... [00:21:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:21:23]Read from MH i2c: E2 [00:21:23]MH_I2C_Read... [00:21:23]Read from MH i2c: E2 17 00 [00:21:23]MH_I2C_Read... [00:21:23]Read from MH i2c: E2 17 00 1E 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 52 [00:21:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [00:21:23]wFMCommunicate OK [00:21:23]requested_item fd.num is exist - process it [00:21:23]SAM_PROTO_GetFieldsCounters [00:21:23]wFMCommunicate request_size=4 [00:21:23]MH_SAM_APDU [00:21:23]CAPDU: 80 13 00 00 [00:21:23]Write to MH i2c: E2 08 00 1F 6A 80 13 00 00 00 00 00 00 05 [00:21:23]Write i2c OK [00:21:23]MH_I2C_Read... [00:21:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:21:23]Read from MH i2c: E2 [00:21:23]MH_I2C_Read... [00:21:23]Read from MH i2c: E2 62 00 [00:21:23]MH_I2C_Read... [00:21:23]Read from MH i2c: E2 62 00 1F 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 65 08 00 00 0E 04 04 00 0E 00 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 AA [00:21:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 65 08 00 00 0E 04 04 00 0E 00 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:21:23]wFMCommunicate OK [00:21:23]SAM_PROTO_GetFieldsCounters done [00:21:23]requested_item shift.num is exist - process it [00:21:23]requested_item shift.opened is exist - process it [00:21:23]req_shift_opened [00:21:23]FM_GetShiftState [00:21:23]SAM_PROTO_GetShiftState [00:21:23]wFMCommunicate request_size=4 [00:21:23]MH_SAM_APDU [00:21:23]CAPDU: 80 13 01 00 [00:21:23]Write to MH i2c: E2 08 00 20 6A 80 13 01 00 00 00 00 00 07 [00:21:23]Write i2c OK [00:21:23]MH_I2C_Read... [00:21:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:21:23]Read from MH i2c: E2 [00:21:23]MH_I2C_Read... [00:21:23]Read from MH i2c: E2 0E 00 [00:21:23]MH_I2C_Read... [00:21:23]Read from MH i2c: E2 0E 00 20 6A 00 09 00 01 6B DE A6 66 00 00 00 00 90 00 68 [00:21:23]RAPDU: 09 00 01 6B DE A6 66 00 00 00 00 90 00 [00:21:23]wFMCommunicate OK [00:21:23]SAM_PROTO_GetShiftState done [00:21:23]FM_GetShiftState done [00:21:23]req_shift_opened done [00:21:23]requested_item shift.open_date is exist - process it [00:21:23]req_shift_open_date [00:21:23]req_shift_open_date done [00:21:23]produce_requested_data done [00:21:23]produce_requested_data return {"kkm.sn":"0300000161","kkm.ver":"v1.0","fm.sn":"0000000002094248","fd.num":2149,"shift.num":14,"shift.opened":1,"shift.open_date":1722211947} [00:21:23]process_action_free get_value [00:21:23]json_value_free [00:21:23]json_value_free done [00:21:23]process_json_proto returns [00:21:23]Send response to host [00:21:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000161","kkm.ver":"v1.0","fm.sn":"0000000002094248","fd.num":2149,"shift.num":14,"shift.opened":1,"shift.open_date":1722211947}}} [00:21:23]free response buf [00:21:23]execute_script done [00:21:23]execute_script returns [00:21:23]free content buf [00:21:23]Sock 8.Close socket [00:21:23]Sock 8.Thread stoped [00:21:23]OFD Sender: No OFD packet to send [00:21:23]accept exits with 9 [00:21:23]New connection [00:21:23]New thread 3067460964 created [00:21:23]Thread 3067317604 joined [00:21:23]Waiting for new connection... [00:21:23] Sock 9.Parse request [00:21:23]Sock 9.Check first char [00:21:23]Sock 9.First char is OK [00:21:23]request: POST /json_proto HTTP/1.0 [00:21:23]Method: POST [00:21:23]URL: /json_proto [00:21:23]Method is POST - this is cgi request [00:21:23]url: /json_proto [00:21:23]query_string will be loaded in cgi processing [00:21:23]execute_cgi json_proto POST (null) [00:21:23]execute_cgi path=json_proto method=POST [00:21:23]POST find Content-Length [00:21:23]Host: 172.17.45.132:8080 [00:21:23]Content-Length: 331 [00:21:23]Content-Type: application/json [00:21:23] [00:21:23]POST finish read [00:21:23]Found Content-Length = 331 [00:21:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:21:23]execute_script... [00:21:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:21:23]POST & json_proto [00:21:23]process_json_proto [00:21:23]json parsed OK: [00:21:23]protocol is kg_v1.0 [00:21:23]action value=get_value [00:21:23]process_action get_value [00:21:23]cmd_get_value [00:21:23]process_action get_value done [00:21:23]requested_data is exist [00:21:23]produce_requested_data [00:21:23]requested_item fm.sale.total is exist - process it [00:21:23]SAM_PROTO_GetFMData [00:21:23]wFMCommunicate request_size=4 [00:21:23]MH_SAM_APDU [00:21:23]CAPDU: 80 13 03 00 [00:21:23]Write to MH i2c: E2 08 00 21 6A 80 13 03 00 00 00 00 00 0A [00:21:23]Write i2c OK [00:21:23]MH_I2C_Read... [00:21:24]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:21:24]Read from MH i2c: E2 [00:21:24]MH_I2C_Read... [00:21:24]Read from MH i2c: E2 FD 00 [00:21:24]MH_I2C_Read... [00:21:24]Read from MH i2c: E2 FD 00 21 6A 00 C0 04 85 04 BC 04 6E 04 04 00 49 08 00 00 69 04 9F 00 6F 04 04 00 38 08 00 00 B1 04 04 00 12 FB 5A 05 70 04 04 00 C4 A8 76 03 72 04 04 00 4E 52 E4 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 9B 91 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 65 21 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 53 04 02 EF 03 09 00 F6 03 01 90 00 18 [00:21:24]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 49 08 00 00 69 04 9F 00 6F 04 04 00 38 08 00 00 B1 04 04 00 12 FB 5A 05 70 04 04 00 C4 A8 76 03 72 04 04 00 4E 52 E4 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 9B 91 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 65 21 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 53 04 02 EF 03 09 00 F6 03 01 90 00 [00:21:24]wFMCommunicate OK [00:21:24]wFMCommunicate request_size=4 [00:21:24]MH_SAM_APDU [00:21:24]CAPDU: 80 17 00 00 [00:21:24]Write to MH i2c: E2 08 00 22 6A 80 17 00 00 00 00 00 00 0C [00:21:24]Write i2c OK [00:21:24]MH_I2C_Read... [00:21:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:24]Read from MH i2c: E2 [00:21:24]MH_I2C_Read... [00:21:24]Read from MH i2c: E2 FD 00 [00:21:24]MH_I2C_Read... [00:21:24]Read from MH i2c: E2 FD 00 22 6A 00 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 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 90 00 6B [00:21:24]RAPDU: 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 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 90 00 [00:21:24]wFMCommunicate OK [00:21:24]wFMCommunicate request_size=4 [00:21:24]MH_SAM_APDU [00:21:24]CAPDU: 80 17 00 00 [00:21:24]Write to MH i2c: E2 08 00 23 6A 80 17 00 00 00 00 00 00 0D [00:21:24]Write i2c OK [00:21:24]MH_I2C_Read... [00:21:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:24]Read from MH i2c: E2 [00:21:24]MH_I2C_Read... [00:21:24]Read from MH i2c: E2 FD 00 [00:21:24]MH_I2C_Read... [00:21:24]Read from MH i2c: E2 FD 00 23 6A 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 90 00 B0 [00:21:24]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 90 00 [00:21:24]wFMCommunicate OK [00:21:24]wFMCommunicate request_size=4 [00:21:24]MH_SAM_APDU [00:21:24]CAPDU: 80 17 00 00 [00:21:24]Write to MH i2c: E2 08 00 24 6A 80 17 00 00 00 00 00 00 0E [00:21:24]Write i2c OK [00:21:24]MH_I2C_Read... [00:21:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:25]Read from MH i2c: E2 [00:21:25]MH_I2C_Read... [00:21:25]Read from MH i2c: E2 FD 00 [00:21:25]MH_I2C_Read... [00:21:25]Read from MH i2c: E2 FD 00 24 6A 00 01 00 04 F7 03 00 00 EF 03 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 90 00 86 [00:21:25]RAPDU: 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:21:25]wFMCommunicate OK [00:21:25]wFMCommunicate request_size=4 [00:21:25]MH_SAM_APDU [00:21:25]CAPDU: 80 17 00 00 [00:21:25]Write to MH i2c: E2 08 00 25 6A 80 17 00 00 00 00 00 00 0F [00:21:25]Write i2c OK [00:21:25]MH_I2C_Read... [00:21:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [00:21:25]Read from MH i2c: E2 [00:21:25]MH_I2C_Read... [00:21:25]Read from MH i2c: E2 DD 00 [00:21:25]MH_I2C_Read... [00:21:25]Read from MH i2c: E2 DD 00 25 6A 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F7 [00:21:25]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:21:25]wFMCommunicate OK [00:21:25]SAM_PROTO_GetFMData done [00:21:25]requested_item fm.sale_refund.total is exist - process it [00:21:25]requested_item fm.buy.total is exist - process it [00:21:25]requested_item shift.sale.total is exist - process it [00:21:25]SAM_PROTO_GetShiftData [00:21:25]wFMCommunicate request_size=4 [00:21:25]MH_SAM_APDU [00:21:25]CAPDU: 80 13 02 00 [00:21:25]Write to MH i2c: E2 08 00 26 6A 80 13 02 00 00 00 00 00 0E [00:21:25]Write i2c OK [00:21:25]MH_I2C_Read... [00:21:25]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:21:25]Read from MH i2c: E2 [00:21:25]MH_I2C_Read... [00:21:25]Read from MH i2c: E2 FD 00 [00:21:25]MH_I2C_Read... [00:21:25]Read from MH i2c: E2 FD 00 26 6A 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 81 [00:21:25]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:21:25]wFMCommunicate OK [00:21:25]wFMCommunicate request_size=4 [00:21:25]MH_SAM_APDU [00:21:25]CAPDU: 80 17 00 00 [00:21:25]Write to MH i2c: E2 08 00 27 6A 80 17 00 00 00 00 00 00 11 [00:21:25]Write i2c OK [00:21:25]MH_I2C_Read... [00:21:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:26]Read from MH i2c: E2 [00:21:26]MH_I2C_Read... [00:21:26]Read from MH i2c: E2 FD 00 [00:21:26]MH_I2C_Read... [00:21:26]Read from MH i2c: E2 FD 00 27 6A 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 19 [00:21:26]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:21:26]wFMCommunicate OK [00:21:26]wFMCommunicate request_size=4 [00:21:26]MH_SAM_APDU [00:21:26]CAPDU: 80 17 00 00 [00:21:26]Write to MH i2c: E2 08 00 28 6A 80 17 00 00 00 00 00 00 12 [00:21:26]Write i2c OK [00:21:26]MH_I2C_Read... [00:21:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:26]Read from MH i2c: E2 [00:21:26]MH_I2C_Read... [00:21:26]Read from MH i2c: E2 FD 00 [00:21:26]MH_I2C_Read... [00:21:26]Read from MH i2c: E2 FD 00 28 6A 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 E4 [00:21:26]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:21:26]wFMCommunicate OK [00:21:26]wFMCommunicate request_size=4 [00:21:26]MH_SAM_APDU [00:21:26]CAPDU: 80 17 00 00 [00:21:26]Write to MH i2c: E2 08 00 29 6A 80 17 00 00 00 00 00 00 13 [00:21:26]Write i2c OK [00:21:26]MH_I2C_Read... [00:21:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:26]Read from MH i2c: E2 [00:21:26]MH_I2C_Read... [00:21:26]Read from MH i2c: E2 FD 00 [00:21:26]MH_I2C_Read... [00:21:26]Read from MH i2c: E2 FD 00 29 6A 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 85 [00:21:26]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:21:26]wFMCommunicate OK [00:21:26]wFMCommunicate request_size=4 [00:21:26]MH_SAM_APDU [00:21:26]CAPDU: 80 17 00 00 [00:21:26]Write to MH i2c: E2 08 00 2A 6A 80 17 00 00 00 00 00 00 14 [00:21:26]Write i2c OK [00:21:26]MH_I2C_Read... [00:21:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:21:26]Read from MH i2c: E2 [00:21:26]MH_I2C_Read... [00:21:26]Read from MH i2c: E2 BD 00 [00:21:26]MH_I2C_Read... [00:21:26]Read from MH i2c: E2 BD 00 2A 6A 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 FA [00:21:27]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:21:27]wFMCommunicate OK [00:21:27]SAM_PROTO_GetShiftData done [00:21:27]requested_item shift.sale.total_cash is exist - process it [00:21:27]requested_item shift.sale_refund.total is exist - process it [00:21:27]requested_item shift.sale_refund.total_cash is exist - process it [00:21:27]requested_item shift.buy.total is exist - process it [00:21:27]requested_item shift.buy.total_cash is exist - process it [00:21:27]produce_requested_data done [00:21:27]produce_requested_data return {"fm.sale.total":898485.94,"fm.sale_refund.total":12447.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:21:27]process_action_free get_value [00:21:27]json_value_free [00:21:27]json_value_free done [00:21:27]process_json_proto returns [00:21:27]Send response to host [00:21:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":898485.94,"fm.sale_refund.total":12447.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:21:27]free response buf [00:21:27]execute_script done [00:21:27]execute_script returns [00:21:27]free content buf [00:21:27]Sock 9.Close socket [00:21:27]Sock 9.Thread stoped [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:28]OFD Sender: No OFD packet to send [00:24:33]OFD Sender: No OFD packet to send [00:24:38]OFD Sender: No OFD packet to send [00:24:43]OFD Sender: No OFD packet to send [00:24:48]OFD Sender: No OFD packet to send [00:24:53]OFD Sender: No OFD packet to send [00:24:58]OFD Sender: No OFD packet to send [00:25:03]OFD Sender: No OFD packet to send [00:25:08]OFD Sender: No OFD packet to send [00:25:13]OFD Sender: No OFD packet to send [00:25:18]OFD Sender: No OFD packet to send [00:25:23]OFD Sender: No OFD packet to send [00:25:28]OFD Sender: No OFD packet to send [00:25:33]OFD Sender: No OFD packet to send [00:25:38]OFD Sender: No OFD packet to send [00:25:43]OFD Sender: No OFD packet to send [00:25:48]OFD Sender: No OFD packet to send [00:25:53]OFD Sender: No OFD packet to send [00:25:58]OFD Sender: No OFD packet to send [00:26:03]OFD Sender: No OFD packet to send [00:26:08]OFD Sender: No OFD packet to send [00:26:13]OFD Sender: No OFD packet to send [00:26:18]OFD Sender: No OFD packet to send [00:26:23]OFD Sender: No OFD packet to send [00:26:28]OFD Sender: No OFD packet to send [00:26:33]OFD Sender: No OFD packet to send [00:26:38]OFD Sender: No OFD packet to send [00:26:43]OFD Sender: No OFD packet to send [00:26:48]OFD Sender: No OFD packet to send [00:26:53]OFD Sender: No OFD packet to send [00:26:58]OFD Sender: No OFD packet to send [00:27:03]OFD Sender: No OFD packet to send [00:27:08]OFD Sender: No OFD packet to send [00:27:13]OFD Sender: No OFD packet to send [00:27:18]OFD Sender: No OFD packet to send [00:27:23]OFD Sender: No OFD packet to send [00:27:28]OFD Sender: No OFD packet to send [00:27:33]OFD Sender: No OFD packet to send [00:27:38]OFD Sender: No OFD packet to send [00:27:43]OFD Sender: No OFD packet to send [00:27:48]OFD Sender: No OFD packet to send [00:27:53]OFD Sender: No OFD packet to send [00:27:58]OFD Sender: No OFD packet to send [00:28: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:00]accept exits with 8 [00:30:00]New connection [00:30:00]New thread 3067317604 created [00:30:00]Thread 3067460964 joined [00:30:00]Waiting for new connection... [00:30:00] Sock 8.Parse request [00:30:00]Sock 8.Check first char [00:30:00]Sock 8.First char is OK [00:30:00]request: POST /json_proto HTTP/1.0 [00:30:00]Method: POST [00:30:00]URL: /json_proto [00:30:00]Method is POST - this is cgi request [00:30:00]url: /json_proto [00:30:00]query_string will be loaded in cgi processing [00:30:00]execute_cgi json_proto POST (null) [00:30:00]execute_cgi path=json_proto method=POST [00:30:00]POST find Content-Length [00:30:00]Host: 172.17.45.132:8080 [00:30:00]Content-Length: 215 [00:30:00]Content-Type: application/json [00:30:00] [00:30:00]POST finish read [00:30:00]Found Content-Length = 215 [00:30:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:30:00]execute_script... [00:30:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:30:00]POST & json_proto [00:30:00]process_json_proto [00:30:00]json parsed OK: [00:30:00]protocol is kg_v1.0 [00:30:00]action value=get_value [00:30:00]process_action get_value [00:30:00]cmd_get_value [00:30:00]process_action get_value done [00:30:00]requested_data is exist [00:30:00]produce_requested_data [00:30:00]requested_item kkm.sn is exist - process it [00:30:00]requested_item kkm.ver is exist - process it [00:30:00]requested_item fm.sn is exist - process it [00:30:00]wFMCommunicate request_size=4 [00:30:00]MH_SAM_APDU [00:30:00]CAPDU: 80 11 00 00 [00:30:00]Write to MH i2c: E2 08 00 2B 6A 80 11 00 00 00 00 00 00 0F [00:30:00]Write i2c OK [00:30:00]MH_I2C_Read... [00:30:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:30:00]Read from MH i2c: E2 [00:30:00]MH_I2C_Read... [00:30:00]Read from MH i2c: E2 17 00 [00:30:00]MH_I2C_Read... [00:30:00]Read from MH i2c: E2 17 00 2B 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 5F [00:30:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [00:30:00]wFMCommunicate OK [00:30:00]requested_item fd.num is exist - process it [00:30:00]SAM_PROTO_GetFieldsCounters [00:30:00]wFMCommunicate request_size=4 [00:30:00]MH_SAM_APDU [00:30:00]CAPDU: 80 13 00 00 [00:30:00]Write to MH i2c: E2 08 00 2C 6A 80 13 00 00 00 00 00 00 12 [00:30:00]Write i2c OK [00:30:00]MH_I2C_Read... [00:30:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:30:00]Read from MH i2c: E2 [00:30:00]MH_I2C_Read... [00:30:00]Read from MH i2c: E2 62 00 [00:30:00]MH_I2C_Read... [00:30:00]Read from MH i2c: E2 62 00 2C 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 65 08 00 00 0E 04 04 00 0E 00 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 B7 [00:30:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 65 08 00 00 0E 04 04 00 0E 00 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:30:00]wFMCommunicate OK [00:30:00]SAM_PROTO_GetFieldsCounters done [00:30:00]requested_item shift.num is exist - process it [00:30:00]requested_item shift.opened is exist - process it [00:30:00]req_shift_opened [00:30:00]FM_GetShiftState [00:30:00]SAM_PROTO_GetShiftState [00:30:00]wFMCommunicate request_size=4 [00:30:00]MH_SAM_APDU [00:30:00]CAPDU: 80 13 01 00 [00:30:00]Write to MH i2c: E2 08 00 2D 6A 80 13 01 00 00 00 00 00 14 [00:30:00]Write i2c OK [00:30:00]MH_I2C_Read... [00:30:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:30:00]Read from MH i2c: E2 [00:30:00]MH_I2C_Read... [00:30:00]Read from MH i2c: E2 0E 00 [00:30:00]MH_I2C_Read... [00:30:00]Read from MH i2c: E2 0E 00 2D 6A 00 09 00 01 6B DE A6 66 00 00 00 00 90 00 75 [00:30:00]RAPDU: 09 00 01 6B DE A6 66 00 00 00 00 90 00 [00:30:00]wFMCommunicate OK [00:30:00]SAM_PROTO_GetShiftState done [00:30:00]FM_GetShiftState done [00:30:00]req_shift_opened done [00:30:00]requested_item shift.open_date is exist - process it [00:30:00]req_shift_open_date [00:30:00]req_shift_open_date done [00:30:00]produce_requested_data done [00:30:00]produce_requested_data return {"kkm.sn":"0300000161","kkm.ver":"v1.0","fm.sn":"0000000002094248","fd.num":2149,"shift.num":14,"shift.opened":1,"shift.open_date":1722211947} [00:30:00]process_action_free get_value [00:30:00]json_value_free [00:30:00]json_value_free done [00:30:00]process_json_proto returns [00:30:00]Send response to host [00:30:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000161","kkm.ver":"v1.0","fm.sn":"0000000002094248","fd.num":2149,"shift.num":14,"shift.opened":1,"shift.open_date":1722211947}}} [00:30:00]free response buf [00:30:00]execute_script done [00:30:00]execute_script returns [00:30:00]free content buf [00:30:00]Sock 8.Close socket [00:30:00]Sock 8.Thread stoped [00:30:00]accept exits with 9 [00:30:00]New connection [00:30:00]New thread 3067460964 created [00:30:00]Thread 3067317604 joined [00:30:00]Waiting for new connection... [00:30:00] Sock 9.Parse request [00:30:00]Sock 9.Check first char [00:30:00]Sock 9.First char is OK [00:30:00]request: POST /json_proto HTTP/1.0 [00:30:00]Method: POST [00:30:00]URL: /json_proto [00:30:00]Method is POST - this is cgi request [00:30:00]url: /json_proto [00:30:00]query_string will be loaded in cgi processing [00:30:00]execute_cgi json_proto POST (null) [00:30:00]execute_cgi path=json_proto method=POST [00:30:00]POST find Content-Length [00:30:00]Host: 172.17.45.132:8080 [00:30:00]Content-Length: 331 [00:30:00]Content-Type: application/json [00:30:00] [00:30:00]POST finish read [00:30:00]Found Content-Length = 331 [00:30:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:30:00]execute_script... [00:30:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:30:00]POST & json_proto [00:30:00]process_json_proto [00:30:00]json parsed OK: [00:30:00]protocol is kg_v1.0 [00:30:00]action value=get_value [00:30:00]process_action get_value [00:30:00]cmd_get_value [00:30:00]process_action get_value done [00:30:00]requested_data is exist [00:30:00]produce_requested_data [00:30:00]requested_item fm.sale.total is exist - process it [00:30:00]SAM_PROTO_GetFMData [00:30:00]wFMCommunicate request_size=4 [00:30:00]MH_SAM_APDU [00:30:00]CAPDU: 80 13 03 00 [00:30:00]Write to MH i2c: E2 08 00 2E 6A 80 13 03 00 00 00 00 00 17 [00:30:00]Write i2c OK [00:30:00]MH_I2C_Read... [00:30:01]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:30:01]Read from MH i2c: E2 [00:30:01]MH_I2C_Read... [00:30:01]Read from MH i2c: E2 FD 00 [00:30:01]MH_I2C_Read... [00:30:01]Read from MH i2c: E2 FD 00 2E 6A 00 C0 04 85 04 BC 04 6E 04 04 00 49 08 00 00 69 04 9F 00 6F 04 04 00 38 08 00 00 B1 04 04 00 12 FB 5A 05 70 04 04 00 C4 A8 76 03 72 04 04 00 4E 52 E4 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 9B 91 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 65 21 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 53 04 02 EF 03 09 00 F6 03 01 90 00 25 [00:30:01]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 49 08 00 00 69 04 9F 00 6F 04 04 00 38 08 00 00 B1 04 04 00 12 FB 5A 05 70 04 04 00 C4 A8 76 03 72 04 04 00 4E 52 E4 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 9B 91 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 65 21 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 53 04 02 EF 03 09 00 F6 03 01 90 00 [00:30:01]wFMCommunicate OK [00:30:01]wFMCommunicate request_size=4 [00:30:01]MH_SAM_APDU [00:30:01]CAPDU: 80 17 00 00 [00:30:01]Write to MH i2c: E2 08 00 2F 6A 80 17 00 00 00 00 00 00 19 [00:30:01]Write i2c OK [00:30:01]MH_I2C_Read... [00:30:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:01]Read from MH i2c: E2 [00:30:01]MH_I2C_Read... [00:30:01]Read from MH i2c: E2 FD 00 [00:30:01]MH_I2C_Read... [00:30:01]Read from MH i2c: E2 FD 00 2F 6A 00 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 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 90 00 78 [00:30:01]RAPDU: 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 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 90 00 [00:30:01]wFMCommunicate OK [00:30:01]wFMCommunicate request_size=4 [00:30:01]MH_SAM_APDU [00:30:01]CAPDU: 80 17 00 00 [00:30:01]Write to MH i2c: E2 08 00 30 6A 80 17 00 00 00 00 00 00 1A [00:30:01]Write i2c OK [00:30:01]MH_I2C_Read... [00:30:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:01]Read from MH i2c: E2 [00:30:01]MH_I2C_Read... [00:30:01]Read from MH i2c: E2 FD 00 [00:30:01]MH_I2C_Read... [00:30:01]Read from MH i2c: E2 FD 00 30 6A 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 90 00 BD [00:30:01]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 90 00 [00:30:01]wFMCommunicate OK [00:30:01]wFMCommunicate request_size=4 [00:30:01]MH_SAM_APDU [00:30:01]CAPDU: 80 17 00 00 [00:30:01]Write to MH i2c: E2 08 00 31 6A 80 17 00 00 00 00 00 00 1B [00:30:01]Write i2c OK [00:30:01]MH_I2C_Read... [00:30:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:02]Read from MH i2c: E2 [00:30:02]MH_I2C_Read... [00:30:02]Read from MH i2c: E2 FD 00 [00:30:02]MH_I2C_Read... [00:30:02]Read from MH i2c: E2 FD 00 31 6A 00 01 00 04 F7 03 00 00 EF 03 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 90 00 93 [00:30:02]RAPDU: 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:30:02]wFMCommunicate OK [00:30:02]wFMCommunicate request_size=4 [00:30:02]MH_SAM_APDU [00:30:02]CAPDU: 80 17 00 00 [00:30:02]Write to MH i2c: E2 08 00 32 6A 80 17 00 00 00 00 00 00 1C [00:30:02]Write i2c OK [00:30:02]MH_I2C_Read... [00:30:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [00:30:02]Read from MH i2c: E2 [00:30:02]MH_I2C_Read... [00:30:02]Read from MH i2c: E2 DD 00 [00:30:02]MH_I2C_Read... [00:30:02]Read from MH i2c: E2 DD 00 32 6A 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 04 [00:30:02]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:30:02]wFMCommunicate OK [00:30:02]SAM_PROTO_GetFMData done [00:30:02]requested_item fm.sale_refund.total is exist - process it [00:30:02]requested_item fm.buy.total is exist - process it [00:30:02]requested_item shift.sale.total is exist - process it [00:30:02]SAM_PROTO_GetShiftData [00:30:02]wFMCommunicate request_size=4 [00:30:02]MH_SAM_APDU [00:30:02]CAPDU: 80 13 02 00 [00:30:02]Write to MH i2c: E2 08 00 33 6A 80 13 02 00 00 00 00 00 1B [00:30:02]Write i2c OK [00:30:02]MH_I2C_Read... [00:30:02]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:30:02]Read from MH i2c: E2 [00:30:02]MH_I2C_Read... [00:30:02]Read from MH i2c: E2 FD 00 [00:30:02]MH_I2C_Read... [00:30:02]Read from MH i2c: E2 FD 00 33 6A 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 8E [00:30:02]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:30:02]wFMCommunicate OK [00:30:02]wFMCommunicate request_size=4 [00:30:02]MH_SAM_APDU [00:30:02]CAPDU: 80 17 00 00 [00:30:02]Write to MH i2c: E2 08 00 34 6A 80 17 00 00 00 00 00 00 1E [00:30:02]Write i2c OK [00:30:02]MH_I2C_Read... [00:30:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:03]Read from MH i2c: E2 [00:30:03]MH_I2C_Read... [00:30:03]Read from MH i2c: E2 FD 00 [00:30:03]MH_I2C_Read... [00:30:03]Read from MH i2c: E2 FD 00 34 6A 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 26 [00:30:03]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:30:03]wFMCommunicate OK [00:30:03]wFMCommunicate request_size=4 [00:30:03]MH_SAM_APDU [00:30:03]CAPDU: 80 17 00 00 [00:30:03]Write to MH i2c: E2 08 00 35 6A 80 17 00 00 00 00 00 00 1F [00:30:03]Write i2c OK [00:30:03]MH_I2C_Read... [00:30:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:03]Read from MH i2c: E2 [00:30:03]MH_I2C_Read... [00:30:03]Read from MH i2c: E2 FD 00 [00:30:03]MH_I2C_Read... [00:30:03]Read from MH i2c: E2 FD 00 35 6A 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 F1 [00:30:03]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:30:03]wFMCommunicate OK [00:30:03]wFMCommunicate request_size=4 [00:30:03]MH_SAM_APDU [00:30:03]CAPDU: 80 17 00 00 [00:30:03]Write to MH i2c: E2 08 00 36 6A 80 17 00 00 00 00 00 00 20 [00:30:03]Write i2c OK [00:30:03]MH_I2C_Read... [00:30:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:03]Read from MH i2c: E2 [00:30:03]MH_I2C_Read... [00:30:03]Read from MH i2c: E2 FD 00 [00:30:03]MH_I2C_Read... [00:30:03]Read from MH i2c: E2 FD 00 36 6A 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 92 [00:30:03]RAPDU: 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:30:03]wFMCommunicate OK [00:30:03]wFMCommunicate request_size=4 [00:30:03]MH_SAM_APDU [00:30:03]CAPDU: 80 17 00 00 [00:30:03]Write to MH i2c: E2 08 00 37 6A 80 17 00 00 00 00 00 00 21 [00:30:03]Write i2c OK [00:30:03]MH_I2C_Read... [00:30:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:30:04]Read from MH i2c: E2 [00:30:04]MH_I2C_Read... [00:30:04]Read from MH i2c: E2 BD 00 [00:30:04]MH_I2C_Read... [00:30:04]Read from MH i2c: E2 BD 00 37 6A 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 07 [00:30:04]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:30:04]wFMCommunicate OK [00:30:04]SAM_PROTO_GetShiftData done [00:30:04]requested_item shift.sale.total_cash is exist - process it [00:30:04]requested_item shift.sale_refund.total is exist - process it [00:30:04]requested_item shift.sale_refund.total_cash is exist - process it [00:30:04]requested_item shift.buy.total is exist - process it [00:30:04]requested_item shift.buy.total_cash is exist - process it [00:30:04]produce_requested_data done [00:30:04]produce_requested_data return {"fm.sale.total":898485.94,"fm.sale_refund.total":12447.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:30:04]process_action_free get_value [00:30:04]json_value_free [00:30:04]json_value_free done [00:30:04]process_json_proto returns [00:30:04]Send response to host [00:30:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":898485.94,"fm.sale_refund.total":12447.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:30:04]free response buf [00:30:04]execute_script done [00:30:04]execute_script returns [00:30:04]free content buf [00:30:04]Sock 9.Close socket [00:30:04]Sock 9.Thread stoped [00:30:04]OFD Sender: No OFD packet to send [00:30:04]accept exits with 8 [00:30:04]New connection [00:30:04]New thread 3067317604 created [00:30:04]Thread 3067460964 joined [00:30:04]Waiting for new connection... [00:30:04] Sock 8.Parse request [00:30:04]Sock 8.Check first char [00:30:04]Sock 8.First char is OK [00:30:04]request: POST /json_proto HTTP/1.0 [00:30:04]Method: POST [00:30:04]URL: /json_proto [00:30:04]Method is POST - this is cgi request [00:30:04]url: /json_proto [00:30:04]query_string will be loaded in cgi processing [00:30:04]execute_cgi json_proto POST (null) [00:30:04]execute_cgi path=json_proto method=POST [00:30:04]POST find Content-Length [00:30:04]Host: 172.17.45.132:8080 [00:30:04]Content-Length: 331 [00:30:04]Content-Type: application/json [00:30:04] [00:30:04]POST finish read [00:30:04]Found Content-Length = 331 [00:30:04]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:30:04]execute_script... [00:30:04]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:30:04]POST & json_proto [00:30:04]process_json_proto [00:30:04]json parsed OK: [00:30:04]protocol is kg_v1.0 [00:30:04]action value=get_value [00:30:04]process_action get_value [00:30:04]cmd_get_value [00:30:04]process_action get_value done [00:30:04]requested_data is exist [00:30:04]produce_requested_data [00:30:04]requested_item fm.sale.total is exist - process it [00:30:04]SAM_PROTO_GetFMData [00:30:04]wFMCommunicate request_size=4 [00:30:04]MH_SAM_APDU [00:30:04]CAPDU: 80 13 03 00 [00:30:04]Write to MH i2c: E2 08 00 38 6A 80 13 03 00 00 00 00 00 21 [00:30:04]Write i2c OK [00:30:04]MH_I2C_Read... [00:30:04]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:30:04]Read from MH i2c: E2 [00:30:04]MH_I2C_Read... [00:30:04]Read from MH i2c: E2 FD 00 [00:30:04]MH_I2C_Read... [00:30:04]Read from MH i2c: E2 FD 00 38 6A 00 C0 04 85 04 BC 04 6E 04 04 00 49 08 00 00 69 04 9F 00 6F 04 04 00 38 08 00 00 B1 04 04 00 12 FB 5A 05 70 04 04 00 C4 A8 76 03 72 04 04 00 4E 52 E4 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 9B 91 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 65 21 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 53 04 02 EF 03 09 00 F6 03 01 90 00 2F [00:30:04]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 49 08 00 00 69 04 9F 00 6F 04 04 00 38 08 00 00 B1 04 04 00 12 FB 5A 05 70 04 04 00 C4 A8 76 03 72 04 04 00 4E 52 E4 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 9B 91 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 65 21 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 53 04 02 EF 03 09 00 F6 03 01 90 00 [00:30:04]wFMCommunicate OK [00:30:04]wFMCommunicate request_size=4 [00:30:04]MH_SAM_APDU [00:30:04]CAPDU: 80 17 00 00 [00:30:04]Write to MH i2c: E2 08 00 39 6A 80 17 00 00 00 00 00 00 23 [00:30:04]Write i2c OK [00:30:04]MH_I2C_Read... [00:30:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:05]Read from MH i2c: E2 [00:30:05]MH_I2C_Read... [00:30:05]Read from MH i2c: E2 FD 00 [00:30:05]MH_I2C_Read... [00:30:05]Read from MH i2c: E2 FD 00 39 6A 00 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 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 90 00 82 [00:30:05]RAPDU: 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 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 90 00 [00:30:05]wFMCommunicate OK [00:30:05]wFMCommunicate request_size=4 [00:30:05]MH_SAM_APDU [00:30:05]CAPDU: 80 17 00 00 [00:30:05]Write to MH i2c: E2 08 00 3A 6A 80 17 00 00 00 00 00 00 24 [00:30:05]Write i2c OK [00:30:05]MH_I2C_Read... [00:30:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:05]Read from MH i2c: E2 [00:30:05]MH_I2C_Read... [00:30:05]Read from MH i2c: E2 FD 00 [00:30:05]MH_I2C_Read... [00:30:05]Read from MH i2c: E2 FD 00 3A 6A 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 90 00 C7 [00:30:05]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 90 00 [00:30:05]wFMCommunicate OK [00:30:05]wFMCommunicate request_size=4 [00:30:05]MH_SAM_APDU [00:30:05]CAPDU: 80 17 00 00 [00:30:05]Write to MH i2c: E2 08 00 3B 6A 80 17 00 00 00 00 00 00 25 [00:30:05]Write i2c OK [00:30:05]MH_I2C_Read... [00:30:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:05]Read from MH i2c: E2 [00:30:05]MH_I2C_Read... [00:30:05]Read from MH i2c: E2 FD 00 [00:30:05]MH_I2C_Read... [00:30:05]Read from MH i2c: E2 FD 00 3B 6A 00 01 00 04 F7 03 00 00 EF 03 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 90 00 9D [00:30:05]RAPDU: 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:30:05]wFMCommunicate OK [00:30:05]wFMCommunicate request_size=4 [00:30:05]MH_SAM_APDU [00:30:05]CAPDU: 80 17 00 00 [00:30:05]Write to MH i2c: E2 08 00 3C 6A 80 17 00 00 00 00 00 00 26 [00:30:05]Write i2c OK [00:30:05]MH_I2C_Read... [00:30:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [00:30:06]Read from MH i2c: E2 [00:30:06]MH_I2C_Read... [00:30:06]Read from MH i2c: E2 DD 00 [00:30:06]MH_I2C_Read... [00:30:06]Read from MH i2c: E2 DD 00 3C 6A 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0E [00:30:06]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:30:06]wFMCommunicate OK [00:30:06]SAM_PROTO_GetFMData done [00:30:06]requested_item fm.sale_refund.total is exist - process it [00:30:06]requested_item fm.buy.total is exist - process it [00:30:06]requested_item shift.sale.total is exist - process it [00:30:06]SAM_PROTO_GetShiftData [00:30:06]wFMCommunicate request_size=4 [00:30:06]MH_SAM_APDU [00:30:06]CAPDU: 80 13 02 00 [00:30:06]Write to MH i2c: E2 08 00 3D 6A 80 13 02 00 00 00 00 00 25 [00:30:06]Write i2c OK [00:30:06]MH_I2C_Read... [00:30:06]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:30:06]Read from MH i2c: E2 [00:30:06]MH_I2C_Read... [00:30:06]Read from MH i2c: E2 FD 00 [00:30:06]MH_I2C_Read... [00:30:06]Read from MH i2c: E2 FD 00 3D 6A 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 98 [00:30:06]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:30:06]wFMCommunicate OK [00:30:06]wFMCommunicate request_size=4 [00:30:06]MH_SAM_APDU [00:30:06]CAPDU: 80 17 00 00 [00:30:06]Write to MH i2c: E2 08 00 3E 6A 80 17 00 00 00 00 00 00 28 [00:30:06]Write i2c OK [00:30:06]MH_I2C_Read... [00:30:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:07]Read from MH i2c: E2 [00:30:07]MH_I2C_Read... [00:30:07]Read from MH i2c: E2 FD 00 [00:30:07]MH_I2C_Read... [00:30:07]Read from MH i2c: E2 FD 00 3E 6A 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 30 [00:30:07]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:30:07]wFMCommunicate OK [00:30:07]wFMCommunicate request_size=4 [00:30:07]MH_SAM_APDU [00:30:07]CAPDU: 80 17 00 00 [00:30:07]Write to MH i2c: E2 08 00 3F 6A 80 17 00 00 00 00 00 00 29 [00:30:07]Write i2c OK [00:30:07]MH_I2C_Read... [00:30:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:07]Read from MH i2c: E2 [00:30:07]MH_I2C_Read... [00:30:07]Read from MH i2c: E2 FD 00 [00:30:07]MH_I2C_Read... [00:30:07]Read from MH i2c: E2 FD 00 3F 6A 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 FB [00:30:07]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:30:07]wFMCommunicate OK [00:30:07]wFMCommunicate request_size=4 [00:30:07]MH_SAM_APDU [00:30:07]CAPDU: 80 17 00 00 [00:30:07]Write to MH i2c: E2 08 00 40 6A 80 17 00 00 00 00 00 00 2A [00:30:07]Write i2c OK [00:30:07]MH_I2C_Read... [00:30:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:08]Read from MH i2c: E2 [00:30:08]MH_I2C_Read... [00:30:08]Read from MH i2c: E2 FD 00 [00:30:08]MH_I2C_Read... [00:30:08]Read from MH i2c: E2 FD 00 40 6A 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 9C [00:30:08]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:30:08]wFMCommunicate OK [00:30:08]wFMCommunicate request_size=4 [00:30:08]MH_SAM_APDU [00:30:08]CAPDU: 80 17 00 00 [00:30:08]Write to MH i2c: E2 08 00 41 6A 80 17 00 00 00 00 00 00 2B [00:30:08]Write i2c OK [00:30:08]MH_I2C_Read... [00:30:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:30:08]Read from MH i2c: E2 [00:30:08]MH_I2C_Read... [00:30:08]Read from MH i2c: E2 BD 00 [00:30:08]MH_I2C_Read... [00:30:08]Read from MH i2c: E2 BD 00 41 6A 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 11 [00:30:08]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:30:08]wFMCommunicate OK [00:30:08]SAM_PROTO_GetShiftData done [00:30:08]requested_item shift.sale.total_cash is exist - process it [00:30:08]requested_item shift.sale_refund.total is exist - process it [00:30:08]requested_item shift.sale_refund.total_cash is exist - process it [00:30:08]requested_item shift.buy.total is exist - process it [00:30:08]requested_item shift.buy.total_cash is exist - process it [00:30:08]produce_requested_data done [00:30:08]produce_requested_data return {"fm.sale.total":898485.94,"fm.sale_refund.total":12447.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:30:08]process_action_free get_value [00:30:08]json_value_free [00:30:08]json_value_free done [00:30:08]process_json_proto returns [00:30:08]Send response to host [00:30:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":898485.94,"fm.sale_refund.total":12447.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:30:08]free response buf [00:30:08]execute_script done [00:30:08]execute_script returns [00:30:08]free content buf [00:30:08]Sock 8.Close socket [00:30:08]Sock 8.Thread stoped [00:30:08]accept exits with 9 [00:30:08]New connection [00:30:08]New thread 3067460964 created [00:30:08]Thread 3067317604 joined [00:30:08]Waiting for new connection... [00:30:08] Sock 9.Parse request [00:30:08]Sock 9.Check first char [00:30:08]Sock 9.First char is OK [00:30:08]request: POST /json_proto HTTP/1.0 [00:30:08]Method: POST [00:30:08]URL: /json_proto [00:30:08]Method is POST - this is cgi request [00:30:08]url: /json_proto [00:30:08]query_string will be loaded in cgi processing [00:30:08]execute_cgi json_proto POST (null) [00:30:08]execute_cgi path=json_proto method=POST [00:30:08]POST find Content-Length [00:30:08]Host: 172.17.45.132:8080 [00:30:08]Content-Length: 257 [00:30:08]Content-Type: application/json [00:30:08] [00:30:08]POST finish read [00:30:08]Found Content-Length = 257 [00:30:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041C\u0430\u043D\u0441\u0443\u0440\u043E\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:30:08]execute_script... [00:30:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041C\u0430\u043D\u0441\u0443\u0440\u043E\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:30:08]POST & json_proto [00:30:08]process_json_proto [00:30:08]json parsed OK: [00:30:08]protocol is kg_v1.0 [00:30:08]action value=x_report [00:30:08]process_action x_report [00:30:08]cmd_x_report [00:30:08]MH_GetDate [00:30:08]Write to MH i2c: F0 00 00 42 6A 9B [00:30:08]Write i2c OK [00:30:08]MH_I2C_Read... [00:30:08]Read from MH i2c: F0 [00:30:08]MH_I2C_Read... [00:30:08]Read from MH i2c: F0 09 00 [00:30:08]MH_I2C_Read... [00:30:08]Read from MH i2c: F0 09 00 42 6A 00 98 E2 A6 66 E3 0B 90 66 0E [00:30:08]GetLastDocTimeStamp 1722211947 [00:30:08]current date 1722213016 [00:30:08]FM_GetShiftState [00:30:08]SAM_PROTO_GetShiftState [00:30:08]wFMCommunicate request_size=4 [00:30:08]MH_SAM_APDU [00:30:08]CAPDU: 80 13 01 00 [00:30:08]Write to MH i2c: E2 08 00 43 6A 80 13 01 00 00 00 00 00 2A [00:30:08]Write i2c OK [00:30:08]MH_I2C_Read... [00:30:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:30:08]Read from MH i2c: E2 [00:30:08]MH_I2C_Read... [00:30:08]Read from MH i2c: E2 0E 00 [00:30:08]MH_I2C_Read... [00:30:08]Read from MH i2c: E2 0E 00 43 6A 00 09 00 01 6B DE A6 66 00 00 00 00 90 00 8B [00:30:08]RAPDU: 09 00 01 6B DE A6 66 00 00 00 00 90 00 [00:30:08]wFMCommunicate OK [00:30:08]SAM_PROTO_GetShiftState done [00:30:08]FM_GetShiftState done [00:30:08]KKMCreateXReportDocument [00:30:08]Load OK [00:30:08]Malloc new data [00:30:08]MH_GetDate [00:30:08]Write to MH i2c: F0 00 00 44 6A 9D [00:30:08]Write i2c OK [00:30:08]MH_I2C_Read... [00:30:08]Read from MH i2c: F0 [00:30:08]MH_I2C_Read... [00:30:08]Read from MH i2c: F0 09 00 [00:30:08]MH_I2C_Read... [00:30:08]Read from MH i2c: F0 09 00 44 6A 00 99 E2 A6 66 E3 0B 90 66 11 [00:30:08]Malloc new data [00:30:08]Malloc new data [00:30:08]wFMCommunicate request_size=4 [00:30:08]MH_SAM_APDU [00:30:08]CAPDU: 80 11 00 00 [00:30:08]Write to MH i2c: E2 08 00 45 6A 80 11 00 00 00 00 00 00 29 [00:30:08]Write i2c OK [00:30:08]MH_I2C_Read... [00:30:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:30:08]Read from MH i2c: E2 [00:30:08]MH_I2C_Read... [00:30:08]Read from MH i2c: E2 17 00 [00:30:08]MH_I2C_Read... [00:30:08]Read from MH i2c: E2 17 00 45 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 79 [00:30:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [00:30:08]wFMCommunicate OK [00:30:08]SAM_PROTO_GetFieldsCounters [00:30:08]wFMCommunicate request_size=4 [00:30:08]MH_SAM_APDU [00:30:08]CAPDU: 80 13 00 00 [00:30:08]Write to MH i2c: E2 08 00 46 6A 80 13 00 00 00 00 00 00 2C [00:30:08]Write i2c OK [00:30:08]MH_I2C_Read... [00:30:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:30:09]Read from MH i2c: E2 [00:30:09]MH_I2C_Read... [00:30:09]Read from MH i2c: E2 62 00 [00:30:09]MH_I2C_Read... [00:30:09]Read from MH i2c: E2 62 00 46 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 65 08 00 00 0E 04 04 00 0E 00 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 D1 [00:30:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 65 08 00 00 0E 04 04 00 0E 00 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:30:09]wFMCommunicate OK [00:30:09]SAM_PROTO_GetFieldsCounters done [00:30:09]Malloc new data [00:30:09]Malloc new data [00:30:09]Malloc new data [00:30:09]KKMCreateXReportDocument OK [00:30:09]KKMSetXReportData OK [00:30:09]KKMPrepareXReportFMData [00:30:09]SAM_PROTO_GetShiftData [00:30:09]wFMCommunicate request_size=4 [00:30:09]MH_SAM_APDU [00:30:09]CAPDU: 80 13 02 00 [00:30:09]Write to MH i2c: E2 08 00 47 6A 80 13 02 00 00 00 00 00 2F [00:30:09]Write i2c OK [00:30:09]MH_I2C_Read... [00:30:09]OFD Sender: No OFD packet to send [00:30:09]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:30:09]Read from MH i2c: E2 [00:30:09]MH_I2C_Read... [00:30:09]Read from MH i2c: E2 FD 00 [00:30:09]MH_I2C_Read... [00:30:09]Read from MH i2c: E2 FD 00 47 6A 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 A2 [00:30:09]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:30:09]wFMCommunicate OK [00:30:09]wFMCommunicate request_size=4 [00:30:09]MH_SAM_APDU [00:30:09]CAPDU: 80 17 00 00 [00:30:09]Write to MH i2c: E2 08 00 48 6A 80 17 00 00 00 00 00 00 32 [00:30:09]Write i2c OK [00:30:09]MH_I2C_Read... [00:30:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:09]Read from MH i2c: E2 [00:30:09]MH_I2C_Read... [00:30:09]Read from MH i2c: E2 FD 00 [00:30:09]MH_I2C_Read... [00:30:10]Read from MH i2c: E2 FD 00 48 6A 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 3A [00:30:10]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:30:10]wFMCommunicate OK [00:30:10]wFMCommunicate request_size=4 [00:30:10]MH_SAM_APDU [00:30:10]CAPDU: 80 17 00 00 [00:30:10]Write to MH i2c: E2 08 00 49 6A 80 17 00 00 00 00 00 00 33 [00:30:10]Write i2c OK [00:30:10]MH_I2C_Read... [00:30:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:10]Read from MH i2c: E2 [00:30:10]MH_I2C_Read... [00:30:10]Read from MH i2c: E2 FD 00 [00:30:10]MH_I2C_Read... [00:30:10]Read from MH i2c: E2 FD 00 49 6A 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 05 [00:30:10]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:30:10]wFMCommunicate OK [00:30:10]wFMCommunicate request_size=4 [00:30:10]MH_SAM_APDU [00:30:10]CAPDU: 80 17 00 00 [00:30:10]Write to MH i2c: E2 08 00 4A 6A 80 17 00 00 00 00 00 00 34 [00:30:10]Write i2c OK [00:30:10]MH_I2C_Read... [00:30:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:10]Read from MH i2c: E2 [00:30:10]MH_I2C_Read... [00:30:10]Read from MH i2c: E2 FD 00 [00:30:10]MH_I2C_Read... [00:30:10]Read from MH i2c: E2 FD 00 4A 6A 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 A6 [00:30:11]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:30:11]wFMCommunicate OK [00:30:11]wFMCommunicate request_size=4 [00:30:11]MH_SAM_APDU [00:30:11]CAPDU: 80 17 00 00 [00:30:11]Write to MH i2c: E2 08 00 4B 6A 80 17 00 00 00 00 00 00 35 [00:30:11]Write i2c OK [00:30:11]MH_I2C_Read... [00:30:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:30:11]Read from MH i2c: E2 [00:30:11]MH_I2C_Read... [00:30:11]Read from MH i2c: E2 BD 00 [00:30:11]MH_I2C_Read... [00:30:11]Read from MH i2c: E2 BD 00 4B 6A 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 1B [00:30:11]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:30:11]wFMCommunicate OK [00:30:11]SAM_PROTO_GetShiftData done [00:30:11]1194 (1180) - счетчики итогов смены [00:30:11] 1134 (4) - 0 - количество чеков со всеми признаками расчетов [00:30:11] 1129 (141) - счетчики операций «приход» [00:30:11] 1135 (4) - 0 - количество чеков по признаку расчетов [00:30:11] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:30:11] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:30:11] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:30:11] 1024 (117) - суммы налогов [00:30:11] 1006 (9) - суммы НДС [00:30:11] 1010 (1) - 0% - код ставки НДС [00:30:11] 1011 (0) - 0.00 - сумма НДС по ставке [00:30:11] 1006 (9) - суммы НДС [00:30:11] 1010 (1) - 12% - код ставки НДС [00:30:11] 1011 (0) - 0.00 - сумма НДС по ставке [00:30:11] 1007 (9) - суммы НСП [00:30:11] 1014 (1) - 0% - код ставки НСП [00:30:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:11] 1007 (9) - суммы НСП [00:30:11] 1014 (1) - 1% - код ставки НСП [00:30:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:11] 1007 (9) - суммы НСП [00:30:11] 1014 (1) - 2% - код ставки НСП [00:30:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:11] 1007 (9) - суммы НСП [00:30:11] 1014 (1) - 3% - код ставки НСП [00:30:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:11] 1007 (9) - суммы НСП [00:30:11] 1014 (1) - 5% - код ставки НСП [00:30:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:11] 1007 (9) - суммы НСП [00:30:11] 1014 (1) - 0,50% - код ставки НСП [00:30:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:11] 1007 (9) - суммы НСП [00:30:11] 1014 (1) - 1,50% - код ставки НСП [00:30:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:11] 1130 (141) - счетчики операций «возврат прихода» [00:30:11] 1135 (4) - 0 - количество чеков по признаку расчетов [00:30:11] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:30:11] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:30:11] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:30:11] 1024 (117) - суммы налогов [00:30:11] 1006 (9) - суммы НДС [00:30:11] 1010 (1) - 0% - код ставки НДС [00:30:11] 1011 (0) - 0.00 - сумма НДС по ставке [00:30:11] 1006 (9) - суммы НДС [00:30:11] 1010 (1) - 12% - код ставки НДС [00:30:11] 1011 (0) - 0.00 - сумма НДС по ставке [00:30:11] 1007 (9) - суммы НСП [00:30:11] 1014 (1) - 0% - код ставки НСП [00:30:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:11] 1007 (9) - суммы НСП [00:30:11] 1014 (1) - 1% - код ставки НСП [00:30:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:11] 1007 (9) - суммы НСП [00:30:11] 1014 (1) - 2% - код ставки НСП [00:30:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:11] 1007 (9) - суммы НСП [00:30:11] 1014 (1) - 3% - код ставки НСП [00:30:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:11] 1007 (9) - суммы НСП [00:30:11] 1014 (1) - 5% - код ставки НСП [00:30:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:11] 1007 (9) - суммы НСП [00:30:11] 1014 (1) - 0,50% - код ставки НСП [00:30:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:11] 1007 (9) - суммы НСП [00:30:11] 1014 (1) - 1,50% - код ставки НСП [00:30:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:11] 1131 (141) - счетчики операций «расход» [00:30:11] 1135 (4) - 0 - количество чеков по признаку расчетов [00:30:11] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:30:11] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:30:11] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:30:11] 1024 (117) - суммы налогов [00:30:11] 1006 (9) - суммы НДС [00:30:11] 1010 (1) - 0% - код ставки НДС [00:30:11] 1011 (0) - 0.00 - сумма НДС по ставке [00:30:11] 1006 (9) - суммы НДС [00:30:11] 1010 (1) - 12% - код ставки НДС [00:30:11] 1011 (0) - 0.00 - сумма НДС по ставке [00:30:11] 1007 (9) - суммы НСП [00:30:11] 1014 (1) - 0% - код ставки НСП [00:30:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:11] 1007 (9) - суммы НСП [00:30:11] 1014 (1) - 1% - код ставки НСП [00:30:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:11] 1007 (9) - суммы НСП [00:30:11] 1014 (1) - 2% - код ставки НСП [00:30:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:11] 1007 (9) - суммы НСП [00:30:11] 1014 (1) - 3% - код ставки НСП [00:30:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:11] 1007 (9) - суммы НСП [00:30:11] 1014 (1) - 5% - код ставки НСП [00:30:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:11] 1007 (9) - суммы НСП [00:30:11] 1014 (1) - 0,50% - код ставки НСП [00:30:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:11] 1007 (9) - суммы НСП [00:30:11] 1014 (1) - 1,50% - код ставки НСП [00:30:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:11] 1132 (141) - счетчики операций «возврат расхода» [00:30:11] 1135 (4) - 0 - количество чеков по признаку расчетов [00:30:11] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:30:11] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:30:11] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:30:11] 1024 (117) - суммы налогов [00:30:11] 1006 (9) - суммы НДС [00:30:11] 1010 (1) - 0% - код ставки НДС [00:30:11] 1011 (0) - 0.00 - сумма НДС по ставке [00:30:11] 1006 (9) - суммы НДС [00:30:11] 1010 (1) - 12% - код ставки НДС [00:30:11] 1011 (0) - 0.00 - сумма НДС по ставке [00:30:11] 1007 (9) - суммы НСП [00:30:11] 1014 (1) - 0% - код ставки НСП [00:30:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:11] 1007 (9) - суммы НСП [00:30:11] 1014 (1) - 1% - код ставки НСП [00:30:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:11] 1007 (9) - суммы НСП [00:30:11] 1014 (1) - 2% - код ставки НСП [00:30:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:11] 1007 (9) - суммы НСП [00:30:11] 1014 (1) - 3% - код ставки НСП [00:30:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:11] 1007 (9) - суммы НСП [00:30:11] 1014 (1) - 5% - код ставки НСП [00:30:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:11] 1007 (9) - суммы НСП [00:30:11] 1014 (1) - 0,50% - код ставки НСП [00:30:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:11] 1007 (9) - суммы НСП [00:30:11] 1014 (1) - 1,50% - код ставки НСП [00:30:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:11] 1133 (588) - - счетчики коррекции - не используются [00:30:11]SetTLVBufToDocument [00:30:11]Processing tag 1194 (04AA) [00:30:11]Load OK [00:30:11]SetTLVBufToDocument [00:30:11]Processing tag 1134 (046E) [00:30:11]Malloc new data [00:30:11]Processing tag 1129 (0469) [00:30:11]Load OK [00:30:11]SetTLVBufToDocument [00:30:11]Processing tag 1135 (046F) [00:30:11]Malloc new data [00:30:11]Processing tag 1201 (04B1) [00:30:11]Malloc new data [00:30:11]Processing tag 1136 (0470) [00:30:11]Malloc new data [00:30:11]Processing tag 1138 (0472) [00:30:11]Malloc new data [00:30:11]Processing tag 1024 (0400) [00:30:11]Load OK [00:30:11]SetTLVBufToDocument [00:30:11]Processing tag 1006 (03EE) [00:30:11]Load OK [00:30:11]SetTLVBufToDocument [00:30:11]Processing tag 1010 (03F2) [00:30:11]Malloc new data [00:30:11]Processing tag 1011 (03F3) [00:30:11]Malloc new data [00:30:11]SetTLVBufToDocument err=0 [00:30:11]Processing tag 1006 (03EE) [00:30:11]Load OK [00:30:11]SetTLVBufToDocument [00:30:11]Processing tag 1010 (03F2) [00:30:11]Malloc new data [00:30:11]Processing tag 1011 (03F3) [00:30:11]Malloc new data [00:30:11]SetTLVBufToDocument err=0 [00:30:11]Processing tag 1007 (03EF) [00:30:11]Load OK [00:30:11]SetTLVBufToDocument [00:30:11]Processing tag 1014 (03F6) [00:30:11]Malloc new data [00:30:11]Processing tag 1015 (03F7) [00:30:11]Malloc new data [00:30:11]SetTLVBufToDocument err=0 [00:30:11]Processing tag 1007 (03EF) [00:30:11]Load OK [00:30:11]SetTLVBufToDocument [00:30:11]Processing tag 1014 (03F6) [00:30:11]Malloc new data [00:30:11]Processing tag 1015 (03F7) [00:30:12]Malloc new data [00:30:12]SetTLVBufToDocument err=0 [00:30:12]Processing tag 1007 (03EF) [00:30:12]Load OK [00:30:12]SetTLVBufToDocument [00:30:12]Processing tag 1014 (03F6) [00:30:12]Malloc new data [00:30:12]Processing tag 1015 (03F7) [00:30:12]Malloc new data [00:30:12]SetTLVBufToDocument err=0 [00:30:12]Processing tag 1007 (03EF) [00:30:12]Load OK [00:30:12]SetTLVBufToDocument [00:30:12]Processing tag 1014 (03F6) [00:30:12]Malloc new data [00:30:12]Processing tag 1015 (03F7) [00:30:12]Malloc new data [00:30:12]SetTLVBufToDocument err=0 [00:30:12]Processing tag 1007 (03EF) [00:30:12]Load OK [00:30:12]SetTLVBufToDocument [00:30:12]Processing tag 1014 (03F6) [00:30:12]Malloc new data [00:30:12]Processing tag 1015 (03F7) [00:30:12]Malloc new data [00:30:12]SetTLVBufToDocument err=0 [00:30:12]Processing tag 1007 (03EF) [00:30:12]Load OK [00:30:12]SetTLVBufToDocument [00:30:12]Processing tag 1014 (03F6) [00:30:12]Malloc new data [00:30:12]Processing tag 1015 (03F7) [00:30:12]Malloc new data [00:30:12]SetTLVBufToDocument err=0 [00:30:12]Processing tag 1007 (03EF) [00:30:12]Load OK [00:30:12]SetTLVBufToDocument [00:30:12]Processing tag 1014 (03F6) [00:30:12]Malloc new data [00:30:12]Processing tag 1015 (03F7) [00:30:12]Malloc new data [00:30:12]SetTLVBufToDocument err=0 [00:30:12]SetTLVBufToDocument err=0 [00:30:12]SetTLVBufToDocument err=0 [00:30:12]Processing tag 1130 (046A) [00:30:12]Load OK [00:30:12]SetTLVBufToDocument [00:30:12]Processing tag 1135 (046F) [00:30:12]Malloc new data [00:30:12]Processing tag 1201 (04B1) [00:30:12]Malloc new data [00:30:12]Processing tag 1136 (0470) [00:30:12]Malloc new data [00:30:12]Processing tag 1138 (0472) [00:30:12]Malloc new data [00:30:12]Processing tag 1024 (0400) [00:30:12]Load OK [00:30:12]SetTLVBufToDocument [00:30:12]Processing tag 1006 (03EE) [00:30:12]Load OK [00:30:12]SetTLVBufToDocument [00:30:12]Processing tag 1010 (03F2) [00:30:12]Malloc new data [00:30:12]Processing tag 1011 (03F3) [00:30:12]Malloc new data [00:30:12]SetTLVBufToDocument err=0 [00:30:12]Processing tag 1006 (03EE) [00:30:12]Load OK [00:30:12]SetTLVBufToDocument [00:30:12]Processing tag 1010 (03F2) [00:30:12]Malloc new data [00:30:12]Processing tag 1011 (03F3) [00:30:12]Malloc new data [00:30:12]SetTLVBufToDocument err=0 [00:30:12]Processing tag 1007 (03EF) [00:30:12]Load OK [00:30:12]SetTLVBufToDocument [00:30:12]Processing tag 1014 (03F6) [00:30:12]Malloc new data [00:30:12]Processing tag 1015 (03F7) [00:30:12]Malloc new data [00:30:12]SetTLVBufToDocument err=0 [00:30:12]Processing tag 1007 (03EF) [00:30:12]Load OK [00:30:12]SetTLVBufToDocument [00:30:12]Processing tag 1014 (03F6) [00:30:12]Malloc new data [00:30:12]Processing tag 1015 (03F7) [00:30:12]Malloc new data [00:30:12]SetTLVBufToDocument err=0 [00:30:12]Processing tag 1007 (03EF) [00:30:12]Load OK [00:30:12]SetTLVBufToDocument [00:30:12]Processing tag 1014 (03F6) [00:30:12]Malloc new data [00:30:12]Processing tag 1015 (03F7) [00:30:12]Malloc new data [00:30:12]SetTLVBufToDocument err=0 [00:30:12]Processing tag 1007 (03EF) [00:30:12]Load OK [00:30:12]SetTLVBufToDocument [00:30:12]Processing tag 1014 (03F6) [00:30:12]Malloc new data [00:30:12]Processing tag 1015 (03F7) [00:30:12]Malloc new data [00:30:12]SetTLVBufToDocument err=0 [00:30:12]Processing tag 1007 (03EF) [00:30:12]Load OK [00:30:12]SetTLVBufToDocument [00:30:12]Processing tag 1014 (03F6) [00:30:12]Malloc new data [00:30:12]Processing tag 1015 (03F7) [00:30:12]Malloc new data [00:30:12]SetTLVBufToDocument err=0 [00:30:12]Processing tag 1007 (03EF) [00:30:12]Load OK [00:30:12]SetTLVBufToDocument [00:30:12]Processing tag 1014 (03F6) [00:30:12]Malloc new data [00:30:12]Processing tag 1015 (03F7) [00:30:12]Malloc new data [00:30:12]SetTLVBufToDocument err=0 [00:30:12]Processing tag 1007 (03EF) [00:30:12]Load OK [00:30:12]SetTLVBufToDocument [00:30:12]Processing tag 1014 (03F6) [00:30:12]Malloc new data [00:30:12]Processing tag 1015 (03F7) [00:30:12]Malloc new data [00:30:12]SetTLVBufToDocument err=0 [00:30:12]SetTLVBufToDocument err=0 [00:30:12]SetTLVBufToDocument err=0 [00:30:12]Processing tag 1131 (046B) [00:30:12]Load OK [00:30:12]SetTLVBufToDocument [00:30:12]Processing tag 1135 (046F) [00:30:12]Malloc new data [00:30:12]Processing tag 1201 (04B1) [00:30:12]Malloc new data [00:30:12]Processing tag 1136 (0470) [00:30:12]Malloc new data [00:30:12]Processing tag 1138 (0472) [00:30:12]Malloc new data [00:30:12]Processing tag 1024 (0400) [00:30:12]Load OK [00:30:12]SetTLVBufToDocument [00:30:12]Processing tag 1006 (03EE) [00:30:12]Load OK [00:30:12]SetTLVBufToDocument [00:30:12]Processing tag 1010 (03F2) [00:30:12]Malloc new data [00:30:12]Processing tag 1011 (03F3) [00:30:12]Malloc new data [00:30:12]SetTLVBufToDocument err=0 [00:30:12]Processing tag 1006 (03EE) [00:30:12]Load OK [00:30:12]SetTLVBufToDocument [00:30:12]Processing tag 1010 (03F2) [00:30:12]Malloc new data [00:30:12]Processing tag 1011 (03F3) [00:30:12]Malloc new data [00:30:12]SetTLVBufToDocument err=0 [00:30:12]Processing tag 1007 (03EF) [00:30:12]Load OK [00:30:12]SetTLVBufToDocument [00:30:12]Processing tag 1014 (03F6) [00:30:12]Malloc new data [00:30:12]Processing tag 1015 (03F7) [00:30:12]Malloc new data [00:30:12]SetTLVBufToDocument err=0 [00:30:12]Processing tag 1007 (03EF) [00:30:12]Load OK [00:30:12]SetTLVBufToDocument [00:30:12]Processing tag 1014 (03F6) [00:30:12]Malloc new data [00:30:12]Processing tag 1015 (03F7) [00:30:12]Malloc new data [00:30:12]SetTLVBufToDocument err=0 [00:30:12]Processing tag 1007 (03EF) [00:30:12]Load OK [00:30:12]SetTLVBufToDocument [00:30:12]Processing tag 1014 (03F6) [00:30:12]Malloc new data [00:30:12]Processing tag 1015 (03F7) [00:30:12]Malloc new data [00:30:12]SetTLVBufToDocument err=0 [00:30:12]Processing tag 1007 (03EF) [00:30:12]Load OK [00:30:12]SetTLVBufToDocument [00:30:12]Processing tag 1014 (03F6) [00:30:12]Malloc new data [00:30:12]Processing tag 1015 (03F7) [00:30:12]Malloc new data [00:30:12]SetTLVBufToDocument err=0 [00:30:12]Processing tag 1007 (03EF) [00:30:12]Load OK [00:30:12]SetTLVBufToDocument [00:30:12]Processing tag 1014 (03F6) [00:30:12]Malloc new data [00:30:12]Processing tag 1015 (03F7) [00:30:12]Malloc new data [00:30:12]SetTLVBufToDocument err=0 [00:30:12]Processing tag 1007 (03EF) [00:30:12]Load OK [00:30:12]SetTLVBufToDocument [00:30:12]Processing tag 1014 (03F6) [00:30:12]Malloc new data [00:30:12]Processing tag 1015 (03F7) [00:30:12]Malloc new data [00:30:12]SetTLVBufToDocument err=0 [00:30:12]Processing tag 1007 (03EF) [00:30:12]Load OK [00:30:12]SetTLVBufToDocument [00:30:12]Processing tag 1014 (03F6) [00:30:12]Malloc new data [00:30:12]Processing tag 1015 (03F7) [00:30:12]Malloc new data [00:30:12]SetTLVBufToDocument err=0 [00:30:12]SetTLVBufToDocument err=0 [00:30:12]SetTLVBufToDocument err=0 [00:30:12]Processing tag 1132 (046C) [00:30:12]Load OK [00:30:12]SetTLVBufToDocument [00:30:12]Processing tag 1135 (046F) [00:30:12]Malloc new data [00:30:12]Processing tag 1201 (04B1) [00:30:12]Malloc new data [00:30:12]Processing tag 1136 (0470) [00:30:12]Malloc new data [00:30:12]Processing tag 1138 (0472) [00:30:12]Malloc new data [00:30:12]Processing tag 1024 (0400) [00:30:12]Load OK [00:30:12]SetTLVBufToDocument [00:30:12]Processing tag 1006 (03EE) [00:30:12]Load OK [00:30:12]SetTLVBufToDocument [00:30:12]Processing tag 1010 (03F2) [00:30:12]Malloc new data [00:30:12]Processing tag 1011 (03F3) [00:30:12]Malloc new data [00:30:12]SetTLVBufToDocument err=0 [00:30:12]Processing tag 1006 (03EE) [00:30:12]Load OK [00:30:12]SetTLVBufToDocument [00:30:12]Processing tag 1010 (03F2) [00:30:12]Malloc new data [00:30:12]Processing tag 1011 (03F3) [00:30:12]Malloc new data [00:30:12]SetTLVBufToDocument err=0 [00:30:12]Processing tag 1007 (03EF) [00:30:12]Load OK [00:30:12]SetTLVBufToDocument [00:30:12]Processing tag 1014 (03F6) [00:30:12]Malloc new data [00:30:12]Processing tag 1015 (03F7) [00:30:12]Malloc new data [00:30:12]SetTLVBufToDocument err=0 [00:30:12]Processing tag 1007 (03EF) [00:30:12]Load OK [00:30:12]SetTLVBufToDocument [00:30:12]Processing tag 1014 (03F6) [00:30:12]Malloc new data [00:30:12]Processing tag 1015 (03F7) [00:30:12]Malloc new data [00:30:12]SetTLVBufToDocument err=0 [00:30:12]Processing tag 1007 (03EF) [00:30:12]Load OK [00:30:12]SetTLVBufToDocument [00:30:12]Processing tag 1014 (03F6) [00:30:12]Malloc new data [00:30:12]Processing tag 1015 (03F7) [00:30:12]Malloc new data [00:30:12]SetTLVBufToDocument err=0 [00:30:12]Processing tag 1007 (03EF) [00:30:12]Load OK [00:30:12]SetTLVBufToDocument [00:30:12]Processing tag 1014 (03F6) [00:30:12]Malloc new data [00:30:12]Processing tag 1015 (03F7) [00:30:12]Malloc new data [00:30:12]SetTLVBufToDocument err=0 [00:30:12]Processing tag 1007 (03EF) [00:30:12]Load OK [00:30:12]SetTLVBufToDocument [00:30:12]Processing tag 1014 (03F6) [00:30:12]Malloc new data [00:30:12]Processing tag 1015 (03F7) [00:30:12]Malloc new data [00:30:12]SetTLVBufToDocument err=0 [00:30:12]Processing tag 1007 (03EF) [00:30:12]Load OK [00:30:12]SetTLVBufToDocument [00:30:12]Processing tag 1014 (03F6) [00:30:12]Malloc new data [00:30:12]Processing tag 1015 (03F7) [00:30:12]Malloc new data [00:30:12]SetTLVBufToDocument err=0 [00:30:12]Processing tag 1007 (03EF) [00:30:12]Load OK [00:30:12]SetTLVBufToDocument [00:30:12]Processing tag 1014 (03F6) [00:30:12]Malloc new data [00:30:12]Processing tag 1015 (03F7) [00:30:12]Malloc new data [00:30:12]SetTLVBufToDocument err=0 [00:30:12]SetTLVBufToDocument err=0 [00:30:12]SetTLVBufToDocument err=0 [00:30:12]Processing tag 1133 (046D) [00:30:12]Malloc new data [00:30:12]SetTLVBufToDocument err=0 [00:30:12]SetTLVBufToDocument err=0 [00:30:12]Malloc new data [00:30:12]SAM_PROTO_GetFMData [00:30:12]wFMCommunicate request_size=4 [00:30:12]MH_SAM_APDU [00:30:12]CAPDU: 80 13 03 00 [00:30:12]Write to MH i2c: E2 08 00 4C 6A 80 13 03 00 00 00 00 00 35 [00:30:12]Write i2c OK [00:30:12]MH_I2C_Read... [00:30:13]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:30:13]Read from MH i2c: E2 [00:30:13]MH_I2C_Read... [00:30:13]Read from MH i2c: E2 FD 00 [00:30:13]MH_I2C_Read... [00:30:13]Read from MH i2c: E2 FD 00 4C 6A 00 C0 04 85 04 BC 04 6E 04 04 00 49 08 00 00 69 04 9F 00 6F 04 04 00 38 08 00 00 B1 04 04 00 12 FB 5A 05 70 04 04 00 C4 A8 76 03 72 04 04 00 4E 52 E4 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 9B 91 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 65 21 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 53 04 02 EF 03 09 00 F6 03 01 90 00 43 [00:30:13]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 49 08 00 00 69 04 9F 00 6F 04 04 00 38 08 00 00 B1 04 04 00 12 FB 5A 05 70 04 04 00 C4 A8 76 03 72 04 04 00 4E 52 E4 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 9B 91 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 65 21 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 53 04 02 EF 03 09 00 F6 03 01 90 00 [00:30:13]wFMCommunicate OK [00:30:13]wFMCommunicate request_size=4 [00:30:13]MH_SAM_APDU [00:30:13]CAPDU: 80 17 00 00 [00:30:13]Write to MH i2c: E2 08 00 4D 6A 80 17 00 00 00 00 00 00 37 [00:30:13]Write i2c OK [00:30:13]MH_I2C_Read... [00:30:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:13]Read from MH i2c: E2 [00:30:13]MH_I2C_Read... [00:30:13]Read from MH i2c: E2 FD 00 [00:30:13]MH_I2C_Read... [00:30:13]Read from MH i2c: E2 FD 00 4D 6A 00 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 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 90 00 96 [00:30:13]RAPDU: 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 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 90 00 [00:30:14]wFMCommunicate OK [00:30:14]wFMCommunicate request_size=4 [00:30:14]MH_SAM_APDU [00:30:14]CAPDU: 80 17 00 00 [00:30:14]Write to MH i2c: E2 08 00 4E 6A 80 17 00 00 00 00 00 00 38 [00:30:14]Write i2c OK [00:30:14]MH_I2C_Read... [00:30:14]OFD Sender: No OFD packet to send [00:30:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:14]Read from MH i2c: E2 [00:30:14]MH_I2C_Read... [00:30:14]Read from MH i2c: E2 FD 00 [00:30:14]MH_I2C_Read... [00:30:14]Read from MH i2c: E2 FD 00 4E 6A 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 90 00 DB [00:30:14]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 90 00 [00:30:14]wFMCommunicate OK [00:30:14]wFMCommunicate request_size=4 [00:30:14]MH_SAM_APDU [00:30:14]CAPDU: 80 17 00 00 [00:30:14]Write to MH i2c: E2 08 00 4F 6A 80 17 00 00 00 00 00 00 39 [00:30:14]Write i2c OK [00:30:14]MH_I2C_Read... [00:30:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:14]Read from MH i2c: E2 [00:30:14]MH_I2C_Read... [00:30:14]Read from MH i2c: E2 FD 00 [00:30:14]MH_I2C_Read... [00:30:14]Read from MH i2c: E2 FD 00 4F 6A 00 01 00 04 F7 03 00 00 EF 03 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 90 00 B1 [00:30:15]RAPDU: 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:30:15]wFMCommunicate OK [00:30:15]wFMCommunicate request_size=4 [00:30:15]MH_SAM_APDU [00:30:15]CAPDU: 80 17 00 00 [00:30:15]Write to MH i2c: E2 08 00 50 6A 80 17 00 00 00 00 00 00 3A [00:30:15]Write i2c OK [00:30:15]MH_I2C_Read... [00:30:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [00:30:15]Read from MH i2c: E2 [00:30:15]MH_I2C_Read... [00:30:15]Read from MH i2c: E2 DD 00 [00:30:15]MH_I2C_Read... [00:30:15]Read from MH i2c: E2 DD 00 50 6A 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 22 [00:30:15]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:30:15]wFMCommunicate OK [00:30:15]SAM_PROTO_GetFMData done [00:30:15]FM_GetFMData:85 04 BC 04 6E 04 04 00 49 08 00 00 69 04 9F 00 6F 04 04 00 38 08 00 00 B1 04 04 00 12 FB 5A 05 70 04 04 00 C4 A8 76 03 72 04 04 00 4E 52 E4 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 9B 91 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 65 21 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 53 04 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 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:30:16]oper:6F 04 04 00 38 08 00 00 B1 04 04 00 12 FB 5A 05 70 04 04 00 C4 A8 76 03 72 04 04 00 4E 52 E4 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 9B 91 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 65 21 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:30:16]total:12 FB 5A 05 [00:30:16]Malloc new data [00:30:16]oper:6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 53 04 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 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:30:16]total:1C FE 12 [00:30:16]Malloc new data [00:30:16]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:30:16]total: [00:30:16]Malloc new data [00:30:16]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:30:16]total: [00:30:16]Malloc new data [00:30:16]KKMPrepareXReportFMData err=0 [00:30:16]Х отчет ИНН: 02508201610067 Кассир: Мансуров А. 29.07.2024 00:30 Смена: 10 РНМ: 0000000000189667 ЗНМ: 0300000161 СНО: Общий режим Всего чеков: 0 ИТОГИ ПРИХОД Чеков: 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 Общий итог: 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 Нал. в кассе: 0.00 НС Приход: 898485.94 НС Возвр.Прихода: 12447.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000002094248 [00:30:16]StoreToDocumentArchive [00:30:16]MH_GetDate [00:30:16]Write to MH i2c: F0 00 00 51 6A AA [00:30:16]Write i2c OK [00:30:16]MH_I2C_Read... [00:30:16]Read from MH i2c: F0 [00:30:16]MH_I2C_Read... [00:30:16]Read from MH i2c: F0 09 00 [00:30:16]MH_I2C_Read... [00:30:16]Read from MH i2c: F0 09 00 51 6A 00 A1 E2 A6 66 E3 0B 90 66 26 [00:30:16]shift 10 fd 1722213025 [00:30:16]Create dir for shift 0010 [00:30:16]save to /storage/0010/doc_1722213025 [00:30:16]save last doc name /storage/0010/doc_1722213025 to /storage/kkm_last_doc_name [00:30:16]save OK [00:30:16]Clear old archive folders... [00:30:16]NVStorageSaveData kkm_last_timestamp [00:30:16]File name is /storage/kkm_last_timestamp [00:30:16]Write 4 bytes [00:30:16]NVStorageSaveData done [00:30:16]ExternCall_PrintAddStr [00:30:16]wPrintStart [00:30:16]Write to MH i2c: 01 00 00 52 6A BC [00:30:16]Write i2c OK [00:30:16]MH_I2C_Read... [00:30:16]Read from MH i2c: 01 [00:30:16]MH_I2C_Read... [00:30:16]Read from MH i2c: 01 07 00 [00:30:16]MH_I2C_Read... [00:30:16]Read from MH i2c: 01 07 00 52 6A 00 00 00 00 00 FF 0F D1 [00:30:16]RasterBufferAndPrint [00:30:16]line Х отчет [00:30:16]line ИНН: 02508201610067 [00:30:16]line Кассир: Мансуров А. [00:30:16]line 29.07.2024 00:30 [00:30:16]line Смена: 10 [00:30:16]line РНМ: 0000000000189667 [00:30:16]line ЗНМ: 0300000161 [00:30:16]line СНО: Общий режим [00:30:16]line Всего чеков: 0 [00:30:16]line ИТОГИ ПРИХОД [00:30:16]line Чеков: 0 [00:30:16]line Общий итог: 0.00 [00:30:16]line Итого наличными: 0.00 [00:30:16]line Итого безнал.: 0.00 [00:30:16]line НДС 0% : 0.00 [00:30:16]line НДС 12% : 0.00 [00:30:16]line НСП 0% : 0.00 [00:30:16]line НСП 1,50% : 0.00 [00:30:16]line НСП 0,50% : 0.00 [00:30:16]line НСП 5% : 0.00 [00:30:16]line НСП 3% : 0.00 [00:30:16]line НСП 2% : 0.00 [00:30:16]line НСП 1% : 0.00 [00:30:16]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:30:16]line Чеков: 0 [00:30:16]line Общий итог: 0.00 [00:30:16]line Итого наличными: 0.00 [00:30:16]line Итого безнал.: 0.00 [00:30:16]line НДС 0% : 0.00 [00:30:16]line НДС 12% : 0.00 [00:30:16]line НСП 0% : 0.00 [00:30:16]line НСП 1,50% : 0.00 [00:30:16]line НСП 0,50% : 0.00 [00:30:16]line НСП 5% : 0.00 [00:30:16]line НСП 3% : 0.00 [00:30:16]line НСП 2% : 0.00 [00:30:16]line НСП 1% : 0.00 [00:30:16]line ИТОГИ РАСХОД [00:30:16]line Чеков: 0 [00:30:16]line Общий итог: 0.00 [00:30:16]line Итого наличными: 0.00 [00:30:16]line Итого безнал.: 0.00 [00:30:16]line НДС 0% : 0.00 [00:30:16]line НДС 12% : 0.00 [00:30:16]line НСП 0% : 0.00 [00:30:16]line НСП 1,50% : 0.00 [00:30:16]line НСП 0,50% : 0.00 [00:30:16]line НСП 5% : 0.00 [00:30:16]line НСП 3% : 0.00 [00:30:16]line НСП 2% : 0.00 [00:30:16]line НСП 1% : 0.00 [00:30:16]line ИТОГИ ВОЗВРАТ РАСХОДА [00:30:16]line Чеков: 0 [00:30:16]line Общий итог: 0.00 [00:30:16]line Итого наличными: 0.00 [00:30:16]line Итого безнал.: 0.00 [00:30:16]line НДС 0% : 0.00 [00:30:16]line НДС 12% : 0.00 [00:30:16]line НСП 0% : 0.00 [00:30:16]line НСП 1,50% : 0.00 [00:30:16]line НСП 0,50% : 0.00 [00:30:16]line НСП 5% : 0.00 [00:30:16]line НСП 3% : 0.00 [00:30:16]line НСП 2% : 0.00 [00:30:16]line НСП 1% : 0.00 [00:30:16]line Сумма внесений: 0.00 [00:30:16]line Сумма выплат: 0.00 [00:30:16]line Нал. в кассе: 0.00 [00:30:16]line НС Приход: 898485.94 [00:30:16]line НС Возвр.Прихода: 12447.00 [00:30:16]line НС Расход: 0.00 [00:30:16]line НС Возвр.Расхода: 0.00 [00:30:16]line ФМ: 0000000002094248 [00:30:16]written 0, free lines is 4095 [00:30:17]Write to MH i2c: 01 00 00 9D 6A 07 [00:30:17]Write i2c OK [00:30:17]MH_I2C_Read... [00:30:17]Read from MH i2c: 01 [00:30:17]MH_I2C_Read... [00:30:17]Read from MH i2c: 01 07 00 [00:30:17]MH_I2C_Read... [00:30:17]Read from MH i2c: 01 07 00 9D 6A 00 00 00 00 00 F7 0A 0F [00:30:17]RasterBufferAndPrint [00:30:17]line [00:30:17]line [00:30:17]line [00:30:17]line [00:30:17]line [00:30:17]written 0, free lines is 2846 [00:30:17]MH_Cut [00:30:17]Write to MH i2c: D1 01 00 A4 6A 01 E0 [00:30:17]Write i2c OK [00:30:17]MH_I2C_Read... [00:30:17]Read from MH i2c: D1 [00:30:17]MH_I2C_Read... [00:30:17]Read from MH i2c: D1 01 00 [00:30:17]MH_I2C_Read... [00:30:17]Read from MH i2c: D1 01 00 A4 6A 00 DF [00:30:17]Write to MH i2c: 01 00 00 A5 6A 0F [00:30:17]Write i2c OK [00:30:17]MH_I2C_Read... [00:30:18]*** Cut start [00:30:18]*** Partial cut [00:30:18]*** CUTSNS_PIN = 1 [00:30:18]*** CUTSNS_PIN = 0 [00:30:18]*** Brake cut motor [00:30:19]Read from MH i2c: 01 [00:30:19]MH_I2C_Read... [00:30:19]*** Stop cut motor [00:30:19]*** Cut end [00:30:19]Read from MH i2c: 01 07 00 [00:30:19]MH_I2C_Read... [00:30:19]Read from MH i2c: 01 07 00 A5 6A 00 00 00 00 00 FF 0F 24 [00:30:19]process_action x_report done [00:30:19]requested_data is exist [00:30:19]produce_requested_data [00:30:19]requested_item fd.num is exist - process it [00:30:19]SAM_PROTO_GetFieldsCounters [00:30:19]wFMCommunicate request_size=4 [00:30:19]MH_SAM_APDU [00:30:19]CAPDU: 80 13 00 00 [00:30:19]Write to MH i2c: E2 08 00 A6 6A 80 13 00 00 00 00 00 00 8C [00:30:19]Write i2c OK [00:30:19]MH_I2C_Read... [00:30:19]OFD Sender: No OFD packet to send [00:30:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:30:19]Read from MH i2c: E2 [00:30:19]MH_I2C_Read... [00:30:19]Read from MH i2c: E2 62 00 [00:30:19]MH_I2C_Read... [00:30:19]Read from MH i2c: E2 62 00 A6 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 65 08 00 00 0E 04 04 00 0E 00 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 31 [00:30:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 65 08 00 00 0E 04 04 00 0E 00 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:30:19]wFMCommunicate OK [00:30:19]SAM_PROTO_GetFieldsCounters done [00:30:19]requested_item shift.num is exist - process it [00:30:19]requested_item shift.opened is exist - process it [00:30:19]req_shift_opened [00:30:19]FM_GetShiftState [00:30:19]SAM_PROTO_GetShiftState [00:30:19]wFMCommunicate request_size=4 [00:30:19]MH_SAM_APDU [00:30:19]CAPDU: 80 13 01 00 [00:30:19]Write to MH i2c: E2 08 00 A7 6A 80 13 01 00 00 00 00 00 8E [00:30:19]Write i2c OK [00:30:19]MH_I2C_Read... [00:30:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:30:19]Read from MH i2c: E2 [00:30:19]MH_I2C_Read... [00:30:19]Read from MH i2c: E2 0E 00 [00:30:19]MH_I2C_Read... [00:30:19]Read from MH i2c: E2 0E 00 A7 6A 00 09 00 01 6B DE A6 66 00 00 00 00 90 00 EF [00:30:19]RAPDU: 09 00 01 6B DE A6 66 00 00 00 00 90 00 [00:30:19]wFMCommunicate OK [00:30:19]SAM_PROTO_GetShiftState done [00:30:19]FM_GetShiftState done [00:30:19]req_shift_opened done [00:30:19]requested_item shift.open_date is exist - process it [00:30:19]req_shift_open_date [00:30:19]req_shift_open_date done [00:30:19]produce_requested_data done [00:30:19]produce_requested_data return {"fd.num":2149,"shift.num":14,"shift.opened":1,"shift.open_date":1722211947} [00:30:19]process_action_free x_report [00:30:19]json_value_free [00:30:19]json_value_free done [00:30:19]process_json_proto returns [00:30:19]Send response to host [00:30:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":2149,"shift.num":14,"shift.opened":1,"shift.open_date":1722211947}}} [00:30:19]free response buf [00:30:19]execute_script done [00:30:19]execute_script returns [00:30:19]free content buf [00:30:19]Sock 9.Close socket [00:30:19]Sock 9.Thread stoped [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:51]accept exits with 8 [00:30:51]New connection [00:30:51]New thread 3067317604 created [00:30:51]Thread 3067460964 joined [00:30:51]Waiting for new connection... [00:30:51] Sock 8.Parse request [00:30:51]Sock 8.Check first char [00:30:51]Sock 8.First char is OK [00:30:51]request: POST /json_proto HTTP/1.0 [00:30:51]Method: POST [00:30:51]URL: /json_proto [00:30:51]Method is POST - this is cgi request [00:30:51]url: /json_proto [00:30:51]query_string will be loaded in cgi processing [00:30:51]execute_cgi json_proto POST (null) [00:30:51]execute_cgi path=json_proto method=POST [00:30:51]POST find Content-Length [00:30:51]Host: 172.17.45.132:8080 [00:30:51]Content-Length: 215 [00:30:51]Content-Type: application/json [00:30:51] [00:30:51]POST finish read [00:30:51]Found Content-Length = 215 [00:30:51]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:30:51]execute_script... [00:30:51]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:30:51]POST & json_proto [00:30:51]process_json_proto [00:30:51]json parsed OK: [00:30:51]protocol is kg_v1.0 [00:30:51]action value=get_value [00:30:51]process_action get_value [00:30:51]cmd_get_value [00:30:51]process_action get_value done [00:30:51]requested_data is exist [00:30:51]produce_requested_data [00:30:51]requested_item kkm.sn is exist - process it [00:30:51]requested_item kkm.ver is exist - process it [00:30:51]requested_item fm.sn is exist - process it [00:30:51]wFMCommunicate request_size=4 [00:30:51]MH_SAM_APDU [00:30:51]CAPDU: 80 11 00 00 [00:30:51]Write to MH i2c: E2 08 00 A8 6A 80 11 00 00 00 00 00 00 8C [00:30:51]Write i2c OK [00:30:51]MH_I2C_Read... [00:30:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:30:51]Read from MH i2c: E2 [00:30:51]MH_I2C_Read... [00:30:51]Read from MH i2c: E2 17 00 [00:30:51]MH_I2C_Read... [00:30:51]Read from MH i2c: E2 17 00 A8 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 DC [00:30:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [00:30:51]wFMCommunicate OK [00:30:51]requested_item fd.num is exist - process it [00:30:51]SAM_PROTO_GetFieldsCounters [00:30:51]wFMCommunicate request_size=4 [00:30:51]MH_SAM_APDU [00:30:51]CAPDU: 80 13 00 00 [00:30:51]Write to MH i2c: E2 08 00 A9 6A 80 13 00 00 00 00 00 00 8F [00:30:51]Write i2c OK [00:30:51]MH_I2C_Read... [00:30:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:30:52]Read from MH i2c: E2 [00:30:52]MH_I2C_Read... [00:30:52]Read from MH i2c: E2 62 00 [00:30:52]MH_I2C_Read... [00:30:52]Read from MH i2c: E2 62 00 A9 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 65 08 00 00 0E 04 04 00 0E 00 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 34 [00:30:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 65 08 00 00 0E 04 04 00 0E 00 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:30:52]wFMCommunicate OK [00:30:52]SAM_PROTO_GetFieldsCounters done [00:30:52]requested_item shift.num is exist - process it [00:30:52]requested_item shift.opened is exist - process it [00:30:52]req_shift_opened [00:30:52]FM_GetShiftState [00:30:52]SAM_PROTO_GetShiftState [00:30:52]wFMCommunicate request_size=4 [00:30:52]MH_SAM_APDU [00:30:52]CAPDU: 80 13 01 00 [00:30:52]Write to MH i2c: E2 08 00 AA 6A 80 13 01 00 00 00 00 00 91 [00:30:52]Write i2c OK [00:30:52]MH_I2C_Read... [00:30:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:30:52]Read from MH i2c: E2 [00:30:52]MH_I2C_Read... [00:30:52]Read from MH i2c: E2 0E 00 [00:30:52]MH_I2C_Read... [00:30:52]Read from MH i2c: E2 0E 00 AA 6A 00 09 00 01 6B DE A6 66 00 00 00 00 90 00 F2 [00:30:52]RAPDU: 09 00 01 6B DE A6 66 00 00 00 00 90 00 [00:30:52]wFMCommunicate OK [00:30:52]SAM_PROTO_GetShiftState done [00:30:52]FM_GetShiftState done [00:30:52]req_shift_opened done [00:30:52]requested_item shift.open_date is exist - process it [00:30:52]req_shift_open_date [00:30:52]req_shift_open_date done [00:30:52]produce_requested_data done [00:30:52]produce_requested_data return {"kkm.sn":"0300000161","kkm.ver":"v1.0","fm.sn":"0000000002094248","fd.num":2149,"shift.num":14,"shift.opened":1,"shift.open_date":1722211947} [00:30:52]process_action_free get_value [00:30:52]json_value_free [00:30:52]json_value_free done [00:30:52]process_json_proto returns [00:30:52]Send response to host [00:30:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000161","kkm.ver":"v1.0","fm.sn":"0000000002094248","fd.num":2149,"shift.num":14,"shift.opened":1,"shift.open_date":1722211947}}} [00:30:52]free response buf [00:30:52]execute_script done [00:30:52]execute_script returns [00:30:52]free content buf [00:30:52]Sock 8.Close socket [00:30:52]Sock 8.Thread stoped [00:30:52]accept exits with 9 [00:30:52]New connection [00:30:52]New thread 3067460964 created [00:30:52]Thread 3067317604 joined [00:30:52]Waiting for new connection... [00:30:52] Sock 9.Parse request [00:30:52]Sock 9.Check first char [00:30:52]Sock 9.First char is OK [00:30:52]request: POST /json_proto HTTP/1.0 [00:30:52]Method: POST [00:30:52]URL: /json_proto [00:30:52]Method is POST - this is cgi request [00:30:52]url: /json_proto [00:30:52]query_string will be loaded in cgi processing [00:30:52]execute_cgi json_proto POST (null) [00:30:52]execute_cgi path=json_proto method=POST [00:30:52]POST find Content-Length [00:30:52]Host: 172.17.45.132:8080 [00:30:52]Content-Length: 331 [00:30:52]Content-Type: application/json [00:30:52] [00:30:52]POST finish read [00:30:52]Found Content-Length = 331 [00:30: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" ] } } [00:30:52]execute_script... [00:30:52]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:30:52]POST & json_proto [00:30:52]process_json_proto [00:30:52]json parsed OK: [00:30:52]protocol is kg_v1.0 [00:30:52]action value=get_value [00:30:52]process_action get_value [00:30:52]cmd_get_value [00:30:52]process_action get_value done [00:30:52]requested_data is exist [00:30:52]produce_requested_data [00:30:52]requested_item fm.sale.total is exist - process it [00:30:52]SAM_PROTO_GetFMData [00:30:52]wFMCommunicate request_size=4 [00:30:52]MH_SAM_APDU [00:30:52]CAPDU: 80 13 03 00 [00:30:52]Write to MH i2c: E2 08 00 AB 6A 80 13 03 00 00 00 00 00 94 [00:30:52]Write i2c OK [00:30:52]MH_I2C_Read... [00:30:52]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:30:52]Read from MH i2c: E2 [00:30:52]MH_I2C_Read... [00:30:52]Read from MH i2c: E2 FD 00 [00:30:52]MH_I2C_Read... [00:30:52]Read from MH i2c: E2 FD 00 AB 6A 00 C0 04 85 04 BC 04 6E 04 04 00 49 08 00 00 69 04 9F 00 6F 04 04 00 38 08 00 00 B1 04 04 00 12 FB 5A 05 70 04 04 00 C4 A8 76 03 72 04 04 00 4E 52 E4 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 9B 91 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 65 21 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 53 04 02 EF 03 09 00 F6 03 01 90 00 A2 [00:30:52]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 49 08 00 00 69 04 9F 00 6F 04 04 00 38 08 00 00 B1 04 04 00 12 FB 5A 05 70 04 04 00 C4 A8 76 03 72 04 04 00 4E 52 E4 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 9B 91 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 65 21 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 53 04 02 EF 03 09 00 F6 03 01 90 00 [00:30:52]wFMCommunicate OK [00:30:52]wFMCommunicate request_size=4 [00:30:52]MH_SAM_APDU [00:30:52]CAPDU: 80 17 00 00 [00:30:52]Write to MH i2c: E2 08 00 AC 6A 80 17 00 00 00 00 00 00 96 [00:30:52]Write i2c OK [00:30:52]MH_I2C_Read... [00:30:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:52]Read from MH i2c: E2 [00:30:52]MH_I2C_Read... [00:30:52]Read from MH i2c: E2 FD 00 [00:30:52]MH_I2C_Read... [00:30:52]Read from MH i2c: E2 FD 00 AC 6A 00 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 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 90 00 F5 [00:30:52]RAPDU: 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 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 90 00 [00:30:52]wFMCommunicate OK [00:30:52]wFMCommunicate request_size=4 [00:30:52]MH_SAM_APDU [00:30:52]CAPDU: 80 17 00 00 [00:30:52]Write to MH i2c: E2 08 00 AD 6A 80 17 00 00 00 00 00 00 97 [00:30:52]Write i2c OK [00:30:52]MH_I2C_Read... [00:30:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:53]Read from MH i2c: E2 [00:30:53]MH_I2C_Read... [00:30:53]Read from MH i2c: E2 FD 00 [00:30:53]MH_I2C_Read... [00:30:53]Read from MH i2c: E2 FD 00 AD 6A 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 90 00 3A [00:30:53]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 90 00 [00:30:53]wFMCommunicate OK [00:30:53]wFMCommunicate request_size=4 [00:30:53]MH_SAM_APDU [00:30:53]CAPDU: 80 17 00 00 [00:30:53]Write to MH i2c: E2 08 00 AE 6A 80 17 00 00 00 00 00 00 98 [00:30:53]Write i2c OK [00:30:53]MH_I2C_Read... [00:30:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:53]Read from MH i2c: E2 [00:30:53]MH_I2C_Read... [00:30:53]Read from MH i2c: E2 FD 00 [00:30:53]MH_I2C_Read... [00:30:53]Read from MH i2c: E2 FD 00 AE 6A 00 01 00 04 F7 03 00 00 EF 03 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 90 00 10 [00:30:53]RAPDU: 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:30:53]wFMCommunicate OK [00:30:53]wFMCommunicate request_size=4 [00:30:53]MH_SAM_APDU [00:30:53]CAPDU: 80 17 00 00 [00:30:53]Write to MH i2c: E2 08 00 AF 6A 80 17 00 00 00 00 00 00 99 [00:30:53]Write i2c OK [00:30:53]MH_I2C_Read... [00:30:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [00:30:53]Read from MH i2c: E2 [00:30:53]MH_I2C_Read... [00:30:53]Read from MH i2c: E2 DD 00 [00:30:53]MH_I2C_Read... [00:30:53]Read from MH i2c: E2 DD 00 AF 6A 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 81 [00:30:53]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:30:53]wFMCommunicate OK [00:30:53]SAM_PROTO_GetFMData done [00:30:53]requested_item fm.sale_refund.total is exist - process it [00:30:53]requested_item fm.buy.total is exist - process it [00:30:53]requested_item shift.sale.total is exist - process it [00:30:53]SAM_PROTO_GetShiftData [00:30:53]wFMCommunicate request_size=4 [00:30:53]MH_SAM_APDU [00:30:53]CAPDU: 80 13 02 00 [00:30:53]Write to MH i2c: E2 08 00 B0 6A 80 13 02 00 00 00 00 00 98 [00:30:53]Write i2c OK [00:30:53]MH_I2C_Read... [00:30:54]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:30:54]Read from MH i2c: E2 [00:30:54]MH_I2C_Read... [00:30:54]Read from MH i2c: E2 FD 00 [00:30:54]MH_I2C_Read... [00:30:54]Read from MH i2c: E2 FD 00 B0 6A 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 0B [00:30:54]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:30:54]wFMCommunicate OK [00:30:54]wFMCommunicate request_size=4 [00:30:54]MH_SAM_APDU [00:30:54]CAPDU: 80 17 00 00 [00:30:54]Write to MH i2c: E2 08 00 B1 6A 80 17 00 00 00 00 00 00 9B [00:30:54]Write i2c OK [00:30:54]MH_I2C_Read... [00:30:54]OFD Sender: No OFD packet to send [00:30:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:54]Read from MH i2c: E2 [00:30:54]MH_I2C_Read... [00:30:54]Read from MH i2c: E2 FD 00 [00:30:54]MH_I2C_Read... [00:30:54]Read from MH i2c: E2 FD 00 B1 6A 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 A3 [00:30:54]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:30:54]wFMCommunicate OK [00:30:54]wFMCommunicate request_size=4 [00:30:54]MH_SAM_APDU [00:30:54]CAPDU: 80 17 00 00 [00:30:54]Write to MH i2c: E2 08 00 B2 6A 80 17 00 00 00 00 00 00 9C [00:30:54]Write i2c OK [00:30:54]MH_I2C_Read... [00:30:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:54]Read from MH i2c: E2 [00:30:54]MH_I2C_Read... [00:30:54]Read from MH i2c: E2 FD 00 [00:30:54]MH_I2C_Read... [00:30:54]Read from MH i2c: E2 FD 00 B2 6A 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 6E [00:30:54]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:30:54]wFMCommunicate OK [00:30:54]wFMCommunicate request_size=4 [00:30:54]MH_SAM_APDU [00:30:54]CAPDU: 80 17 00 00 [00:30:54]Write to MH i2c: E2 08 00 B3 6A 80 17 00 00 00 00 00 00 9D [00:30:55]Write i2c OK [00:30:55]MH_I2C_Read... [00:30:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:55]Read from MH i2c: E2 [00:30:55]MH_I2C_Read... [00:30:55]Read from MH i2c: E2 FD 00 [00:30:55]MH_I2C_Read... [00:30:55]Read from MH i2c: E2 FD 00 B3 6A 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 0F [00:30:55]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:30:55]wFMCommunicate OK [00:30:55]wFMCommunicate request_size=4 [00:30:55]MH_SAM_APDU [00:30:55]CAPDU: 80 17 00 00 [00:30:55]Write to MH i2c: E2 08 00 B4 6A 80 17 00 00 00 00 00 00 9E [00:30:55]Write i2c OK [00:30:55]MH_I2C_Read... [00:30:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:30:55]Read from MH i2c: E2 [00:30:55]MH_I2C_Read... [00:30:55]Read from MH i2c: E2 BD 00 [00:30:55]MH_I2C_Read... [00:30:55]Read from MH i2c: E2 BD 00 B4 6A 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 84 [00:30:55]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:30:55]wFMCommunicate OK [00:30:55]SAM_PROTO_GetShiftData done [00:30:55]requested_item shift.sale.total_cash is exist - process it [00:30:55]requested_item shift.sale_refund.total is exist - process it [00:30:55]requested_item shift.sale_refund.total_cash is exist - process it [00:30:55]requested_item shift.buy.total is exist - process it [00:30:55]requested_item shift.buy.total_cash is exist - process it [00:30:55]produce_requested_data done [00:30:55]produce_requested_data return {"fm.sale.total":898485.94,"fm.sale_refund.total":12447.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:30:55]process_action_free get_value [00:30:55]json_value_free [00:30:55]json_value_free done [00:30:55]process_json_proto returns [00:30:55]Send response to host [00:30:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":898485.94,"fm.sale_refund.total":12447.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:30:55]free response buf [00:30:55]execute_script done [00:30:55]execute_script returns [00:30:55]free content buf [00:30:55]Sock 9.Close socket [00:30:55]Sock 9.Thread stoped [00:30:55]accept exits with 8 [00:30:55]New connection [00:30:55]New thread 3067317604 created [00:30:55]Thread 3067460964 joined [00:30:55]Waiting for new connection... [00:30:55] Sock 8.Parse request [00:30:55]Sock 8.Check first char [00:30:55]Sock 8.First char is OK [00:30:55]request: POST /json_proto HTTP/1.0 [00:30:55]Method: POST [00:30:55]URL: /json_proto [00:30:55]Method is POST - this is cgi request [00:30:55]url: /json_proto [00:30:55]query_string will be loaded in cgi processing [00:30:55]execute_cgi json_proto POST (null) [00:30:55]execute_cgi path=json_proto method=POST [00:30:55]POST find Content-Length [00:30:55]Host: 172.17.45.132:8080 [00:30:55]Content-Length: 331 [00:30:55]Content-Type: application/json [00:30:55] [00:30:55]POST finish read [00:30:55]Found Content-Length = 331 [00:30:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:30:55]execute_script... [00:30:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:30:55]POST & json_proto [00:30:55]process_json_proto [00:30:55]json parsed OK: [00:30:55]protocol is kg_v1.0 [00:30:55]action value=get_value [00:30:55]process_action get_value [00:30:55]cmd_get_value [00:30:55]process_action get_value done [00:30:55]requested_data is exist [00:30:55]produce_requested_data [00:30:55]requested_item fm.sale.total is exist - process it [00:30:55]SAM_PROTO_GetFMData [00:30:55]wFMCommunicate request_size=4 [00:30:55]MH_SAM_APDU [00:30:55]CAPDU: 80 13 03 00 [00:30:55]Write to MH i2c: E2 08 00 B5 6A 80 13 03 00 00 00 00 00 9E [00:30:55]Write i2c OK [00:30:55]MH_I2C_Read... [00:30:56]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:30:56]Read from MH i2c: E2 [00:30:56]MH_I2C_Read... [00:30:56]Read from MH i2c: E2 FD 00 [00:30:56]MH_I2C_Read... [00:30:56]Read from MH i2c: E2 FD 00 B5 6A 00 C0 04 85 04 BC 04 6E 04 04 00 49 08 00 00 69 04 9F 00 6F 04 04 00 38 08 00 00 B1 04 04 00 12 FB 5A 05 70 04 04 00 C4 A8 76 03 72 04 04 00 4E 52 E4 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 9B 91 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 65 21 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 53 04 02 EF 03 09 00 F6 03 01 90 00 AC [00:30:56]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 49 08 00 00 69 04 9F 00 6F 04 04 00 38 08 00 00 B1 04 04 00 12 FB 5A 05 70 04 04 00 C4 A8 76 03 72 04 04 00 4E 52 E4 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 9B 91 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 65 21 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 53 04 02 EF 03 09 00 F6 03 01 90 00 [00:30:56]wFMCommunicate OK [00:30:56]wFMCommunicate request_size=4 [00:30:56]MH_SAM_APDU [00:30:56]CAPDU: 80 17 00 00 [00:30:56]Write to MH i2c: E2 08 00 B6 6A 80 17 00 00 00 00 00 00 A0 [00:30:56]Write i2c OK [00:30:56]MH_I2C_Read... [00:30:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:56]Read from MH i2c: E2 [00:30:56]MH_I2C_Read... [00:30:56]Read from MH i2c: E2 FD 00 [00:30:56]MH_I2C_Read... [00:30:56]Read from MH i2c: E2 FD 00 B6 6A 00 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 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 90 00 FF [00:30:56]RAPDU: 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 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 90 00 [00:30:56]wFMCommunicate OK [00:30:56]wFMCommunicate request_size=4 [00:30:56]MH_SAM_APDU [00:30:56]CAPDU: 80 17 00 00 [00:30:56]Write to MH i2c: E2 08 00 B7 6A 80 17 00 00 00 00 00 00 A1 [00:30:56]Write i2c OK [00:30:56]MH_I2C_Read... [00:30:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:57]Read from MH i2c: E2 [00:30:57]MH_I2C_Read... [00:30:57]Read from MH i2c: E2 FD 00 [00:30:57]MH_I2C_Read... [00:30:57]Read from MH i2c: E2 FD 00 B7 6A 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 90 00 44 [00:30:57]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 90 00 [00:30:57]wFMCommunicate OK [00:30:57]wFMCommunicate request_size=4 [00:30:57]MH_SAM_APDU [00:30:57]CAPDU: 80 17 00 00 [00:30:57]Write to MH i2c: E2 08 00 B8 6A 80 17 00 00 00 00 00 00 A2 [00:30:57]Write i2c OK [00:30:57]MH_I2C_Read... [00:30:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:57]Read from MH i2c: E2 [00:30:57]MH_I2C_Read... [00:30:57]Read from MH i2c: E2 FD 00 [00:30:57]MH_I2C_Read... [00:30:57]Read from MH i2c: E2 FD 00 B8 6A 00 01 00 04 F7 03 00 00 EF 03 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 90 00 1A [00:30:57]RAPDU: 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:30:57]wFMCommunicate OK [00:30:57]wFMCommunicate request_size=4 [00:30:57]MH_SAM_APDU [00:30:57]CAPDU: 80 17 00 00 [00:30:57]Write to MH i2c: E2 08 00 B9 6A 80 17 00 00 00 00 00 00 A3 [00:30:57]Write i2c OK [00:30:57]MH_I2C_Read... [00:30:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [00:30:58]Read from MH i2c: E2 [00:30:58]MH_I2C_Read... [00:30:58]Read from MH i2c: E2 DD 00 [00:30:58]MH_I2C_Read... [00:30:58]Read from MH i2c: E2 DD 00 B9 6A 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 8B [00:30:58]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:30:58]wFMCommunicate OK [00:30:58]SAM_PROTO_GetFMData done [00:30:58]requested_item fm.sale_refund.total is exist - process it [00:30:58]requested_item fm.buy.total is exist - process it [00:30:58]requested_item shift.sale.total is exist - process it [00:30:58]SAM_PROTO_GetShiftData [00:30:58]wFMCommunicate request_size=4 [00:30:58]MH_SAM_APDU [00:30:58]CAPDU: 80 13 02 00 [00:30:58]Write to MH i2c: E2 08 00 BA 6A 80 13 02 00 00 00 00 00 A2 [00:30:58]Write i2c OK [00:30:58]MH_I2C_Read... [00:30:58]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:30:58]Read from MH i2c: E2 [00:30:58]MH_I2C_Read... [00:30:58]Read from MH i2c: E2 FD 00 [00:30:58]MH_I2C_Read... [00:30:58]Read from MH i2c: E2 FD 00 BA 6A 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 15 [00:30:58]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:30:58]wFMCommunicate OK [00:30:58]wFMCommunicate request_size=4 [00:30:58]MH_SAM_APDU [00:30:58]CAPDU: 80 17 00 00 [00:30:58]Write to MH i2c: E2 08 00 BB 6A 80 17 00 00 00 00 00 00 A5 [00:30:58]Write i2c OK [00:30:58]MH_I2C_Read... [00:30:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:59]Read from MH i2c: E2 [00:30:59]MH_I2C_Read... [00:30:59]Read from MH i2c: E2 FD 00 [00:30:59]MH_I2C_Read... [00:30:59]Read from MH i2c: E2 FD 00 BB 6A 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 AD [00:30:59]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:30:59]wFMCommunicate OK [00:30:59]wFMCommunicate request_size=4 [00:30:59]MH_SAM_APDU [00:30:59]CAPDU: 80 17 00 00 [00:30:59]Write to MH i2c: E2 08 00 BC 6A 80 17 00 00 00 00 00 00 A6 [00:30:59]Write i2c OK [00:30:59]MH_I2C_Read... [00:30:59]OFD Sender: No OFD packet to send [00:30:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:59]Read from MH i2c: E2 [00:30:59]MH_I2C_Read... [00:30:59]Read from MH i2c: E2 FD 00 [00:30:59]MH_I2C_Read... [00:30:59]Read from MH i2c: E2 FD 00 BC 6A 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 78 [00:30:59]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:30:59]wFMCommunicate OK [00:30:59]wFMCommunicate request_size=4 [00:30:59]MH_SAM_APDU [00:30:59]CAPDU: 80 17 00 00 [00:30:59]Write to MH i2c: E2 08 00 BD 6A 80 17 00 00 00 00 00 00 A7 [00:30:59]Write i2c OK [00:30:59]MH_I2C_Read... [00:31:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:00]Read from MH i2c: E2 [00:31:00]MH_I2C_Read... [00:31:00]Read from MH i2c: E2 FD 00 [00:31:00]MH_I2C_Read... [00:31:00]Read from MH i2c: E2 FD 00 BD 6A 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 19 [00:31:00]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:31:00]wFMCommunicate OK [00:31:00]wFMCommunicate request_size=4 [00:31:00]MH_SAM_APDU [00:31:00]CAPDU: 80 17 00 00 [00:31:00]Write to MH i2c: E2 08 00 BE 6A 80 17 00 00 00 00 00 00 A8 [00:31:00]Write i2c OK [00:31:00]MH_I2C_Read... [00:31:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:31:00]Read from MH i2c: E2 [00:31:00]MH_I2C_Read... [00:31:00]Read from MH i2c: E2 BD 00 [00:31:00]MH_I2C_Read... [00:31:00]Read from MH i2c: E2 BD 00 BE 6A 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 8E [00:31:00]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:31:00]wFMCommunicate OK [00:31:00]SAM_PROTO_GetShiftData done [00:31:00]requested_item shift.sale.total_cash is exist - process it [00:31:00]requested_item shift.sale_refund.total is exist - process it [00:31:00]requested_item shift.sale_refund.total_cash is exist - process it [00:31:00]requested_item shift.buy.total is exist - process it [00:31:00]requested_item shift.buy.total_cash is exist - process it [00:31:00]produce_requested_data done [00:31:00]produce_requested_data return {"fm.sale.total":898485.94,"fm.sale_refund.total":12447.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:31:00]process_action_free get_value [00:31:00]json_value_free [00:31:00]json_value_free done [00:31:00]process_json_proto returns [00:31:00]Send response to host [00:31:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":898485.94,"fm.sale_refund.total":12447.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:31:00]free response buf [00:31:00]execute_script done [00:31:00]execute_script returns [00:31:00]free content buf [00:31:00]Sock 8.Close socket [00:31:00]Sock 8.Thread stoped [00:31:00]accept exits with 9 [00:31:00]New connection [00:31:00]New thread 3067460964 created [00:31:00]Thread 3067317604 joined [00:31:00]Waiting for new connection... [00:31:00] Sock 9.Parse request [00:31:00]Sock 9.Check first char [00:31:00]Sock 9.First char is OK [00:31:00]request: POST /json_proto HTTP/1.0 [00:31:00]Method: POST [00:31:00]URL: /json_proto [00:31:00]Method is POST - this is cgi request [00:31:00]url: /json_proto [00:31:00]query_string will be loaded in cgi processing [00:31:00]execute_cgi json_proto POST (null) [00:31:00]execute_cgi path=json_proto method=POST [00:31:00]POST find Content-Length [00:31:00]Host: 172.17.45.132:8080 [00:31:00]Content-Length: 260 [00:31:00]Content-Type: application/json [00:31:00] [00:31:00]POST finish read [00:31:00]Found Content-Length = 260 [00:31:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041C\u0430\u043D\u0441\u0443\u0440\u043E\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:31:00]execute_script... [00:31:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041C\u0430\u043D\u0441\u0443\u0440\u043E\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:31:00]POST & json_proto [00:31:00]process_json_proto [00:31:00]json parsed OK: [00:31:00]protocol is kg_v1.0 [00:31:00]action value=close_shift [00:31:00]process_action close_shift [00:31:00]cmd_close_shift [00:31:00]MH_GetDate [00:31:00]Write to MH i2c: F0 00 00 BF 6A 18 [00:31:00]Write i2c OK [00:31:00]MH_I2C_Read... [00:31:00]Read from MH i2c: F0 [00:31:00]MH_I2C_Read... [00:31:00]Read from MH i2c: F0 09 00 [00:31:00]MH_I2C_Read... [00:31:00]Read from MH i2c: F0 09 00 BF 6A 00 CD E2 A6 66 E3 0B 90 66 C0 [00:31:00]GetLastDocTimeStamp 1722213017 [00:31:00]current date 1722213069 [00:31:00]FM_GetShiftState [00:31:00]SAM_PROTO_GetShiftState [00:31:00]wFMCommunicate request_size=4 [00:31:00]MH_SAM_APDU [00:31:00]CAPDU: 80 13 01 00 [00:31:00]Write to MH i2c: E2 08 00 C0 6A 80 13 01 00 00 00 00 00 A7 [00:31:00]Write i2c OK [00:31:00]MH_I2C_Read... [00:31:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:31:00]Read from MH i2c: E2 [00:31:00]MH_I2C_Read... [00:31:00]Read from MH i2c: E2 0E 00 [00:31:00]MH_I2C_Read... [00:31:00]Read from MH i2c: E2 0E 00 C0 6A 00 09 00 01 6B DE A6 66 00 00 00 00 90 00 08 [00:31:00]RAPDU: 09 00 01 6B DE A6 66 00 00 00 00 90 00 [00:31:00]wFMCommunicate OK [00:31:00]SAM_PROTO_GetShiftState done [00:31:00]FM_GetShiftState done [00:31:00]KKMCreateCloseShiftDocument [00:31:00]Load OK [00:31:00]Malloc new data [00:31:00]MH_GetDate [00:31:00]Write to MH i2c: F0 00 00 C1 6A 1A [00:31:00]Write i2c OK [00:31:00]MH_I2C_Read... [00:31:00]Read from MH i2c: F0 [00:31:00]MH_I2C_Read... [00:31:00]Read from MH i2c: F0 09 00 [00:31:00]MH_I2C_Read... [00:31:00]Read from MH i2c: F0 09 00 C1 6A 00 CD E2 A6 66 E3 0B 90 66 C2 [00:31:00]Malloc new data [00:31:00]Malloc new data [00:31:00]Malloc new data [00:31:00]Malloc new data [00:31:00]KKMCreateCloseShiftDocument OK [00:31:00]KKMSetCloseShiftData OK [00:31:00]ProcessDocumentItem done err = 0, tmpTLVsize=71 [00:31:00]tlvbuf is 021CE7A0 [00:31:00]KKMLoadAndSignCloseShiftData [00:31:00]SAM_PROTO_ProcessDocument [00:31:00]wFMCommunicate request_size=9 [00:31:00]MH_SAM_APDU [00:31:00]CAPDU: 80 15 01 00 04 05 00 47 00 [00:31:00]Write to MH i2c: E2 0C 00 C2 6A 80 15 01 00 04 00 05 00 47 00 00 00 FF [00:31:00]Write i2c OK [00:31:00]MH_I2C_Read... [00:31:01]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:31:01]Read from MH i2c: E2 [00:31:01]MH_I2C_Read... [00:31:01]Read from MH i2c: E2 03 00 [00:31:01]MH_I2C_Read... [00:31:01]Read from MH i2c: E2 03 00 C2 6A 00 90 00 A0 [00:31:01]RAPDU: 90 00 [00:31:01]wFMCommunicate OK [00:31:01]wFMCommunicate request_size=23 [00:31:01]MH_SAM_APDU [00:31:01]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:31:01]Write to MH i2c: E2 1A 00 C3 6A 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 A2 [00:31:01]Write i2c OK [00:31:01]MH_I2C_Read... [00:31:01]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:31:01]Read from MH i2c: E2 [00:31:01]MH_I2C_Read... [00:31:01]Read from MH i2c: E2 03 00 [00:31:01]MH_I2C_Read... [00:31:01]Read from MH i2c: E2 03 00 C3 6A 00 90 00 A1 [00:31:01]RAPDU: 90 00 [00:31:01]wFMCommunicate OK [00:31:01]wFMCommunicate request_size=30 [00:31:01]MH_SAM_APDU [00:31:01]CAPDU: 80 15 02 00 19 FD 03 15 00 D0 9C D0 B0 D0 BD D1 81 D1 83 D1 80 D0 BE D0 B2 20 D0 90 2E 20 [00:31:01]Write to MH i2c: E2 21 00 C4 6A 80 15 02 00 19 00 FD 03 15 00 D0 9C D0 B0 D0 BD D1 81 D1 83 D1 80 D0 BE D0 B2 20 D0 90 2E 20 00 00 43 [00:31:01]Write i2c OK [00:31:01]MH_I2C_Read... [00:31:01]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:31:01]Read from MH i2c: E2 [00:31:01]MH_I2C_Read... [00:31:01]Read from MH i2c: E2 03 00 [00:31:01]MH_I2C_Read... [00:31:01]Read from MH i2c: E2 03 00 C4 6A 00 90 00 A2 [00:31:01]RAPDU: 90 00 [00:31:01]wFMCommunicate OK [00:31:01]wFMCommunicate request_size=13 [00:31:01]MH_SAM_APDU [00:31:01]CAPDU: 80 15 02 00 08 F4 03 04 00 CD E2 A6 66 [00:31:01]Write to MH i2c: E2 10 00 C5 6A 80 15 02 00 08 00 F4 03 04 00 CD E2 A6 66 00 00 75 [00:31:01]Write i2c OK [00:31:01]MH_I2C_Read... [00:31:01]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:31:01]Read from MH i2c: E2 [00:31:01]MH_I2C_Read... [00:31:01]Read from MH i2c: E2 03 00 [00:31:01]MH_I2C_Read... [00:31:01]Read from MH i2c: E2 03 00 C5 6A 00 90 00 A3 [00:31:01]RAPDU: 90 00 [00:31:01]wFMCommunicate OK [00:31:01]wFMCommunicate request_size=25 [00:31:01]MH_SAM_APDU [00:31:01]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 [00:31:01]Write to MH i2c: E2 1C 00 C6 6A 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 00 00 1E [00:31:01]Write i2c OK [00:31:01]MH_I2C_Read... [00:31:01]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:31:01]Read from MH i2c: E2 [00:31:01]MH_I2C_Read... [00:31:01]Read from MH i2c: E2 03 00 [00:31:01]MH_I2C_Read... [00:31:01]Read from MH i2c: E2 03 00 C6 6A 00 90 00 A4 [00:31:01]RAPDU: 90 00 [00:31:01]wFMCommunicate OK [00:31:01]wFMCommunicate request_size=4 [00:31:01]MH_SAM_APDU [00:31:01]CAPDU: 80 15 03 00 [00:31:01]Write to MH i2c: E2 08 00 C7 6A 80 15 03 00 00 00 00 00 B2 [00:31:01]Write i2c OK [00:31:01]MH_I2C_Read... [00:31:01]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:31:01]Read from MH i2c: E2 [00:31:01]MH_I2C_Read... [00:31:01]Read from MH i2c: E2 FD 00 [00:31:01]MH_I2C_Read... [00:31:01]Read from MH i2c: E2 FD 00 C7 6A 00 E3 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 66 08 00 00 0E 04 04 00 0E 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 02 00 00 00 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 90 00 29 [00:31:02]RAPDU: E3 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 66 08 00 00 0E 04 04 00 0E 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 02 00 00 00 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 90 00 [00:31:02]wFMCommunicate OK [00:31:02]SAM_PROTO_ProcessDocument answer len = 1251 [00:31:02]SAM_PROTO_ProcessDocument remain to read = 1003 [00:31:02]wFMCommunicate request_size=4 [00:31:02]MH_SAM_APDU [00:31:02]CAPDU: 80 17 00 00 [00:31:02]Write to MH i2c: E2 08 00 C8 6A 80 17 00 00 00 00 00 00 B2 [00:31:02]Write i2c OK [00:31:02]MH_I2C_Read... [00:31:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:02]Read from MH i2c: E2 [00:31:02]MH_I2C_Read... [00:31:02]Read from MH i2c: E2 FD 00 [00:31:02]MH_I2C_Read... [00:31:02]Read from MH i2c: E2 FD 00 C8 6A 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 12 [00:31:02]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:31:02]wFMCommunicate OK [00:31:02]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:31:02]SAM_PROTO_ProcessDocument remain to read = 753 [00:31:02]wFMCommunicate request_size=4 [00:31:02]MH_SAM_APDU [00:31:02]CAPDU: 80 17 00 00 [00:31:02]Write to MH i2c: E2 08 00 C9 6A 80 17 00 00 00 00 00 00 B3 [00:31:02]Write i2c OK [00:31:02]MH_I2C_Read... [00:31:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:03]Read from MH i2c: E2 [00:31:03]MH_I2C_Read... [00:31:03]Read from MH i2c: E2 FD 00 [00:31:03]MH_I2C_Read... [00:31:03]Read from MH i2c: E2 FD 00 C9 6A 00 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 90 00 11 [00:31:03]RAPDU: 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 90 00 [00:31:03]wFMCommunicate OK [00:31:03]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:31:03]SAM_PROTO_ProcessDocument remain to read = 503 [00:31:03]wFMCommunicate request_size=4 [00:31:03]MH_SAM_APDU [00:31:03]CAPDU: 80 17 00 00 [00:31:03]Write to MH i2c: E2 08 00 CA 6A 80 17 00 00 00 00 00 00 B4 [00:31:03]Write i2c OK [00:31:03]MH_I2C_Read... [00:31:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:03]Read from MH i2c: E2 [00:31:03]MH_I2C_Read... [00:31:03]Read from MH i2c: E2 FD 00 [00:31:03]MH_I2C_Read... [00:31:03]Read from MH i2c: E2 FD 00 CA 6A 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 90 00 36 [00:31:03]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 90 00 [00:31:04]wFMCommunicate OK [00:31:04]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:31:04]SAM_PROTO_ProcessDocument remain to read = 253 [00:31:04]wFMCommunicate request_size=4 [00:31:04]MH_SAM_APDU [00:31:04]CAPDU: 80 17 00 00 [00:31:04]Write to MH i2c: E2 08 00 CB 6A 80 17 00 00 00 00 00 00 B5 [00:31:04]Write i2c OK [00:31:04]MH_I2C_Read... [00:31:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:04]Read from MH i2c: E2 [00:31:04]MH_I2C_Read... [00:31:04]Read from MH i2c: E2 FD 00 [00:31:04]MH_I2C_Read... [00:31:04]Read from MH i2c: E2 FD 00 CB 6A 00 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 0A 27 7E 90 00 83 [00:31:04]RAPDU: 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 0A 27 7E 90 00 [00:31:04]wFMCommunicate OK [00:31:04]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:31:04]SAM_PROTO_ProcessDocument remain to read = 3 [00:31:04]wFMCommunicate request_size=4 [00:31:04]MH_SAM_APDU [00:31:04]CAPDU: 80 17 00 00 [00:31:04]Write to MH i2c: E2 08 00 CC 6A 80 17 00 00 00 00 00 00 B6 [00:31:04]OFD Sender: No OFD packet to send [00:31:04]Write i2c OK [00:31:04]MH_I2C_Read... [00:31:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 3! [00:31:04]Read from MH i2c: E2 [00:31:04]MH_I2C_Read... [00:31:04]Read from MH i2c: E2 06 00 [00:31:04]MH_I2C_Read... [00:31:04]Read from MH i2c: E2 06 00 CC 6A 00 AF F0 17 90 00 63 [00:31:04]RAPDU: AF F0 17 90 00 [00:31:04]wFMCommunicate OK [00:31:04]SAM_PROTO_ProcessDocument received (without SW) 3 bytes [00:31:04]SAM_PROTO_ProcessDocument done [00:31:04]1209 (1) - 1.0 - номер версии ФФД [00:31:04]1041 (16) - 0000000002094248 - номер ФМ [00:31:04]1040 (4) - 2150 - номер ФД [00:31:04]1038 (4) - 14 - номер смены [00:31:04]1118 (4) - 0 - количество кассовых чеков за смену [00:31:04]1111 (4) - 2 - общее количество ФД за смену [00:31:04]1194 (1180) - счетчики итогов смены [00:31:04] 1134 (4) - 0 - количество чеков со всеми признаками расчетов [00:31:04] 1129 (141) - счетчики операций «приход» [00:31:04] 1135 (4) - 0 - количество чеков по признаку расчетов [00:31:04] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:31:04] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:31:04] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:31:04] 1024 (117) - суммы налогов [00:31:04] 1006 (9) - суммы НДС [00:31:04] 1010 (1) - 0% - код ставки НДС [00:31:04] 1011 (0) - 0.00 - сумма НДС по ставке [00:31:04] 1006 (9) - суммы НДС [00:31:04] 1010 (1) - 12% - код ставки НДС [00:31:04] 1011 (0) - 0.00 - сумма НДС по ставке [00:31:04] 1007 (9) - суммы НСП [00:31:04] 1014 (1) - 0% - код ставки НСП [00:31:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:04] 1007 (9) - суммы НСП [00:31:04] 1014 (1) - 1% - код ставки НСП [00:31:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:04] 1007 (9) - суммы НСП [00:31:04] 1014 (1) - 2% - код ставки НСП [00:31:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:04] 1007 (9) - суммы НСП [00:31:04] 1014 (1) - 3% - код ставки НСП [00:31:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:04] 1007 (9) - суммы НСП [00:31:04] 1014 (1) - 5% - код ставки НСП [00:31:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:04] 1007 (9) - суммы НСП [00:31:04] 1014 (1) - 0,50% - код ставки НСП [00:31:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:04] 1007 (9) - суммы НСП [00:31:04] 1014 (1) - 1,50% - код ставки НСП [00:31:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:04] 1130 (141) - счетчики операций «возврат прихода» [00:31:04] 1135 (4) - 0 - количество чеков по признаку расчетов [00:31:04] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:31:04] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:31:04] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:31:04] 1024 (117) - суммы налогов [00:31:04] 1006 (9) - суммы НДС [00:31:04] 1010 (1) - 0% - код ставки НДС [00:31:04] 1011 (0) - 0.00 - сумма НДС по ставке [00:31:04] 1006 (9) - суммы НДС [00:31:04] 1010 (1) - 12% - код ставки НДС [00:31:04] 1011 (0) - 0.00 - сумма НДС по ставке [00:31:04] 1007 (9) - суммы НСП [00:31:04] 1014 (1) - 0% - код ставки НСП [00:31:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:04] 1007 (9) - суммы НСП [00:31:04] 1014 (1) - 1% - код ставки НСП [00:31:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:04] 1007 (9) - суммы НСП [00:31:04] 1014 (1) - 2% - код ставки НСП [00:31:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:04] 1007 (9) - суммы НСП [00:31:04] 1014 (1) - 3% - код ставки НСП [00:31:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:04] 1007 (9) - суммы НСП [00:31:04] 1014 (1) - 5% - код ставки НСП [00:31:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:04] 1007 (9) - суммы НСП [00:31:04] 1014 (1) - 0,50% - код ставки НСП [00:31:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:04] 1007 (9) - суммы НСП [00:31:04] 1014 (1) - 1,50% - код ставки НСП [00:31:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:04] 1131 (141) - счетчики операций «расход» [00:31:04] 1135 (4) - 0 - количество чеков по признаку расчетов [00:31:04] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:31:05] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:31:05] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:31:05] 1024 (117) - суммы налогов [00:31:05] 1006 (9) - суммы НДС [00:31:05] 1010 (1) - 0% - код ставки НДС [00:31:05] 1011 (0) - 0.00 - сумма НДС по ставке [00:31:05] 1006 (9) - суммы НДС [00:31:05] 1010 (1) - 12% - код ставки НДС [00:31:05] 1011 (0) - 0.00 - сумма НДС по ставке [00:31:05] 1007 (9) - суммы НСП [00:31:05] 1014 (1) - 0% - код ставки НСП [00:31:05] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:05] 1007 (9) - суммы НСП [00:31:05] 1014 (1) - 1% - код ставки НСП [00:31:05] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:05] 1007 (9) - суммы НСП [00:31:05] 1014 (1) - 2% - код ставки НСП [00:31:05] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:05] 1007 (9) - суммы НСП [00:31:05] 1014 (1) - 3% - код ставки НСП [00:31:05] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:05] 1007 (9) - суммы НСП [00:31:05] 1014 (1) - 5% - код ставки НСП [00:31:05] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:05] 1007 (9) - суммы НСП [00:31:05] 1014 (1) - 0,50% - код ставки НСП [00:31:05] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:05] 1007 (9) - суммы НСП [00:31:05] 1014 (1) - 1,50% - код ставки НСП [00:31:05] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:05] 1132 (141) - счетчики операций «возврат расхода» [00:31:05] 1135 (4) - 0 - количество чеков по признаку расчетов [00:31:05] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:31:05] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:31:05] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:31:05] 1024 (117) - суммы налогов [00:31:05] 1006 (9) - суммы НДС [00:31:05] 1010 (1) - 0% - код ставки НДС [00:31:05] 1011 (0) - 0.00 - сумма НДС по ставке [00:31:05] 1006 (9) - суммы НДС [00:31:05] 1010 (1) - 12% - код ставки НДС [00:31:05] 1011 (0) - 0.00 - сумма НДС по ставке [00:31:05] 1007 (9) - суммы НСП [00:31:05] 1014 (1) - 0% - код ставки НСП [00:31:05] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:05] 1007 (9) - суммы НСП [00:31:05] 1014 (1) - 1% - код ставки НСП [00:31:05] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:05] 1007 (9) - суммы НСП [00:31:05] 1014 (1) - 2% - код ставки НСП [00:31:05] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:05] 1007 (9) - суммы НСП [00:31:05] 1014 (1) - 3% - код ставки НСП [00:31:05] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:05] 1007 (9) - суммы НСП [00:31:05] 1014 (1) - 5% - код ставки НСП [00:31:05] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:05] 1007 (9) - суммы НСП [00:31:05] 1014 (1) - 0,50% - код ставки НСП [00:31:05] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:05] 1007 (9) - суммы НСП [00:31:05] 1014 (1) - 1,50% - код ставки НСП [00:31:05] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:05] 1133 (588) - - счетчики коррекции - не используются [00:31:05]1077 (6) - 11164745461783 - ФПД [00:31:05]SetTLVBufToDocument [00:31:05]Processing tag 1209 (04B9) [00:31:05]Malloc new data [00:31:05]Processing tag 1041 (0411) [00:31:05]Processing tag 1040 (0410) [00:31:05]Malloc new data [00:31:05]Processing tag 1038 (040E) [00:31:05]Malloc new data [00:31:05]Processing tag 1118 (045E) [00:31:05]Malloc new data [00:31:05]Processing tag 1111 (0457) [00:31:05]Malloc new data [00:31:05]Processing tag 1194 (04AA) [00:31:05]Load OK [00:31:05]SetTLVBufToDocument [00:31:05]Processing tag 1134 (046E) [00:31:05]Malloc new data [00:31:05]Processing tag 1129 (0469) [00:31:05]Load OK [00:31:05]SetTLVBufToDocument [00:31:05]Processing tag 1135 (046F) [00:31:05]Malloc new data [00:31:05]Processing tag 1201 (04B1) [00:31:05]Malloc new data [00:31:05]Processing tag 1136 (0470) [00:31:05]Malloc new data [00:31:05]Processing tag 1138 (0472) [00:31:05]Malloc new data [00:31:05]Processing tag 1024 (0400) [00:31:05]Load OK [00:31:05]SetTLVBufToDocument [00:31:05]Processing tag 1006 (03EE) [00:31:05]Load OK [00:31:05]SetTLVBufToDocument [00:31:05]Processing tag 1010 (03F2) [00:31:05]Malloc new data [00:31:05]Processing tag 1011 (03F3) [00:31:05]Malloc new data [00:31:05]SetTLVBufToDocument err=0 [00:31:05]Processing tag 1006 (03EE) [00:31:05]Load OK [00:31:05]SetTLVBufToDocument [00:31:05]Processing tag 1010 (03F2) [00:31:05]Malloc new data [00:31:05]Processing tag 1011 (03F3) [00:31:05]Malloc new data [00:31:05]SetTLVBufToDocument err=0 [00:31:05]Processing tag 1007 (03EF) [00:31:05]Load OK [00:31:05]SetTLVBufToDocument [00:31:05]Processing tag 1014 (03F6) [00:31:05]Malloc new data [00:31:05]Processing tag 1015 (03F7) [00:31:05]Malloc new data [00:31:05]SetTLVBufToDocument err=0 [00:31:05]Processing tag 1007 (03EF) [00:31:05]Load OK [00:31:05]SetTLVBufToDocument [00:31:05]Processing tag 1014 (03F6) [00:31:05]Malloc new data [00:31:05]Processing tag 1015 (03F7) [00:31:05]Malloc new data [00:31:05]SetTLVBufToDocument err=0 [00:31:05]Processing tag 1007 (03EF) [00:31:05]Load OK [00:31:05]SetTLVBufToDocument [00:31:05]Processing tag 1014 (03F6) [00:31:05]Malloc new data [00:31:05]Processing tag 1015 (03F7) [00:31:05]Malloc new data [00:31:05]SetTLVBufToDocument err=0 [00:31:05]Processing tag 1007 (03EF) [00:31:05]Load OK [00:31:05]SetTLVBufToDocument [00:31:05]Processing tag 1014 (03F6) [00:31:05]Malloc new data [00:31:05]Processing tag 1015 (03F7) [00:31:05]Malloc new data [00:31:05]SetTLVBufToDocument err=0 [00:31:05]Processing tag 1007 (03EF) [00:31:05]Load OK [00:31:05]SetTLVBufToDocument [00:31:05]Processing tag 1014 (03F6) [00:31:05]Malloc new data [00:31:05]Processing tag 1015 (03F7) [00:31:05]Malloc new data [00:31:05]SetTLVBufToDocument err=0 [00:31:05]Processing tag 1007 (03EF) [00:31:05]Load OK [00:31:05]SetTLVBufToDocument [00:31:05]Processing tag 1014 (03F6) [00:31:05]Malloc new data [00:31:05]Processing tag 1015 (03F7) [00:31:05]Malloc new data [00:31:05]SetTLVBufToDocument err=0 [00:31:05]Processing tag 1007 (03EF) [00:31:05]Load OK [00:31:05]SetTLVBufToDocument [00:31:05]Processing tag 1014 (03F6) [00:31:05]Malloc new data [00:31:05]Processing tag 1015 (03F7) [00:31:05]Malloc new data [00:31:05]SetTLVBufToDocument err=0 [00:31:05]SetTLVBufToDocument err=0 [00:31:05]SetTLVBufToDocument err=0 [00:31:05]Processing tag 1130 (046A) [00:31:05]Load OK [00:31:05]SetTLVBufToDocument [00:31:05]Processing tag 1135 (046F) [00:31:05]Malloc new data [00:31:05]Processing tag 1201 (04B1) [00:31:05]Malloc new data [00:31:05]Processing tag 1136 (0470) [00:31:05]Malloc new data [00:31:05]Processing tag 1138 (0472) [00:31:05]Malloc new data [00:31:05]Processing tag 1024 (0400) [00:31:05]Load OK [00:31:05]SetTLVBufToDocument [00:31:05]Processing tag 1006 (03EE) [00:31:05]Load OK [00:31:05]SetTLVBufToDocument [00:31:05]Processing tag 1010 (03F2) [00:31:05]Malloc new data [00:31:05]Processing tag 1011 (03F3) [00:31:05]Malloc new data [00:31:05]SetTLVBufToDocument err=0 [00:31:05]Processing tag 1006 (03EE) [00:31:05]Load OK [00:31:05]SetTLVBufToDocument [00:31:05]Processing tag 1010 (03F2) [00:31:05]Malloc new data [00:31:05]Processing tag 1011 (03F3) [00:31:05]Malloc new data [00:31:05]SetTLVBufToDocument err=0 [00:31:05]Processing tag 1007 (03EF) [00:31:05]Load OK [00:31:05]SetTLVBufToDocument [00:31:05]Processing tag 1014 (03F6) [00:31:05]Malloc new data [00:31:05]Processing tag 1015 (03F7) [00:31:05]Malloc new data [00:31:05]SetTLVBufToDocument err=0 [00:31:05]Processing tag 1007 (03EF) [00:31:05]Load OK [00:31:05]SetTLVBufToDocument [00:31:05]Processing tag 1014 (03F6) [00:31:05]Malloc new data [00:31:05]Processing tag 1015 (03F7) [00:31:05]Malloc new data [00:31:05]SetTLVBufToDocument err=0 [00:31:05]Processing tag 1007 (03EF) [00:31:05]Load OK [00:31:05]SetTLVBufToDocument [00:31:05]Processing tag 1014 (03F6) [00:31:05]Malloc new data [00:31:05]Processing tag 1015 (03F7) [00:31:05]Malloc new data [00:31:05]SetTLVBufToDocument err=0 [00:31:05]Processing tag 1007 (03EF) [00:31:05]Load OK [00:31:05]SetTLVBufToDocument [00:31:05]Processing tag 1014 (03F6) [00:31:05]Malloc new data [00:31:05]Processing tag 1015 (03F7) [00:31:05]Malloc new data [00:31:05]SetTLVBufToDocument err=0 [00:31:05]Processing tag 1007 (03EF) [00:31:05]Load OK [00:31:05]SetTLVBufToDocument [00:31:05]Processing tag 1014 (03F6) [00:31:05]Malloc new data [00:31:05]Processing tag 1015 (03F7) [00:31:05]Malloc new data [00:31:05]SetTLVBufToDocument err=0 [00:31:05]Processing tag 1007 (03EF) [00:31:05]Load OK [00:31:05]SetTLVBufToDocument [00:31:05]Processing tag 1014 (03F6) [00:31:05]Malloc new data [00:31:05]Processing tag 1015 (03F7) [00:31:05]Malloc new data [00:31:05]SetTLVBufToDocument err=0 [00:31:05]Processing tag 1007 (03EF) [00:31:05]Load OK [00:31:05]SetTLVBufToDocument [00:31:05]Processing tag 1014 (03F6) [00:31:05]Malloc new data [00:31:05]Processing tag 1015 (03F7) [00:31:05]Malloc new data [00:31:05]SetTLVBufToDocument err=0 [00:31:05]SetTLVBufToDocument err=0 [00:31:05]SetTLVBufToDocument err=0 [00:31:05]Processing tag 1131 (046B) [00:31:05]Load OK [00:31:05]SetTLVBufToDocument [00:31:05]Processing tag 1135 (046F) [00:31:05]Malloc new data [00:31:05]Processing tag 1201 (04B1) [00:31:05]Malloc new data [00:31:05]Processing tag 1136 (0470) [00:31:05]Malloc new data [00:31:05]Processing tag 1138 (0472) [00:31:05]Malloc new data [00:31:05]Processing tag 1024 (0400) [00:31:05]Load OK [00:31:05]SetTLVBufToDocument [00:31:05]Processing tag 1006 (03EE) [00:31:05]Load OK [00:31:05]SetTLVBufToDocument [00:31:05]Processing tag 1010 (03F2) [00:31:05]Malloc new data [00:31:05]Processing tag 1011 (03F3) [00:31:05]Malloc new data [00:31:05]SetTLVBufToDocument err=0 [00:31:05]Processing tag 1006 (03EE) [00:31:05]Load OK [00:31:05]SetTLVBufToDocument [00:31:05]Processing tag 1010 (03F2) [00:31:05]Malloc new data [00:31:05]Processing tag 1011 (03F3) [00:31:05]Malloc new data [00:31:05]SetTLVBufToDocument err=0 [00:31:05]Processing tag 1007 (03EF) [00:31:05]Load OK [00:31:05]SetTLVBufToDocument [00:31:05]Processing tag 1014 (03F6) [00:31:05]Malloc new data [00:31:05]Processing tag 1015 (03F7) [00:31:05]Malloc new data [00:31:05]SetTLVBufToDocument err=0 [00:31:05]Processing tag 1007 (03EF) [00:31:05]Load OK [00:31:05]SetTLVBufToDocument [00:31:05]Processing tag 1014 (03F6) [00:31:05]Malloc new data [00:31:05]Processing tag 1015 (03F7) [00:31:05]Malloc new data [00:31:05]SetTLVBufToDocument err=0 [00:31:05]Processing tag 1007 (03EF) [00:31:05]Load OK [00:31:05]SetTLVBufToDocument [00:31:05]Processing tag 1014 (03F6) [00:31:05]Malloc new data [00:31:05]Processing tag 1015 (03F7) [00:31:05]Malloc new data [00:31:05]SetTLVBufToDocument err=0 [00:31:05]Processing tag 1007 (03EF) [00:31:05]Load OK [00:31:05]SetTLVBufToDocument [00:31:05]Processing tag 1014 (03F6) [00:31:05]Malloc new data [00:31:05]Processing tag 1015 (03F7) [00:31:05]Malloc new data [00:31:05]SetTLVBufToDocument err=0 [00:31:05]Processing tag 1007 (03EF) [00:31:05]Load OK [00:31:05]SetTLVBufToDocument [00:31:05]Processing tag 1014 (03F6) [00:31:05]Malloc new data [00:31:05]Processing tag 1015 (03F7) [00:31:05]Malloc new data [00:31:05]SetTLVBufToDocument err=0 [00:31:05]Processing tag 1007 (03EF) [00:31:05]Load OK [00:31:05]SetTLVBufToDocument [00:31:05]Processing tag 1014 (03F6) [00:31:05]Malloc new data [00:31:05]Processing tag 1015 (03F7) [00:31:05]Malloc new data [00:31:05]SetTLVBufToDocument err=0 [00:31:05]Processing tag 1007 (03EF) [00:31:05]Load OK [00:31:05]SetTLVBufToDocument [00:31:05]Processing tag 1014 (03F6) [00:31:05]Malloc new data [00:31:05]Processing tag 1015 (03F7) [00:31:05]Malloc new data [00:31:05]SetTLVBufToDocument err=0 [00:31:05]SetTLVBufToDocument err=0 [00:31:05]SetTLVBufToDocument err=0 [00:31:05]Processing tag 1132 (046C) [00:31:05]Load OK [00:31:05]SetTLVBufToDocument [00:31:05]Processing tag 1135 (046F) [00:31:05]Malloc new data [00:31:05]Processing tag 1201 (04B1) [00:31:05]Malloc new data [00:31:05]Processing tag 1136 (0470) [00:31:05]Malloc new data [00:31:05]Processing tag 1138 (0472) [00:31:05]Malloc new data [00:31:05]Processing tag 1024 (0400) [00:31:05]Load OK [00:31:05]SetTLVBufToDocument [00:31:05]Processing tag 1006 (03EE) [00:31:05]Load OK [00:31:05]SetTLVBufToDocument [00:31:05]Processing tag 1010 (03F2) [00:31:05]Malloc new data [00:31:05]Processing tag 1011 (03F3) [00:31:05]Malloc new data [00:31:05]SetTLVBufToDocument err=0 [00:31:05]Processing tag 1006 (03EE) [00:31:05]Load OK [00:31:05]SetTLVBufToDocument [00:31:05]Processing tag 1010 (03F2) [00:31:05]Malloc new data [00:31:05]Processing tag 1011 (03F3) [00:31:05]Malloc new data [00:31:05]SetTLVBufToDocument err=0 [00:31:05]Processing tag 1007 (03EF) [00:31:05]Load OK [00:31:05]SetTLVBufToDocument [00:31:05]Processing tag 1014 (03F6) [00:31:05]Malloc new data [00:31:05]Processing tag 1015 (03F7) [00:31:05]Malloc new data [00:31:05]SetTLVBufToDocument err=0 [00:31:05]Processing tag 1007 (03EF) [00:31:05]Load OK [00:31:05]SetTLVBufToDocument [00:31:05]Processing tag 1014 (03F6) [00:31:05]Malloc new data [00:31:05]Processing tag 1015 (03F7) [00:31:05]Malloc new data [00:31:05]SetTLVBufToDocument err=0 [00:31:05]Processing tag 1007 (03EF) [00:31:05]Load OK [00:31:05]SetTLVBufToDocument [00:31:05]Processing tag 1014 (03F6) [00:31:05]Malloc new data [00:31:05]Processing tag 1015 (03F7) [00:31:05]Malloc new data [00:31:05]SetTLVBufToDocument err=0 [00:31:05]Processing tag 1007 (03EF) [00:31:05]Load OK [00:31:05]SetTLVBufToDocument [00:31:05]Processing tag 1014 (03F6) [00:31:05]Malloc new data [00:31:05]Processing tag 1015 (03F7) [00:31:05]Malloc new data [00:31:05]SetTLVBufToDocument err=0 [00:31:05]Processing tag 1007 (03EF) [00:31:05]Load OK [00:31:05]SetTLVBufToDocument [00:31:05]Processing tag 1014 (03F6) [00:31:05]Malloc new data [00:31:05]Processing tag 1015 (03F7) [00:31:05]Malloc new data [00:31:05]SetTLVBufToDocument err=0 [00:31:05]Processing tag 1007 (03EF) [00:31:05]Load OK [00:31:05]SetTLVBufToDocument [00:31:05]Processing tag 1014 (03F6) [00:31:05]Malloc new data [00:31:05]Processing tag 1015 (03F7) [00:31:05]Malloc new data [00:31:05]SetTLVBufToDocument err=0 [00:31:05]Processing tag 1007 (03EF) [00:31:05]Load OK [00:31:05]SetTLVBufToDocument [00:31:05]Processing tag 1014 (03F6) [00:31:05]Malloc new data [00:31:05]Processing tag 1015 (03F7) [00:31:05]Malloc new data [00:31:05]SetTLVBufToDocument err=0 [00:31:05]SetTLVBufToDocument err=0 [00:31:05]SetTLVBufToDocument err=0 [00:31:05]Processing tag 1133 (046D) [00:31:05]Malloc new data [00:31:05]SetTLVBufToDocument err=0 [00:31:05]Processing tag 1077 (0435) [00:31:05]Malloc new data [00:31:05]SetTLVBufToDocument err=0 [00:31:05]Malloc new data [00:31:05]SAM_PROTO_GetFMData [00:31:05]wFMCommunicate request_size=4 [00:31:05]MH_SAM_APDU [00:31:05]CAPDU: 80 13 03 00 [00:31:05]Write to MH i2c: E2 08 00 CD 6A 80 13 03 00 00 00 00 00 B6 [00:31:05]Write i2c OK [00:31:05]MH_I2C_Read... [00:31:06]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:31:06]Read from MH i2c: E2 [00:31:06]MH_I2C_Read... [00:31:06]Read from MH i2c: E2 FD 00 [00:31:06]MH_I2C_Read... [00:31:06]Read from MH i2c: E2 FD 00 CD 6A 00 C0 04 85 04 BC 04 6E 04 04 00 49 08 00 00 69 04 9F 00 6F 04 04 00 38 08 00 00 B1 04 04 00 12 FB 5A 05 70 04 04 00 C4 A8 76 03 72 04 04 00 4E 52 E4 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 9B 91 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 65 21 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 53 04 02 EF 03 09 00 F6 03 01 90 00 C4 [00:31:06]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 49 08 00 00 69 04 9F 00 6F 04 04 00 38 08 00 00 B1 04 04 00 12 FB 5A 05 70 04 04 00 C4 A8 76 03 72 04 04 00 4E 52 E4 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 9B 91 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 65 21 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 53 04 02 EF 03 09 00 F6 03 01 90 00 [00:31:06]wFMCommunicate OK [00:31:06]wFMCommunicate request_size=4 [00:31:06]MH_SAM_APDU [00:31:06]CAPDU: 80 17 00 00 [00:31:06]Write to MH i2c: E2 08 00 CE 6A 80 17 00 00 00 00 00 00 B8 [00:31:06]Write i2c OK [00:31:06]MH_I2C_Read... [00:31:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:06]Read from MH i2c: E2 [00:31:06]MH_I2C_Read... [00:31:06]Read from MH i2c: E2 FD 00 [00:31:06]MH_I2C_Read... [00:31:06]Read from MH i2c: E2 FD 00 CE 6A 00 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 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 90 00 17 [00:31:07]RAPDU: 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 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 90 00 [00:31:07]wFMCommunicate OK [00:31:07]wFMCommunicate request_size=4 [00:31:07]MH_SAM_APDU [00:31:07]CAPDU: 80 17 00 00 [00:31:07]Write to MH i2c: E2 08 00 CF 6A 80 17 00 00 00 00 00 00 B9 [00:31:07]Write i2c OK [00:31:07]MH_I2C_Read... [00:31:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:07]Read from MH i2c: E2 [00:31:07]MH_I2C_Read... [00:31:07]Read from MH i2c: E2 FD 00 [00:31:07]MH_I2C_Read... [00:31:07]Read from MH i2c: E2 FD 00 CF 6A 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 90 00 5C [00:31:07]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 90 00 [00:31:07]wFMCommunicate OK [00:31:07]wFMCommunicate request_size=4 [00:31:07]MH_SAM_APDU [00:31:07]CAPDU: 80 17 00 00 [00:31:07]Write to MH i2c: E2 08 00 D0 6A 80 17 00 00 00 00 00 00 BA [00:31:07]Write i2c OK [00:31:07]MH_I2C_Read... [00:31:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:08]Read from MH i2c: E2 [00:31:08]MH_I2C_Read... [00:31:08]Read from MH i2c: E2 FD 00 [00:31:08]MH_I2C_Read... [00:31:08]Read from MH i2c: E2 FD 00 D0 6A 00 01 00 04 F7 03 00 00 EF 03 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 90 00 32 [00:31:08]RAPDU: 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:31:08]wFMCommunicate OK [00:31:08]wFMCommunicate request_size=4 [00:31:08]MH_SAM_APDU [00:31:08]CAPDU: 80 17 00 00 [00:31:08]Write to MH i2c: E2 08 00 D1 6A 80 17 00 00 00 00 00 00 BB [00:31:08]Write i2c OK [00:31:08]MH_I2C_Read... [00:31:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [00:31:08]Read from MH i2c: E2 [00:31:08]MH_I2C_Read... [00:31:08]Read from MH i2c: E2 DD 00 [00:31:08]MH_I2C_Read... [00:31:08]Read from MH i2c: E2 DD 00 D1 6A 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A3 [00:31:09]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:31:09]wFMCommunicate OK [00:31:09]SAM_PROTO_GetFMData done [00:31:09]Malloc new data [00:31:09]Malloc new data [00:31:09]Malloc new data [00:31:09]Malloc new data [00:31:09]KKMLoadAndSignCloseShiftData err=0 [00:31:09]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Мансуров А. 29.07.2024 00:31 Смена: 14 РНМ: 0000000000189667 ЗНМ: 0300000161 СНО: Общий режим Чеков за смену: 0 ФД за смену: 2 Всего чеков: 0 ИТОГИ ПРИХОД Чеков: 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 Общий итог: 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 Нал. в кассе: 0.00 НС Приход: 898485.94 НС Возвр.Прихода: 12447.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 2150 ФМ: 0000000002094248 ФПД: 11164745461783 [00:31:09]StoreToDocumentArchive [00:31:09]shift 14 fd 2150 [00:31:09]save to /storage/0014/doc_00002150 [00:31:09]save last doc name /storage/0014/doc_00002150 to /storage/kkm_last_doc_name [00:31:09]save OK [00:31:09]Clear old archive folders... [00:31:09]Remove dir /storage/0010 [00:31:09]opendir ok [00:31:09]file . [00:31:09]file .. [00:31:09]file doc_1722213025 [00:31:09]remove file /storage/0010/doc_1722213025 [00:31:09]remove dir /storage/0010 [00:31:09]NVStorageSaveData kkm_registers [00:31:09]File name is /storage/kkm_registers [00:31:09]Write 24 bytes [00:31:09]NVStorageSaveData done [00:31:09]NVStorageSaveData kkm_registers [00:31:09]File name is /storage/kkm_registers [00:31:09]Write 24 bytes [00:31:09]NVStorageSaveData done [00:31:09]ProcessDocumentItem done err = 0, tmpTLVsize=1370 [00:31:09]tlvbuf is 0204A840 [00:31:09]SAM_PROTO_ClearQueue [00:31:09]wFMCommunicate request_size=4 [00:31:09]MH_SAM_APDU [00:31:09]CAPDU: 80 09 00 00 [00:31:09]Write to MH i2c: E2 08 00 D2 6A 80 09 00 00 00 00 00 00 AE [00:31:09]Write i2c OK [00:31:09]MH_I2C_Read... [00:31:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:31:09]Read from MH i2c: E2 [00:31:09]MH_I2C_Read... [00:31:09]Read from MH i2c: E2 03 00 [00:31:09]MH_I2C_Read... [00:31:09]Read from MH i2c: E2 03 00 D2 6A 00 90 00 B0 [00:31:09]RAPDU: 90 00 [00:31:09]wFMCommunicate OK [00:31:09]SAM_PROTO_ClearQueue done [00:31:09]KKMCreateOFDPacket [00:31:09]OFDProtocolAddRootSTLVToBuf [00:31:09]FM_MakeSignedData [00:31:09]FM_MakeSignedData [00:31:09]SAM_PROTO_SignData [00:31:09]wFMCommunicate request_size=4 [00:31:09]MH_SAM_APDU [00:31:09]CAPDU: 80 0D 01 02 [00:31:09]Write to MH i2c: E2 08 00 D3 6A 80 0D 01 02 00 00 00 00 B6 [00:31:09]Write i2c OK [00:31:09]MH_I2C_Read... [00:31:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:31:09]Read from MH i2c: E2 [00:31:09]MH_I2C_Read... [00:31:09]Read from MH i2c: E2 03 00 [00:31:09]MH_I2C_Read... [00:31:09]Read from MH i2c: E2 03 00 D3 6A 00 90 00 B1 [00:31:09]RAPDU: 90 00 [00:31:09]wFMCommunicate OK [00:31:09]wFMCommunicate request_size=255 [00:31:09]MH_SAM_APDU [00:31:09]CAPDU: 80 0D 02 02 FA 05 00 5A 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 15 00 D0 9C D0 B0 D0 BD D1 81 D1 83 D1 80 D0 BE D0 B2 20 D0 90 2E 20 F4 03 04 00 CD E2 A6 66 0E 04 04 00 0E 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 5E 04 04 00 00 00 00 00 57 04 04 00 02 00 00 00 AA 04 CC 04 6E 04 04 00 00 00 00 00 69 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 [00:31:09]Write to MH i2c: E2 02 01 D4 6A 80 0D 02 02 FA 00 05 00 5A 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 OFD Sender: No OFD packet to send [00:31:09]30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 9C D0 B0 D0 BD D1 81 D1 83 D1 80 D0 BE D0 B2 20 D0 90 2E 20 F4 03 04 00 CD E2 A6 66 0E 04 04 00 0E 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 5E 04 04 00 00 00 00 00 57 04 04 00 02 00 00 00 AA 04 CC 04 6E 04 04 00 00 00 00 00 69 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 00 00 0A [00:31:09]Write i2c OK [00:31:09]MH_I2C_Read... [00:31:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:31:10]Read from MH i2c: E2 [00:31:10]MH_I2C_Read... [00:31:10]Read from MH i2c: E2 03 00 [00:31:10]MH_I2C_Read... [00:31:10]Read from MH i2c: E2 03 00 D4 6A 00 90 00 B2 [00:31:10]RAPDU: 90 00 [00:31:10]wFMCommunicate OK [00:31:10]wFMCommunicate request_size=255 [00:31:10]MH_SAM_APDU [00:31:10]CAPDU: 80 0D 02 02 FA 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 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 [00:31:10]Write to MH i2c: E2 02 01 D5 6A 80 0D 02 02 FA 00 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 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 00 00 24 [00:31:10]Write i2c OK [00:31:10]MH_I2C_Read... [00:31:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:31:10]Read from MH i2c: E2 [00:31:10]MH_I2C_Read... [00:31:10]Read from MH i2c: E2 03 00 [00:31:10]MH_I2C_Read... [00:31:10]Read from MH i2c: E2 03 00 D5 6A 00 90 00 B3 [00:31:10]RAPDU: 90 00 [00:31:10]wFMCommunicate OK [00:31:10]wFMCommunicate request_size=255 [00:31:10]MH_SAM_APDU [00:31:10]CAPDU: 80 0D 02 02 FA 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 [00:31:11]Write to MH i2c: E2 02 01 D6 6A 80 0D 02 02 FA 00 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 00 00 C7 [00:31:11]Write i2c OK [00:31:11]MH_I2C_Read... [00:31:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:31:11]Read from MH i2c: E2 [00:31:11]MH_I2C_Read... [00:31:11]Read from MH i2c: E2 03 00 [00:31:11]MH_I2C_Read... [00:31:11]Read from MH i2c: E2 03 00 D6 6A 00 90 00 B4 [00:31:11]RAPDU: 90 00 [00:31:11]wFMCommunicate OK [00:31:11]wFMCommunicate request_size=255 [00:31:11]MH_SAM_APDU [00:31:11]CAPDU: 80 0D 02 02 FA 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:31:11]Write to MH i2c: E2 02 01 D7 6A 80 0D 02 02 FA 00 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 00 00 39 [00:31:11]Write i2c OK [00:31:11]MH_I2C_Read... [00:31:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:31:12]Read from MH i2c: E2 [00:31:12]MH_I2C_Read... [00:31:12]Read from MH i2c: E2 03 00 [00:31:12]MH_I2C_Read... [00:31:12]Read from MH i2c: E2 03 00 D7 6A 00 90 00 B5 [00:31:12]RAPDU: 90 00 [00:31:12]wFMCommunicate OK [00:31:12]wFMCommunicate request_size=255 [00:31:12]MH_SAM_APDU [00:31:12]CAPDU: 80 0D 02 02 FA 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 [00:31:12]Write to MH i2c: E2 02 01 D8 6A 80 0D 02 02 FA 00 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 00 00 3F [00:31:12]Write i2c OK [00:31:12]MH_I2C_Read... [00:31:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:31:12]Read from MH i2c: E2 [00:31:12]MH_I2C_Read... [00:31:12]Read from MH i2c: E2 03 00 [00:31:12]MH_I2C_Read... [00:31:12]Read from MH i2c: E2 03 00 D8 6A 00 90 00 B6 [00:31:12]RAPDU: 90 00 [00:31:12]wFMCommunicate OK [00:31:12]wFMCommunicate request_size=129 [00:31:12]MH_SAM_APDU [00:31:12]CAPDU: 80 0D 02 02 7C 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 66 08 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 35 04 06 00 0A 27 7E AF F0 17 [00:31:13]Write to MH i2c: E2 84 00 D9 6A 80 0D 02 02 7C 00 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 66 08 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 35 04 06 00 0A 27 7E AF F0 17 00 00 CE [00:31:13]Write i2c OK [00:31:13]MH_I2C_Read... [00:31:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:31:13]Read from MH i2c: E2 [00:31:13]MH_I2C_Read... [00:31:13]Read from MH i2c: E2 03 00 [00:31:13]MH_I2C_Read... [00:31:13]Read from MH i2c: E2 03 00 D9 6A 00 90 00 B7 [00:31:13]RAPDU: 90 00 [00:31:13]wFMCommunicate OK [00:31:13]wFMCommunicate request_size=4 [00:31:13]MH_SAM_APDU [00:31:13]CAPDU: 80 0D 03 02 [00:31:13]Write to MH i2c: E2 08 00 DA 6A 80 0D 03 02 00 00 00 00 BF [00:31:13]Write i2c OK [00:31:13]MH_I2C_Read... [00:31:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:31:13]Read from MH i2c: E2 [00:31:13]MH_I2C_Read... [00:31:13]Read from MH i2c: E2 0B 00 [00:31:13]MH_I2C_Read... [00:31:13]Read from MH i2c: E2 0B 00 DA 6A 00 20 A0 4D 54 9A D1 8F D5 90 00 F0 [00:31:13]RAPDU: 20 A0 4D 54 9A D1 8F D5 90 00 [00:31:13]wFMCommunicate OK [00:31:13]SAM_PROTO_SignData done [00:31:13]FM_MakeSignedData done [00:31:13]CreateOFDProtocolMessage [00:31:13]wFMCommunicate request_size=4 [00:31:13]MH_SAM_APDU [00:31:13]CAPDU: 80 11 00 00 [00:31:13]Write to MH i2c: E2 08 00 DB 6A 80 11 00 00 00 00 00 00 BF [00:31:13]Write i2c OK [00:31:13]MH_I2C_Read... [00:31:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:31:13]Read from MH i2c: E2 [00:31:13]MH_I2C_Read... [00:31:13]Read from MH i2c: E2 17 00 [00:31:13]MH_I2C_Read... [00:31:13]Read from MH i2c: E2 17 00 DB 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 0F [00:31:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [00:31:13]wFMCommunicate OK [00:31:13]CreateOFDProtocolMessage done [00:31:13]OFDSenderStorePacket 2150 [00:31:13]StoreOFDPacket docnum=2150 [00:31:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 6E 05 00 00 52 24 66 05 58 DF 5A 05 01 00 05 00 5A 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 15 00 D0 9C D0 B0 D0 BD D1 81 D1 83 D1 80 D0 BE D0 B2 20 D0 90 2E 20 F4 03 04 00 CD E2 A6 66 0E 04 04 00 0E 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 5E 04 04 00 00 00 00 00 57 04 04 00 02 00 00 00 AA 04 CC 04 6E 04 04 00 00 00 00 00 69 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 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 66 08 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 35 04 06 00 0A 27 7E AF F0 17 20 A0 4D 54 9A D1 8F D5 [00:31:13]CheckFolder [00:31:13]dirname=/storage/ofd_packets [00:31:13]CheckFolder done [00:31:13]ProducePacketName [00:31:13]name=ofd_packets/00002150 [00:31:13]NVStorageSaveData ofd_packets/00002150 [00:31:13]File name is /storage/ofd_packets/00002150 [00:31:13]Write 1420 bytes [00:31:13]NVStorageSaveData done [00:31:13]OFDSenderStorePacket done [00:31:13]KKMCreateOFDPacket done [00:31:13]NVStorageSaveData kkm_last_timestamp [00:31:13]File name is /storage/kkm_last_timestamp [00:31:13]Write 4 bytes [00:31:13]NVStorageSaveData done [00:31:13]ExternCall_PrintAddStr [00:31:13]wPrintStart [00:31:13]Write to MH i2c: 01 00 00 DC 6A 46 [00:31:13]Write i2c OK [00:31:13]MH_I2C_Read... [00:31:13]Read from MH i2c: 01 [00:31:13]MH_I2C_Read... [00:31:13]Read from MH i2c: 01 07 00 [00:31:13]MH_I2C_Read... [00:31:13]Read from MH i2c: 01 07 00 DC 6A 00 00 00 00 00 FF 0F 5B [00:31:13]RasterBufferAndPrint [00:31:13]line Отчет о закрытии смены [00:31:13]line ФФД: 1.0 [00:31:13]line ИНН: 02508201610067 [00:31:13]line Кассир: Мансуров А. [00:31:13]line 29.07.2024 00:31 [00:31:13]line Смена: 14 [00:31:13]line РНМ: 0000000000189667 [00:31:13]line ЗНМ: 0300000161 [00:31:13]line СНО: Общий режим [00:31:13]line Чеков за смену: 0 [00:31:13]line ФД за смену: 2 [00:31:13]line Всего чеков: 0 [00:31:13]line ИТОГИ ПРИХОД [00:31:13]line Чеков: 0 [00:31:13]line Общий итог: 0.00 [00:31:13]line Итого наличными: 0.00 [00:31:13]line Итого безнал.: 0.00 [00:31:13]line НДС 0% : 0.00 [00:31:13]line НДС 12% : 0.00 [00:31:13]line НСП 0% : 0.00 [00:31:13]line НСП 1,50% : 0.00 [00:31:13]line НСП 0,50% : 0.00 [00:31:13]line НСП 5% : 0.00 [00:31:13]line НСП 3% : 0.00 [00:31:13]line НСП 2% : 0.00 [00:31:13]line НСП 1% : 0.00 [00:31:13]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:31:13]line Чеков: 0 [00:31:13]line Общий итог: 0.00 [00:31:13]line Итого наличными: 0.00 [00:31:13]line Итого безнал.: 0.00 [00:31:13]line НДС 0% : 0.00 [00:31:13]line НДС 12% : 0.00 [00:31:13]line НСП 0% : 0.00 [00:31:13]line НСП 1,50% : 0.00 [00:31:13]line НСП 0,50% : 0.00 [00:31:13]line НСП 5% : 0.00 [00:31:14]line НСП 3% : 0.00 [00:31:14]line НСП 2% : 0.00 [00:31:14]line НСП 1% : 0.00 [00:31:14]line ИТОГИ РАСХОД [00:31:14]line Чеков: 0 [00:31:14]line Общий итог: 0.00 [00:31:14]line Итого наличными: 0.00 [00:31:14]line Итого безнал.: 0.00 [00:31:14]line НДС 0% : 0.00 [00:31:14]line НДС 12% : 0.00 [00:31:14]line НСП 0% : 0.00 [00:31:14]line НСП 1,50% : 0.00 [00:31:14]line НСП 0,50% : 0.00 [00:31:14]line НСП 5% : 0.00 [00:31:14]line НСП 3% : 0.00 [00:31:14]line НСП 2% : 0.00 [00:31:14]line НСП 1% : 0.00 [00:31:14]line ИТОГИ ВОЗВРАТ РАСХОДА [00:31:14]line Чеков: 0 [00:31:14]line Общий итог: 0.00 [00:31:14]line Итого наличными: 0.00 [00:31:14]line Итого безнал.: 0.00 [00:31:14]line НДС 0% : 0.00 [00:31:14]line НДС 12% : 0.00 [00:31:14]line НСП 0% : 0.00 [00:31:14]line НСП 1,50% : 0.00 [00:31:14]line НСП 0,50% : 0.00 [00:31:14]line НСП 5% : 0.00 [00:31:14]line НСП 3% : 0.00 [00:31:14]line НСП 2% : 0.00 [00:31:14]line НСП 1% : 0.00 [00:31:14]line Сумма внесений: 0.00 [00:31:14]line Сумма выплат: 0.00 [00:31:14]line Нал. в кассе: 0.00 [00:31:14]line НС Приход: 898485.94 [00:31:14]line НС Возвр.Прихода: 12447.00 [00:31:14]OFD Sender: Processing packet 2150 [packets to send 1, broken 0] [00:31:14]ProducePacketName [00:31:14]name=ofd_packets/00002150 [00:31:14]OFD Sender: To server: pG, [00:31:14]CommunicateWithHost lk.salyk.kg:30040 [00:31:14]ConnectInit lk.salyk.kg [00:31:14]line НС Расход: 0.00 [00:31:14]line НС Возвр.Расхода: 0.00 [00:31:14]line ФД: 2150 [00:31:14]line ФМ: 0000000002094248 [00:31:14]line ФПД: 11164745461783 [00:31:14]written 0, free lines is 4095 [00:31:14]Connected sock=10 [00:31:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 6E 05 00 00 52 24 66 05 58 DF 5A 05 01 00 05 00 5A 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 15 00 D0 9C D0 B0 D0 BD D1 81 D1 83 D1 80 D0 BE D0 B2 20 D0 90 2E 20 F4 03 04 00 CD E2 A6 66 0E 04 04 00 0E 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 5E 04 04 00 00 00 00 00 57 04 04 00 02 00 00 00 AA 04 CC 04 6E 04 04 00 00 00 00 00 69 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 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 Write to MH i2c: EE 01 03 00 0A 00 F2 03 01 00 00 F3 00 03 2C 01 6B 97 [00:31:14]Write i2c OK [00:31:14]MH_I2C_Read... [00:31:14]00 Read from MH i2c: 00 01 EE [00:31:14]03 MH_I2C_Read... [00:31:15]0A 00 F2 03 01 00 Read from MH i2c: 01 01 F3 07 03 00 01 [00:31:15]00 MH_I2C_Read... [00:31:15]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 Read from MH i2c: 00 01 EF 07 03 00 09 2C 00 6B F6 00 03 00 01 00 00 00 02 00 F7 74 03 0B 00 1D 00 [00:31:15]EF RasterBufferAndPrint [00:31:15]03 line [00:31:15]09 line [00:31:15]00 line [00:31:15]F6 line [00:31:15]03 line [00:31:15]01 00 03 written 0, free lines is 3507 [00:31:15]F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 MH_Cut [00:31:15]EF Write to MH i2c: D1 01 00 33 6B 01 70 [00:31:15]03 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 Write i2c OK [00:31:15]00 MH_I2C_Read... [00:31:15]EF 03 09 00 F6 03 01 00 01 F7 Read from MH i2c: 03 D1 00 [00:31:15]00 MH_I2C_Read... [00:31:15]EF 03 09 00 F6 03 Read from MH i2c: 01 D1 00 01 02 00 [00:31:15]F7 MH_I2C_Read... [00:31:15]03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 Read from MH i2c: EF D1 03 01 09 00 00 33 F6 6B 03 00 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 6F 00 [00:31:15]05 Write to MH i2c: F7 01 03 00 00 00 00 34 EF 6B 03 9F 09 [00:31:15]00 Write i2c OK [00:31:15]F6 MH_I2C_Read... [00:31:15]03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 *** Cut start [00:31:15]00 06 F7 *** Partial cut [00:31:15]*** CUTSNS_PIN = 1 [00:31:15]*** CUTSNS_PIN = 0 [00:31:15]03 00 00 10 04 04 00 66 08 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 35 04 06 00 0A 27 7E AF F0 17 20 A0 4D 54 9A D1 8F D5 [00:31:16]*** Brake cut motor [00:31:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 E0 82 47 00 0F 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 66 08 00 00 F4 03 04 00 48 8E A6 66 B6 04 01 00 00 EB 0C 0B 59 CA FB BF 01 [00:31:16]CommunicateWithHost err = 0 [00:31:16]CheckOFDResponse [00:31:16]1017 (14) - 77093643461234 [00:31:16]1041 (16) - 0000000002094248 [00:31:16]1040 (4) - 2150 [00:31:16]1012 (4) - 28.07.2024 18:30 [00:31:16]1206 (1) - 0 [00:31:16]OFD Sender: Remove packet 2150 [00:31:16]ProducePacketName [00:31:16]name=ofd_packets/00002150 [00:31:16]NVStorageDeleteData [00:31:16]Read from MH i2c: 01 [00:31:16]MH_I2C_Read... [00:31:16]*** Stop cut motor [00:31:16]*** Cut end [00:31:16]Read from MH i2c: 01 07 00 [00:31:16]MH_I2C_Read... [00:31:16]Read from MH i2c: 01 07 00 34 6B 00 00 00 00 00 FF 0F B4 [00:31:16]process_action close_shift done [00:31:16]requested_data is exist [00:31:16]produce_requested_data [00:31:16]requested_item fd.num is exist - process it [00:31:16]SAM_PROTO_GetFieldsCounters [00:31:16]wFMCommunicate request_size=4 [00:31:16]MH_SAM_APDU [00:31:16]CAPDU: 80 13 00 00 [00:31:16]Write to MH i2c: E2 08 00 35 6B 80 13 00 00 00 00 00 00 1C [00:31:16]Write i2c OK [00:31:16]MH_I2C_Read... [00:31:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:31:16]Read from MH i2c: E2 [00:31:16]MH_I2C_Read... [00:31:16]Read from MH i2c: E2 62 00 [00:31:16]MH_I2C_Read... [00:31:16]Read from MH i2c: E2 62 00 35 6B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 66 08 00 00 0E 04 04 00 0E 00 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 C3 [00:31:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 66 08 00 00 0E 04 04 00 0E 00 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:31:16]wFMCommunicate OK [00:31:16]SAM_PROTO_GetFieldsCounters done [00:31:16]requested_item shift.num is exist - process it [00:31:16]requested_item shift.opened is exist - process it [00:31:16]req_shift_opened [00:31:16]FM_GetShiftState [00:31:16]SAM_PROTO_GetShiftState [00:31:16]wFMCommunicate request_size=4 [00:31:16]MH_SAM_APDU [00:31:16]CAPDU: 80 13 01 00 [00:31:16]Write to MH i2c: E2 08 00 36 6B 80 13 01 00 00 00 00 00 1E [00:31:16]Write i2c OK [00:31:16]MH_I2C_Read... [00:31:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:31:16]Read from MH i2c: E2 [00:31:16]MH_I2C_Read... [00:31:16]Read from MH i2c: E2 0E 00 [00:31:16]MH_I2C_Read... [00:31:16]Read from MH i2c: E2 0E 00 36 6B 00 09 00 00 00 00 00 00 00 00 00 00 90 00 29 [00:31:17]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:31:17]wFMCommunicate OK [00:31:17]SAM_PROTO_GetShiftState done [00:31:17]FM_GetShiftState done [00:31:17]req_shift_opened done [00:31:17]requested_item shift.open_date is exist - process it [00:31:17]req_shift_open_date [00:31:17]FM_GetShiftState [00:31:17]SAM_PROTO_GetShiftState [00:31:17]wFMCommunicate request_size=4 [00:31:17]MH_SAM_APDU [00:31:17]CAPDU: 80 13 01 00 [00:31:17]Write to MH i2c: E2 08 00 37 6B 80 13 01 00 00 00 00 00 1F [00:31:17]OFD Sender: No OFD packet to send [00:31:17]Write i2c OK [00:31:17]MH_I2C_Read... [00:31:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:31:17]Read from MH i2c: E2 [00:31:17]MH_I2C_Read... [00:31:17]Read from MH i2c: E2 0E 00 [00:31:17]MH_I2C_Read... [00:31:17]Read from MH i2c: E2 0E 00 37 6B 00 09 00 00 00 00 00 00 00 00 00 00 90 00 2A [00:31:17]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:31:17]wFMCommunicate OK [00:31:17]SAM_PROTO_GetShiftState done [00:31:17]FM_GetShiftState done [00:31:17]req_shift_open_date done [00:31:17]produce_requested_data done [00:31:17]produce_requested_data return {"fd.num":2150,"shift.num":14,"shift.opened":0,"shift.open_date":0} [00:31:17]process_action_free close_shift [00:31:17]json_value_free [00:31:17]json_value_free done [00:31:17]process_json_proto returns [00:31:17]Send response to host [00:31:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":2150,"shift.num":14,"shift.opened":0,"shift.open_date":0}}} [00:31:17]free response buf [00:31:17]execute_script done [00:31:17]execute_script returns [00:31:17]free content buf [00:31:17]Sock 9.Close socket [00:31:17]Sock 9.Thread stoped [00:31:22]OFD Sender: No OFD packet to send [00:31:27]OFD Sender: No OFD packet to send [00:31:32]OFD Sender: No OFD packet to send [00:31:37]OFD Sender: No OFD packet to send [00:31:42]OFD Sender: No OFD packet to send [00:31:44]accept exits with 8 [00:31:44]New connection [00:31:44]New thread 3067317604 created [00:31:44]Thread 3067460964 joined [00:31:44]Waiting for new connection... [00:31:44] Sock 8.Parse request [00:31:44]Sock 8.Check first char [00:31:44]Sock 8.First char is OK [00:31:44]request: POST /json_proto HTTP/1.0 [00:31:44]Method: POST [00:31:44]URL: /json_proto [00:31:44]Method is POST - this is cgi request [00:31:44]url: /json_proto [00:31:44]query_string will be loaded in cgi processing [00:31:44]execute_cgi json_proto POST (null) [00:31:44]execute_cgi path=json_proto method=POST [00:31:44]POST find Content-Length [00:31:44]Host: 172.17.45.132:8080 [00:31:44]Content-Length: 215 [00:31:44]Content-Type: application/json [00:31:44] [00:31:44]POST finish read [00:31:44]Found Content-Length = 215 [00:31:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:31:44]execute_script... [00:31:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:31:44]POST & json_proto [00:31:44]process_json_proto [00:31:44]json parsed OK: [00:31:44]protocol is kg_v1.0 [00:31:44]action value=get_value [00:31:44]process_action get_value [00:31:44]cmd_get_value [00:31:44]process_action get_value done [00:31:44]requested_data is exist [00:31:44]produce_requested_data [00:31:44]requested_item kkm.sn is exist - process it [00:31:44]requested_item kkm.ver is exist - process it [00:31:44]requested_item fm.sn is exist - process it [00:31:44]wFMCommunicate request_size=4 [00:31:44]MH_SAM_APDU [00:31:44]CAPDU: 80 11 00 00 [00:31:44]Write to MH i2c: E2 08 00 38 6B 80 11 00 00 00 00 00 00 1D [00:31:44]Write i2c OK [00:31:44]MH_I2C_Read... [00:31:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:31:44]Read from MH i2c: E2 [00:31:44]MH_I2C_Read... [00:31:44]Read from MH i2c: E2 17 00 [00:31:44]MH_I2C_Read... [00:31:44]Read from MH i2c: E2 17 00 38 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 6D [00:31:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [00:31:44]wFMCommunicate OK [00:31:44]requested_item fd.num is exist - process it [00:31:44]SAM_PROTO_GetFieldsCounters [00:31:44]wFMCommunicate request_size=4 [00:31:44]MH_SAM_APDU [00:31:44]CAPDU: 80 13 00 00 [00:31:44]Write to MH i2c: E2 08 00 39 6B 80 13 00 00 00 00 00 00 20 [00:31:44]Write i2c OK [00:31:44]MH_I2C_Read... [00:31:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:31:45]Read from MH i2c: E2 [00:31:45]MH_I2C_Read... [00:31:45]Read from MH i2c: E2 62 00 [00:31:45]MH_I2C_Read... [00:31:45]Read from MH i2c: E2 62 00 39 6B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 66 08 00 00 0E 04 04 00 0E 00 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 C7 [00:31:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 66 08 00 00 0E 04 04 00 0E 00 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:31:45]wFMCommunicate OK [00:31:45]SAM_PROTO_GetFieldsCounters done [00:31:45]requested_item shift.num is exist - process it [00:31:45]requested_item shift.opened is exist - process it [00:31:45]req_shift_opened [00:31:45]FM_GetShiftState [00:31:45]SAM_PROTO_GetShiftState [00:31:45]wFMCommunicate request_size=4 [00:31:45]MH_SAM_APDU [00:31:45]CAPDU: 80 13 01 00 [00:31:45]Write to MH i2c: E2 08 00 3A 6B 80 13 01 00 00 00 00 00 22 [00:31:45]Write i2c OK [00:31:45]MH_I2C_Read... [00:31:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:31:45]Read from MH i2c: E2 [00:31:45]MH_I2C_Read... [00:31:45]Read from MH i2c: E2 0E 00 [00:31:45]MH_I2C_Read... [00:31:45]Read from MH i2c: E2 0E 00 3A 6B 00 09 00 00 00 00 00 00 00 00 00 00 90 00 2D [00:31:45]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:31:45]wFMCommunicate OK [00:31:45]SAM_PROTO_GetShiftState done [00:31:45]FM_GetShiftState done [00:31:45]req_shift_opened done [00:31:45]requested_item shift.open_date is exist - process it [00:31:45]req_shift_open_date [00:31:45]FM_GetShiftState [00:31:45]SAM_PROTO_GetShiftState [00:31:45]wFMCommunicate request_size=4 [00:31:45]MH_SAM_APDU [00:31:45]CAPDU: 80 13 01 00 [00:31:45]Write to MH i2c: E2 08 00 3B 6B 80 13 01 00 00 00 00 00 23 [00:31:45]Write i2c OK [00:31:45]MH_I2C_Read... [00:31:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:31:45]Read from MH i2c: E2 [00:31:45]MH_I2C_Read... [00:31:45]Read from MH i2c: E2 0E 00 [00:31:45]MH_I2C_Read... [00:31:45]Read from MH i2c: E2 0E 00 3B 6B 00 09 00 00 00 00 00 00 00 00 00 00 90 00 2E [00:31:45]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:31:45]wFMCommunicate OK [00:31:45]SAM_PROTO_GetShiftState done [00:31:45]FM_GetShiftState done [00:31:45]req_shift_open_date done [00:31:45]produce_requested_data done [00:31:45]produce_requested_data return {"kkm.sn":"0300000161","kkm.ver":"v1.0","fm.sn":"0000000002094248","fd.num":2150,"shift.num":14,"shift.opened":0,"shift.open_date":0} [00:31:45]process_action_free get_value [00:31:45]json_value_free [00:31:45]json_value_free done [00:31:45]process_json_proto returns [00:31:45]Send response to host [00:31:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000161","kkm.ver":"v1.0","fm.sn":"0000000002094248","fd.num":2150,"shift.num":14,"shift.opened":0,"shift.open_date":0}}} [00:31:45]free response buf [00:31:45]execute_script done [00:31:45]execute_script returns [00:31:45]free content buf [00:31:45]Sock 8.Close socket [00:31:45]Sock 8.Thread stoped [00:31:45]accept exits with 9 [00:31:45]New connection [00:31:45]New thread 3067460964 created [00:31:45]Thread 3067317604 joined [00:31:45]Waiting for new connection... [00:31:45] Sock 9.Parse request [00:31:45]Sock 9.Check first char [00:31:45]Sock 9.First char is OK [00:31:45]request: POST /json_proto HTTP/1.0 [00:31:45]Method: POST [00:31:45]URL: /json_proto [00:31:45]Method is POST - this is cgi request [00:31:45]url: /json_proto [00:31:45]query_string will be loaded in cgi processing [00:31:45]execute_cgi json_proto POST (null) [00:31:45]execute_cgi path=json_proto method=POST [00:31:45]POST find Content-Length [00:31:45]Host: 172.17.45.132:8080 [00:31:45]Content-Length: 331 [00:31:45]Content-Type: application/json [00:31:45] [00:31:45]POST finish read [00:31:45]Found Content-Length = 331 [00:31:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:31:45]execute_script... [00:31:45]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:31:45]POST & json_proto [00:31:45]process_json_proto [00:31:45]json parsed OK: [00:31:45]protocol is kg_v1.0 [00:31:45]action value=get_value [00:31:45]process_action get_value [00:31:45]cmd_get_value [00:31:45]process_action get_value done [00:31:45]requested_data is exist [00:31:45]produce_requested_data [00:31:45]requested_item fm.sale.total is exist - process it [00:31:45]SAM_PROTO_GetFMData [00:31:45]wFMCommunicate request_size=4 [00:31:45]MH_SAM_APDU [00:31:45]CAPDU: 80 13 03 00 [00:31:45]Write to MH i2c: E2 08 00 3C 6B 80 13 03 00 00 00 00 00 26 [00:31:45]Write i2c OK [00:31:45]MH_I2C_Read... [00:31:45]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:31:45]Read from MH i2c: E2 [00:31:45]MH_I2C_Read... [00:31:45]Read from MH i2c: E2 FD 00 [00:31:45]MH_I2C_Read... [00:31:45]Read from MH i2c: E2 FD 00 3C 6B 00 C0 04 85 04 BC 04 6E 04 04 00 49 08 00 00 69 04 9F 00 6F 04 04 00 38 08 00 00 B1 04 04 00 12 FB 5A 05 70 04 04 00 C4 A8 76 03 72 04 04 00 4E 52 E4 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 9B 91 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 65 21 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 53 04 02 EF 03 09 00 F6 03 01 90 00 34 [00:31:45]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 49 08 00 00 69 04 9F 00 6F 04 04 00 38 08 00 00 B1 04 04 00 12 FB 5A 05 70 04 04 00 C4 A8 76 03 72 04 04 00 4E 52 E4 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 9B 91 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 65 21 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 53 04 02 EF 03 09 00 F6 03 01 90 00 [00:31:46]wFMCommunicate OK [00:31:46]wFMCommunicate request_size=4 [00:31:46]MH_SAM_APDU [00:31:46]CAPDU: 80 17 00 00 [00:31:46]Write to MH i2c: E2 08 00 3D 6B 80 17 00 00 00 00 00 00 28 [00:31:46]Write i2c OK [00:31:46]MH_I2C_Read... [00:31:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:46]Read from MH i2c: E2 [00:31:46]MH_I2C_Read... [00:31:46]Read from MH i2c: E2 FD 00 [00:31:46]MH_I2C_Read... [00:31:46]Read from MH i2c: E2 FD 00 3D 6B 00 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 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 90 00 87 [00:31:46]RAPDU: 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 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 90 00 [00:31:46]wFMCommunicate OK [00:31:46]wFMCommunicate request_size=4 [00:31:46]MH_SAM_APDU [00:31:46]CAPDU: 80 17 00 00 [00:31:46]Write to MH i2c: E2 08 00 3E 6B 80 17 00 00 00 00 00 00 29 [00:31:46]Write i2c OK [00:31:46]MH_I2C_Read... [00:31:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:46]Read from MH i2c: E2 [00:31:46]MH_I2C_Read... [00:31:46]Read from MH i2c: E2 FD 00 [00:31:46]MH_I2C_Read... [00:31:46]Read from MH i2c: E2 FD 00 3E 6B 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 90 00 CC [00:31:46]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 90 00 [00:31:47]wFMCommunicate OK [00:31:47]wFMCommunicate request_size=4 [00:31:47]MH_SAM_APDU [00:31:47]CAPDU: 80 17 00 00 [00:31:47]Write to MH i2c: E2 08 00 3F 6B 80 17 00 00 00 00 00 00 2A [00:31:47]OFD Sender: No OFD packet to send [00:31:47]Write i2c OK [00:31:47]MH_I2C_Read... [00:31:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:47]Read from MH i2c: E2 [00:31:47]MH_I2C_Read... [00:31:47]Read from MH i2c: E2 FD 00 [00:31:47]MH_I2C_Read... [00:31:47]Read from MH i2c: E2 FD 00 3F 6B 00 01 00 04 F7 03 00 00 EF 03 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 90 00 A2 [00:31:47]RAPDU: 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:31:47]wFMCommunicate OK [00:31:47]wFMCommunicate request_size=4 [00:31:47]MH_SAM_APDU [00:31:47]CAPDU: 80 17 00 00 [00:31:47]Write to MH i2c: E2 08 00 40 6B 80 17 00 00 00 00 00 00 2B [00:31:47]Write i2c OK [00:31:47]MH_I2C_Read... [00:31:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [00:31:47]Read from MH i2c: E2 [00:31:47]MH_I2C_Read... [00:31:47]Read from MH i2c: E2 DD 00 [00:31:47]MH_I2C_Read... [00:31:47]Read from MH i2c: E2 DD 00 40 6B 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 13 [00:31:48]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:31:48]wFMCommunicate OK [00:31:48]SAM_PROTO_GetFMData done [00:31:48]requested_item fm.sale_refund.total is exist - process it [00:31:48]requested_item fm.buy.total is exist - process it [00:31:48]requested_item shift.sale.total is exist - process it [00:31:48]SAM_PROTO_GetShiftData [00:31:48]wFMCommunicate request_size=4 [00:31:48]MH_SAM_APDU [00:31:48]CAPDU: 80 13 02 00 [00:31:48]Write to MH i2c: E2 08 00 41 6B 80 13 02 00 00 00 00 00 2A [00:31:48]Write i2c OK [00:31:48]MH_I2C_Read... [00:31:48]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:31:48]Read from MH i2c: E2 [00:31:48]MH_I2C_Read... [00:31:48]Read from MH i2c: E2 FD 00 [00:31:48]MH_I2C_Read... [00:31:48]Read from MH i2c: E2 FD 00 41 6B 00 A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 9D [00:31:48]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:31:48]wFMCommunicate OK [00:31:48]wFMCommunicate request_size=4 [00:31:48]MH_SAM_APDU [00:31:48]CAPDU: 80 17 00 00 [00:31:48]Write to MH i2c: E2 08 00 42 6B 80 17 00 00 00 00 00 00 2D [00:31:49]Write i2c OK [00:31:49]MH_I2C_Read... [00:31:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:49]Read from MH i2c: E2 [00:31:49]MH_I2C_Read... [00:31:49]Read from MH i2c: E2 FD 00 [00:31:49]MH_I2C_Read... [00:31:49]Read from MH i2c: E2 FD 00 42 6B 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 35 [00:31:49]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:31:49]wFMCommunicate OK [00:31:49]wFMCommunicate request_size=4 [00:31:49]MH_SAM_APDU [00:31:49]CAPDU: 80 17 00 00 [00:31:49]Write to MH i2c: E2 08 00 43 6B 80 17 00 00 00 00 00 00 2E [00:31:49]Write i2c OK [00:31:49]MH_I2C_Read... [00:31:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:49]Read from MH i2c: E2 [00:31:49]MH_I2C_Read... [00:31:49]Read from MH i2c: E2 FD 00 [00:31:49]MH_I2C_Read... [00:31:49]Read from MH i2c: E2 FD 00 43 6B 00 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 00 [00:31:49]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:31:50]wFMCommunicate OK [00:31:50]wFMCommunicate request_size=4 [00:31:50]MH_SAM_APDU [00:31:50]CAPDU: 80 17 00 00 [00:31:50]Write to MH i2c: E2 08 00 44 6B 80 17 00 00 00 00 00 00 2F [00:31:50]Write i2c OK [00:31:50]MH_I2C_Read... [00:31:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:50]Read from MH i2c: E2 [00:31:50]MH_I2C_Read... [00:31:50]Read from MH i2c: E2 FD 00 [00:31:50]MH_I2C_Read... [00:31:50]Read from MH i2c: E2 FD 00 44 6B 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 A1 [00:31:50]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:31:50]wFMCommunicate OK [00:31:50]wFMCommunicate request_size=4 [00:31:50]MH_SAM_APDU [00:31:50]CAPDU: 80 17 00 00 [00:31:50]Write to MH i2c: E2 08 00 45 6B 80 17 00 00 00 00 00 00 30 [00:31:50]Write i2c OK [00:31:50]MH_I2C_Read... [00:31:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:31:50]Read from MH i2c: E2 [00:31:50]MH_I2C_Read... [00:31:50]Read from MH i2c: E2 BD 00 [00:31:50]MH_I2C_Read... [00:31:50]Read from MH i2c: E2 BD 00 45 6B 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 16 [00:31:51]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:31:51]wFMCommunicate OK [00:31:51]SAM_PROTO_GetShiftData done [00:31:51]requested_item shift.sale.total_cash is exist - process it [00:31:51]requested_item shift.sale_refund.total is exist - process it [00:31:51]requested_item shift.sale_refund.total_cash is exist - process it [00:31:51]requested_item shift.buy.total is exist - process it [00:31:51]requested_item shift.buy.total_cash is exist - process it [00:31:51]produce_requested_data done [00:31:51]produce_requested_data return {"fm.sale.total":898485.94,"fm.sale_refund.total":12447.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:31:51]process_action_free get_value [00:31:51]json_value_free [00:31:51]json_value_free done [00:31:51]process_json_proto returns [00:31:51]Send response to host [00:31:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":898485.94,"fm.sale_refund.total":12447.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:31:51]free response buf [00:31:51]execute_script done [00:31:51]execute_script returns [00:31:51]free content buf [00:31:51]Sock 9.Close socket [00:31:51]Sock 9.Thread stoped [00:31:51]accept exits with 8 [00:31:51]New connection [00:31:51]New thread 3067317604 created [00:31:51]Thread 3067460964 joined [00:31:51]Waiting for new connection... [00:31:51] Sock 8.Parse request [00:31:51]Sock 8.Check first char [00:31:51]Sock 8.First char is OK [00:31:51]request: POST /json_proto HTTP/1.0 [00:31:51]Method: POST [00:31:51]URL: /json_proto [00:31:51]Method is POST - this is cgi request [00:31:51]url: /json_proto [00:31:51]query_string will be loaded in cgi processing [00:31:51]execute_cgi json_proto POST (null) [00:31:51]execute_cgi path=json_proto method=POST [00:31:51]POST find Content-Length [00:31:51]Host: 172.17.45.132:8080 [00:31:51]Content-Length: 259 [00:31:51]Content-Type: application/json [00:31:51] [00:31:51]POST finish read [00:31:51]Found Content-Length = 259 [00:31:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u041C\u0430\u043D\u0441\u0443\u0440\u043E\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:31:51]execute_script... [00:31:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u041C\u0430\u043D\u0441\u0443\u0440\u043E\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:31:51]POST & json_proto [00:31:51]process_json_proto [00:31:51]json parsed OK: [00:31:51]protocol is kg_v1.0 [00:31:51]action value=open_shift [00:31:51]process_action open_shift [00:31:51]cmd_open_shift [00:31:51]MH_GetDate [00:31:51]Write to MH i2c: F0 00 00 46 6B A0 [00:31:51]Write i2c OK [00:31:51]MH_I2C_Read... [00:31:51]Read from MH i2c: F0 [00:31:51]MH_I2C_Read... [00:31:51]Read from MH i2c: F0 09 00 [00:31:51]MH_I2C_Read... [00:31:51]Read from MH i2c: F0 09 00 46 6B 00 FF E2 A6 66 E3 0B 90 66 7A [00:31:51]GetLastDocTimeStamp 1722213069 [00:31:51]current date 1722213119 [00:31:51]FM_GetShiftState [00:31:51]SAM_PROTO_GetShiftState [00:31:51]wFMCommunicate request_size=4 [00:31:51]MH_SAM_APDU [00:31:51]CAPDU: 80 13 01 00 [00:31:51]Write to MH i2c: E2 08 00 47 6B 80 13 01 00 00 00 00 00 2F [00:31:51]Write i2c OK [00:31:51]MH_I2C_Read... [00:31:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:31:51]Read from MH i2c: E2 [00:31:51]MH_I2C_Read... [00:31:51]Read from MH i2c: E2 0E 00 [00:31:51]MH_I2C_Read... [00:31:51]Read from MH i2c: E2 0E 00 47 6B 00 09 00 00 00 00 00 00 00 00 00 00 90 00 3A [00:31:51]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:31:51]wFMCommunicate OK [00:31:51]SAM_PROTO_GetShiftState done [00:31:51]FM_GetShiftState done [00:31:51]KKMCreateOpenShiftDocument [00:31:51]Load OK [00:31:51]Malloc new data [00:31:51]MH_GetDate [00:31:51]Write to MH i2c: F0 00 00 48 6B A2 [00:31:51]Write i2c OK [00:31:51]MH_I2C_Read... [00:31:51]Read from MH i2c: F0 [00:31:51]MH_I2C_Read... [00:31:51]Read from MH i2c: F0 09 00 [00:31:51]MH_I2C_Read... [00:31:51]Read from MH i2c: F0 09 00 48 6B 00 FF E2 A6 66 E3 0B 90 66 7C [00:31:51]Malloc new data [00:31:51]KKMCreateOpenShiftDocument OK [00:31:51]KKMSetOpenShiftData OK [00:31:51]ProcessDocumentItem done err = 0, tmpTLVsize=201 [00:31:51]tlvbuf is 021BC9D0 [00:31:51]KKMLoadAndSignOpenShiftData [00:31:51]SAM_PROTO_ProcessDocument [00:31:51]wFMCommunicate request_size=9 [00:31:51]MH_SAM_APDU [00:31:51]CAPDU: 80 15 01 00 04 02 00 C9 00 [00:31:51]Write to MH i2c: E2 0C 00 49 6B 80 15 01 00 04 00 02 00 C9 00 00 00 06 [00:31:51]Write i2c OK [00:31:51]MH_I2C_Read... [00:31:51]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:31:51]Read from MH i2c: E2 [00:31:51]MH_I2C_Read... [00:31:51]Read from MH i2c: E2 03 00 [00:31:51]MH_I2C_Read... [00:31:51]Read from MH i2c: E2 03 00 49 6B 00 90 00 28 [00:31:51]RAPDU: 90 00 [00:31:51]wFMCommunicate OK [00:31:51]wFMCommunicate request_size=23 [00:31:51]MH_SAM_APDU [00:31:51]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:31:51]Write to MH i2c: E2 1A 00 4A 6B 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 2A [00:31:51]Write i2c OK [00:31:51]MH_I2C_Read... [00:31:51]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:31:51]Read from MH i2c: E2 [00:31:51]MH_I2C_Read... [00:31:51]Read from MH i2c: E2 03 00 [00:31:51]MH_I2C_Read... [00:31:51]Read from MH i2c: E2 03 00 4A 6B 00 90 00 29 [00:31:51]RAPDU: 90 00 [00:31:51]wFMCommunicate OK [00:31:51]wFMCommunicate request_size=30 [00:31:51]MH_SAM_APDU [00:31:51]CAPDU: 80 15 02 00 19 FD 03 15 00 D0 9C D0 B0 D0 BD D1 81 D1 83 D1 80 D0 BE D0 B2 20 D0 90 2E 20 [00:31:51]Write to MH i2c: E2 21 00 4B 6B 80 15 02 00 19 00 FD 03 15 00 D0 9C D0 B0 D0 BD D1 81 D1 83 D1 80 D0 BE D0 B2 20 D0 90 2E 20 00 00 CB [00:31:51]Write i2c OK [00:31:51]MH_I2C_Read... [00:31:51]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:31:51]Read from MH i2c: E2 [00:31:51]MH_I2C_Read... [00:31:51]Read from MH i2c: E2 03 00 [00:31:51]MH_I2C_Read... [00:31:51]Read from MH i2c: E2 03 00 4B 6B 00 90 00 2A [00:31:51]RAPDU: 90 00 [00:31:51]wFMCommunicate OK [00:31:51]wFMCommunicate request_size=89 [00:31:51]MH_SAM_APDU [00:31:51]CAPDU: 80 15 02 00 54 F1 03 50 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 91 D0 B0 D1 82 D0 BA D0 B5 D0 BD 2C 20 D0 BA D0 B2 D0 B0 D1 80 D1 82 D0 B0 D0 BB 20 D0 9A D1 8B D0 B7 D1 8B D0 BB 20 D0 94 D0 BE D0 BD 2C 20 34 30 2E 30 37 34 39 36 30 2C 20 37 30 2E 38 34 30 36 35 30 [00:31:52]Write to MH i2c: E2 5C 00 4C 6B 80 15 02 00 54 00 F1 03 50 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 91 D0 B0 D1 82 D0 BA D0 B5 D0 BD 2C 20 D0 BA D0 B2 D0 B0 D1 80 D1 82 D0 B0 D0 BB 20 D0 9A D1 8B D0 B7 D1 8B D0 BB 20 D0 94 D0 BE D0 BD 2C 20 34 30 2E 30 37 34 39 36 30 2C 20 37 30 2E 38 34 30 36 35 30 00 00 E4 [00:31:52]Write i2c OK [00:31:52]MH_I2C_Read... [00:31:52]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:31:52]OFD Sender: No OFD packet to send [00:31:52]Read from MH i2c: E2 [00:31:52]MH_I2C_Read... [00:31:52]Read from MH i2c: E2 03 00 [00:31:52]MH_I2C_Read... [00:31:52]Read from MH i2c: E2 03 00 4C 6B 00 90 00 2B [00:31:52]RAPDU: 90 00 [00:31:52]wFMCommunicate OK [00:31:52]wFMCommunicate request_size=51 [00:31:52]MH_SAM_APDU [00:31:52]CAPDU: 80 15 02 00 2E A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 32 37 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:31:52]Write to MH i2c: E2 36 00 4D 6B 80 15 02 00 2E 00 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 32 37 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 E4 [00:31:52]Write i2c OK [00:31:52]MH_I2C_Read... [00:31:52]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:31:52]Read from MH i2c: E2 [00:31:52]MH_I2C_Read... [00:31:52]Read from MH i2c: E2 03 00 [00:31:52]MH_I2C_Read... [00:31:52]Read from MH i2c: E2 03 00 4D 6B 00 90 00 2C [00:31:52]RAPDU: 90 00 [00:31:52]wFMCommunicate OK [00:31:52]wFMCommunicate request_size=13 [00:31:52]MH_SAM_APDU [00:31:52]CAPDU: 80 15 02 00 08 F4 03 04 00 FF E2 A6 66 [00:31:52]Write to MH i2c: E2 10 00 4E 6B 80 15 02 00 08 00 F4 03 04 00 FF E2 A6 66 00 00 31 [00:31:52]Write i2c OK [00:31:52]MH_I2C_Read... [00:31:52]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:31:52]Read from MH i2c: E2 [00:31:52]MH_I2C_Read... [00:31:52]Read from MH i2c: E2 03 00 [00:31:52]MH_I2C_Read... [00:31:52]Read from MH i2c: E2 03 00 4E 6B 00 90 00 2D [00:31:52]RAPDU: 90 00 [00:31:52]wFMCommunicate OK [00:31:52]wFMCommunicate request_size=25 [00:31:52]MH_SAM_APDU [00:31:52]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 [00:31:52]Write to MH i2c: E2 1C 00 4F 6B 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 00 00 A8 [00:31:52]Write i2c OK [00:31:52]MH_I2C_Read... [00:31:52]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:31:52]Read from MH i2c: E2 [00:31:52]MH_I2C_Read... [00:31:52]Read from MH i2c: E2 03 00 [00:31:52]MH_I2C_Read... [00:31:52]Read from MH i2c: E2 03 00 4F 6B 00 90 00 2E [00:31:52]RAPDU: 90 00 [00:31:52]wFMCommunicate OK [00:31:52]wFMCommunicate request_size=4 [00:31:52]MH_SAM_APDU [00:31:52]CAPDU: 80 15 03 00 [00:31:52]Write to MH i2c: E2 08 00 50 6B 80 15 03 00 00 00 00 00 3C [00:31:52]Write i2c OK [00:31:52]MH_I2C_Read... [00:31:52]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:31:52]Read from MH i2c: E2 [00:31:52]MH_I2C_Read... [00:31:52]Read from MH i2c: E2 38 00 [00:31:52]MH_I2C_Read... [00:31:52]Read from MH i2c: E2 38 00 50 6B 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 67 08 00 00 0E 04 04 00 0F 00 00 00 35 04 06 00 67 57 CE DC 8B DF 90 00 55 [00:31:52]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 67 08 00 00 0E 04 04 00 0F 00 00 00 35 04 06 00 67 57 CE DC 8B DF 90 00 [00:31:52]wFMCommunicate OK [00:31:52]SAM_PROTO_ProcessDocument answer len = 51 [00:31:52]SAM_PROTO_ProcessDocument done [00:31:52]SetTLVBufToDocument [00:31:52]Processing tag 1209 (04B9) [00:31:52]Malloc new data [00:31:52]Processing tag 1041 (0411) [00:31:52]Processing tag 1040 (0410) [00:31:52]Malloc new data [00:31:52]Processing tag 1038 (040E) [00:31:52]Malloc new data [00:31:52]Processing tag 1077 (0435) [00:31:52]Malloc new data [00:31:52]SetTLVBufToDocument err=0 [00:31:52]KKMLoadAndSignOpenShiftData store KKM data [00:31:52]KKMLoadAndSignOpenShiftData err=0 [00:31:52]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Мансуров А. Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 Место: АЗС № 127 "Партнер Нефть" 29.07.2024 00:31 Смена: 15 РНМ: 0000000000189667 ЗНМ: 0300000161 ФД: 2151 ФМ: 0000000002094248 ФПД: 113626830375903 [00:31:52]StoreToDocumentArchive [00:31:52]shift 15 fd 2151 [00:31:52]Create dir for shift 0015 [00:31:52]save to /storage/0015/doc_00002151 [00:31:52]save last doc name /storage/0015/doc_00002151 to /storage/kkm_last_doc_name [00:31:52]save OK [00:31:52]Clear old archive folders... [00:31:52]Remove dir /storage/0014 [00:31:52]opendir ok [00:31:52]file . [00:31:52]file .. [00:31:52]file doc_00002149 [00:31:52]remove file /storage/0014/doc_00002149 [00:31:52]file doc_00002150 [00:31:52]remove file /storage/0014/doc_00002150 [00:31:52]remove dir /storage/0014 [00:31:52]ProcessDocumentItem done err = 0, tmpTLVsize=252 [00:31:52]tlvbuf is 021BAFD0 [00:31:52]SAM_PROTO_ClearQueue [00:31:52]wFMCommunicate request_size=4 [00:31:52]MH_SAM_APDU [00:31:52]CAPDU: 80 09 00 00 [00:31:52]Write to MH i2c: E2 08 00 51 6B 80 09 00 00 00 00 00 00 2E [00:31:52]Write i2c OK [00:31:52]MH_I2C_Read... [00:31:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:31:53]Read from MH i2c: E2 [00:31:53]MH_I2C_Read... [00:31:53]Read from MH i2c: E2 03 00 [00:31:53]MH_I2C_Read... [00:31:53]Read from MH i2c: E2 03 00 51 6B 00 90 00 30 [00:31:53]RAPDU: 90 00 [00:31:53]wFMCommunicate OK [00:31:53]SAM_PROTO_ClearQueue done [00:31:53]KKMCreateOFDPacket [00:31:53]OFDProtocolAddRootSTLVToBuf [00:31:53]FM_MakeSignedData [00:31:53]FM_MakeSignedData [00:31:53]SAM_PROTO_SignData [00:31:53]wFMCommunicate request_size=4 [00:31:53]MH_SAM_APDU [00:31:53]CAPDU: 80 0D 01 02 [00:31:53]Write to MH i2c: E2 08 00 52 6B 80 0D 01 02 00 00 00 00 36 [00:31:53]Write i2c OK [00:31:53]MH_I2C_Read... [00:31:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:31:53]Read from MH i2c: E2 [00:31:53]MH_I2C_Read... [00:31:53]Read from MH i2c: E2 03 00 [00:31:53]MH_I2C_Read... [00:31:53]Read from MH i2c: E2 03 00 52 6B 00 90 00 31 [00:31:53]RAPDU: 90 00 [00:31:53]wFMCommunicate OK [00:31:53]wFMCommunicate request_size=255 [00:31:53]MH_SAM_APDU [00:31:53]CAPDU: 80 0D 02 02 FA 02 00 FC 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 9C D0 B0 D0 BD D1 81 D1 83 D1 80 D0 BE D0 B2 20 D0 90 2E 20 F1 03 50 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 91 D0 B0 D1 82 D0 BA D0 B5 D0 BD 2C 20 D0 BA D0 B2 D0 B0 D1 80 D1 82 D0 B0 D0 BB 20 D0 9A D1 8B D0 B7 D1 8B D0 BB 20 D0 94 D0 BE D0 BD 2C 20 34 30 2E 30 37 34 39 36 30 2C 20 37 30 2E 38 34 30 36 35 30 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 32 37 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 FF E2 A6 66 0E 04 04 00 0F 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 67 08 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 35 04 06 00 [00:31:53]Write to MH i2c: E2 02 01 53 6B 80 0D 02 02 FA 00 02 00 FC 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 9C D0 B0 D0 BD D1 81 D1 83 D1 80 D0 BE D0 B2 20 D0 90 2E 20 F1 03 50 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 91 D0 B0 D1 82 D0 BA D0 B5 D0 BD 2C 20 D0 BA D0 B2 D0 B0 D1 80 D1 82 D0 B0 D0 BB 20 D0 9A D1 8B D0 B7 D1 8B D0 BB 20 D0 94 D0 BE D0 BD 2C 20 34 30 2E 30 37 34 39 36 30 2C 20 37 30 2E 38 34 30 36 35 30 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 32 37 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 FF E2 A6 66 0E 04 04 00 0F 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 67 08 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 35 04 06 00 00 00 CE [00:31:53]Write i2c OK [00:31:53]MH_I2C_Read... [00:31:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:31:53]Read from MH i2c: E2 [00:31:53]MH_I2C_Read... [00:31:53]Read from MH i2c: E2 03 00 [00:31:53]MH_I2C_Read... [00:31:53]Read from MH i2c: E2 03 00 53 6B 00 90 00 32 [00:31:53]RAPDU: 90 00 [00:31:53]wFMCommunicate OK [00:31:53]wFMCommunicate request_size=11 [00:31:53]MH_SAM_APDU [00:31:53]CAPDU: 80 0D 02 02 06 67 57 CE DC 8B DF [00:31:53]Write to MH i2c: E2 0E 00 54 6B 80 0D 02 02 06 00 67 57 CE DC 8B DF 00 00 17 [00:31:53]Write i2c OK [00:31:53]MH_I2C_Read... [00:31:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:31:53]Read from MH i2c: E2 [00:31:53]MH_I2C_Read... [00:31:53]Read from MH i2c: E2 03 00 [00:31:53]MH_I2C_Read... [00:31:53]Read from MH i2c: E2 03 00 54 6B 00 90 00 33 [00:31:53]RAPDU: 90 00 [00:31:53]wFMCommunicate OK [00:31:53]wFMCommunicate request_size=4 [00:31:53]MH_SAM_APDU [00:31:53]CAPDU: 80 0D 03 02 [00:31:53]Write to MH i2c: E2 08 00 55 6B 80 0D 03 02 00 00 00 00 3B [00:31:53]Write i2c OK [00:31:53]MH_I2C_Read... [00:31:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:31:53]Read from MH i2c: E2 [00:31:53]MH_I2C_Read... [00:31:53]Read from MH i2c: E2 0B 00 [00:31:53]MH_I2C_Read... [00:31:53]Read from MH i2c: E2 0B 00 55 6B 00 7E 3C 4A 16 DC 08 96 5D 90 00 2D [00:31:53]RAPDU: 7E 3C 4A 16 DC 08 96 5D 90 00 [00:31:53]wFMCommunicate OK [00:31:53]SAM_PROTO_SignData done [00:31:53]FM_MakeSignedData done [00:31:53]CreateOFDProtocolMessage [00:31:53]wFMCommunicate request_size=4 [00:31:53]MH_SAM_APDU [00:31:53]CAPDU: 80 11 00 00 [00:31:53]Write to MH i2c: E2 08 00 56 6B 80 11 00 00 00 00 00 00 3B [00:31:53]Write i2c OK [00:31:53]MH_I2C_Read... [00:31:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:31:54]Read from MH i2c: E2 [00:31:54]MH_I2C_Read... [00:31:54]Read from MH i2c: E2 17 00 [00:31:54]MH_I2C_Read... [00:31:54]Read from MH i2c: E2 17 00 56 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 8B [00:31:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [00:31:54]wFMCommunicate OK [00:31:54]CreateOFDProtocolMessage done [00:31:54]OFDSenderStorePacket 2151 [00:31:54]StoreOFDPacket docnum=2151 [00:31:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 01 00 00 E1 E4 08 01 D9 BF 5A 02 01 00 02 00 FC 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 9C D0 B0 D0 BD D1 81 D1 83 D1 80 D0 BE D0 B2 20 D0 90 2E 20 F1 03 50 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 91 D0 B0 D1 82 D0 BA D0 B5 D0 BD 2C 20 D0 BA D0 B2 D0 B0 D1 80 D1 82 D0 B0 D0 BB 20 D0 9A D1 8B D0 B7 D1 8B D0 BB 20 D0 94 D0 BE D0 BD 2C 20 34 30 2E 30 37 34 39 36 30 2C 20 37 30 2E 38 34 30 36 35 30 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 32 37 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 FF E2 A6 66 0E 04 04 00 0F 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 67 08 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 35 04 06 00 67 57 CE DC 8B DF 7E 3C 4A 16 DC 08 96 5D [00:31:54]CheckFolder [00:31:54]dirname=/storage/ofd_packets [00:31:54]CheckFolder done [00:31:54]ProducePacketName [00:31:54]name=ofd_packets/00002151 [00:31:54]NVStorageSaveData ofd_packets/00002151 [00:31:54]File name is /storage/ofd_packets/00002151 [00:31:54]Write 302 bytes [00:31:54]NVStorageSaveData done [00:31:54]OFDSenderStorePacket done [00:31:54]KKMCreateOFDPacket done [00:31:54]NVStorageSaveData kkm_last_timestamp [00:31:54]File name is /storage/kkm_last_timestamp [00:31:54]Write 4 bytes [00:31:54]NVStorageSaveData done [00:31:54]ExternCall_PrintAddStr [00:31:54]wPrintStart [00:31:54]Write to MH i2c: 01 00 00 57 6B C2 [00:31:54]Write i2c OK [00:31:54]MH_I2C_Read... [00:31:54]Read from MH i2c: 01 [00:31:54]MH_I2C_Read... [00:31:54]Read from MH i2c: 01 07 00 [00:31:54]MH_I2C_Read... [00:31:54]Read from MH i2c: 01 07 00 57 6B 00 00 00 00 00 FF 0F D7 [00:31:54]RasterBufferAndPrint [00:31:54]line Отчет об открытии смены [00:31:54]line ФФД: 1.0 [00:31:54]line ИНН: 02508201610067 [00:31:54]line Кассир: Мансуров А. [00:31:54]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [00:31:54]line Место: АЗС № 127 "Партнер Нефть" [00:31:54]line 29.07.2024 00:31 [00:31:54]line Смена: 15 [00:31:54]line РНМ: 0000000000189667 [00:31:54]line ЗНМ: 0300000161 [00:31:54]line ФД: 2151 [00:31:54]line ФМ: 0000000002094248 [00:31:54]line ФПД: 113626830375903 [00:31:54]written 0, free lines is 4095 [00:31:54]OFD Sender: Processing packet 2151 [packets to send 1, broken 0] [00:31:54]ProducePacketName [00:31:54]name=ofd_packets/00002151 [00:31:54]OFD Sender: To server: pG, [00:31:54]CommunicateWithHost lk.salyk.kg:30040 [00:31:54]ConnectInit lk.salyk.kg [00:31:54]Connected sock=10 [00:31:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 01 00 00 E1 E4 08 01 D9 BF 5A 02 01 00 02 00 FC 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 9C D0 B0 D0 BD D1 81 D1 83 D1 80 D0 BE D0 B2 20 D0 90 2E 20 F1 03 50 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 91 D0 B0 D1 82 D0 BA D0 B5 D0 BD 2C 20 D0 BA D0 B2 D0 B0 D1 80 D1 82 D0 B0 D0 BB 20 D0 9A D1 8B D0 B7 D1 8B D0 BB 20 D0 94 D0 BE D0 BD 2C 20 34 30 2E 30 37 34 39 36 30 2C 20 37 30 2E 38 34 30 36 35 30 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 32 37 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 FF E2 A6 66 0E 04 04 00 0F 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 67 08 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 35 04 Write to MH i2c: 06 01 00 00 67 00 57 69 CE 6B DC D4 8B [00:31:54]DF 7E Write i2c OK [00:31:54]3C MH_I2C_Read... [00:31:54]4A Read from MH i2c: 16 01 DC [00:31:54]08 MH_I2C_Read... [00:31:54]96 5D [00:31:54]Read from MH i2c: 01 07 00 [00:31:54]MH_I2C_Read... [00:31:54]Read from MH i2c: 01 07 00 69 6B 00 00 00 00 00 DA 0F C4 [00:31:54]RasterBufferAndPrint [00:31:54]line [00:31:54]line [00:31:54]line [00:31:54]line [00:31:54]line [00:31:54]written 0, free lines is 4076 [00:31:54]MH_Cut [00:31:54]Write to MH i2c: D1 01 00 70 6B 01 AD [00:31:54]Write i2c OK [00:31:54]MH_I2C_Read... [00:31:54]Read from MH i2c: D1 [00:31:54]MH_I2C_Read... [00:31:54]Read from MH i2c: D1 01 00 [00:31:54]MH_I2C_Read... [00:31:54]Read from MH i2c: D1 01 00 70 6B 00 AC [00:31:54]Write to MH i2c: 01 00 00 71 6B DC [00:31:54]Write i2c OK [00:31:54]MH_I2C_Read... [00:31:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 C0 B5 47 00 71 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 *** Cut start [00:31:54]04 00 67 08 00 00 F4 03 04 00 6E 8E A6 66 B6 04 01 00 00 4F 25 31 47 0A 35 ED E6 [00:31:54]CommunicateWithHost err = 0 [00:31:54]CheckOFDResponse [00:31:54]1017 (14) - 77093643461234 [00:31:54]1041 (16) - 0000000002094248 [00:31:54]1040 (4) - 2151 [00:31:54]1012 (4) - 28.07.2024 18:31 [00:31:54]1206 (1) - 0 [00:31:54]OFD Sender: Remove packet 2151 [00:31:54]ProducePacketName [00:31:54]name=ofd_packets/00002151 [00:31:54]NVStorageDeleteData [00:31:54]*** Partial cut [00:31:54]*** CUTSNS_PIN = 1 [00:31:54]*** CUTSNS_PIN = 0 [00:31:55]*** Brake cut motor [00:31:55]OFD Sender: No OFD packet to send [00:31:55]Read from MH i2c: 01 [00:31:55]MH_I2C_Read... [00:31:55]*** Stop cut motor [00:31:55]*** Cut end [00:31:55]Read from MH i2c: 01 07 00 [00:31:55]MH_I2C_Read... [00:31:55]Read from MH i2c: 01 07 00 71 6B 00 00 00 00 00 FF 0F F1 [00:31:55]process_action open_shift done [00:31:55]requested_data is exist [00:31:55]produce_requested_data [00:31:55]requested_item fd.num is exist - process it [00:31:55]SAM_PROTO_GetFieldsCounters [00:31:55]wFMCommunicate request_size=4 [00:31:55]MH_SAM_APDU [00:31:55]CAPDU: 80 13 00 00 [00:31:55]Write to MH i2c: E2 08 00 72 6B 80 13 00 00 00 00 00 00 59 [00:31:55]Write i2c OK [00:31:55]MH_I2C_Read... [00:31:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:31:55]Read from MH i2c: E2 [00:31:55]MH_I2C_Read... [00:31:55]Read from MH i2c: E2 62 00 [00:31:55]MH_I2C_Read... [00:31:55]Read from MH i2c: E2 62 00 72 6B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 67 08 00 00 0E 04 04 00 0F 00 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 01 [00:31:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 67 08 00 00 0E 04 04 00 0F 00 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:31:55]wFMCommunicate OK [00:31:55]SAM_PROTO_GetFieldsCounters done [00:31:55]requested_item shift.num is exist - process it [00:31:55]requested_item shift.opened is exist - process it [00:31:55]req_shift_opened [00:31:55]FM_GetShiftState [00:31:55]SAM_PROTO_GetShiftState [00:31:55]wFMCommunicate request_size=4 [00:31:55]MH_SAM_APDU [00:31:55]CAPDU: 80 13 01 00 [00:31:55]Write to MH i2c: E2 08 00 73 6B 80 13 01 00 00 00 00 00 5B [00:31:55]Write i2c OK [00:31:55]MH_I2C_Read... [00:31:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:31:55]Read from MH i2c: E2 [00:31:55]MH_I2C_Read... [00:31:55]Read from MH i2c: E2 0E 00 [00:31:55]MH_I2C_Read... [00:31:55]Read from MH i2c: E2 0E 00 73 6B 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 54 [00:31:55]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [00:31:55]wFMCommunicate OK [00:31:55]SAM_PROTO_GetShiftState done [00:31:55]FM_GetShiftState done [00:31:55]req_shift_opened done [00:31:55]requested_item shift.open_date is exist - process it [00:31:55]req_shift_open_date [00:31:55]req_shift_open_date done [00:31:55]produce_requested_data done [00:31:55]produce_requested_data return {"fd.num":2151,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [00:31:55]process_action_free open_shift [00:31:55]json_value_free [00:31:55]json_value_free done [00:31:55]process_json_proto returns [00:31:55]Send response to host [00:31:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":2151,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [00:31:55]free response buf [00:31:55]execute_script done [00:31:55]execute_script returns [00:31:55]free content buf [00:31:55]Sock 8.Close socket [00:31:55]Sock 8.Thread stoped [00:31:55]accept exits with 9 [00:31:55]New connection [00:31:55]New thread 3067460964 created [00:31:55]Thread 3067317604 joined [00:31:55]Waiting for new connection... [00:31:55] Sock 9.Parse request [00:31:55]Sock 9.Check first char [00:31:56]Sock 9.First char is OK [00:31:56]request: POST /json_proto HTTP/1.0 [00:31:56]Method: POST [00:31:56]URL: /json_proto [00:31:56]Method is POST - this is cgi request [00:31:56]url: /json_proto [00:31:56]query_string will be loaded in cgi processing [00:31:56]execute_cgi json_proto POST (null) [00:31:56]execute_cgi path=json_proto method=POST [00:31:56]POST find Content-Length [00:31:56]Host: 172.17.45.132:8080 [00:31:56]Content-Length: 331 [00:31:56]Content-Type: application/json [00:31:56] [00:31:56]POST finish read [00:31:56]Found Content-Length = 331 [00:31:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:31:56]execute_script... [00:31:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:31:56]POST & json_proto [00:31:56]process_json_proto [00:31:56]json parsed OK: [00:31:56]protocol is kg_v1.0 [00:31:56]action value=get_value [00:31:56]process_action get_value [00:31:56]cmd_get_value [00:31:56]process_action get_value done [00:31:56]requested_data is exist [00:31:56]produce_requested_data [00:31:56]requested_item fm.sale.total is exist - process it [00:31:56]SAM_PROTO_GetFMData [00:31:56]wFMCommunicate request_size=4 [00:31:56]MH_SAM_APDU [00:31:56]CAPDU: 80 13 03 00 [00:31:56]Write to MH i2c: E2 08 00 74 6B 80 13 03 00 00 00 00 00 5E [00:31:56]Write i2c OK [00:31:56]MH_I2C_Read... [00:31:56]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:31:56]Read from MH i2c: E2 [00:31:56]MH_I2C_Read... [00:31:56]Read from MH i2c: E2 FD 00 [00:31:56]MH_I2C_Read... [00:31:56]Read from MH i2c: E2 FD 00 74 6B 00 C0 04 85 04 BC 04 6E 04 04 00 49 08 00 00 69 04 9F 00 6F 04 04 00 38 08 00 00 B1 04 04 00 12 FB 5A 05 70 04 04 00 C4 A8 76 03 72 04 04 00 4E 52 E4 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 9B 91 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 65 21 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 53 04 02 EF 03 09 00 F6 03 01 90 00 6C [00:31:56]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 49 08 00 00 69 04 9F 00 6F 04 04 00 38 08 00 00 B1 04 04 00 12 FB 5A 05 70 04 04 00 C4 A8 76 03 72 04 04 00 4E 52 E4 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 9B 91 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 65 21 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 53 04 02 EF 03 09 00 F6 03 01 90 00 [00:31:56]wFMCommunicate OK [00:31:56]wFMCommunicate request_size=4 [00:31:56]MH_SAM_APDU [00:31:56]CAPDU: 80 17 00 00 [00:31:56]Write to MH i2c: E2 08 00 75 6B 80 17 00 00 00 00 00 00 60 [00:31:56]Write i2c OK [00:31:56]MH_I2C_Read... [00:31:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:57]Read from MH i2c: E2 [00:31:57]MH_I2C_Read... [00:31:57]Read from MH i2c: E2 FD 00 [00:31:57]MH_I2C_Read... [00:31:57]Read from MH i2c: E2 FD 00 75 6B 00 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 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 90 00 BF [00:31:57]RAPDU: 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 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 90 00 [00:31:57]wFMCommunicate OK [00:31:57]wFMCommunicate request_size=4 [00:31:57]MH_SAM_APDU [00:31:57]CAPDU: 80 17 00 00 [00:31:57]Write to MH i2c: E2 08 00 76 6B 80 17 00 00 00 00 00 00 61 [00:31:57]Write i2c OK [00:31:57]MH_I2C_Read... [00:31:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:57]Read from MH i2c: E2 [00:31:57]MH_I2C_Read... [00:31:57]Read from MH i2c: E2 FD 00 [00:31:57]MH_I2C_Read... [00:31:57]Read from MH i2c: E2 FD 00 76 6B 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 90 00 04 [00:31:58]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 90 00 [00:31:58]wFMCommunicate OK [00:31:58]wFMCommunicate request_size=4 [00:31:58]MH_SAM_APDU [00:31:58]CAPDU: 80 17 00 00 [00:31:58]Write to MH i2c: E2 08 00 77 6B 80 17 00 00 00 00 00 00 62 [00:31:58]Write i2c OK [00:31:58]MH_I2C_Read... [00:31:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:58]Read from MH i2c: E2 [00:31:58]MH_I2C_Read... [00:31:58]Read from MH i2c: E2 FD 00 [00:31:58]MH_I2C_Read... [00:31:58]Read from MH i2c: E2 FD 00 77 6B 00 01 00 04 F7 03 00 00 EF 03 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 90 00 DA [00:31:58]RAPDU: 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:31:58]wFMCommunicate OK [00:31:58]wFMCommunicate request_size=4 [00:31:58]MH_SAM_APDU [00:31:58]CAPDU: 80 17 00 00 [00:31:58]Write to MH i2c: E2 08 00 78 6B 80 17 00 00 00 00 00 00 63 [00:31:58]Write i2c OK [00:31:58]MH_I2C_Read... [00:31:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [00:31:59]Read from MH i2c: E2 [00:31:59]MH_I2C_Read... [00:31:59]Read from MH i2c: E2 DD 00 [00:31:59]MH_I2C_Read... [00:31:59]Read from MH i2c: E2 DD 00 78 6B 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 4B [00:31:59]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:31:59]wFMCommunicate OK [00:31:59]SAM_PROTO_GetFMData done [00:31:59]requested_item fm.sale_refund.total is exist - process it [00:31:59]requested_item fm.buy.total is exist - process it [00:31:59]requested_item shift.sale.total is exist - process it [00:31:59]SAM_PROTO_GetShiftData [00:31:59]wFMCommunicate request_size=4 [00:31:59]MH_SAM_APDU [00:31:59]CAPDU: 80 13 02 00 [00:31:59]Write to MH i2c: E2 08 00 79 6B 80 13 02 00 00 00 00 00 62 [00:31:59]Write i2c OK [00:31:59]MH_I2C_Read... [00:31:59]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:31:59]Read from MH i2c: E2 [00:31:59]MH_I2C_Read... [00:31:59]Read from MH i2c: E2 FD 00 [00:31:59]MH_I2C_Read... [00:31:59]Read from MH i2c: E2 FD 00 79 6B 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 D5 [00:32:00]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:32:00]wFMCommunicate OK [00:32:00]wFMCommunicate request_size=4 [00:32:00]MH_SAM_APDU [00:32:00]CAPDU: 80 17 00 00 [00:32:00]Write to MH i2c: E2 08 00 7A 6B 80 17 00 00 00 00 00 00 65 [00:32:00]Write i2c OK [00:32:00]MH_I2C_Read... [00:32:00]OFD Sender: No OFD packet to send [00:32:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:00]Read from MH i2c: E2 [00:32:00]MH_I2C_Read... [00:32:00]Read from MH i2c: E2 FD 00 [00:32:00]MH_I2C_Read... [00:32:00]Read from MH i2c: E2 FD 00 7A 6B 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 6D [00:32:00]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:32:01]wFMCommunicate OK [00:32:01]wFMCommunicate request_size=4 [00:32:01]MH_SAM_APDU [00:32:01]CAPDU: 80 17 00 00 [00:32:01]Write to MH i2c: E2 08 00 7B 6B 80 17 00 00 00 00 00 00 66 [00:32:01]Write i2c OK [00:32:01]MH_I2C_Read... [00:32:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:01]Read from MH i2c: E2 [00:32:01]MH_I2C_Read... [00:32:01]Read from MH i2c: E2 FD 00 [00:32:01]MH_I2C_Read... [00:32:01]Read from MH i2c: E2 FD 00 7B 6B 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 38 [00:32:01]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:32:01]wFMCommunicate OK [00:32:01]wFMCommunicate request_size=4 [00:32:01]MH_SAM_APDU [00:32:01]CAPDU: 80 17 00 00 [00:32:01]Write to MH i2c: E2 08 00 7C 6B 80 17 00 00 00 00 00 00 67 [00:32:01]Write i2c OK [00:32:01]MH_I2C_Read... [00:32:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:02]Read from MH i2c: E2 [00:32:02]MH_I2C_Read... [00:32:02]Read from MH i2c: E2 FD 00 [00:32:02]MH_I2C_Read... [00:32:02]Read from MH i2c: E2 FD 00 7C 6B 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 D9 [00:32:02]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:32:02]wFMCommunicate OK [00:32:02]wFMCommunicate request_size=4 [00:32:02]MH_SAM_APDU [00:32:02]CAPDU: 80 17 00 00 [00:32:02]Write to MH i2c: E2 08 00 7D 6B 80 17 00 00 00 00 00 00 68 [00:32:02]Write i2c OK [00:32:02]MH_I2C_Read... [00:32:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:32:02]Read from MH i2c: E2 [00:32:02]MH_I2C_Read... [00:32:02]Read from MH i2c: E2 BD 00 [00:32:02]MH_I2C_Read... [00:32:02]Read from MH i2c: E2 BD 00 7D 6B 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 4E [00:32:02]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:32:03]wFMCommunicate OK [00:32:03]SAM_PROTO_GetShiftData done [00:32:03]requested_item shift.sale.total_cash is exist - process it [00:32:03]requested_item shift.sale_refund.total is exist - process it [00:32:03]requested_item shift.sale_refund.total_cash is exist - process it [00:32:03]requested_item shift.buy.total is exist - process it [00:32:03]requested_item shift.buy.total_cash is exist - process it [00:32:03]produce_requested_data done [00:32:03]produce_requested_data return {"fm.sale.total":898485.94,"fm.sale_refund.total":12447.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:32:03]process_action_free get_value [00:32:03]json_value_free [00:32:03]json_value_free done [00:32:03]process_json_proto returns [00:32:03]Send response to host [00:32:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":898485.94,"fm.sale_refund.total":12447.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:32:03]free response buf [00:32:03]execute_script done [00:32:03]execute_script returns [00:32:03]free content buf [00:32:03]Sock 9.Close socket [00:32:03]Sock 9.Thread stoped [00:32:05]OFD Sender: No OFD packet to send [00:32:10]OFD Sender: No OFD packet to send [00:32:15]OFD Sender: No OFD packet to send [00:32:20]OFD Sender: No OFD packet to send [00:32:25]OFD Sender: No OFD packet to send [00:32:30]OFD Sender: No OFD packet to send [00:32:35]OFD Sender: No OFD packet to send [00:32:40]OFD Sender: No OFD packet to send [00:32:45]OFD Sender: No OFD packet to send [00:32:50]OFD Sender: No OFD packet to send [00:32:55]OFD Sender: No OFD packet to send [00:33:00]OFD Sender: No OFD packet to send [00:33:05]OFD Sender: No OFD packet to send [00:33:10]OFD Sender: No OFD packet to send [00:33:15]OFD Sender: No OFD packet to send [00:33:20]OFD Sender: No OFD packet to send [00:33:25]OFD Sender: No OFD packet to send [00:33:30]OFD Sender: No OFD packet to send [00:33:35]OFD Sender: No OFD packet to send [00:33:40]OFD Sender: No OFD packet to send [00:33:45]OFD Sender: No OFD packet to send [00:33:50]OFD Sender: No OFD packet to send [00:33:55]OFD Sender: No OFD packet to send [00:34:00]OFD Sender: No OFD packet to send [00:34:05]OFD Sender: No OFD packet to send [00:34:10]OFD Sender: No OFD packet to send [00:34:15]OFD Sender: No OFD packet to send [00:34:20]OFD Sender: No OFD packet to send [00:34:25]OFD Sender: No OFD packet to send [00:34:30]OFD Sender: No OFD packet to send [00:34:35]OFD Sender: No OFD packet to send [00:34:40]OFD Sender: No OFD packet to send [00:34:45]OFD Sender: No OFD packet to send [00:34:50]OFD Sender: No OFD packet to send [00:34:55]OFD Sender: No OFD packet to send [00:35:00]OFD Sender: No OFD packet to send [00:35:05]OFD Sender: No OFD packet to send [00:35:10]OFD Sender: No OFD packet to send [00:35:15]OFD Sender: No OFD packet to send [00:35:20]OFD Sender: No OFD packet to send [00:35:25]OFD Sender: No OFD packet to send [00:35:30]OFD Sender: No OFD packet to send [00:35:35]OFD Sender: No OFD packet to send [00:35:40]OFD Sender: No OFD packet to send [00:35:45]OFD Sender: No OFD packet to send [00:35:50]OFD Sender: No OFD packet to send [00:35:55]OFD Sender: No OFD packet to send [00:36:00]OFD Sender: No OFD packet to send [00:36:05]OFD Sender: No OFD packet to send [00:36:10]OFD Sender: No OFD packet to send [00:36:15]OFD Sender: No OFD packet to send [00:36:20]OFD Sender: No OFD packet to send [00:36:25]OFD Sender: No OFD packet to send [00:36:30]OFD Sender: No OFD packet to send [00:36:35]OFD Sender: No OFD packet to send [00:36:40]OFD Sender: No OFD packet to send [00:36:45]OFD Sender: No OFD packet to send [00:36:50]OFD Sender: No OFD packet to send [00:36:55]OFD Sender: No OFD packet to send [00:37:00]OFD Sender: No OFD packet to send [00:37:05]OFD Sender: No OFD packet to send [00:37:10]OFD Sender: No OFD packet to send [00:37:15]OFD Sender: No OFD packet to send [00:37:20]OFD Sender: No OFD packet to send [00:37:25]OFD Sender: No OFD packet to send [00:37:30]OFD Sender: No OFD packet to send [00:37:35]OFD Sender: No OFD packet to send [00:37:40]OFD Sender: No OFD packet to send [00:37:45]OFD Sender: No OFD packet to send [00:37:50]OFD Sender: No OFD packet to send [00:37:55]OFD Sender: No OFD packet to send [00:38:00]OFD Sender: No OFD packet to send [00:38:05]OFD Sender: No OFD packet to send [00:38:10]OFD Sender: No OFD packet to send [00:38:15]OFD Sender: No OFD packet to send [00:38:20]OFD Sender: No OFD packet to send [00:38:25]OFD Sender: No OFD packet to send [00:38:30]OFD Sender: No OFD packet to send [00:38:35]OFD Sender: No OFD packet to send [00:38:40]OFD Sender: No OFD packet to send [00:38:45]OFD Sender: No OFD packet to send [00:38:50]OFD Sender: No OFD packet to send [00:38:55]OFD Sender: No OFD packet to send [00:39:00]OFD Sender: No OFD packet to send [00:39:05]OFD Sender: No OFD packet to send [00:39:10]OFD Sender: No OFD packet to send [00:39:15]OFD Sender: No OFD packet to send [00:39:20]OFD Sender: No OFD packet to send [00:39:25]OFD Sender: No OFD packet to send [00:39:30]OFD Sender: No OFD packet to send [00:39:35]OFD Sender: No OFD packet to send [00:39:40]OFD Sender: No OFD packet to send [00:39:45]OFD Sender: No OFD packet to send [00:39:50]OFD Sender: No OFD packet to send [00:39:55]OFD Sender: No OFD packet to send [00:40:00]OFD Sender: No OFD packet to send [00:40:05]OFD Sender: No OFD packet to send [00:40:10]OFD Sender: No OFD packet to send [00:40:15]OFD Sender: No OFD packet to send [00:40:20]OFD Sender: No OFD packet to send [00:40:25]OFD Sender: No OFD packet to send [00:40:30]OFD Sender: No OFD packet to send [00:40:35]OFD Sender: No OFD packet to send [00:40:40]OFD Sender: No OFD packet to send [00:40:45]OFD Sender: No OFD packet to send [00:40:50]OFD Sender: No OFD packet to send [00:40:55]OFD Sender: No OFD packet to send [00:41:00]OFD Sender: No OFD packet to send [00:41:05]OFD Sender: No OFD packet to send [00:41:10]OFD Sender: No OFD packet to send [00:41:15]OFD Sender: No OFD packet to send [00:41:20]OFD Sender: No OFD packet to send [00:41:25]OFD Sender: No OFD packet to send [00:41:30]OFD Sender: No OFD packet to send [00:41:35]OFD Sender: No OFD packet to send [00:41:40]OFD Sender: No OFD packet to send [00:41:45]OFD Sender: No OFD packet to send [00:41:50]OFD Sender: No OFD packet to send [00:41:55]OFD Sender: No OFD packet to send [00:42:00]OFD Sender: No OFD packet to send [00:42:05]OFD Sender: No OFD packet to send [00:42:10]OFD Sender: No OFD packet to send [00:42:16]OFD Sender: No OFD packet to send [00:42:21]OFD Sender: No OFD packet to send [00:42:26]OFD Sender: No OFD packet to send [00:42:31]OFD Sender: No OFD packet to send [00:42:36]OFD Sender: No OFD packet to send [00:42:41]OFD Sender: No OFD packet to send [00:42:45]accept exits with 8 [00:42:45]New connection [00:42:45]New thread 3067317604 created [00:42:45]Thread 3067460964 joined [00:42:45]Waiting for new connection... [00:42:45] Sock 8.Parse request [00:42:45]Sock 8.Check first char [00:42:45]Sock 8.First char is OK [00:42:45]request: POST /json_proto HTTP/1.0 [00:42:45]Method: POST [00:42:45]URL: /json_proto [00:42:45]Method is POST - this is cgi request [00:42:45]url: /json_proto [00:42:45]query_string will be loaded in cgi processing [00:42:45]execute_cgi json_proto POST (null) [00:42:45]execute_cgi path=json_proto method=POST [00:42:45]POST find Content-Length [00:42:45]Host: 172.17.45.132:8080 [00:42:45]Content-Length: 683 [00:42:45]Content-Type: application/json [00:42:45] [00:42:45]POST finish read [00:42:45]Found Content-Length = 683 [00:42:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126445", "tax_sys" : 0, "items" : [ { "code": "4870002328398", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043C\u044F\u0442\u0430 \u041F\u042D\u0422 1\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:42:45]execute_script... [00:42:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126445", "tax_sys" : 0, "items" : [ { "code": "4870002328398", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043C\u044F\u0442\u0430 \u041F\u042D\u0422 1\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:42:45]POST & json_proto [00:42:45]process_json_proto [00:42:45]json parsed OK: [00:42:45]protocol is kg_v1.0 [00:42:45]action value=close_receipt [00:42:45]process_action close_receipt [00:42:45]cmd_close_receipt [00:42:45]MH_GetDate [00:42:45]Write to MH i2c: F0 00 00 7E 6B D8 [00:42:45]Write i2c OK [00:42:45]MH_I2C_Read... [00:42:45]Read from MH i2c: F0 [00:42:45]MH_I2C_Read... [00:42:45]Read from MH i2c: F0 09 00 [00:42:45]MH_I2C_Read... [00:42:45]Read from MH i2c: F0 09 00 7E 6B 00 8D E5 A6 66 E3 0B 90 66 43 [00:42:45]GetLastDocTimeStamp 1722213119 [00:42:45]current date 1722213773 [00:42:45]FM_GetShiftState [00:42:45]SAM_PROTO_GetShiftState [00:42:45]wFMCommunicate request_size=4 [00:42:45]MH_SAM_APDU [00:42:45]CAPDU: 80 13 01 00 [00:42:45]Write to MH i2c: E2 08 00 7F 6B 80 13 01 00 00 00 00 00 67 [00:42:45]Write i2c OK [00:42:45]MH_I2C_Read... [00:42:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:42:45]Read from MH i2c: E2 [00:42:45]MH_I2C_Read... [00:42:45]Read from MH i2c: E2 0E 00 [00:42:45]MH_I2C_Read... [00:42:45]Read from MH i2c: E2 0E 00 7F 6B 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 60 [00:42:45]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [00:42:45]wFMCommunicate OK [00:42:45]SAM_PROTO_GetShiftState done [00:42:45]FM_GetShiftState done [00:42:45]opened in 1722213119 [00:42:45]opened+sec_in_day 1722299519 [00:42:45]quantity*price = 10000 [00:42:45]sum+1 = 10001 [00:42:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 100.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 1 29.07.2024 00:42 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2152 ФПД: 27301114299018 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T004253&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2152&fm=27301114299018&tin=02508201610067®Number=0000000000189667&sum=10000 0 [00:42:46]StoreToDocumentArchive [00:42:46]shift 15 fd 2152 [00:42:46]save to /storage/0015/doc_00002152 [00:42:46]save last doc name /storage/0015/doc_00002152 to /storage/kkm_last_doc_name [00:42:46]save OK [00:42:46]Clear old archive folders... [00:42:46]ProcessDocumentItem done err = 0, tmpTLVsize=291 [00:42:46]tlvbuf is 02010D60 [00:42:46]SAM_PROTO_ClearQueue [00:42:46]wFMCommunicate request_size=4 [00:42:46]MH_SAM_APDU [00:42:46]CAPDU: 80 09 00 00 [00:42:46]Write to MH i2c: E2 08 00 8C 6B 80 09 00 00 00 00 00 00 69 [00:42:46]Write i2c OK [00:42:46]MH_I2C_Read... [00:42:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:42:46]Read from MH i2c: E2 [00:42:46]MH_I2C_Read... [00:42:46]Read from MH i2c: E2 03 00 [00:42:46]MH_I2C_Read... [00:42:46]Read from MH i2c: E2 03 00 8C 6B 00 90 00 6B [00:42:46]RAPDU: 90 00 [00:42:46]wFMCommunicate OK [00:42:46]SAM_PROTO_ClearQueue done [00:42:46]KKMCreateOFDPacket [00:42:46]OFDProtocolAddRootSTLVToBuf [00:42:46]FM_MakeSignedData [00:42:46]FM_MakeSignedData [00:42:46]SAM_PROTO_SignData [00:42:46]wFMCommunicate request_size=4 [00:42:46]MH_SAM_APDU [00:42:46]CAPDU: 80 0D 01 02 [00:42:46]Write to MH i2c: E2 08 00 8D 6B 80 0D 01 02 00 00 00 00 71 [00:42:46]Write i2c OK [00:42:46]MH_I2C_Read... [00:42:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:42:46]Read from MH i2c: E2 [00:42:46]MH_I2C_Read... [00:42:46]Read from MH i2c: E2 03 00 [00:42:46]MH_I2C_Read... [00:42:46]Read from MH i2c: E2 03 00 8D 6B 00 90 00 6C [00:42:46]RAPDU: 90 00 [00:42:46]wFMCommunicate OK [00:42:46]wFMCommunicate request_size=255 [00:42:46]MH_SAM_APDU [00:42:46]CAPDU: 80 0D 02 02 FA 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 33 39 38 06 04 31 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 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 8D E5 A6 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 [00:42:46]Write to MH i2c: E2 02 01 8E 6B 80 0D 02 02 FA 00 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 33 39 38 06 04 31 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 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 8D E5 A6 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 00 00 23 [00:42:46]Write i2c OK [00:42:46]MH_I2C_Read... [00:42:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:42:46]Read from MH i2c: E2 [00:42:46]MH_I2C_Read... [00:42:46]Read from MH i2c: E2 03 00 [00:42:46]MH_I2C_Read... [00:42:46]Read from MH i2c: E2 03 00 8E 6B 00 90 00 6D [00:42:46]RAPDU: 90 00 [00:42:46]wFMCommunicate OK [00:42:46]wFMCommunicate request_size=50 [00:42:46]MH_SAM_APDU [00:42:46]CAPDU: 80 0D 02 02 2D 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 68 08 00 00 35 04 06 00 18 D4 89 38 42 8A [00:42:46]Write to MH i2c: E2 35 00 8F 6B 80 0D 02 02 2D 00 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 68 08 00 00 35 04 06 00 18 D4 89 38 42 8A 00 00 C5 [00:42:46]Write i2c OK [00:42:46]MH_I2C_Read... [00:42:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:42:47]Read from MH i2c: E2 [00:42:47]MH_I2C_Read... [00:42:47]Read from MH i2c: E2 03 00 [00:42:47]MH_I2C_Read... [00:42:47]Read from MH i2c: E2 03 00 8F 6B 00 90 00 6E [00:42:47]RAPDU: 90 00 [00:42:47]wFMCommunicate OK [00:42:47]wFMCommunicate request_size=4 [00:42:47]MH_SAM_APDU [00:42:47]CAPDU: 80 0D 03 02 [00:42:47]Write to MH i2c: E2 08 00 90 6B 80 0D 03 02 00 00 00 00 76 [00:42:47]Write i2c OK [00:42:47]MH_I2C_Read... [00:42:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:42:47]Read from MH i2c: E2 [00:42:47]MH_I2C_Read... [00:42:47]Read from MH i2c: E2 0B 00 [00:42:47]MH_I2C_Read... [00:42:47]Read from MH i2c: E2 0B 00 90 6B 00 FE 99 F9 FA C5 E9 93 68 90 00 AA [00:42:47]RAPDU: FE 99 F9 FA C5 E9 93 68 90 00 [00:42:47]wFMCommunicate OK [00:42:47]SAM_PROTO_SignData done [00:42:47]FM_MakeSignedData done [00:42:47]CreateOFDProtocolMessage [00:42:47]wFMCommunicate request_size=4 [00:42:47]MH_SAM_APDU [00:42:47]CAPDU: 80 11 00 00 [00:42:47]Write to MH i2c: E2 08 00 91 6B 80 11 00 00 00 00 00 00 76 [00:42:47]Write i2c OK [00:42:47]MH_I2C_Read... [00:42:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:42:47]Read from MH i2c: E2 [00:42:47]MH_I2C_Read... [00:42:47]Read from MH i2c: E2 17 00 [00:42:47]MH_I2C_Read... [00:42:47]Read from MH i2c: E2 17 00 91 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 C6 [00:42:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [00:42:47]wFMCommunicate OK [00:42:47]CreateOFDProtocolMessage done [00:42:47]OFDSenderStorePacket 2152 [00:42:47]StoreOFDPacket docnum=2152 [00:42:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 37 01 00 00 07 8F 2F 01 80 94 5A 03 01 00 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 33 39 38 06 04 31 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 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 8D E5 A6 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 68 08 00 00 35 04 06 00 18 D4 89 38 42 8A FE 99 F9 FA C5 E9 93 68 [00:42:47]CheckFolder [00:42:47]dirname=/storage/ofd_packets [00:42:47]CheckFolder done [00:42:47]ProducePacketName [00:42:47]name=ofd_packets/00002152 [00:42:47]NVStorageSaveData ofd_packets/00002152 [00:42:47]File name is /storage/ofd_packets/00002152 [00:42:47]Write 341 bytes [00:42:47]NVStorageSaveData done [00:42:47]OFDSenderStorePacket done [00:42:47]KKMCreateOFDPacket done [00:42:47]NVStorageSaveData kkm_last_timestamp [00:42:47]File name is /storage/kkm_last_timestamp [00:42:47]Write 4 bytes [00:42:47]NVStorageSaveData done [00:42:47]ExternCall_PrintAddStr [00:42:47]wPrintStart [00:42:47]Write to MH i2c: 01 00 00 92 6B FD [00:42:47]Write i2c OK [00:42:47]MH_I2C_Read... [00:42:47]Read from MH i2c: 01 [00:42:47]MH_I2C_Read... [00:42:47]Read from MH i2c: 01 07 00 [00:42:47]MH_I2C_Read... [00:42:47]Read from MH i2c: 01 07 00 92 6B 00 00 00 00 00 FF 0F 12 [00:42:47]RasterBufferAndPrint [00:42:47]line Счет N : (3)126445 [00:42:47]line ИНН: 02508201610067 [00:42:47]line Контрольно-Кассовый Чек [00:42:47]line ПРОДАЖА [00:42:47]line Товар: 4870002328398 [00:42:47]line Вода ASU пит н.газ мята ПЭТ 1л [00:42:47]line 1.000 * 100.00 [00:42:47]line = 100.00 [00:42:47]line НДС 12% НСП 1% [00:42:47]line > о реализуемом товаре [00:42:47]line ИТОГО: 100.00 [00:42:47]line НСП 1% : 0.88 [00:42:47]line НДС 12% : 10.62 [00:42:47]line Наличными: 100.00 [00:42:47]line Безнал.: 0.00 [00:42:47]line Место: АЗС № 127 "Партнер Нефть" [00:42:47]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [00:42:47]line СНО: Общий режим [00:42:47]line Чек 1 29.07.2024 00:42 [00:42:47]line Смена: 15 ФФД: 1.0 [00:42:47]line ЗНМ: 0300000161 [00:42:47]line РНМ: 0000000000189667 [00:42:47]line Версия ККМ: v1.0 [00:42:47]line ФМ: 0000000002094248 [00:42:47]line ФД: 2152 [00:42:47]line ФПД: 27301114299018 [00:42:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T004253&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2152&fm=27301114299018&tin=02508201610067®Number=0000000000189667&sum=10000 [00:42:47]line 0 [00:42:47]OFD Sender: Processing packet 2152 [packets to send 1, broken 0] [00:42:47]ProducePacketName [00:42:47]name=ofd_packets/00002152 [00:42:47]OFD Sender: To server: pG, [00:42:47]CommunicateWithHost lk.salyk.kg:30040 [00:42:47]ConnectInit lk.salyk.kg [00:42:47]written 0, free lines is 4095 [00:42:47]Connected sock=10 [00:42:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 37 01 00 00 07 8F 2F 01 80 94 5A 03 01 00 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 33 39 38 06 04 31 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 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 8D E5 A6 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 68 08 00 00 35 04 06 00 18 D4 89 38 42 8A FE 99 F9 FA C5 E9 93 68 [00:42:47]Write to MH i2c: 01 00 00 BB 6B 26 [00:42:47]Write i2c OK [00:42:47]MH_I2C_Read... [00:42:47]Read from MH i2c: 01 [00:42:47]MH_I2C_Read... [00:42:47]Read from MH i2c: 01 07 00 [00:42:47]MH_I2C_Read... [00:42:47]Read from MH i2c: 01 07 00 BB 6B 00 00 00 00 00 EF 0C 28 [00:42:47]RasterBufferAndPrint [00:42:47]line [00:42:47]line [00:42:47]line [00:42:47]line [00:42:47]line [00:42:47]written 0, free lines is 3320 [00:42:47]MH_Cut [00:42:47]Write to MH i2c: D1 01 00 C2 6B 01 FF [00:42:47]Write i2c OK [00:42:47]MH_I2C_Read... [00:42:47]Read from MH i2c: D1 [00:42:47]MH_I2C_Read... [00:42:47]Read from MH i2c: D1 01 00 [00:42:47]MH_I2C_Read... [00:42:47]Read from MH i2c: D1 01 00 C2 6B 00 FE [00:42:47]Write to MH i2c: 01 00 00 C3 6B 2E [00:42:47]Write i2c OK [00:42:47]MH_I2C_Read... [00:42:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 64 41 47 00 88 E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 68 08 00 00 F4 03 04 00 FB 90 A6 66 B6 04 01 00 00 9B 85 04 C2 E4 5A 95 D3 [00:42:47]CommunicateWithHost err = 0 [00:42:47]CheckOFDResponse [00:42:47]1017 (14) - 77093643461234 [00:42:47]1041 (16) - 0000000002094248 [00:42:47]1040 (4) - 2152 [00:42:47]1012 (4) - 28.07.2024 18:42 [00:42:47]1206 (1) - 0 [00:42:47]OFD Sender: Remove packet 2152 [00:42:47]ProducePacketName [00:42:47]name=ofd_packets/00002152 [00:42:47]NVStorageDeleteData [00:42:48]OFD Sender: No OFD packet to send [00:42:48]*** Cut start [00:42:48]*** Partial cut [00:42:48]*** CUTSNS_PIN = 1 [00:42:48]*** CUTSNS_PIN = 0 [00:42:48]*** Brake cut motor [00:42:49]Read from MH i2c: 01 [00:42:49]MH_I2C_Read... [00:42:49]*** Stop cut motor [00:42:49]*** Cut end [00:42:49]Read from MH i2c: 01 07 00 [00:42:49]MH_I2C_Read... [00:42:49]Read from MH i2c: 01 07 00 C3 6B 00 00 00 00 00 FF 0F 43 [00:42:49]process_action close_receipt done [00:42:49]requested_data is exist [00:42:49]produce_requested_data [00:42:49]requested_item fm.sn is exist - process it [00:42:49]wFMCommunicate request_size=4 [00:42:49]MH_SAM_APDU [00:42:49]CAPDU: 80 11 00 00 [00:42:49]Write to MH i2c: E2 08 00 C4 6B 80 11 00 00 00 00 00 00 A9 [00:42:49]Write i2c OK [00:42:49]MH_I2C_Read... [00:42:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:42:49]Read from MH i2c: E2 [00:42:49]MH_I2C_Read... [00:42:49]Read from MH i2c: E2 17 00 [00:42:49]MH_I2C_Read... [00:42:49]Read from MH i2c: E2 17 00 C4 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 F9 [00:42:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [00:42:49]wFMCommunicate OK [00:42:49]requested_item fd.num is exist - process it [00:42:49]SAM_PROTO_GetFieldsCounters [00:42:49]wFMCommunicate request_size=4 [00:42:49]MH_SAM_APDU [00:42:49]CAPDU: 80 13 00 00 [00:42:49]Write to MH i2c: E2 08 00 C5 6B 80 13 00 00 00 00 00 00 AC [00:42:49]Write i2c OK [00:42:49]MH_I2C_Read... [00:42:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:42:49]Read from MH i2c: E2 [00:42:49]MH_I2C_Read... [00:42:49]Read from MH i2c: E2 62 00 [00:42:49]MH_I2C_Read... [00:42:49]Read from MH i2c: E2 62 00 C5 6B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 68 08 00 00 0E 04 04 00 0F 00 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 58 [00:42:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 68 08 00 00 0E 04 04 00 0F 00 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:42:49]wFMCommunicate OK [00:42:49]SAM_PROTO_GetFieldsCounters done [00:42:49]requested_item shift.num is exist - process it [00:42:49]requested_item shift.opened is exist - process it [00:42:49]req_shift_opened [00:42:49]FM_GetShiftState [00:42:49]SAM_PROTO_GetShiftState [00:42:49]wFMCommunicate request_size=4 [00:42:49]MH_SAM_APDU [00:42:49]CAPDU: 80 13 01 00 [00:42:49]Write to MH i2c: E2 08 00 C6 6B 80 13 01 00 00 00 00 00 AE [00:42:49]Write i2c OK [00:42:49]MH_I2C_Read... [00:42:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:42:49]Read from MH i2c: E2 [00:42:49]MH_I2C_Read... [00:42:49]Read from MH i2c: E2 0E 00 [00:42:49]MH_I2C_Read... [00:42:49]Read from MH i2c: E2 0E 00 C6 6B 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 A7 [00:42:49]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [00:42:49]wFMCommunicate OK [00:42:49]SAM_PROTO_GetShiftState done [00:42:49]FM_GetShiftState done [00:42:49]req_shift_opened done [00:42:49]requested_item shift.open_date is exist - process it [00:42:49]req_shift_open_date [00:42:49]req_shift_open_date done [00:42:49]produce_requested_data done [00:42:49]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2152,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [00:42:49]process_action_free close_receipt [00:42:49]json_value_free [00:42:49]json_value_free done [00:42:49]process_json_proto returns [00:42:49]Send response to host [00:42:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2152,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [00:42:49]free response buf [00:42:49]execute_script done [00:42:49]execute_script returns [00:42:49]free content buf [00:42:49]Sock 8.Close socket [00:42:49]Sock 8.Thread stoped [00:42:53]OFD Sender: No OFD packet to send [00:42:58]OFD Sender: No OFD packet to send [00:43:03]OFD Sender: No OFD packet to send [00:43:08]OFD Sender: No OFD packet to send [00:43:13]OFD Sender: No OFD packet to send [00:43:18]OFD Sender: No OFD packet to send [00:43:23]OFD Sender: No OFD packet to send [00:43:28]OFD Sender: No OFD packet to send [00:43:33]OFD Sender: No OFD packet to send [00:43:38]OFD Sender: No OFD packet to send [00:43:43]OFD Sender: No OFD packet to send [00:43:48]OFD Sender: No OFD packet to send [00:43:53]OFD Sender: No OFD packet to send [00:43:58]OFD Sender: No OFD packet to send [00:44:03]OFD Sender: No OFD packet to send [00:49:26]ConnectInit Can't connect to host [00:49:28]OFD Sender: No OFD packet to send [00:49:33]OFD Sender: No OFD packet to send [00:49:38]OFD Sender: No OFD packet to send [00:49:43]OFD Sender: No OFD packet to send [00:49:48]OFD Sender: No OFD packet to send [00:49:53]OFD Sender: No OFD packet to send [00:49:58]OFD Sender: No OFD packet to send [00:50:03]OFD Sender: No OFD packet to send [00:50:08]OFD Sender: No OFD packet to send [00:50:13]OFD Sender: No OFD packet to send [00:50:18]OFD Sender: No OFD packet to send [00:50:23]OFD Sender: No OFD packet to send [00:50:28]OFD Sender: No OFD packet to send [00:50:33]OFD Sender: No OFD packet to send [00:50:38]OFD Sender: No OFD packet to send [00:50:43]OFD Sender: No OFD packet to send [00:50:48]OFD Sender: No OFD packet to send [00:50:53]OFD Sender: No OFD packet to send [00:50:58]OFD Sender: No OFD packet to send [00:51:03]OFD Sender: No OFD packet to send [00:51:08]OFD Sender: No OFD packet to send [00:51:13]OFD Sender: No OFD packet to send [00:51:18]OFD Sender: No OFD packet to send [00:51:23]OFD Sender: No OFD packet to send [00:51:28]OFD Sender: No OFD packet to send [00:51:33]OFD Sender: No OFD packet to send [00:51:38]OFD Sender: No OFD packet to send [00:51:43]OFD Sender: No OFD packet to send [00:51:48]OFD Sender: No OFD packet to send [00:51:53]OFD Sender: No OFD packet to send [00:51:58]OFD Sender: No OFD packet to send [00:52:03]OFD Sender: No OFD packet to send [00:52:08]OFD Sender: No OFD packet to send [00:52:13]OFD Sender: No OFD packet to send [00:52:18]OFD Sender: No OFD packet to send [00:52:23]OFD Sender: No OFD packet to send [00:52:28]OFD Sender: No OFD packet to send [00:52:33]OFD Sender: No OFD packet to send [00:52:38]OFD Sender: No OFD packet to send [00:52:43]OFD Sender: No OFD packet to send [00:52:48]OFD Sender: No OFD packet to send [00:52:53]OFD Sender: No OFD packet to send [00:52:58]OFD Sender: No OFD packet to send [00:53:03]OFD Sender: No OFD packet to send [00:53:08]OFD Sender: No OFD packet to send [00:53:13]OFD Sender: No OFD packet to send [00:53:18]OFD Sender: No OFD packet to send [00:53:23]OFD Sender: No OFD packet to send [00:53:28]OFD Sender: No OFD packet to send [00:53:33]OFD Sender: No OFD packet to send [00:53:38]OFD Sender: No OFD packet to send [00:53:43]OFD Sender: No OFD packet to send [00:53:48]OFD Sender: No OFD packet to send [00:53:53]OFD Sender: No OFD packet to send [00:53:58]OFD Sender: No OFD packet to send [00:54:03]OFD Sender: No OFD packet to send [00:54:08]OFD Sender: No OFD packet to send [00:54:13]OFD Sender: No OFD packet to send [00:54:18]OFD Sender: No OFD packet to send [00:54:23]OFD Sender: No OFD packet to send [00:54:28]OFD Sender: No OFD packet to send [00:54:33]OFD Sender: No OFD packet to send [00:54:38]OFD Sender: No OFD packet to send [00:54:43]OFD Sender: No OFD packet to send [00:54:48]OFD Sender: No OFD packet to send [00:54:54]OFD Sender: No OFD packet to send [00:54:59]OFD Sender: No OFD packet to send [00:55:04]OFD Sender: No OFD packet to send [00:55:09]OFD Sender: No OFD packet to send [00:55:14]OFD Sender: No OFD packet to send [00:55:19]OFD Sender: No OFD packet to send [00:55:24]OFD Sender: No OFD packet to send [00:55:29]OFD Sender: No OFD packet to send [00:55:34]OFD Sender: No OFD packet to send [00:55:39]OFD Sender: No OFD packet to send [00:55:44]OFD Sender: No OFD packet to send [00:55:49]OFD Sender: No OFD packet to send [00:55:54]OFD Sender: No OFD packet to send [00:55:59]OFD Sender: No OFD packet to send [00:56:04]OFD Sender: No OFD packet to send [00:56:09]OFD Sender: No OFD packet to send [00:56:14]OFD Sender: No OFD packet to send [00:56:19]OFD Sender: No OFD packet to send [00:56:24]OFD Sender: No OFD packet to send [00:56:29]OFD Sender: No OFD packet to send [00:56:34]OFD Sender: No OFD packet to send [00:56:39]OFD Sender: No OFD packet to send [00:56:44]OFD Sender: No OFD packet to send [00:56:49]OFD Sender: No OFD packet to send [00:56:54]OFD Sender: No OFD packet to send [00:56:59]OFD Sender: No OFD packet to send [00:57:04]OFD Sender: No OFD packet to send [00:57:09]OFD Sender: No OFD packet to send [00:57:14]OFD Sender: No OFD packet to send [00:57:19]OFD Sender: No OFD packet to send [00:57:24]OFD Sender: No OFD packet to send [00:57:29]OFD Sender: No OFD packet to send [00:57:34]OFD Sender: No OFD packet to send [00:57:39]OFD Sender: No OFD packet to send [00:57:44]OFD Sender: No OFD packet to send [00:57:49]OFD Sender: No OFD packet to send [00:57:54]OFD Sender: No OFD packet to send [00:57:59]OFD Sender: No OFD packet to send [00:58:04]OFD Sender: No OFD packet to send [00:58:09]OFD Sender: No OFD packet to send [00:58:14]OFD Sender: No OFD packet to send [00:58:19]OFD Sender: No OFD packet to send [00:58:24]OFD Sender: No OFD packet to send [00:58:29]OFD Sender: No OFD packet to send [00:58:34]OFD Sender: No OFD packet to send [00:58:39]OFD Sender: No OFD packet to send [00:58:44]OFD Sender: No OFD packet to send [00:58:49]OFD Sender: No OFD packet to send [00:58:54]OFD Sender: No OFD packet to send [00:58:59]OFD Sender: No OFD packet to send [00:59:04]OFD Sender: No OFD packet to send [00:59:09]OFD Sender: No OFD packet to send [00:59:14]OFD Sender: No OFD packet to send [00:59:19]OFD Sender: No OFD packet to send [00:59:24]OFD Sender: No OFD packet to send [00:59:29]OFD Sender: No OFD packet to send [00:59:34]OFD Sender: No OFD packet to send [00:59:39]OFD Sender: No OFD packet to send [00:59:44]OFD Sender: No OFD packet to send [00:59:49]OFD Sender: No OFD packet to send [00:59:54]OFD Sender: No OFD packet to send [00:59:59]OFD Sender: No OFD packet to send [01:00:04]OFD Sender: No OFD packet to send [01:00:09]OFD Sender: No OFD packet to send [01:00:14]OFD Sender: No OFD packet to send [01:00:19]OFD Sender: No OFD packet to send [01:00:24]OFD Sender: No OFD packet to send [01:00:29]OFD Sender: No OFD packet to send [01:00:34]OFD Sender: No OFD packet to send [01:00:39]OFD Sender: No OFD packet to send [01:00:44]OFD Sender: No OFD packet to send [01:00:49]OFD Sender: No OFD packet to send [01:00:54]OFD Sender: No OFD packet to send [01:00:59]OFD Sender: No OFD packet to send [01:01:04]OFD Sender: No OFD packet to send [01:01:09]OFD Sender: No OFD packet to send [01:01:14]OFD Sender: No OFD packet to send [01:01:19]OFD Sender: No OFD packet to send [01:01:24]OFD Sender: No OFD packet to send [01:01:29]OFD Sender: No OFD packet to send [01:01:34]OFD Sender: No OFD packet to send [01:01:39]OFD Sender: No OFD packet to send [01:01:44]OFD Sender: No OFD packet to send [01:01:49]OFD Sender: No OFD packet to send [01:01:54]OFD Sender: No OFD packet to send [01:01:59]OFD Sender: No OFD packet to send [01:02:04]OFD Sender: No OFD packet to send [01:02:09]OFD Sender: No OFD packet to send [01:02:14]OFD Sender: No OFD packet to send [01:02:19]OFD Sender: No OFD packet to send [01:02:24]OFD Sender: No OFD packet to send [01:02:29]OFD Sender: No OFD packet to send [01:02:34]OFD Sender: No OFD packet to send [01:02:39]OFD Sender: No OFD packet to send [01:02:44]OFD Sender: No OFD packet to send [01:02:49]OFD Sender: No OFD packet to send [01:02:54]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:48]accept exits with 9 [01:04:48]New connection [01:04:48]New thread 3067460964 created [01:04:48]Thread 3067317604 joined [01:04:48]Waiting for new connection... [01:04:48] Sock 9.Parse request [01:04:48]Sock 9.Check first char [01:04:48]Sock 9.First char is OK [01:04:48]request: POST /json_proto HTTP/1.0 [01:04:48]Method: POST [01:04:48]URL: /json_proto [01:04:48]Method is POST - this is cgi request [01:04:48]url: /json_proto [01:04:48]query_string will be loaded in cgi processing [01:04:48]execute_cgi json_proto POST (null) [01:04:48]execute_cgi path=json_proto method=POST [01:04:48]POST find Content-Length [01:04:48]Host: 172.17.45.132:8080 [01:04:48]Content-Length: 1263 [01:04:48]Content-Type: application/json [01:04:48] [01:04:48]POST finish read [01:04:48]Found Content-Length = 1263 [01:04:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126446", "tax_sys" : 0, "items" : [ { "code": "4700002085444", "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 }]} ,{ "code": "4600721026714", "name": "\u041F\u0438\u0432\u043E ESSA \u0430\u043D\u0430\u043D\u0430\u0441,\u0433\u0440\u0435\u0439\u043F 6,2% \u0441\u0442 0,5/0,45\u043B", "price" : 137.00, "quantity" : 1.000, "sum" : 137.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" : 351.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:04:48]execute_script... [01:04: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)126446", "tax_sys" : 0, "items" : [ { "code": "4700002085444", "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 }]} ,{ "code": "4600721026714", "name": "\u041F\u0438\u0432\u043E ESSA \u0430\u043D\u0430\u043D\u0430\u0441,\u0433\u0440\u0435\u0439\u043F 6,2% \u0441\u0442 0,5/0,45\u043B", "price" : 137.00, "quantity" : 1.000, "sum" : 137.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" : 351.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:04:48]POST & json_proto [01:04:48]process_json_proto [01:04:48]json parsed OK: [01:04:48]protocol is kg_v1.0 [01:04:48]action value=close_receipt [01:04:48]process_action close_receipt [01:04:48]cmd_close_receipt [01:04:48]MH_GetDate [01:04:48]Write to MH i2c: F0 00 00 C7 6B 21 [01:04:48]Write i2c OK [01:04:48]MH_I2C_Read... [01:04:48]Read from MH i2c: F0 [01:04:48]MH_I2C_Read... [01:04:48]Read from MH i2c: F0 09 00 [01:04:48]MH_I2C_Read... [01:04:48]Read from MH i2c: F0 09 00 C7 6B 00 B9 EA A6 66 E3 0B 90 66 BD [01:04:48]GetLastDocTimeStamp 1722213773 [01:04:48]current date 1722215097 [01:04:48]FM_GetShiftState [01:04:48]SAM_PROTO_GetShiftState [01:04:48]wFMCommunicate request_size=4 [01:04:48]MH_SAM_APDU [01:04:48]CAPDU: 80 13 01 00 [01:04:48]Write to MH i2c: E2 08 00 C8 6B 80 13 01 00 00 00 00 00 B0 [01:04:48]Write i2c OK [01:04:48]MH_I2C_Read... [01:04:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:04:48]Read from MH i2c: E2 [01:04:48]MH_I2C_Read... [01:04:48]Read from MH i2c: E2 0E 00 [01:04:48]MH_I2C_Read... [01:04:48]Read from MH i2c: E2 0E 00 C8 6B 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 A9 [01:04:48]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [01:04:48]wFMCommunicate OK [01:04:48]SAM_PROTO_GetShiftState done [01:04:48]FM_GetShiftState done [01:04:48]opened in 1722213119 [01:04:48]opened+sec_in_day 1722299519 [01:04:48]quantity*price = 20000 [01:04:48]sum+1 = 20001 [01:04:48]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4600721026714 Пиво ESSA ананас,грейп 6,2% ст 0,5/0,45л 1.000 * 137.00 = 137.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000053020015 Бумажные стаканы 250мл 1шт 2.000 * 7.00 = 14.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 351.00 НСП 1% : 3.10 НДС 12% : 37.28 Наличными: 351.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 2 29.07.2024 01:04 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2153 ФПД: 111487137714253 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T010457&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2153&fm=111487137714253&tin=02508201610067®Number=0000000000189667&sum=35100 0 [01:04:49]StoreToDocumentArchive [01:04:49]shift 15 fd 2153 [01:04:49]save to /storage/0015/doc_00002153 [01:04:49]save last doc name /storage/0015/doc_00002153 to /storage/kkm_last_doc_name [01:04:49]save OK [01:04:49]Clear old archive folders... [01:04:49]ProcessDocumentItem done err = 0, tmpTLVsize=530 [01:04:49]tlvbuf is 01F489E0 [01:04:49]SAM_PROTO_ClearQueue [01:04:49]wFMCommunicate request_size=4 [01:04:49]MH_SAM_APDU [01:04:49]CAPDU: 80 09 00 00 [01:04:49]Write to MH i2c: E2 08 00 D5 6B 80 09 00 00 00 00 00 00 B2 [01:04:49]Write i2c OK [01:04:49]MH_I2C_Read... [01:04:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:04:49]Read from MH i2c: E2 [01:04:49]MH_I2C_Read... [01:04:49]Read from MH i2c: E2 03 00 [01:04:49]MH_I2C_Read... [01:04:49]Read from MH i2c: E2 03 00 D5 6B 00 90 00 B4 [01:04:49]RAPDU: 90 00 [01:04:49]wFMCommunicate OK [01:04:49]SAM_PROTO_ClearQueue done [01:04:49]KKMCreateOFDPacket [01:04:49]OFDProtocolAddRootSTLVToBuf [01:04:49]FM_MakeSignedData [01:04:49]FM_MakeSignedData [01:04:49]SAM_PROTO_SignData [01:04:49]wFMCommunicate request_size=4 [01:04:49]MH_SAM_APDU [01:04:49]CAPDU: 80 0D 01 02 [01:04:49]Write to MH i2c: E2 08 00 D6 6B 80 0D 01 02 00 00 00 00 BA [01:04:49]Write i2c OK [01:04:49]MH_I2C_Read... [01:04:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:04:50]Read from MH i2c: E2 [01:04:50]MH_I2C_Read... [01:04:50]Read from MH i2c: E2 03 00 [01:04:50]MH_I2C_Read... [01:04:50]Read from MH i2c: E2 03 00 D6 6B 00 90 00 B5 [01:04:50]RAPDU: 90 00 [01:04:50]wFMCommunicate OK [01:04:50]wFMCommunicate request_size=255 [01:04:50]MH_SAM_APDU [01:04:50]CAPDU: 80 0D 02 02 FA 03 00 12 02 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 35 34 34 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 23 04 7E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 36 37 31 34 06 04 3A 00 D0 9F D0 B8 D0 B2 D0 BE 20 45 53 53 41 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 2C D0 B3 D1 80 D0 B5 D0 B9 D0 BF 20 36 2C 32 25 20 D1 81 D1 82 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 84 35 00 00 00 00 13 04 06 00 84 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 [01:04:50]Write to MH i2c: E2 02 01 D7 6B 80 0D 02 02 FA 00 03 00 12 02 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 35 34 34 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 23 04 7E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 36 37 31 34 06 04 3A 00 D0 9F D0 B8 D0 B2 D0 BE 20 45 53 53 41 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 2C D0 B3 D1 80 D0 B5 D0 B9 D0 BF 20 36 2C 32 25 20 D1 81 D1 82 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 84 35 00 00 00 00 13 04 06 00 84 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 00 E9 [01:04:50]Write i2c OK [01:04:50]MH_I2C_Read... [01:04:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:04:50]Read from MH i2c: E2 [01:04:50]MH_I2C_Read... [01:04:50]Read from MH i2c: E2 03 00 [01:04:50]MH_I2C_Read... [01:04:50]Read from MH i2c: E2 03 00 D7 6B 00 90 00 B6 [01:04:50]RAPDU: 90 00 [01:04:50]wFMCommunicate OK [01:04:50]wFMCommunicate request_size=255 [01:04:50]MH_SAM_APDU [01:04:50]CAPDU: 80 0D 02 02 FA 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 1C 89 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 90 0E 00 00 00 00 07 04 06 00 1C 89 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 B9 EA A6 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 [01:04:50]Write to MH i2c: E2 02 01 D8 6B 80 0D 02 02 FA 00 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 1C 89 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 90 0E 00 00 00 00 07 04 06 00 1C 89 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 B9 EA A6 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 00 00 3E [01:04:50]Write i2c OK [01:04:50]MH_I2C_Read... [01:04:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:04:50]Read from MH i2c: E2 [01:04:50]MH_I2C_Read... [01:04:50]Read from MH i2c: E2 03 00 [01:04:50]MH_I2C_Read... [01:04:50]Read from MH i2c: E2 03 00 D8 6B 00 90 00 B7 [01:04:50]RAPDU: 90 00 [01:04:50]wFMCommunicate OK [01:04:50]wFMCommunicate request_size=39 [01:04:50]MH_SAM_APDU [01:04:50]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 69 08 00 00 35 04 06 00 65 65 9F 3D 90 4D [01:04:50]Write to MH i2c: E2 2A 00 D9 6B 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 69 08 00 00 35 04 06 00 65 65 9F 3D 90 4D 00 00 6A [01:04:50]Write i2c OK [01:04:50]MH_I2C_Read... [01:04:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:04:50]Read from MH i2c: E2 [01:04:50]MH_I2C_Read... [01:04:50]Read from MH i2c: E2 03 00 [01:04:50]MH_I2C_Read... [01:04:50]Read from MH i2c: E2 03 00 D9 6B 00 90 00 B8 [01:04:50]RAPDU: 90 00 [01:04:50]wFMCommunicate OK [01:04:50]wFMCommunicate request_size=4 [01:04:50]MH_SAM_APDU [01:04:50]CAPDU: 80 0D 03 02 [01:04:50]Write to MH i2c: E2 08 00 DA 6B 80 0D 03 02 00 00 00 00 C0 [01:04:50]Write i2c OK [01:04:50]MH_I2C_Read... [01:04:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:04:50]Read from MH i2c: E2 [01:04:50]MH_I2C_Read... [01:04:50]Read from MH i2c: E2 0B 00 [01:04:50]MH_I2C_Read... [01:04:50]Read from MH i2c: E2 0B 00 DA 6B 00 2B E0 94 3E BA FC EB B1 90 00 F0 [01:04:50]RAPDU: 2B E0 94 3E BA FC EB B1 90 00 [01:04:50]wFMCommunicate OK [01:04:50]SAM_PROTO_SignData done [01:04:50]FM_MakeSignedData done [01:04:50]CreateOFDProtocolMessage [01:04:50]wFMCommunicate request_size=4 [01:04:50]MH_SAM_APDU [01:04:50]CAPDU: 80 11 00 00 [01:04:50]Write to MH i2c: E2 08 00 DB 6B 80 11 00 00 00 00 00 00 C0 [01:04:50]Write i2c OK [01:04:50]MH_I2C_Read... [01:04:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:04:50]Read from MH i2c: E2 [01:04:50]MH_I2C_Read... [01:04:50]Read from MH i2c: E2 17 00 [01:04:50]MH_I2C_Read... [01:04:50]Read from MH i2c: E2 17 00 DB 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 10 [01:04:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [01:04:50]wFMCommunicate OK [01:04:50]CreateOFDProtocolMessage done [01:04:50]OFDSenderStorePacket 2153 [01:04:50]StoreOFDPacket docnum=2153 [01:04:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 26 02 00 00 5A BD 1E 02 6C 1C 5A 03 01 00 03 00 12 02 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 35 34 34 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 23 04 7E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 36 37 31 34 06 04 3A 00 D0 9F D0 B8 D0 B2 D0 BE 20 45 53 53 41 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 2C D0 B3 D1 80 D0 B5 D0 B9 D0 BF 20 36 2C 32 25 20 D1 81 D1 82 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 84 35 00 00 00 00 13 04 06 00 84 35 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 1C 89 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 90 0E 00 00 00 00 07 04 06 00 1C 89 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 B9 EA A6 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 69 08 00 00 35 04 06 00 65 65 9F 3D 90 4D 2B E0 94 3E BA FC EB B1 [01:04:50]CheckFolder [01:04:50]dirname=/storage/ofd_packets [01:04:50]CheckFolder done [01:04:50]ProducePacketName [01:04:50]name=ofd_packets/00002153 [01:04:50]NVStorageSaveData ofd_packets/00002153 [01:04:50]File name is /storage/ofd_packets/00002153 [01:04:50]Write 580 bytes [01:04:50]NVStorageSaveData done [01:04:50]OFDSenderStorePacket done [01:04:50]KKMCreateOFDPacket done [01:04:50]NVStorageSaveData kkm_last_timestamp [01:04:50]File name is /storage/kkm_last_timestamp [01:04:50]Write 4 bytes [01:04:50]NVStorageSaveData done [01:04:50]ExternCall_PrintAddStr [01:04:50]wPrintStart [01:04:50]Write to MH i2c: 01 00 00 DC 6B 47 [01:04:50]Write i2c OK [01:04:50]MH_I2C_Read... [01:04:50]Read from MH i2c: 01 [01:04:50]MH_I2C_Read... [01:04:50]Read from MH i2c: 01 07 00 [01:04:50]MH_I2C_Read... [01:04:50]Read from MH i2c: 01 07 00 DC 6B 00 00 00 00 00 FF 0F 5C [01:04:50]RasterBufferAndPrint [01:04:50]line Счет N : (3)126446 [01:04:50]line ИНН: 02508201610067 [01:04:50]line Контрольно-Кассовый Чек [01:04:50]line ПРОДАЖА [01:04:50]line Товар: 4700002085444 [01:04:50]line Водка Белое золото 0,24л [01:04:50]line 1.000 * 200.00 [01:04:50]line = 200.00 [01:04:50]line НДС 12% НСП 1% [01:04:50]line > о реализуемом товаре [01:04:50]line Товар: 4600721026714 [01:04:50]line Пиво ESSA ананас,грейп 6,2% ст 0,5/0,45л [01:04:50]line 1.000 * 137.00 [01:04:50]line = 137.00 [01:04:50]line НДС 12% НСП 1% [01:04:51]line > о реализуемом товаре [01:04:51]line Товар: 2000053020015 [01:04:51]line Бумажные стаканы 250мл 1шт [01:04:51]line 2.000 * 7.00 [01:04:51]line = 14.00 [01:04:51]line НДС 12% НСП 1% [01:04:51]line > о реализуемом товаре [01:04:51]line ИТОГО: 351.00 [01:04:51]line НСП 1% : 3.10 [01:04:51]line НДС 12% : 37.28 [01:04:51]line Наличными: 351.00 [01:04:51]line Безнал.: 0.00 [01:04:51]line Место: АЗС № 127 "Партнер Нефть" [01:04:51]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [01:04:51]line СНО: Общий режим [01:04:51]line Чек 2 29.07.2024 01:04 [01:04:51]line Смена: 15 ФФД: 1.0 [01:04:51]line ЗНМ: 0300000161 [01:04:51]line РНМ: 0000000000189667 [01:04:51]line Версия ККМ: v1.0 [01:04:51]line ФМ: 0000000002094248 [01:04:51]line ФД: 2153 [01:04:51]line ФПД: 111487137714253 [01:04:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T010457&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2153&fm=111487137714253&tin=02508201610067®Number=0000000000189667&sum=35100 [01:04:51]line 0 [01:04:51]OFD Sender: Processing packet 2153 [packets to send 1, broken 0] [01:04:51]ProducePacketName [01:04:51]name=ofd_packets/00002153 [01:04:51]OFD Sender: To server: pG, [01:04:51]CommunicateWithHost lk.salyk.kg:30040 [01:04:51]ConnectInit lk.salyk.kg [01:04:51]written 0, free lines is 4095 [01:04:51]Connected sock=10 [01:04:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 26 02 00 00 5A BD 1E 02 6C 1C 5A 03 01 00 03 00 12 02 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 35 34 34 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 23 04 7E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 36 37 31 34 06 04 3A 00 D0 9F D0 B8 D0 B2 D0 BE 20 45 53 53 41 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 2C D0 B3 D1 80 D0 B5 D0 B9 D0 BF 20 36 2C 32 25 20 D1 81 D1 82 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 84 35 00 00 00 00 13 04 06 00 84 35 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 1C 89 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 90 0E 00 00 00 00 07 04 06 00 1C 89 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 B9 EA A6 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 69 08 00 00 35 04 06 00 65 65 9F 3D 90 4D 2B E0 94 3E BA FC EB B1 [01:04:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 9D 82 47 00 F1 B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 69 08 00 00 F4 03 04 00 27 96 A6 66 B6 04 01 00 00 FB 69 34 74 9A 26 07 9C [01:04:51]CommunicateWithHost err = 0 [01:04:51]CheckOFDResponse [01:04:51]1017 (14) - 77093643461234 [01:04:51]1041 (16) - 0000000002094248 [01:04:51]1040 (4) - 2153 [01:04:51]1012 (4) - 28.07.2024 19:04 [01:04:51]1206 (1) - 0 [01:04:51]OFD Sender: Remove packet 2153 [01:04:51]ProducePacketName [01:04:51]name=ofd_packets/00002153 [01:04:51]NVStorageDeleteData [01:04:51]Write to MH i2c: 01 00 00 12 6C 7E [01:04:51]Write i2c OK [01:04:51]MH_I2C_Read... [01:04:51]Read from MH i2c: 01 [01:04:51]MH_I2C_Read... [01:04:51]Read from MH i2c: 01 07 00 [01:04:51]MH_I2C_Read... [01:04:51]Read from MH i2c: 01 07 00 12 6C 00 00 00 00 00 5C 0C ED [01:04:51]RasterBufferAndPrint [01:04:51]line [01:04:51]line [01:04:51]line [01:04:51]line [01:04:51]line [01:04:51]written 0, free lines is 3173 [01:04:51]MH_Cut [01:04:51]Write to MH i2c: D1 01 00 19 6C 01 57 [01:04:51]Write i2c OK [01:04:51]MH_I2C_Read... [01:04:51]Read from MH i2c: D1 [01:04:51]MH_I2C_Read... [01:04:51]Read from MH i2c: D1 01 00 [01:04:51]MH_I2C_Read... [01:04:51]Read from MH i2c: D1 01 00 19 6C 00 56 [01:04:51]Write to MH i2c: 01 00 00 1A 6C 86 [01:04:51]Write i2c OK [01:04:51]MH_I2C_Read... [01:04:51]OFD Sender: No OFD packet to send [01:04:52]*** Cut start [01:04:52]*** Partial cut [01:04:52]*** CUTSNS_PIN = 1 [01:04:52]*** CUTSNS_PIN = 0 [01:04:52]*** Brake cut motor [01:04:53]Read from MH i2c: 01 [01:04:53]MH_I2C_Read... [01:04:53]*** Stop cut motor [01:04:53]*** Cut end [01:04:53]Read from MH i2c: 01 07 00 [01:04:53]MH_I2C_Read... [01:04:53]Read from MH i2c: 01 07 00 1A 6C 00 00 00 00 00 FF 0F 9B [01:04:53]process_action close_receipt done [01:04:53]requested_data is exist [01:04:53]produce_requested_data [01:04:53]requested_item fm.sn is exist - process it [01:04:53]wFMCommunicate request_size=4 [01:04:53]MH_SAM_APDU [01:04:53]CAPDU: 80 11 00 00 [01:04:53]Write to MH i2c: E2 08 00 1B 6C 80 11 00 00 00 00 00 00 01 [01:04:53]Write i2c OK [01:04:53]MH_I2C_Read... [01:04:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:04:53]Read from MH i2c: E2 [01:04:53]MH_I2C_Read... [01:04:53]Read from MH i2c: E2 17 00 [01:04:53]MH_I2C_Read... [01:04:53]Read from MH i2c: E2 17 00 1B 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 51 [01:04:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [01:04:53]wFMCommunicate OK [01:04:53]requested_item fd.num is exist - process it [01:04:53]SAM_PROTO_GetFieldsCounters [01:04:53]wFMCommunicate request_size=4 [01:04:53]MH_SAM_APDU [01:04:53]CAPDU: 80 13 00 00 [01:04:53]Write to MH i2c: E2 08 00 1C 6C 80 13 00 00 00 00 00 00 04 [01:04:53]Write i2c OK [01:04:53]MH_I2C_Read... [01:04:53]Read from MH i2c: E2 [01:04:53]MH_I2C_Read... [01:04:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:04:53]Read from MH i2c: E2 62 00 [01:04:53]MH_I2C_Read... [01:04:53]Read from MH i2c: E2 62 00 1C 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 69 08 00 00 0E 04 04 00 0F 00 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 B4 [01:04:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 69 08 00 00 0E 04 04 00 0F 00 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 [01:04:53]wFMCommunicate OK [01:04:53]SAM_PROTO_GetFieldsCounters done [01:04:53]requested_item shift.num is exist - process it [01:04:53]requested_item shift.opened is exist - process it [01:04:53]req_shift_opened [01:04:53]FM_GetShiftState [01:04:53]SAM_PROTO_GetShiftState [01:04:53]wFMCommunicate request_size=4 [01:04:53]MH_SAM_APDU [01:04:53]CAPDU: 80 13 01 00 [01:04:53]Write to MH i2c: E2 08 00 1D 6C 80 13 01 00 00 00 00 00 06 [01:04:53]Write i2c OK [01:04:53]MH_I2C_Read... [01:04:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:04:53]Read from MH i2c: E2 [01:04:53]MH_I2C_Read... [01:04:53]Read from MH i2c: E2 0E 00 [01:04:53]MH_I2C_Read... [01:04:53]Read from MH i2c: E2 0E 00 1D 6C 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 FF [01:04:53]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [01:04:53]wFMCommunicate OK [01:04:53]SAM_PROTO_GetShiftState done [01:04:53]FM_GetShiftState done [01:04:53]req_shift_opened done [01:04:53]requested_item shift.open_date is exist - process it [01:04:53]req_shift_open_date [01:04:53]req_shift_open_date done [01:04:53]produce_requested_data done [01:04:53]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2153,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [01:04:53]process_action_free close_receipt [01:04:53]json_value_free [01:04:53]json_value_free done [01:04:53]process_json_proto returns [01:04:53]Send response to host [01:04:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2153,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [01:04:53]free response buf [01:04:53]execute_script done [01:04:53]execute_script returns [01:04:53]free content buf [01:04:53]Sock 9.Close socket [01:04:53]Sock 9.Thread stoped [01:04:56]OFD Sender: No OFD packet to send [01:05:01]OFD Sender: No OFD packet to send [01:05:06]OFD Sender: No OFD packet to send [01:05:11]OFD Sender: No OFD packet to send [01:05:16]OFD Sender: No OFD packet to send [01:05:21]OFD Sender: No OFD packet to send [01:05:26]OFD Sender: No OFD packet to send [01:05:31]OFD Sender: No OFD packet to send [01:05:36]OFD Sender: No OFD packet to send [01:05:41]OFD Sender: No OFD packet to send [01:05:46]OFD Sender: No OFD packet to send [01:05:51]OFD Sender: No OFD packet to send [01:05:56]OFD Sender: No OFD packet to send [01:06:02]OFD Sender: No OFD packet to send [01:06:07]OFD Sender: No OFD packet to send [01:06:12]OFD Sender: No OFD packet to send [01:06:17]OFD Sender: No OFD packet to send [01:06:22]OFD Sender: No OFD packet to send [01:06:27]OFD Sender: No OFD packet to send [01:06:32]OFD Sender: No OFD packet to send [01:06:37]OFD Sender: No OFD packet to send [01:06:42]OFD Sender: No OFD packet to send [01:06:47]OFD Sender: No OFD packet to send [01:06:52]OFD Sender: No OFD packet to send [01:06:57]OFD Sender: No OFD packet to send [01:07:02]OFD Sender: No OFD packet to send [01:07:07]OFD Sender: No OFD packet to send [01:07:12]OFD Sender: No OFD packet to send [01:07:17]OFD Sender: No OFD packet to send [01:07:22]OFD Sender: No OFD packet to send [01:07:27]OFD Sender: No OFD packet to send [01:07:32]OFD Sender: No OFD packet to send [01:07:37]OFD Sender: No OFD packet to send [01:07:42]OFD Sender: No OFD packet to send [01:07:47]OFD Sender: No OFD packet to send [01:07:52]OFD Sender: No OFD packet to send [01:07:57]OFD Sender: No OFD packet to send [01:08:02]OFD Sender: No OFD packet to send [01:08:07]OFD Sender: No OFD packet to send [01:08:12]OFD Sender: No OFD packet to send [01:08:17]OFD Sender: No OFD packet to send [01:08:22]OFD Sender: No OFD packet to send [01:08:27]OFD Sender: No OFD packet to send [01:08:32]OFD Sender: No OFD packet to send [01:08:37]OFD Sender: No OFD packet to send [01:08:42]OFD Sender: No OFD packet to send [01:08:47]OFD Sender: No OFD packet to send [01:08:52]OFD Sender: No OFD packet to send [01:08:57]OFD Sender: No OFD packet to send [01:09:02]OFD Sender: No OFD packet to send [01:09:07]OFD Sender: No OFD packet to send [01:09:12]OFD Sender: No OFD packet to send [01:09:17]OFD Sender: No OFD packet to send [01:09:22]OFD Sender: No OFD packet to send [01:09:27]OFD Sender: No OFD packet to send [01:09:32]OFD Sender: No OFD packet to send [01:09:37]OFD Sender: No OFD packet to send [01:09:42]OFD Sender: No OFD packet to send [01:09:47]OFD Sender: No OFD packet to send [01:09:52]OFD Sender: No OFD packet to send [01:09:57]OFD Sender: No OFD packet to send [01:10:02]OFD Sender: No OFD packet to send [01:10:07]OFD Sender: No OFD packet to send [01:10:12]OFD Sender: No OFD packet to send [01:10:17]OFD Sender: No OFD packet to send [01:10:22]OFD Sender: No OFD packet to send [01:10:27]OFD Sender: No OFD packet to send [01:10:32]OFD Sender: No OFD packet to send [01:10:37]OFD Sender: No OFD packet to send [01:10:42]OFD Sender: No OFD packet to send [01:10:47]OFD Sender: No OFD packet to send [01:10:52]OFD Sender: No OFD packet to send [01:10:57]OFD Sender: No OFD packet to send [01:11:02]OFD Sender: No OFD packet to send [01:11:07]OFD Sender: No OFD packet to send [01:11:12]OFD Sender: No OFD packet to send [01:11:17]OFD Sender: No OFD packet to send [01:11:22]OFD Sender: No OFD packet to send [01:11:27]OFD Sender: No OFD packet to send [01:11:32]OFD Sender: No OFD packet to send [01:11:37]OFD Sender: No OFD packet to send [01:11:42]OFD Sender: No OFD packet to send [01:11:47]OFD Sender: No OFD packet to send [01:11:52]OFD Sender: No OFD packet to send [01:11:57]OFD Sender: No OFD packet to send [01:12:02]OFD Sender: No OFD packet to send [01:12:04]accept exits with 8 [01:12:04]New connection [01:12:04]New thread 3067317604 created [01:12:04]Thread 3067460964 joined [01:12:04]Waiting for new connection... [01:12:04] Sock 8.Parse request [01:12:04]Sock 8.Check first char [01:12:04]Sock 8.First char is OK [01:12:04]request: POST /json_proto HTTP/1.0 [01:12:04]Method: POST [01:12:04]URL: /json_proto [01:12:04]Method is POST - this is cgi request [01:12:04]url: /json_proto [01:12:04]query_string will be loaded in cgi processing [01:12:04]execute_cgi json_proto POST (null) [01:12:04]execute_cgi path=json_proto method=POST [01:12:04]POST find Content-Length [01:12:04]Host: 172.17.45.132:8080 [01:12:04]Content-Length: 787 [01:12:04]Content-Type: application/json [01:12:04] [01:12:04]POST finish read [01:12:04]Found Content-Length = 787 [01:12:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126447", "tax_sys" : 0, "items" : [ { "code": "4640030092499", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE SENSE Himalaya", "price" : 150.00, "quantity" : 1.000, "sum" : 150.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" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:12:04]execute_script... [01:12: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)126447", "tax_sys" : 0, "items" : [ { "code": "4640030092499", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE SENSE Himalaya", "price" : 150.00, "quantity" : 1.000, "sum" : 150.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" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:12:04]POST & json_proto [01:12:04]process_json_proto [01:12:04]json parsed OK: [01:12:04]protocol is kg_v1.0 [01:12:04]action value=close_receipt [01:12:04]process_action close_receipt [01:12:04]cmd_close_receipt [01:12:04]MH_GetDate [01:12:04]Write to MH i2c: F0 00 00 1E 6C 79 [01:12:04]Write i2c OK [01:12:04]MH_I2C_Read... [01:12:04]Read from MH i2c: F0 [01:12:04]MH_I2C_Read... [01:12:04]Read from MH i2c: F0 09 00 [01:12:04]MH_I2C_Read... [01:12:04]Read from MH i2c: F0 09 00 1E 6C 00 6C EC A6 66 E3 0B 90 66 CA [01:12:04]GetLastDocTimeStamp 1722215097 [01:12:04]current date 1722215532 [01:12:04]FM_GetShiftState [01:12:04]SAM_PROTO_GetShiftState [01:12:04]wFMCommunicate request_size=4 [01:12:04]MH_SAM_APDU [01:12:04]CAPDU: 80 13 01 00 [01:12:04]Write to MH i2c: E2 08 00 1F 6C 80 13 01 00 00 00 00 00 08 [01:12:04]Write i2c OK [01:12:04]MH_I2C_Read... [01:12:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:12:04]Read from MH i2c: E2 [01:12:04]MH_I2C_Read... [01:12:04]Read from MH i2c: E2 0E 00 [01:12:04]MH_I2C_Read... [01:12:04]Read from MH i2c: E2 0E 00 1F 6C 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 01 [01:12:04]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [01:12:04]wFMCommunicate OK [01:12:04]SAM_PROTO_GetShiftState done [01:12:04]FM_GetShiftState done [01:12:04]opened in 1722213119 [01:12:04]opened+sec_in_day 1722299519 [01:12:04]quantity*price = 15000 [01:12:04]sum+1 = 15001 [01:12:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 0.00 Безнал.: 150.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 3 29.07.2024 01:12 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2154 ФПД: 266484325797586 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T011212&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2154&fm=266484325797586&tin=02508201610067®Number=0000000000189667&sum=15000 0 [01:12:05]StoreToDocumentArchive [01:12:05]shift 15 fd 2154 [01:12:05]save to /storage/0015/doc_00002154 [01:12:05]save last doc name /storage/0015/doc_00002154 to /storage/kkm_last_doc_name [01:12:05]save OK [01:12:05]Clear old archive folders... [01:12:05]ProcessDocumentItem done err = 0, tmpTLVsize=278 [01:12:05]tlvbuf is 02010B40 [01:12:05]SAM_PROTO_ClearQueue [01:12:05]wFMCommunicate request_size=4 [01:12:05]MH_SAM_APDU [01:12:05]CAPDU: 80 09 00 00 [01:12:05]Write to MH i2c: E2 08 00 2C 6C 80 09 00 00 00 00 00 00 0A [01:12:05]Write i2c OK [01:12:05]MH_I2C_Read... [01:12:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:12:05]Read from MH i2c: E2 [01:12:05]MH_I2C_Read... [01:12:05]Read from MH i2c: E2 03 00 [01:12:05]MH_I2C_Read... [01:12:05]Read from MH i2c: E2 03 00 2C 6C 00 90 00 0C [01:12:05]RAPDU: 90 00 [01:12:05]wFMCommunicate OK [01:12:05]SAM_PROTO_ClearQueue done [01:12:05]KKMCreateOFDPacket [01:12:05]OFDProtocolAddRootSTLVToBuf [01:12:05]FM_MakeSignedData [01:12:05]FM_MakeSignedData [01:12:05]SAM_PROTO_SignData [01:12:05]wFMCommunicate request_size=4 [01:12:05]MH_SAM_APDU [01:12:05]CAPDU: 80 0D 01 02 [01:12:05]Write to MH i2c: E2 08 00 2D 6C 80 0D 01 02 00 00 00 00 12 [01:12:05]Write i2c OK [01:12:05]MH_I2C_Read... [01:12:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:12:05]Read from MH i2c: E2 [01:12:05]MH_I2C_Read... [01:12:05]Read from MH i2c: E2 03 00 [01:12:05]MH_I2C_Read... [01:12:05]Read from MH i2c: E2 03 00 2D 6C 00 90 00 0D [01:12:05]RAPDU: 90 00 [01:12:05]wFMCommunicate OK [01:12:05]wFMCommunicate request_size=255 [01:12:05]MH_SAM_APDU [01:12:05]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 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 6C EC A6 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 [01:12:05]Write to MH i2c: E2 02 01 2E 6C 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 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 6C EC A6 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 00 00 B9 [01:12:05]Write i2c OK [01:12:05]MH_I2C_Read... [01:12:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:12:06]Read from MH i2c: E2 [01:12:06]MH_I2C_Read... [01:12:06]Read from MH i2c: E2 03 00 [01:12:06]MH_I2C_Read... [01:12:06]Read from MH i2c: E2 03 00 2E 6C 00 90 00 0E [01:12:06]RAPDU: 90 00 [01:12:06]wFMCommunicate OK [01:12:06]wFMCommunicate request_size=37 [01:12:06]MH_SAM_APDU [01:12:06]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 6A 08 00 00 35 04 06 00 F2 5D B7 93 CE D2 [01:12:06]Write to MH i2c: E2 28 00 2F 6C 80 0D 02 02 20 00 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 6A 08 00 00 35 04 06 00 F2 5D B7 93 CE D2 00 00 14 [01:12:06]Write i2c OK [01:12:06]MH_I2C_Read... [01:12:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:12:06]Read from MH i2c: E2 [01:12:06]MH_I2C_Read... [01:12:06]Read from MH i2c: E2 03 00 [01:12:06]MH_I2C_Read... [01:12:06]Read from MH i2c: E2 03 00 2F 6C 00 90 00 0F [01:12:06]RAPDU: 90 00 [01:12:06]wFMCommunicate OK [01:12:06]wFMCommunicate request_size=4 [01:12:06]MH_SAM_APDU [01:12:06]CAPDU: 80 0D 03 02 [01:12:06]Write to MH i2c: E2 08 00 30 6C 80 0D 03 02 00 00 00 00 17 [01:12:06]Write i2c OK [01:12:06]MH_I2C_Read... [01:12:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:12:06]Read from MH i2c: E2 [01:12:06]MH_I2C_Read... [01:12:06]Read from MH i2c: E2 0B 00 [01:12:06]MH_I2C_Read... [01:12:06]Read from MH i2c: E2 0B 00 30 6C 00 DB 7A 47 A8 7C 93 FD 85 90 00 ED [01:12:06]RAPDU: DB 7A 47 A8 7C 93 FD 85 90 00 [01:12:06]wFMCommunicate OK [01:12:06]SAM_PROTO_SignData done [01:12:06]FM_MakeSignedData done [01:12:06]CreateOFDProtocolMessage [01:12:06]wFMCommunicate request_size=4 [01:12:06]MH_SAM_APDU [01:12:06]CAPDU: 80 11 00 00 [01:12:06]Write to MH i2c: E2 08 00 31 6C 80 11 00 00 00 00 00 00 17 [01:12:06]Write i2c OK [01:12:06]MH_I2C_Read... [01:12:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:12:06]Read from MH i2c: E2 [01:12:06]MH_I2C_Read... [01:12:06]Read from MH i2c: E2 17 00 [01:12:06]MH_I2C_Read... [01:12:06]Read from MH i2c: E2 17 00 31 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 67 [01:12:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [01:12:06]wFMCommunicate OK [01:12:06]CreateOFDProtocolMessage done [01:12:06]OFDSenderStorePacket 2154 [01:12:06]StoreOFDPacket docnum=2154 [01:12:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2A 01 00 00 22 CA 22 01 20 F8 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 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 6C EC A6 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 6A 08 00 00 35 04 06 00 F2 5D B7 93 CE D2 DB 7A 47 A8 7C 93 FD 85 [01:12:06]CheckFolder [01:12:06]dirname=/storage/ofd_packets [01:12:06]CheckFolder done [01:12:06]ProducePacketName [01:12:06]name=ofd_packets/00002154 [01:12:06]NVStorageSaveData ofd_packets/00002154 [01:12:06]File name is /storage/ofd_packets/00002154 [01:12:06]Write 328 bytes [01:12:06]NVStorageSaveData done [01:12:06]OFDSenderStorePacket done [01:12:06]KKMCreateOFDPacket done [01:12:06]NVStorageSaveData kkm_last_timestamp [01:12:06]File name is /storage/kkm_last_timestamp [01:12:06]Write 4 bytes [01:12:06]NVStorageSaveData done [01:12:06]ExternCall_PrintAddStr [01:12:06]wPrintStart [01:12:06]Write to MH i2c: 01 00 00 32 6C 9E [01:12:06]Write i2c OK [01:12:06]MH_I2C_Read... [01:12:06]Read from MH i2c: 01 [01:12:06]MH_I2C_Read... [01:12:06]Read from MH i2c: 01 07 00 [01:12:06]MH_I2C_Read... [01:12:06]Read from MH i2c: 01 07 00 32 6C 00 00 00 00 00 FF 0F B3 [01:12:06]RasterBufferAndPrint [01:12:06]line Счет N : (3)126447 [01:12:06]line ИНН: 02508201610067 [01:12:06]line Контрольно-Кассовый Чек [01:12:06]line ПРОДАЖА [01:12:06]line Товар: 4640030092499 [01:12:06]line Сигареты ESSE SENSE Himalaya [01:12:06]line 1.000 * 150.00 [01:12:06]line = 150.00 [01:12:06]line НДС 12% НСП 1% [01:12:06]line > о реализуемом товаре [01:12:06]line ИТОГО: 150.00 [01:12:06]line НСП 1% : 1.33 [01:12:06]line НДС 12% : 15.93 [01:12:06]line Наличными: 0.00 [01:12:06]line Безнал.: 150.00 [01:12:06]line Место: АЗС № 127 "Партнер Нефть" [01:12:06]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [01:12:06]line СНО: Общий режим [01:12:06]line Чек 3 29.07.2024 01:12 [01:12:06]line Смена: 15 ФФД: 1.0 [01:12:06]line ЗНМ: 0300000161 [01:12:06]line РНМ: 0000000000189667 [01:12:06]line Версия ККМ: v1.0 [01:12:06]line Платежная система: O! деньги [01:12:06]line ФМ: 0000000002094248 [01:12:06]line ФД: 2154 [01:12:06]line ФПД: 266484325797586 [01:12:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T011212&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2154&fm=266484325797586&tin=02508201610067®Number=0000000000189667&sum=15000 [01:12:06]line 0 [01:12:06]OFD Sender: Processing packet 2154 [packets to send 1, broken 0] [01:12:06]ProducePacketName [01:12:06]name=ofd_packets/00002154 [01:12:06]OFD Sender: To server: pG, [01:12:06]CommunicateWithHost lk.salyk.kg:30040 [01:12:06]ConnectInit lk.salyk.kg [01:12:06]written 0, free lines is 4095 [01:12:06]Connected sock=9 [01:12:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2A 01 00 00 22 CA 22 01 20 F8 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 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 6C EC A6 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 6A 08 00 00 35 04 06 00 F2 5D B7 93 CE D2 DB 7A 47 A8 7C 93 FD 85 [01:12:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 E9 2B 47 00 1D 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 32 30 39 34 32 34 38 10 04 04 00 6A 08 00 00 F4 03 04 00 DA 97 A6 66 B6 04 01 00 00 EB 36 14 DC FA 1D AE 5A [01:12:06]CommunicateWithHost err = 0 [01:12:06]CheckOFDResponse [01:12:06]1017 (14) - 77093643461234 [01:12:06]1041 (16) - 0000000002094248 [01:12:06]1040 (4) - 2154 [01:12:06]1012 (4) - 28.07.2024 19:11 [01:12:06]1206 (1) - 0 [01:12:06]OFD Sender: Remove packet 2154 [01:12:06]ProducePacketName [01:12:06]name=ofd_packets/00002154 [01:12:06]NVStorageDeleteData [01:12:06]Write to MH i2c: 01 00 00 5D 6C C9 [01:12:06]Write i2c OK [01:12:06]MH_I2C_Read... [01:12:06]Read from MH i2c: 01 [01:12:07]MH_I2C_Read... [01:12:07]Read from MH i2c: 01 07 00 [01:12:07]MH_I2C_Read... [01:12:07]Read from MH i2c: 01 07 00 5D 6C 00 00 00 00 00 E2 0C BE [01:12:07]RasterBufferAndPrint [01:12:07]line [01:12:07]line [01:12:07]line [01:12:07]line [01:12:07]line [01:12:07]written 0, free lines is 3307 [01:12:07]MH_Cut [01:12:07]Write to MH i2c: D1 01 00 64 6C 01 A2 [01:12:07]Write i2c OK [01:12:07]MH_I2C_Read... [01:12:07]Read from MH i2c: D1 [01:12:07]MH_I2C_Read... [01:12:07]Read from MH i2c: D1 01 00 [01:12:07]MH_I2C_Read... [01:12:07]Read from MH i2c: D1 01 00 64 6C 00 A1 [01:12:07]Write to MH i2c: 01 00 00 65 6C D1 [01:12:07]Write i2c OK [01:12:07]MH_I2C_Read... [01:12:07]OFD Sender: No OFD packet to send [01:12:07]*** Cut start [01:12:07]*** Partial cut [01:12:07]*** CUTSNS_PIN = 1 [01:12:07]*** CUTSNS_PIN = 0 [01:12:07]*** Brake cut motor [01:12:08]Read from MH i2c: 01 [01:12:08]MH_I2C_Read... [01:12:08]*** Stop cut motor [01:12:08]*** Cut end [01:12:08]Read from MH i2c: 01 07 00 [01:12:08]MH_I2C_Read... [01:12:08]Read from MH i2c: 01 07 00 65 6C 00 00 00 00 00 FF 0F E6 [01:12:08]process_action close_receipt done [01:12:08]requested_data is exist [01:12:08]produce_requested_data [01:12:08]requested_item fm.sn is exist - process it [01:12:08]wFMCommunicate request_size=4 [01:12:08]MH_SAM_APDU [01:12:08]CAPDU: 80 11 00 00 [01:12:08]Write to MH i2c: E2 08 00 66 6C 80 11 00 00 00 00 00 00 4C [01:12:08]Write i2c OK [01:12:08]MH_I2C_Read... [01:12:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:12:08]Read from MH i2c: E2 [01:12:08]MH_I2C_Read... [01:12:08]Read from MH i2c: E2 17 00 [01:12:08]MH_I2C_Read... [01:12:08]Read from MH i2c: E2 17 00 66 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 9C [01:12:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [01:12:08]wFMCommunicate OK [01:12:08]requested_item fd.num is exist - process it [01:12:08]SAM_PROTO_GetFieldsCounters [01:12:08]wFMCommunicate request_size=4 [01:12:08]MH_SAM_APDU [01:12:08]CAPDU: 80 13 00 00 [01:12:08]Write to MH i2c: E2 08 00 67 6C 80 13 00 00 00 00 00 00 4F [01:12:08]Write i2c OK [01:12:08]MH_I2C_Read... [01:12:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:12:08]Read from MH i2c: E2 [01:12:08]MH_I2C_Read... [01:12:08]Read from MH i2c: E2 62 00 [01:12:08]MH_I2C_Read... [01:12:08]Read from MH i2c: E2 62 00 67 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 6A 08 00 00 0E 04 04 00 0F 00 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 03 [01:12:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 6A 08 00 00 0E 04 04 00 0F 00 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 [01:12:08]wFMCommunicate OK [01:12:08]SAM_PROTO_GetFieldsCounters done [01:12:08]requested_item shift.num is exist - process it [01:12:08]requested_item shift.opened is exist - process it [01:12:08]req_shift_opened [01:12:08]FM_GetShiftState [01:12:08]SAM_PROTO_GetShiftState [01:12:08]wFMCommunicate request_size=4 [01:12:08]MH_SAM_APDU [01:12:08]CAPDU: 80 13 01 00 [01:12:08]Write to MH i2c: E2 08 00 68 6C 80 13 01 00 00 00 00 00 51 [01:12:08]Write i2c OK [01:12:08]MH_I2C_Read... [01:12:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:12:08]Read from MH i2c: E2 [01:12:08]MH_I2C_Read... [01:12:08]Read from MH i2c: E2 0E 00 [01:12:08]MH_I2C_Read... [01:12:08]Read from MH i2c: E2 0E 00 68 6C 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 4A [01:12:08]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [01:12:08]wFMCommunicate OK [01:12:08]SAM_PROTO_GetShiftState done [01:12:08]FM_GetShiftState done [01:12:08]req_shift_opened done [01:12:08]requested_item shift.open_date is exist - process it [01:12:08]req_shift_open_date [01:12:08]req_shift_open_date done [01:12:08]produce_requested_data done [01:12:08]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2154,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [01:12:08]process_action_free close_receipt [01:12:08]json_value_free [01:12:08]json_value_free done [01:12:08]process_json_proto returns [01:12:08]Send response to host [01:12:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2154,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [01:12:08]free response buf [01:12:08]execute_script done [01:12:08]execute_script returns [01:12:08]free content buf [01:12:08]Sock 8.Close socket [01:12:08]Sock 8.Thread stoped [01:12:12]OFD Sender: No OFD packet to send [01:12:17]OFD Sender: No OFD packet to send [01:12:22]OFD Sender: No OFD packet to send [01:12:27]OFD Sender: No OFD packet to send [01:12:32]OFD Sender: No OFD packet to send [01:12:37]OFD Sender: No OFD packet to send [01:12:42]OFD Sender: No OFD packet to send [01:12:47]OFD Sender: No OFD packet to send [01:12:52]OFD Sender: No OFD packet to send [01:12:56]accept exits with 10 [01:12:56]New connection [01:12:56]New thread 3067460964 created [01:12:56]Thread 3067317604 joined [01:12:56]Waiting for new connection... [01:12:56] Sock 10.Parse request [01:12:56]Sock 10.Check first char [01:12:56]Sock 10.First char is OK [01:12:56]request: POST /json_proto HTTP/1.0 [01:12:56]Method: POST [01:12:56]URL: /json_proto [01:12:56]Method is POST - this is cgi request [01:12:56]url: /json_proto [01:12:56]query_string will be loaded in cgi processing [01:12:56]execute_cgi json_proto POST (null) [01:12:56]execute_cgi path=json_proto method=POST [01:12:56]POST find Content-Length [01:12:56]Host: 172.17.45.132:8080 [01:12:56]Content-Length: 807 [01:12:56]Content-Type: application/json [01:12:56] [01:12:56]POST finish read [01:12:56]Found Content-Length = 807 [01:12:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126448", "tax_sys" : 0, "items" : [ { "code": "6921207700477", "name": "\u041F\u0440\u0435\u0437\u0435\u0440\u0432\u0430\u0442\u0438\u0432 Vie Tex 3\u0448\u0442", "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" ] } } [01:12:56]execute_script... [01:12: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)126448", "tax_sys" : 0, "items" : [ { "code": "6921207700477", "name": "\u041F\u0440\u0435\u0437\u0435\u0440\u0432\u0430\u0442\u0438\u0432 Vie Tex 3\u0448\u0442", "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" ] } } [01:12:56]POST & json_proto [01:12:56]process_json_proto [01:12:56]json parsed OK: [01:12:56]protocol is kg_v1.0 [01:12:56]action value=close_receipt [01:12:56]process_action close_receipt [01:12:56]cmd_close_receipt [01:12:56]MH_GetDate [01:12:56]Write to MH i2c: F0 00 00 69 6C C4 [01:12:56]Write i2c OK [01:12:56]MH_I2C_Read... [01:12:56]Read from MH i2c: F0 [01:12:56]MH_I2C_Read... [01:12:56]Read from MH i2c: F0 09 00 [01:12:56]MH_I2C_Read... [01:12:56]Read from MH i2c: F0 09 00 69 6C 00 A0 EC A6 66 E3 0B 90 66 49 [01:12:56]GetLastDocTimeStamp 1722215532 [01:12:56]current date 1722215584 [01:12:56]FM_GetShiftState [01:12:56]SAM_PROTO_GetShiftState [01:12:56]wFMCommunicate request_size=4 [01:12:56]MH_SAM_APDU [01:12:56]CAPDU: 80 13 01 00 [01:12:56]Write to MH i2c: E2 08 00 6A 6C 80 13 01 00 00 00 00 00 53 [01:12:56]Write i2c OK [01:12:56]MH_I2C_Read... [01:12:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:12:56]Read from MH i2c: E2 [01:12:56]MH_I2C_Read... [01:12:56]Read from MH i2c: E2 0E 00 [01:12:56]MH_I2C_Read... [01:12:56]Read from MH i2c: E2 0E 00 6A 6C 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 4C [01:12:56]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [01:12:56]wFMCommunicate OK [01:12:56]SAM_PROTO_GetShiftState done [01:12:56]FM_GetShiftState done [01:12:56]opened in 1722213119 [01:12:56]opened+sec_in_day 1722299519 [01:12:56]quantity*price = 13000 [01:12:56]sum+1 = 13001 [01:12:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 0.00 Безнал.: 130.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 4 29.07.2024 01:13 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2155 ФПД: 133595808614754 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T011304&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2155&fm=133595808614754&tin=02508201610067®Number=0000000000189667&sum=13000 0 [01:12:57]StoreToDocumentArchive [01:12:57]shift 15 fd 2155 [01:12:57]save to /storage/0015/doc_00002155 [01:12:57]save last doc name /storage/0015/doc_00002155 to /storage/kkm_last_doc_name [01:12:57]save OK [01:12:57]Clear old archive folders... [01:12:57]ProcessDocumentItem done err = 0, tmpTLVsize=278 [01:12:57]tlvbuf is 02048480 [01:12:57]SAM_PROTO_ClearQueue [01:12:57]wFMCommunicate request_size=4 [01:12:57]MH_SAM_APDU [01:12:57]CAPDU: 80 09 00 00 [01:12:57]Write to MH i2c: E2 08 00 77 6C 80 09 00 00 00 00 00 00 55 [01:12:57]Write i2c OK [01:12:57]MH_I2C_Read... [01:12:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:12:57]Read from MH i2c: E2 [01:12:57]MH_I2C_Read... [01:12:57]Read from MH i2c: E2 03 00 [01:12:57]MH_I2C_Read... [01:12:57]Read from MH i2c: E2 03 00 77 6C 00 90 00 57 [01:12:57]RAPDU: 90 00 [01:12:57]wFMCommunicate OK [01:12:57]SAM_PROTO_ClearQueue done [01:12:57]KKMCreateOFDPacket [01:12:57]OFDProtocolAddRootSTLVToBuf [01:12:57]FM_MakeSignedData [01:12:57]FM_MakeSignedData [01:12:57]SAM_PROTO_SignData [01:12:57]wFMCommunicate request_size=4 [01:12:57]MH_SAM_APDU [01:12:57]CAPDU: 80 0D 01 02 [01:12:57]Write to MH i2c: E2 08 00 78 6C 80 0D 01 02 00 00 00 00 5D [01:12:57]Write i2c OK [01:12:57]MH_I2C_Read... [01:12:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:12:57]Read from MH i2c: E2 [01:12:57]MH_I2C_Read... [01:12:57]Read from MH i2c: E2 03 00 [01:12:57]MH_I2C_Read... [01:12:57]Read from MH i2c: E2 03 00 78 6C 00 90 00 58 [01:12:57]RAPDU: 90 00 [01:12:57]wFMCommunicate OK [01:12:57]wFMCommunicate request_size=255 [01:12:57]MH_SAM_APDU [01:12:57]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 36 39 32 31 32 30 37 37 30 30 34 37 37 06 04 24 00 D0 9F D1 80 D0 B5 D0 B7 D0 B5 D1 80 D0 B2 D0 B0 D1 82 D0 B8 D0 B2 20 56 69 65 20 54 65 78 20 33 D1 88 D1 82 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 04 00 00 00 F4 03 04 00 A0 EC A6 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 [01:12:57]Write to MH i2c: E2 02 01 79 6C 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 36 39 32 31 32 30 37 37 30 30 34 37 37 06 04 24 00 D0 9F D1 80 D0 B5 D0 B7 D0 B5 D1 80 D0 B2 D0 B0 D1 82 D0 B8 D0 B2 20 56 69 65 20 54 65 78 20 33 D1 88 D1 82 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 04 00 00 00 F4 03 04 00 A0 EC A6 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 00 00 D3 [01:12:57]Write i2c OK [01:12:57]MH_I2C_Read... [01:12:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:12:57]Read from MH i2c: E2 [01:12:57]MH_I2C_Read... [01:12:57]Read from MH i2c: E2 03 00 [01:12:57]MH_I2C_Read... [01:12:57]Read from MH i2c: E2 03 00 79 6C 00 90 00 59 [01:12:57]RAPDU: 90 00 [01:12:57]wFMCommunicate OK [01:12:57]wFMCommunicate request_size=37 [01:12:57]MH_SAM_APDU [01:12:57]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 6B 08 00 00 35 04 06 00 79 81 32 B7 49 62 [01:12:57]Write to MH i2c: E2 28 00 7A 6C 80 0D 02 02 20 00 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 6B 08 00 00 35 04 06 00 79 81 32 B7 49 62 00 00 B5 [01:12:57]Write i2c OK [01:12:57]MH_I2C_Read... [01:12:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:12:57]Read from MH i2c: E2 [01:12:57]MH_I2C_Read... [01:12:57]Read from MH i2c: E2 03 00 [01:12:57]MH_I2C_Read... [01:12:57]Read from MH i2c: E2 03 00 7A 6C 00 90 00 5A [01:12:57]RAPDU: 90 00 [01:12:57]wFMCommunicate OK [01:12:57]wFMCommunicate request_size=4 [01:12:57]MH_SAM_APDU [01:12:57]CAPDU: 80 0D 03 02 [01:12:57]Write to MH i2c: E2 08 00 7B 6C 80 0D 03 02 00 00 00 00 62 [01:12:57]Write i2c OK [01:12:57]MH_I2C_Read... [01:12:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:12:57]Read from MH i2c: E2 [01:12:57]MH_I2C_Read... [01:12:57]Read from MH i2c: E2 0B 00 [01:12:57]MH_I2C_Read... [01:12:57]Read from MH i2c: E2 0B 00 7B 6C 00 0E 3B AE A3 F7 EB CB 87 90 00 31 [01:12:57]RAPDU: 0E 3B AE A3 F7 EB CB 87 90 00 [01:12:57]wFMCommunicate OK [01:12:57]SAM_PROTO_SignData done [01:12:57]FM_MakeSignedData done [01:12:57]CreateOFDProtocolMessage [01:12:57]wFMCommunicate request_size=4 [01:12:57]MH_SAM_APDU [01:12:57]CAPDU: 80 11 00 00 [01:12:57]Write to MH i2c: E2 08 00 7C 6C 80 11 00 00 00 00 00 00 62 [01:12:57]Write i2c OK [01:12:57]MH_I2C_Read... [01:12:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:12:58]Read from MH i2c: E2 [01:12:58]MH_I2C_Read... [01:12:58]Read from MH i2c: E2 17 00 [01:12:58]MH_I2C_Read... [01:12:58]Read from MH i2c: E2 17 00 7C 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 B2 [01:12:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [01:12:58]wFMCommunicate OK [01:12:58]CreateOFDProtocolMessage done [01:12:58]OFDSenderStorePacket 2155 [01:12:58]StoreOFDPacket docnum=2155 [01:12:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2A 01 00 00 67 6E 22 01 D6 39 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 36 39 32 31 32 30 37 37 30 30 34 37 37 06 04 24 00 D0 9F D1 80 D0 B5 D0 B7 D0 B5 D1 80 D0 B2 D0 B0 D1 82 D0 B8 D0 B2 20 56 69 65 20 54 65 78 20 33 D1 88 D1 82 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 04 00 00 00 F4 03 04 00 A0 EC A6 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 6B 08 00 00 35 04 06 00 79 81 32 B7 49 62 0E 3B AE A3 F7 EB CB 87 [01:12:58]CheckFolder [01:12:58]dirname=/storage/ofd_packets [01:12:58]CheckFolder done [01:12:58]ProducePacketName [01:12:58]name=ofd_packets/00002155 [01:12:58]NVStorageSaveData ofd_packets/00002155 [01:12:58]File name is /storage/ofd_packets/00002155 [01:12:58]Write 328 bytes [01:12:58]NVStorageSaveData done [01:12:58]OFDSenderStorePacket done [01:12:58]KKMCreateOFDPacket done [01:12:58]NVStorageSaveData kkm_last_timestamp [01:12:58]File name is /storage/kkm_last_timestamp [01:12:58]Write 4 bytes [01:12:58]NVStorageSaveData done [01:12:58]ExternCall_PrintAddStr [01:12:58]wPrintStart [01:12:58]Write to MH i2c: 01 00 00 7D 6C E9 [01:12:58]Write i2c OK [01:12:58]MH_I2C_Read... [01:12:58]Read from MH i2c: 01 [01:12:58]MH_I2C_Read... [01:12:58]Read from MH i2c: 01 07 00 [01:12:58]MH_I2C_Read... [01:12:58]Read from MH i2c: 01 07 00 7D 6C 00 00 00 00 00 FF 0F FE [01:12:58]RasterBufferAndPrint [01:12:58]line Счет N : (3)126448 [01:12:58]line ИНН: 02508201610067 [01:12:58]line Контрольно-Кассовый Чек [01:12:58]line ПРОДАЖА [01:12:58]line Товар: 6921207700477 [01:12:58]line Презерватив Vie Tex 3шт [01:12:58]line 1.000 * 130.00 [01:12:58]line = 130.00 [01:12:58]line НДС 12% НСП 1% [01:12:58]line > о реализуемом товаре [01:12:58]line ИТОГО: 130.00 [01:12:58]line НСП 1% : 1.15 [01:12:58]line НДС 12% : 13.80 [01:12:58]line Наличными: 0.00 [01:12:58]line Безнал.: 130.00 [01:12:58]line Место: АЗС № 127 "Партнер Нефть" [01:12:58]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [01:12:58]line СНО: Общий режим [01:12:58]line Чек 4 29.07.2024 01:13 [01:12:58]line Смена: 15 ФФД: 1.0 [01:12:58]line ЗНМ: 0300000161 [01:12:58]line РНМ: 0000000000189667 [01:12:58]line Версия ККМ: v1.0 [01:12:58]line Платежная система: O! деньги [01:12:58]line ФМ: 0000000002094248 [01:12:58]line ФД: 2155 [01:12:58]line ФПД: 133595808614754 [01:12:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T011304&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2155&fm=133595808614754&tin=02508201610067®Number=0000000000189667&sum=13000 [01:12:58]line 0 [01:12:58]OFD Sender: Processing packet 2155 [packets to send 1, broken 0] [01:12:58]ProducePacketName [01:12:58]name=ofd_packets/00002155 [01:12:58]OFD Sender: To server: pG, [01:12:58]CommunicateWithHost lk.salyk.kg:30040 [01:12:58]ConnectInit lk.salyk.kg [01:12:58]written 0, free lines is 4095 [01:12:58]Connected sock=11 [01:12:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2A 01 00 00 67 6E 22 01 D6 39 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 36 39 32 31 32 30 37 37 30 30 34 37 37 06 04 24 00 D0 9F D1 80 D0 B5 D0 B7 D0 B5 D1 80 D0 B2 D0 B0 D1 82 D0 B8 D0 B2 20 56 69 65 20 54 65 78 20 33 D1 88 D1 82 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 04 00 00 00 F4 03 04 00 A0 EC A6 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 6B 08 00 00 35 04 06 00 79 81 32 B7 49 62 0E 3B AE A3 F7 EB CB 87 [01:12:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 6D 2E 47 00 A7 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 32 30 39 34 32 34 38 10 04 04 00 6B 08 00 00 F4 03 04 00 0E 98 A6 66 B6 04 01 00 00 37 55 7A 90 0A EE 5D EF [01:12:58]CommunicateWithHost err = 0 [01:12:58]CheckOFDResponse [01:12:58]1017 (14) - 77093643461234 [01:12:58]1041 (16) - 0000000002094248 [01:12:58]1040 (4) - 2155 [01:12:58]1012 (4) - 28.07.2024 19:12 [01:12:58]1206 (1) - 0 [01:12:58]OFD Sender: Remove packet 2155 [01:12:58]ProducePacketName [01:12:58]name=ofd_packets/00002155 [01:12:58]NVStorageDeleteData [01:12:58]Write to MH i2c: 01 00 00 A7 6C 13 [01:12:58]Write i2c OK [01:12:58]MH_I2C_Read... [01:12:58]Read from MH i2c: 01 [01:12:58]MH_I2C_Read... [01:12:58]Read from MH i2c: 01 07 00 [01:12:58]MH_I2C_Read... [01:12:58]Read from MH i2c: 01 07 00 A7 6C 00 00 00 00 00 EF 0C 15 [01:12:58]RasterBufferAndPrint [01:12:58]line [01:12:58]line [01:12:58]line [01:12:58]line [01:12:58]line [01:12:58]written 0, free lines is 3318 [01:12:58]MH_Cut [01:12:58]Write to MH i2c: D1 01 00 AE 6C 01 EC [01:12:58]Write i2c OK [01:12:58]MH_I2C_Read... [01:12:58]Read from MH i2c: D1 [01:12:58]MH_I2C_Read... [01:12:58]Read from MH i2c: D1 01 00 [01:12:58]MH_I2C_Read... [01:12:58]Read from MH i2c: D1 01 00 AE 6C 00 EB [01:12:58]Write to MH i2c: 01 00 00 AF 6C 1B [01:12:58]Write i2c OK [01:12:58]MH_I2C_Read... [01:12:59]OFD Sender: No OFD packet to send [01:12:59]*** Cut start [01:12:59]*** Partial cut [01:12:59]*** CUTSNS_PIN = 1 [01:12:59]*** CUTSNS_PIN = 0 [01:12:59]*** Brake cut motor [01:13:00]Read from MH i2c: 01 [01:13:00]MH_I2C_Read... [01:13:00]*** Stop cut motor [01:13:00]*** Cut end [01:13:00]Read from MH i2c: 01 07 00 [01:13:00]MH_I2C_Read... [01:13:00]Read from MH i2c: 01 07 00 AF 6C 00 00 00 00 00 FF 0F 30 [01:13:00]process_action close_receipt done [01:13:00]requested_data is exist [01:13:00]produce_requested_data [01:13:00]requested_item fm.sn is exist - process it [01:13:00]wFMCommunicate request_size=4 [01:13:00]MH_SAM_APDU [01:13:00]CAPDU: 80 11 00 00 [01:13:00]Write to MH i2c: E2 08 00 B0 6C 80 11 00 00 00 00 00 00 96 [01:13:00]Write i2c OK [01:13:00]MH_I2C_Read... [01:13:00]Read from MH i2c: E2 [01:13:00]MH_I2C_Read... [01:13:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:13:00]Read from MH i2c: E2 17 00 [01:13:00]MH_I2C_Read... [01:13:00]Read from MH i2c: E2 17 00 B0 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 E6 [01:13:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [01:13:00]wFMCommunicate OK [01:13:00]requested_item fd.num is exist - process it [01:13:00]SAM_PROTO_GetFieldsCounters [01:13:00]wFMCommunicate request_size=4 [01:13:00]MH_SAM_APDU [01:13:00]CAPDU: 80 13 00 00 [01:13:00]Write to MH i2c: E2 08 00 B1 6C 80 13 00 00 00 00 00 00 99 [01:13:00]Write i2c OK [01:13:00]MH_I2C_Read... [01:13:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:13:00]Read from MH i2c: E2 [01:13:00]MH_I2C_Read... [01:13:00]Read from MH i2c: E2 62 00 [01:13:00]MH_I2C_Read... [01:13:00]Read from MH i2c: E2 62 00 B1 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 6B 08 00 00 0E 04 04 00 0F 00 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 51 [01:13:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 6B 08 00 00 0E 04 04 00 0F 00 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:13:00]wFMCommunicate OK [01:13:00]SAM_PROTO_GetFieldsCounters done [01:13:00]requested_item shift.num is exist - process it [01:13:00]requested_item shift.opened is exist - process it [01:13:00]req_shift_opened [01:13:00]FM_GetShiftState [01:13:00]SAM_PROTO_GetShiftState [01:13:00]wFMCommunicate request_size=4 [01:13:00]MH_SAM_APDU [01:13:00]CAPDU: 80 13 01 00 [01:13:00]Write to MH i2c: E2 08 00 B2 6C 80 13 01 00 00 00 00 00 9B [01:13:00]Write i2c OK [01:13:00]MH_I2C_Read... [01:13:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:13:00]Read from MH i2c: E2 [01:13:00]MH_I2C_Read... [01:13:00]Read from MH i2c: E2 0E 00 [01:13:00]MH_I2C_Read... [01:13:00]Read from MH i2c: E2 0E 00 B2 6C 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 94 [01:13:00]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [01:13:00]wFMCommunicate OK [01:13:00]SAM_PROTO_GetShiftState done [01:13:00]FM_GetShiftState done [01:13:00]req_shift_opened done [01:13:00]requested_item shift.open_date is exist - process it [01:13:00]req_shift_open_date [01:13:00]req_shift_open_date done [01:13:00]produce_requested_data done [01:13:00]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2155,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [01:13:00]process_action_free close_receipt [01:13:00]json_value_free [01:13:00]json_value_free done [01:13:00]process_json_proto returns [01:13:00]Send response to host [01:13:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2155,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [01:13:00]free response buf [01:13:00]execute_script done [01:13:00]execute_script returns [01:13:00]free content buf [01:13:00]Sock 10.Close socket [01:13:00]Sock 10.Thread stoped [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:23]accept exits with 8 [01:16:23]New connection [01:16:23]New thread 3067317604 created [01:16:23]Thread 3067460964 joined [01:16:23]Waiting for new connection... [01:16:23] Sock 8.Parse request [01:16:23]Sock 8.Check first char [01:16:23]Sock 8.First char is OK [01:16:23]request: POST /json_proto HTTP/1.0 [01:16:23]Method: POST [01:16:23]URL: /json_proto [01:16:23]Method is POST - this is cgi request [01:16:23]url: /json_proto [01:16:23]query_string will be loaded in cgi processing [01:16:23]execute_cgi json_proto POST (null) [01:16:23]execute_cgi path=json_proto method=POST [01:16:23]POST find Content-Length [01:16:23]Host: 172.17.45.132:8080 [01:16:23]Content-Length: 902 [01:16:23]Content-Type: application/json [01:16:23] [01:16:23]POST finish read [01:16:23]Found Content-Length = 902 [01:16:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126449", "tax_sys" : 0, "items" : [ { "code": "4600682000280", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up \u043C\u043E\u0445\u0438\u0442\u043E 0,45 \u0436/\u0431", "price" : 85.00, "quantity" : 1.000, "sum" : 85.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" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:16:23]execute_script... [01:16:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126449", "tax_sys" : 0, "items" : [ { "code": "4600682000280", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up \u043C\u043E\u0445\u0438\u0442\u043E 0,45 \u0436/\u0431", "price" : 85.00, "quantity" : 1.000, "sum" : 85.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" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:16:23]POST & json_proto [01:16:23]process_json_proto [01:16:23]json parsed OK: [01:16:23]protocol is kg_v1.0 [01:16:23]action value=close_receipt [01:16:23]process_action close_receipt [01:16:23]cmd_close_receipt [01:16:23]MH_GetDate [01:16:23]Write to MH i2c: F0 00 00 B3 6C 0E [01:16:23]Write i2c OK [01:16:23]MH_I2C_Read... [01:16:23]Read from MH i2c: F0 [01:16:23]MH_I2C_Read... [01:16:23]Read from MH i2c: F0 09 00 [01:16:23]MH_I2C_Read... [01:16:23]Read from MH i2c: F0 09 00 B3 6C 00 70 ED A6 66 E3 0B 90 66 64 [01:16:23]GetLastDocTimeStamp 1722215584 [01:16:23]current date 1722215792 [01:16:23]FM_GetShiftState [01:16:23]SAM_PROTO_GetShiftState [01:16:23]wFMCommunicate request_size=4 [01:16:23]MH_SAM_APDU [01:16:23]CAPDU: 80 13 01 00 [01:16:23]Write to MH i2c: E2 08 00 B4 6C 80 13 01 00 00 00 00 00 9D [01:16:23]Write i2c OK [01:16:23]MH_I2C_Read... [01:16:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:16:23]Read from MH i2c: E2 [01:16:23]MH_I2C_Read... [01:16:23]Read from MH i2c: E2 0E 00 [01:16:23]MH_I2C_Read... [01:16:23]Read from MH i2c: E2 0E 00 B4 6C 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 96 [01:16:23]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [01:16:23]wFMCommunicate OK [01:16:23]SAM_PROTO_GetShiftState done [01:16:23]FM_GetShiftState done [01:16:23]opened in 1722213119 [01:16:23]opened+sec_in_day 1722299519 [01:16:23]quantity*price = 8500 [01:16:23]sum+1 = 8501 [01:16:23]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48743587 Сигареты Winston XStyle Silver 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 225.00 НСП 1% : 1.99 НДС 12% : 23.90 Наличными: 225.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 5 29.07.2024 01:16 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2156 ФПД: 37635092231191 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T011632&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2156&fm=37635092231191&tin=02508201610067®Number=0000000000189667&sum=22500 0 [01:16:24]StoreToDocumentArchive [01:16:24]shift 15 fd 2156 [01:16:24]save to /storage/0015/doc_00002156 [01:16:24]save last doc name /storage/0015/doc_00002156 to /storage/kkm_last_doc_name [01:16:24]save OK [01:16:24]Clear old archive folders... [01:16:24]ProcessDocumentItem done err = 0, tmpTLVsize=394 [01:16:24]tlvbuf is 0217C420 [01:16:24]SAM_PROTO_ClearQueue [01:16:24]wFMCommunicate request_size=4 [01:16:24]MH_SAM_APDU [01:16:24]CAPDU: 80 09 00 00 [01:16:24]Write to MH i2c: E2 08 00 C1 6C 80 09 00 00 00 00 00 00 9F [01:16:24]Write i2c OK [01:16:24]MH_I2C_Read... [01:16:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:16:24]Read from MH i2c: E2 [01:16:24]MH_I2C_Read... [01:16:24]Read from MH i2c: E2 03 00 [01:16:24]MH_I2C_Read... [01:16:24]Read from MH i2c: E2 03 00 C1 6C 00 90 00 A1 [01:16:24]RAPDU: 90 00 [01:16:24]wFMCommunicate OK [01:16:24]SAM_PROTO_ClearQueue done [01:16:24]KKMCreateOFDPacket [01:16:24]OFDProtocolAddRootSTLVToBuf [01:16:24]FM_MakeSignedData [01:16:24]FM_MakeSignedData [01:16:24]SAM_PROTO_SignData [01:16:24]wFMCommunicate request_size=4 [01:16:24]MH_SAM_APDU [01:16:24]CAPDU: 80 0D 01 02 [01:16:24]Write to MH i2c: E2 08 00 C2 6C 80 0D 01 02 00 00 00 00 A7 [01:16:24]Write i2c OK [01:16:24]MH_I2C_Read... [01:16:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:16:24]Read from MH i2c: E2 [01:16:24]MH_I2C_Read... [01:16:24]Read from MH i2c: E2 03 00 [01:16:24]MH_I2C_Read... [01:16:24]Read from MH i2c: E2 03 00 C2 6C 00 90 00 A2 [01:16:24]RAPDU: 90 00 [01:16:24]wFMCommunicate OK [01:16:24]wFMCommunicate request_size=255 [01:16:24]MH_SAM_APDU [01:16:24]CAPDU: 80 0D 02 02 FA 03 00 8A 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 30 30 36 38 32 30 30 30 32 38 30 06 04 2F 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 D0 BC D0 BE D1 85 D0 B8 D1 82 D0 BE 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F [01:16:24]Write to MH i2c: E2 02 01 C3 6C 80 0D 02 02 FA 00 03 00 8A 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 30 30 36 38 32 30 30 30 32 38 30 06 04 2F 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 D0 BC D0 BE D1 85 D0 B8 D1 82 D0 BE 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 00 78 [01:16:24]Write i2c OK [01:16:24]MH_I2C_Read... [01:16:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:16:25]Read from MH i2c: E2 [01:16:25]MH_I2C_Read... [01:16:25]Read from MH i2c: E2 03 00 [01:16:25]MH_I2C_Read... [01:16:25]Read from MH i2c: E2 03 00 C3 6C 00 90 00 A3 [01:16:25]RAPDU: 90 00 [01:16:25]wFMCommunicate OK [01:16:25]wFMCommunicate request_size=153 [01:16:25]MH_SAM_APDU [01:16:25]CAPDU: 80 0D 02 02 94 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 70 ED A6 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 6C 08 00 00 35 04 06 00 22 3A 9A 4D B4 17 [01:16:25]Write to MH i2c: E2 9C 00 C4 6C 80 0D 02 02 94 00 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 70 ED A6 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 6C 08 00 00 35 04 06 00 22 3A 9A 4D B4 17 00 00 63 [01:16:25]Write i2c OK [01:16:25]MH_I2C_Read... [01:16:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:16:25]Read from MH i2c: E2 [01:16:25]MH_I2C_Read... [01:16:25]Read from MH i2c: E2 03 00 [01:16:25]MH_I2C_Read... [01:16:25]Read from MH i2c: E2 03 00 C4 6C 00 90 00 A4 [01:16:25]RAPDU: 90 00 [01:16:25]wFMCommunicate OK [01:16:25]wFMCommunicate request_size=4 [01:16:25]MH_SAM_APDU [01:16:25]CAPDU: 80 0D 03 02 [01:16:25]Write to MH i2c: E2 08 00 C5 6C 80 0D 03 02 00 00 00 00 AC [01:16:25]Write i2c OK [01:16:25]MH_I2C_Read... [01:16:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:16:25]Read from MH i2c: E2 [01:16:25]MH_I2C_Read... [01:16:25]Read from MH i2c: E2 0B 00 [01:16:25]MH_I2C_Read... [01:16:25]Read from MH i2c: E2 0B 00 C5 6C 00 74 6D D3 18 84 D4 14 97 90 00 7C [01:16:25]RAPDU: 74 6D D3 18 84 D4 14 97 90 00 [01:16:25]wFMCommunicate OK [01:16:25]SAM_PROTO_SignData done [01:16:25]FM_MakeSignedData done [01:16:25]CreateOFDProtocolMessage [01:16:25]wFMCommunicate request_size=4 [01:16:25]MH_SAM_APDU [01:16:25]CAPDU: 80 11 00 00 [01:16:25]Write to MH i2c: E2 08 00 C6 6C 80 11 00 00 00 00 00 00 AC [01:16:25]Write i2c OK [01:16:25]MH_I2C_Read... [01:16:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:16:25]Read from MH i2c: E2 [01:16:25]MH_I2C_Read... [01:16:25]Read from MH i2c: E2 17 00 [01:16:25]MH_I2C_Read... [01:16:25]Read from MH i2c: E2 17 00 C6 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 FC [01:16:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [01:16:25]wFMCommunicate OK [01:16:25]CreateOFDProtocolMessage done [01:16:25]OFDSenderStorePacket 2156 [01:16:25]StoreOFDPacket docnum=2156 [01:16:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 9E 01 00 00 79 0E 96 01 A6 22 5A 03 01 00 03 00 8A 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 30 30 36 38 32 30 30 30 32 38 30 06 04 2F 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 D0 BC D0 BE D1 85 D0 B8 D1 82 D0 BE 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 70 ED A6 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 6C 08 00 00 35 04 06 00 22 3A 9A 4D B4 17 74 6D D3 18 84 D4 14 97 [01:16:25]CheckFolder [01:16:25]dirname=/storage/ofd_packets [01:16:25]CheckFolder done [01:16:25]ProducePacketName [01:16:25]name=ofd_packets/00002156 [01:16:25]NVStorageSaveData ofd_packets/00002156 [01:16:25]File name is /storage/ofd_packets/00002156 [01:16:25]Write 444 bytes [01:16:25]NVStorageSaveData done [01:16:25]OFDSenderStorePacket done [01:16:25]KKMCreateOFDPacket done [01:16:25]NVStorageSaveData kkm_last_timestamp [01:16:25]File name is /storage/kkm_last_timestamp [01:16:25]Write 4 bytes [01:16:25]NVStorageSaveData done [01:16:25]ExternCall_PrintAddStr [01:16:25]wPrintStart [01:16:25]Write to MH i2c: 01 00 00 C7 6C 33 [01:16:25]OFD Sender: Processing packet 2156 [packets to send 1, broken 0] [01:16:25]ProducePacketName [01:16:25]name=ofd_packets/00002156 [01:16:25]Write i2c OK [01:16:25]MH_I2C_Read... [01:16:25]Read from MH i2c: 01 [01:16:25]MH_I2C_Read... [01:16:25]OFD Sender: To server: pG, [01:16:25]CommunicateWithHost lk.salyk.kg:30040 [01:16:25]ConnectInit lk.salyk.kg [01:16:25]Read from MH i2c: 01 07 00 [01:16:25]MH_I2C_Read... [01:16:25]Read from MH i2c: 01 07 00 C7 6C 00 00 00 00 00 FF 0F 48 [01:16:25]RasterBufferAndPrint [01:16:25]line Счет N : (3)126449 [01:16:25]line ИНН: 02508201610067 [01:16:25]line Контрольно-Кассовый Чек [01:16:25]line ПРОДАЖА [01:16:25]line Товар: 4600682000280 [01:16:25]line Напиток FLash up мохито 0,45 ж/б [01:16:25]line 1.000 * 85.00 [01:16:25]line = 85.00 [01:16:25]line НДС 12% НСП 1% [01:16:25]line > о реализуемом товаре [01:16:25]line Товар: 48743587 [01:16:25]line Сигареты Winston XStyle Silver [01:16:25]line 1.000 * 140.00 [01:16:25]line = 140.00 [01:16:25]line НДС 12% НСП 1% [01:16:25]line > о реализуемом товаре [01:16:25]line ИТОГО: 225.00 [01:16:25]line НСП 1% : 1.99 [01:16:25]line НДС 12% : 23.90 [01:16:25]line Наличными: 225.00 [01:16:25]line Безнал.: 0.00 [01:16:25]line Место: АЗС № 127 "Партнер Нефть" [01:16:25]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [01:16:25]line СНО: Общий режим [01:16:25]line Чек 5 29.07.2024 01:16 [01:16:25]line Смена: 15 ФФД: 1.0 [01:16:25]line ЗНМ: 0300000161 [01:16:25]line РНМ: 0000000000189667 [01:16:25]line Версия ККМ: v1.0 [01:16:25]line ФМ: 0000000002094248 [01:16:25]line ФД: 2156 [01:16:25]line ФПД: 37635092231191 [01:16:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T011632&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2156&fm=37635092231191&tin=02508201610067®Number=0000000000189667&sum=22500 [01:16:25]line 0 [01:16:25]written 0, free lines is 4095 [01:16:25]Connected sock=10 [01:16:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 9E 01 00 00 79 0E 96 01 A6 22 5A 03 01 00 03 00 8A 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 30 30 36 38 32 30 30 30 32 38 30 06 04 2F 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 D0 BC D0 BE D1 85 D0 B8 D1 82 D0 BE 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 70 ED A6 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 6C 08 00 00 35 04 06 00 22 3A 9A 4D B4 17 74 6D D3 18 84 D4 14 97 [01:16:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 8F A9 47 00 4C 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 6C 08 00 00 F4 03 04 00 DE 98 A6 66 B6 04 01 00 00 F1 5A 6D CF 01 F0 72 9B [01:16:26]CommunicateWithHost err = 0 [01:16:26]CheckOFDResponse [01:16:26]1017 (14) - 77093643461234 [01:16:26]1041 (16) - 0000000002094248 [01:16:26]1040 (4) - 2156 [01:16:26]1012 (4) - 28.07.2024 19:15 [01:16:26]1206 (1) - 0 [01:16:26]OFD Sender: Remove packet 2156 [01:16:26]ProducePacketName [01:16:26]name=ofd_packets/00002156 [01:16:26]NVStorageDeleteData [01:16:26]Write to MH i2c: 01 00 00 F7 6C 63 [01:16:26]Write i2c OK [01:16:26]MH_I2C_Read... [01:16:26]Read from MH i2c: 01 [01:16:26]MH_I2C_Read... [01:16:26]Read from MH i2c: 01 07 00 [01:16:26]MH_I2C_Read... [01:16:26]Read from MH i2c: 01 07 00 F7 6C 00 00 00 00 00 9D 0C 13 [01:16:26]RasterBufferAndPrint [01:16:26]line [01:16:26]line [01:16:26]line [01:16:26]line [01:16:26]line [01:16:26]written 0, free lines is 3236 [01:16:26]MH_Cut [01:16:26]Write to MH i2c: D1 01 00 FE 6C 01 3C [01:16:26]Write i2c OK [01:16:26]MH_I2C_Read... [01:16:26]Read from MH i2c: D1 [01:16:26]MH_I2C_Read... [01:16:26]Read from MH i2c: D1 01 00 [01:16:26]MH_I2C_Read... [01:16:26]Read from MH i2c: D1 01 00 FE 6C 00 3B [01:16:26]Write to MH i2c: 01 00 00 FF 6C 6B [01:16:26]Write i2c OK [01:16:26]MH_I2C_Read... [01:16:26]OFD Sender: No OFD packet to send [01:16:26]*** Cut start [01:16:26]*** Partial cut [01:16:26]*** CUTSNS_PIN = 1 [01:16:27]*** CUTSNS_PIN = 0 [01:16:27]*** Brake cut motor [01:16:27]Read from MH i2c: 01 [01:16:27]MH_I2C_Read... [01:16:27]*** Stop cut motor [01:16:27]*** Cut end [01:16:27]Read from MH i2c: 01 07 00 [01:16:27]MH_I2C_Read... [01:16:27]Read from MH i2c: 01 07 00 FF 6C 00 00 00 00 00 FF 0F 80 [01:16:27]process_action close_receipt done [01:16:27]requested_data is exist [01:16:27]produce_requested_data [01:16:27]requested_item fm.sn is exist - process it [01:16:27]wFMCommunicate request_size=4 [01:16:27]MH_SAM_APDU [01:16:27]CAPDU: 80 11 00 00 [01:16:27]Write to MH i2c: E2 08 00 00 6D 80 11 00 00 00 00 00 00 E7 [01:16:27]Write i2c OK [01:16:27]MH_I2C_Read... [01:16:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:16:27]Read from MH i2c: E2 [01:16:27]MH_I2C_Read... [01:16:27]Read from MH i2c: E2 17 00 [01:16:27]MH_I2C_Read... [01:16:27]Read from MH i2c: E2 17 00 00 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 37 [01:16:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [01:16:27]wFMCommunicate OK [01:16:27]requested_item fd.num is exist - process it [01:16:27]SAM_PROTO_GetFieldsCounters [01:16:27]wFMCommunicate request_size=4 [01:16:27]MH_SAM_APDU [01:16:27]CAPDU: 80 13 00 00 [01:16:27]Write to MH i2c: E2 08 00 01 6D 80 13 00 00 00 00 00 00 EA [01:16:27]Write i2c OK [01:16:27]MH_I2C_Read... [01:16:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:16:27]Read from MH i2c: E2 [01:16:27]MH_I2C_Read... [01:16:27]Read from MH i2c: E2 62 00 [01:16:27]MH_I2C_Read... [01:16:27]Read from MH i2c: E2 62 00 01 6D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 6C 08 00 00 0E 04 04 00 0F 00 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 A6 [01:16:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 6C 08 00 00 0E 04 04 00 0F 00 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:16:27]wFMCommunicate OK [01:16:27]SAM_PROTO_GetFieldsCounters done [01:16:27]requested_item shift.num is exist - process it [01:16:27]requested_item shift.opened is exist - process it [01:16:27]req_shift_opened [01:16:27]FM_GetShiftState [01:16:27]SAM_PROTO_GetShiftState [01:16:27]wFMCommunicate request_size=4 [01:16:27]MH_SAM_APDU [01:16:27]CAPDU: 80 13 01 00 [01:16:27]Write to MH i2c: E2 08 00 02 6D 80 13 01 00 00 00 00 00 EC [01:16:27]Write i2c OK [01:16:27]MH_I2C_Read... [01:16:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:16:27]Read from MH i2c: E2 [01:16:27]MH_I2C_Read... [01:16:27]Read from MH i2c: E2 0E 00 [01:16:27]MH_I2C_Read... [01:16:27]Read from MH i2c: E2 0E 00 02 6D 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 E5 [01:16:27]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [01:16:27]wFMCommunicate OK [01:16:27]SAM_PROTO_GetShiftState done [01:16:27]FM_GetShiftState done [01:16:27]req_shift_opened done [01:16:27]requested_item shift.open_date is exist - process it [01:16:27]req_shift_open_date [01:16:27]req_shift_open_date done [01:16:27]produce_requested_data done [01:16:27]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2156,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [01:16:27]process_action_free close_receipt [01:16:27]json_value_free [01:16:27]json_value_free done [01:16:27]process_json_proto returns [01:16:27]Send response to host [01:16:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2156,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [01:16:27]free response buf [01:16:27]execute_script done [01:16:27]execute_script returns [01:16:27]free content buf [01:16:27]Sock 8.Close socket [01:16:27]Sock 8.Thread stoped [01:16:31]OFD Sender: No OFD packet to send [01:16:36]OFD Sender: No OFD packet to send [01:16:41]OFD Sender: No OFD packet to send [01:16:46]OFD Sender: No OFD packet to send [01:16:51]OFD Sender: No OFD packet to send [01:16:56]OFD Sender: No OFD packet to send [01:17:01]OFD Sender: No OFD packet to send [01:17:06]OFD Sender: No OFD packet to send [01:17:11]OFD Sender: No OFD packet to send [01:17:16]OFD Sender: No OFD packet to send [01:17:21]OFD Sender: No OFD packet to send [01:17:26]OFD Sender: No OFD packet to send [01:17:31]OFD Sender: No OFD packet to send [01:17:36]OFD Sender: No OFD packet to send [01:17:41]OFD Sender: No OFD packet to send [01:17:46]OFD Sender: No OFD packet to send [01:17:51]OFD Sender: No OFD packet to send [01:17:56]OFD Sender: No OFD packet to send [01:18:01]OFD Sender: No OFD packet to send [01:18:06]OFD Sender: No OFD packet to send [01:18:11]OFD Sender: No OFD packet to send [01:18:16]OFD Sender: No OFD packet to send [01:18:21]OFD Sender: No OFD packet to send [01:18:26]OFD Sender: No OFD packet to send [01:18:31]OFD Sender: No OFD packet to send [01:18:36]OFD Sender: No OFD packet to send [01:18:41]OFD Sender: No OFD packet to send [01:18:46]OFD Sender: No OFD packet to send [01:18:51]OFD Sender: No OFD packet to send [01:18:56]OFD Sender: No OFD packet to send [01:19:01]OFD Sender: No OFD packet to send [01:19:06]OFD Sender: No OFD packet to send [01:19:11]OFD Sender: No OFD packet to send [01:19:16]OFD Sender: No OFD packet to send [01:19:21]OFD Sender: No OFD packet to send [01:19:26]OFD Sender: No OFD packet to send [01:19:31]OFD Sender: No OFD packet to send [01:19:36]OFD Sender: No OFD packet to send [01:19:41]OFD Sender: No OFD packet to send [01:19:46]OFD Sender: No OFD packet to send [01:19:51]OFD Sender: No OFD packet to send [01:19:56]OFD Sender: No OFD packet to send [01:20:01]OFD Sender: No OFD packet to send [01:20:06]OFD Sender: No OFD packet to send [01:20:11]OFD Sender: No OFD packet to send [01:20:16]OFD Sender: No OFD packet to send [01:20:21]OFD Sender: No OFD packet to send [01:20:26]OFD Sender: No OFD packet to send [01:20:31]OFD Sender: No OFD packet to send [01:20:36]OFD Sender: No OFD packet to send [01:20:41]OFD Sender: No OFD packet to send [01:20:46]OFD Sender: No OFD packet to send [01:20:51]OFD Sender: No OFD packet to send [01:20:56]OFD Sender: No OFD packet to send [01:21:01]OFD Sender: No OFD packet to send [01:21:06]OFD Sender: No OFD packet to send [01:21:11]OFD Sender: No OFD packet to send [01:21:16]OFD Sender: No OFD packet to send [01:21:21]OFD Sender: No OFD packet to send [01:21:26]OFD Sender: No OFD packet to send [01:21:31]OFD Sender: No OFD packet to send [01:21:36]OFD Sender: No OFD packet to send [01:21:41]OFD Sender: No OFD packet to send [01:21:46]OFD Sender: No OFD packet to send [01:21:51]OFD Sender: No OFD packet to send [01:21:56]OFD Sender: No OFD packet to send [01:22:01]OFD Sender: No OFD packet to send [01:22:06]OFD Sender: No OFD packet to send [01:22:11]OFD Sender: No OFD packet to send [01:22:16]OFD Sender: No OFD packet to send [01:22:21]OFD Sender: No OFD packet to send [01:22:26]OFD Sender: No OFD packet to send [01:22:31]OFD Sender: No OFD packet to send [01:22:36]OFD Sender: No OFD packet to send [01:22:41]OFD Sender: No OFD packet to send [01:22:46]OFD Sender: No OFD packet to send [01:22:51]OFD Sender: No OFD packet to send [01:22:56]OFD Sender: No OFD packet to send [01:23:01]OFD Sender: No OFD packet to send [01:23:06]OFD Sender: No OFD packet to send [01:23:11]OFD Sender: No OFD packet to send [01:23:16]OFD Sender: No OFD packet to send [01:23:21]OFD Sender: No OFD packet to send [01:23:26]OFD Sender: No OFD packet to send [01:23:31]OFD Sender: No OFD packet to send [01:23:36]OFD Sender: No OFD packet to send [01:23:41]OFD Sender: No OFD packet to send [01:23:46]OFD Sender: No OFD packet to send [01:23:51]OFD Sender: No OFD packet to send [01:23:56]OFD Sender: No OFD packet to send [01:24:01]OFD Sender: No OFD packet to send [01:24:06]OFD Sender: No OFD packet to send [01:24:11]OFD Sender: No OFD packet to send [01:24:16]OFD Sender: No OFD packet to send [01:24:21]OFD Sender: No OFD packet to send [01:24:26]OFD Sender: No OFD packet to send [01:24:31]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:37]OFD Sender: No OFD packet to send [01:29:42]OFD Sender: No OFD packet to send [01:29:47]OFD Sender: No OFD packet to send [01:29:52]OFD Sender: No OFD packet to send [01:29:57]OFD Sender: No OFD packet to send [01:30:02]OFD Sender: No OFD packet to send [01:30:07]OFD Sender: No OFD packet to send [01:30:12]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [01:32:12]OFD Sender: No OFD packet to send [01:32:17]OFD Sender: No OFD packet to send [01:32:22]OFD Sender: No OFD packet to send [01:32:27]OFD Sender: No OFD packet to send [01:32:32]OFD Sender: No OFD packet to send [01:32:37]OFD Sender: No OFD packet to send [01:32:42]OFD Sender: No OFD packet to send [01:32:47]OFD Sender: No OFD packet to send [01:32:52]OFD Sender: No OFD packet to send [01:32:57]OFD Sender: No OFD packet to send [01:33:02]OFD Sender: No OFD packet to send [01:33:07]OFD Sender: No OFD packet to send [01:33:12]OFD Sender: No OFD packet to send [01:33:17]OFD Sender: No OFD packet to send [01:33:22]OFD Sender: No OFD packet to send [01:33:27]OFD Sender: No OFD packet to send [01:33:32]OFD Sender: No OFD packet to send [01:33:37]OFD Sender: No OFD packet to send [01:33:42]OFD Sender: No OFD packet to send [01:33:47]OFD Sender: No OFD packet to send [01:33:52]OFD Sender: No OFD packet to send [01:33:57]OFD Sender: No OFD packet to send [01:34:02]OFD Sender: No OFD packet to send [01:34:07]OFD Sender: No OFD packet to send [01:34:12]OFD Sender: No OFD packet to send [01:34:17]OFD Sender: No OFD packet to send [01:34:22]OFD Sender: No OFD packet to send [01:34:27]OFD Sender: No OFD packet to send [01:34:32]OFD Sender: No OFD packet to send [01:34:37]OFD Sender: No OFD packet to send [01:34:42]OFD Sender: No OFD packet to send [01:34:47]OFD Sender: No OFD packet to send [01:34:52]OFD Sender: No OFD packet to send [01:34:57]OFD Sender: No OFD packet to send [01:35:02]OFD Sender: No OFD packet to send [01:35:07]OFD Sender: No OFD packet to send [01:35:12]OFD Sender: No OFD packet to send [01:35:17]OFD Sender: No OFD packet to send [01:35:22]OFD Sender: No OFD packet to send [01:35:27]OFD Sender: No OFD packet to send [01:35:32]OFD Sender: No OFD packet to send [01:35:37]OFD Sender: No OFD packet to send [01:35:42]OFD Sender: No OFD packet to send [01:35:47]OFD Sender: No OFD packet to send [01:35:52]OFD Sender: No OFD packet to send [01:35:57]OFD Sender: No OFD packet to send [01:36:02]OFD Sender: No OFD packet to send [01:36:07]OFD Sender: No OFD packet to send [01:36:12]OFD Sender: No OFD packet to send [01:36:17]OFD Sender: No OFD packet to send [01:36:22]OFD Sender: No OFD packet to send [01:36:27]OFD Sender: No OFD packet to send [01:36:32]OFD Sender: No OFD packet to send [01:36:37]OFD Sender: No OFD packet to send [01:36:42]OFD Sender: No OFD packet to send [01:36:47]OFD Sender: No OFD packet to send [01:36:52]OFD Sender: No OFD packet to send [01:36:57]OFD Sender: No OFD packet to send [01:37:02]OFD Sender: No OFD packet to send [01:37:03]accept exits with 9 [01:37:03]New connection [01:37:03]New thread 3067460964 created [01:37:03]Thread 3067317604 joined [01:37:03]Waiting for new connection... [01:37:03] Sock 9.Parse request [01:37:03]Sock 9.Check first char [01:37:03]Sock 9.First char is OK [01:37:03]request: POST /json_proto HTTP/1.0 [01:37:03]Method: POST [01:37:03]URL: /json_proto [01:37:03]Method is POST - this is cgi request [01:37:03]url: /json_proto [01:37:03]query_string will be loaded in cgi processing [01:37:03]execute_cgi json_proto POST (null) [01:37:03]execute_cgi path=json_proto method=POST [01:37:03]POST find Content-Length [01:37:03]Host: 172.17.45.132:8080 [01:37:03]Content-Length: 604 [01:37:03]Content-Type: application/json [01:37:03] [01:37:03]POST finish read [01:37:03]Found Content-Length = 604 [01:37:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126450", "tax_sys" : 0, "items" : [ { "code": "4008177136924", "name": "\u041C\u041C Castrol Magnatec 5W-40 1\u043B", "price" : 1000.00, "quantity" : 1.000, "sum" : 1000.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1000.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:37:03]execute_script... [01:37: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)126450", "tax_sys" : 0, "items" : [ { "code": "4008177136924", "name": "\u041C\u041C Castrol Magnatec 5W-40 1\u043B", "price" : 1000.00, "quantity" : 1.000, "sum" : 1000.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1000.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:37:03]POST & json_proto [01:37:03]process_json_proto [01:37:03]json parsed OK: [01:37:03]protocol is kg_v1.0 [01:37:03]action value=close_receipt [01:37:03]process_action close_receipt [01:37:03]cmd_close_receipt [01:37:03]MH_GetDate [01:37:03]Write to MH i2c: F0 00 00 03 6D 5F [01:37:03]Write i2c OK [01:37:03]MH_I2C_Read... [01:37:03]Read from MH i2c: F0 [01:37:03]MH_I2C_Read... [01:37:03]Read from MH i2c: F0 09 00 [01:37:03]MH_I2C_Read... [01:37:03]Read from MH i2c: F0 09 00 03 6D 00 47 F2 A6 66 E3 0B 90 66 91 [01:37:03]GetLastDocTimeStamp 1722215792 [01:37:03]current date 1722217031 [01:37:03]FM_GetShiftState [01:37:03]SAM_PROTO_GetShiftState [01:37:03]wFMCommunicate request_size=4 [01:37:03]MH_SAM_APDU [01:37:03]CAPDU: 80 13 01 00 [01:37:03]Write to MH i2c: E2 08 00 04 6D 80 13 01 00 00 00 00 00 EE [01:37:03]Write i2c OK [01:37:03]MH_I2C_Read... [01:37:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:37:03]Read from MH i2c: E2 [01:37:03]MH_I2C_Read... [01:37:03]Read from MH i2c: E2 0E 00 [01:37:03]MH_I2C_Read... [01:37:03]Read from MH i2c: E2 0E 00 04 6D 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 E7 [01:37:03]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [01:37:03]wFMCommunicate OK [01:37:03]SAM_PROTO_GetShiftState done [01:37:03]FM_GetShiftState done [01:37:03]opened in 1722213119 [01:37:03]opened+sec_in_day 1722299519 [01:37:03]quantity*price = 100000 [01:37:03]sum+1 = 100001 [01:37:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.19 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 6 29.07.2024 01:37 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2157 ФПД: 172120188819283 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T013711&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2157&fm=172120188819283&tin=02508201610067®Number=0000000000189667&sum=100000 0 [01:37:04]StoreToDocumentArchive [01:37:04]shift 15 fd 2157 [01:37:04]save to /storage/0015/doc_00002157 [01:37:04]save last doc name /storage/0015/doc_00002157 to /storage/kkm_last_doc_name [01:37:04]save OK [01:37:04]Clear old archive folders... [01:37:04]ProcessDocumentItem done err = 0, tmpTLVsize=273 [01:37:04]tlvbuf is 0217C5E0 [01:37:04]SAM_PROTO_ClearQueue [01:37:04]wFMCommunicate request_size=4 [01:37:04]MH_SAM_APDU [01:37:04]CAPDU: 80 09 00 00 [01:37:04]Write to MH i2c: E2 08 00 11 6D 80 09 00 00 00 00 00 00 F0 [01:37:04]Write i2c OK [01:37:04]MH_I2C_Read... [01:37:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:37:04]Read from MH i2c: E2 [01:37:04]MH_I2C_Read... [01:37:04]Read from MH i2c: E2 03 00 [01:37:04]MH_I2C_Read... [01:37:04]Read from MH i2c: E2 03 00 11 6D 00 90 00 F2 [01:37:04]RAPDU: 90 00 [01:37:04]wFMCommunicate OK [01:37:04]SAM_PROTO_ClearQueue done [01:37:04]KKMCreateOFDPacket [01:37:04]OFDProtocolAddRootSTLVToBuf [01:37:04]FM_MakeSignedData [01:37:04]FM_MakeSignedData [01:37:04]SAM_PROTO_SignData [01:37:04]wFMCommunicate request_size=4 [01:37:04]MH_SAM_APDU [01:37:04]CAPDU: 80 0D 01 02 [01:37:04]Write to MH i2c: E2 08 00 12 6D 80 0D 01 02 00 00 00 00 F8 [01:37:04]Write i2c OK [01:37:04]MH_I2C_Read... [01:37:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:37:04]Read from MH i2c: E2 [01:37:04]MH_I2C_Read... [01:37:04]Read from MH i2c: E2 03 00 [01:37:04]MH_I2C_Read... [01:37:04]Read from MH i2c: E2 03 00 12 6D 00 90 00 F3 [01:37:04]RAPDU: 90 00 [01:37:04]wFMCommunicate OK [01:37:04]wFMCommunicate request_size=255 [01:37:04]MH_SAM_APDU [01:37:04]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 30 30 38 31 37 37 31 33 36 39 32 34 06 04 1F 00 D0 9C D0 9C 20 43 61 73 74 72 6F 6C 20 4D 61 67 6E 61 74 65 63 20 35 57 2D 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 86 01 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 A0 86 01 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 47 F2 A6 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 [01:37:04]Write to MH i2c: E2 02 01 13 6D 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 30 30 38 31 37 37 31 33 36 39 32 34 06 04 1F 00 D0 9C D0 9C 20 43 61 73 74 72 6F 6C 20 4D 61 67 6E 61 74 65 63 20 35 57 2D 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 86 01 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 A0 86 01 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 47 F2 A6 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 00 00 86 [01:37:04]Write i2c OK [01:37:04]MH_I2C_Read... [01:37:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:37:04]Read from MH i2c: E2 [01:37:04]MH_I2C_Read... [01:37:04]Read from MH i2c: E2 03 00 [01:37:04]MH_I2C_Read... [01:37:04]Read from MH i2c: E2 03 00 13 6D 00 90 00 F4 [01:37:04]RAPDU: 90 00 [01:37:04]wFMCommunicate OK [01:37:04]wFMCommunicate request_size=32 [01:37:04]MH_SAM_APDU [01:37:04]CAPDU: 80 0D 02 02 1B 30 30 32 30 39 34 32 34 38 10 04 04 00 6D 08 00 00 35 04 06 00 9C 8A DA B6 97 53 [01:37:04]Write to MH i2c: E2 23 00 14 6D 80 0D 02 02 1B 00 30 30 32 30 39 34 32 34 38 10 04 04 00 6D 08 00 00 35 04 06 00 9C 8A DA B6 97 53 00 00 6A [01:37:04]Write i2c OK [01:37:04]MH_I2C_Read... [01:37:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:37:04]Read from MH i2c: E2 [01:37:04]MH_I2C_Read... [01:37:04]Read from MH i2c: E2 03 00 [01:37:04]MH_I2C_Read... [01:37:04]Read from MH i2c: E2 03 00 14 6D 00 90 00 F5 [01:37:04]RAPDU: 90 00 [01:37:04]wFMCommunicate OK [01:37:04]wFMCommunicate request_size=4 [01:37:04]MH_SAM_APDU [01:37:04]CAPDU: 80 0D 03 02 [01:37:04]Write to MH i2c: E2 08 00 15 6D 80 0D 03 02 00 00 00 00 FD [01:37:04]Write i2c OK [01:37:04]MH_I2C_Read... [01:37:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:37:04]Read from MH i2c: E2 [01:37:04]MH_I2C_Read... [01:37:04]Read from MH i2c: E2 0B 00 [01:37:04]MH_I2C_Read... [01:37:04]Read from MH i2c: E2 0B 00 15 6D 00 B4 02 69 D1 75 F7 CB E7 90 00 0C [01:37:04]RAPDU: B4 02 69 D1 75 F7 CB E7 90 00 [01:37:04]wFMCommunicate OK [01:37:04]SAM_PROTO_SignData done [01:37:04]FM_MakeSignedData done [01:37:04]CreateOFDProtocolMessage [01:37:04]wFMCommunicate request_size=4 [01:37:04]MH_SAM_APDU [01:37:04]CAPDU: 80 11 00 00 [01:37:04]Write to MH i2c: E2 08 00 16 6D 80 11 00 00 00 00 00 00 FD [01:37:04]Write i2c OK [01:37:04]MH_I2C_Read... [01:37:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:37:04]Read from MH i2c: E2 [01:37:04]MH_I2C_Read... [01:37:04]Read from MH i2c: E2 17 00 [01:37:04]MH_I2C_Read... [01:37:04]Read from MH i2c: E2 17 00 16 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 4D [01:37:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [01:37:04]wFMCommunicate OK [01:37:04]CreateOFDProtocolMessage done [01:37:04]OFDSenderStorePacket 2157 [01:37:04]StoreOFDPacket docnum=2157 [01:37:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 25 01 00 00 E7 18 1D 01 EC 19 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 30 30 38 31 37 37 31 33 36 39 32 34 06 04 1F 00 D0 9C D0 9C 20 43 61 73 74 72 6F 6C 20 4D 61 67 6E 61 74 65 63 20 35 57 2D 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 86 01 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 A0 86 01 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 47 F2 A6 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 6D 08 00 00 35 04 06 00 9C 8A DA B6 97 53 B4 02 69 D1 75 F7 CB E7 [01:37:04]CheckFolder [01:37:04]dirname=/storage/ofd_packets [01:37:04]CheckFolder done [01:37:04]ProducePacketName [01:37:04]name=ofd_packets/00002157 [01:37:04]NVStorageSaveData ofd_packets/00002157 [01:37:04]File name is /storage/ofd_packets/00002157 [01:37:04]Write 323 bytes [01:37:04]NVStorageSaveData done [01:37:04]OFDSenderStorePacket done [01:37:04]KKMCreateOFDPacket done [01:37:04]NVStorageSaveData kkm_last_timestamp [01:37:04]File name is /storage/kkm_last_timestamp [01:37:04]Write 4 bytes [01:37:04]NVStorageSaveData done [01:37:04]ExternCall_PrintAddStr [01:37:04]wPrintStart [01:37:04]Write to MH i2c: 01 00 00 17 6D 84 [01:37:04]Write i2c OK [01:37:04]MH_I2C_Read... [01:37:04]Read from MH i2c: 01 [01:37:04]MH_I2C_Read... [01:37:04]Read from MH i2c: 01 07 00 [01:37:04]MH_I2C_Read... [01:37:04]Read from MH i2c: 01 07 00 17 6D 00 00 00 00 00 FF 0F 99 [01:37:04]RasterBufferAndPrint [01:37:04]line Счет N : (3)126450 [01:37:04]line ИНН: 02508201610067 [01:37:04]line Контрольно-Кассовый Чек [01:37:04]line ПРОДАЖА [01:37:04]line Товар: 4008177136924 [01:37:04]line ММ Castrol Magnatec 5W-40 1л [01:37:04]line 1.000 * 1000.00 [01:37:04]line = 1000.00 [01:37:04]line НДС 12% НСП 1% [01:37:04]line > о реализуемом товаре [01:37:04]line ИТОГО: 1000.00 [01:37:04]line НСП 1% : 8.85 [01:37:04]line НДС 12% : 106.19 [01:37:04]line Наличными: 1000.00 [01:37:04]line Безнал.: 0.00 [01:37:04]line Место: АЗС № 127 "Партнер Нефть" [01:37:04]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [01:37:04]line СНО: Общий режим [01:37:04]line Чек 6 29.07.2024 01:37 [01:37:04]line Смена: 15 ФФД: 1.0 [01:37:04]line ЗНМ: 0300000161 [01:37:04]line РНМ: 0000000000189667 [01:37:04]line Версия ККМ: v1.0 [01:37:04]line ФМ: 0000000002094248 [01:37:04]line ФД: 2157 [01:37:04]line ФПД: 172120188819283 [01:37:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T013711&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2157&fm=172120188819283&tin=02508201610067®Number=0000000000189667&sum=100000 [01:37:05]line 0 [01:37:05]OFD Sender: Processing packet 2157 [packets to send 1, broken 0] [01:37:05]ProducePacketName [01:37:05]name=ofd_packets/00002157 [01:37:05]OFD Sender: To server: pG, [01:37:05]CommunicateWithHost lk.salyk.kg:30040 [01:37:05]ConnectInit lk.salyk.kg [01:37:05]written 0, free lines is 4095 [01:37:05]Connected sock=10 [01:37:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 25 01 00 00 E7 18 1D 01 EC 19 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 30 30 38 31 37 37 31 33 36 39 32 34 06 04 1F 00 D0 9C D0 9C 20 43 61 73 74 72 6F 6C 20 4D 61 67 6E 61 74 65 63 20 35 57 2D 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 86 01 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 A0 86 01 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 47 F2 A6 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 6D 08 00 00 35 04 06 00 9C 8A DA B6 97 53 B4 02 69 D1 75 F7 CB E7 [01:37:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 C8 D8 47 00 FF A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 6D 08 00 00 F4 03 04 00 B5 9D A6 66 B6 04 01 00 00 2E 69 CD 8C EF 3D 45 1C [01:37:05]CommunicateWithHost err = 0 [01:37:05]CheckOFDResponse [01:37:05]1017 (14) - 77093643461234 [01:37:05]1041 (16) - 0000000002094248 [01:37:05]1040 (4) - 2157 [01:37:05]1012 (4) - 28.07.2024 19:36 [01:37:05]1206 (1) - 0 [01:37:05]OFD Sender: Remove packet 2157 [01:37:05]ProducePacketName [01:37:05]name=ofd_packets/00002157 [01:37:05]NVStorageDeleteData [01:37:05]Write to MH i2c: 01 00 00 40 6D AD [01:37:05]Write i2c OK [01:37:05]MH_I2C_Read... [01:37:05]Read from MH i2c: 01 [01:37:05]MH_I2C_Read... [01:37:05]Read from MH i2c: 01 07 00 [01:37:05]MH_I2C_Read... [01:37:05]Read from MH i2c: 01 07 00 40 6D 00 00 00 00 00 FA 0C BA [01:37:05]RasterBufferAndPrint [01:37:05]line [01:37:05]line [01:37:05]line [01:37:05]line [01:37:05]line [01:37:05]written 0, free lines is 3331 [01:37:05]MH_Cut [01:37:05]Write to MH i2c: D1 01 00 47 6D 01 86 [01:37:05]Write i2c OK [01:37:05]MH_I2C_Read... [01:37:05]Read from MH i2c: D1 [01:37:05]MH_I2C_Read... [01:37:05]Read from MH i2c: D1 01 00 [01:37:05]MH_I2C_Read... [01:37:05]Read from MH i2c: D1 01 00 47 6D 00 85 [01:37:05]Write to MH i2c: 01 00 00 48 6D B5 [01:37:05]Write i2c OK [01:37:05]MH_I2C_Read... [01:37:06]OFD Sender: No OFD packet to send [01:37:06]*** Cut start [01:37:06]*** Partial cut [01:37:06]*** CUTSNS_PIN = 1 [01:37:06]*** CUTSNS_PIN = 0 [01:37:06]*** Brake cut motor [01:37:07]Read from MH i2c: 01 [01:37:07]MH_I2C_Read... [01:37:07]*** Stop cut motor [01:37:07]*** Cut end [01:37:07]Read from MH i2c: 01 07 00 [01:37:07]MH_I2C_Read... [01:37:07]Read from MH i2c: 01 07 00 48 6D 00 00 00 00 00 FF 0F CA [01:37:07]process_action close_receipt done [01:37:07]requested_data is exist [01:37:07]produce_requested_data [01:37:07]requested_item fm.sn is exist - process it [01:37:07]wFMCommunicate request_size=4 [01:37:07]MH_SAM_APDU [01:37:07]CAPDU: 80 11 00 00 [01:37:07]Write to MH i2c: E2 08 00 49 6D 80 11 00 00 00 00 00 00 30 [01:37:07]Write i2c OK [01:37:07]MH_I2C_Read... [01:37:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:37:07]Read from MH i2c: E2 [01:37:07]MH_I2C_Read... [01:37:07]Read from MH i2c: E2 17 00 [01:37:07]MH_I2C_Read... [01:37:07]Read from MH i2c: E2 17 00 49 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 80 [01:37:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [01:37:07]wFMCommunicate OK [01:37:07]requested_item fd.num is exist - process it [01:37:07]SAM_PROTO_GetFieldsCounters [01:37:07]wFMCommunicate request_size=4 [01:37:07]MH_SAM_APDU [01:37:07]CAPDU: 80 13 00 00 [01:37:07]Write to MH i2c: E2 08 00 4A 6D 80 13 00 00 00 00 00 00 33 [01:37:07]Write i2c OK [01:37:07]MH_I2C_Read... [01:37:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:37:07]Read from MH i2c: E2 [01:37:07]MH_I2C_Read... [01:37:07]Read from MH i2c: E2 62 00 [01:37:07]MH_I2C_Read... [01:37:07]Read from MH i2c: E2 62 00 4A 6D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 6D 08 00 00 0E 04 04 00 0F 00 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 F3 [01:37:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 6D 08 00 00 0E 04 04 00 0F 00 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:37:07]wFMCommunicate OK [01:37:07]SAM_PROTO_GetFieldsCounters done [01:37:07]requested_item shift.num is exist - process it [01:37:07]requested_item shift.opened is exist - process it [01:37:07]req_shift_opened [01:37:07]FM_GetShiftState [01:37:07]SAM_PROTO_GetShiftState [01:37:07]wFMCommunicate request_size=4 [01:37:07]MH_SAM_APDU [01:37:07]CAPDU: 80 13 01 00 [01:37:07]Write to MH i2c: E2 08 00 4B 6D 80 13 01 00 00 00 00 00 35 [01:37:07]Write i2c OK [01:37:07]MH_I2C_Read... [01:37:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:37:07]Read from MH i2c: E2 [01:37:07]MH_I2C_Read... [01:37:07]Read from MH i2c: E2 0E 00 [01:37:07]MH_I2C_Read... [01:37:07]Read from MH i2c: E2 0E 00 4B 6D 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 2E [01:37:07]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [01:37:07]wFMCommunicate OK [01:37:07]SAM_PROTO_GetShiftState done [01:37:07]FM_GetShiftState done [01:37:07]req_shift_opened done [01:37:07]requested_item shift.open_date is exist - process it [01:37:07]req_shift_open_date [01:37:07]req_shift_open_date done [01:37:07]produce_requested_data done [01:37:07]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2157,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [01:37:07]process_action_free close_receipt [01:37:07]json_value_free [01:37:07]json_value_free done [01:37:07]process_json_proto returns [01:37:07]Send response to host [01:37:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2157,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [01:37:07]free response buf [01:37:07]execute_script done [01:37:07]execute_script returns [01:37:07]free content buf [01:37:07]Sock 9.Close socket [01:37:07]Sock 9.Thread stoped [01:37:11]OFD Sender: No OFD packet to send [01:37:16]OFD Sender: No OFD packet to send [01:37:21]OFD Sender: No OFD packet to send [01:37:26]OFD Sender: No OFD packet to send [01:37:31]OFD Sender: No OFD packet to send [01:37:36]OFD Sender: No OFD packet to send [01:37:41]OFD Sender: No OFD packet to send [01:37:46]OFD Sender: No OFD packet to send [01:37:51]OFD Sender: No OFD packet to send [01:37:56]OFD Sender: No OFD packet to send [01:38:01]OFD Sender: No OFD packet to send [01:38:06]OFD Sender: No OFD packet to send [01:38:11]OFD Sender: No OFD packet to send [01:38:16]OFD Sender: No OFD packet to send [01:38:21]OFD Sender: No OFD packet to send [01:38:26]OFD Sender: No OFD packet to send [01:38:31]OFD Sender: No OFD packet to send [01:38:36]OFD Sender: No OFD packet to send [01:38:41]OFD Sender: No OFD packet to send [01:38:46]OFD Sender: No OFD packet to send [01:38:51]OFD Sender: No OFD packet to send [01:38:56]OFD Sender: No OFD packet to send [01:39:01]OFD Sender: No OFD packet to send [01:39:06]OFD Sender: No OFD packet to send [01:39:11]OFD Sender: No OFD packet to send [01:39:16]OFD Sender: No OFD packet to send [01:39:21]OFD Sender: No OFD packet to send [01:39:26]OFD Sender: No OFD packet to send [01:39:31]OFD Sender: No OFD packet to send [01:39:36]OFD Sender: No OFD packet to send [01:39:41]OFD Sender: No OFD packet to send [01:39:46]OFD Sender: No OFD packet to send [01:39:51]OFD Sender: No OFD packet to send [01:39:56]OFD Sender: No OFD packet to send [01:40:01]OFD Sender: No OFD packet to send [01:40:06]OFD Sender: No OFD packet to send [01:40:11]OFD Sender: No OFD packet to send [01:40:16]OFD Sender: No OFD packet to send [01:40:21]OFD Sender: No OFD packet to send [01:40:26]OFD Sender: No OFD packet to send [01:40:31]OFD Sender: No OFD packet to send [01:40:36]OFD Sender: No OFD packet to send [01:40:41]OFD Sender: No OFD packet to send [01:40:46]OFD Sender: No OFD packet to send [01:40:51]OFD Sender: No OFD packet to send [01:40:56]OFD Sender: No OFD packet to send [01:41:01]OFD Sender: No OFD packet to send [01:41:06]OFD Sender: No OFD packet to send [01:41:11]OFD Sender: No OFD packet to send [01:41:16]OFD Sender: No OFD packet to send [01:41:21]OFD Sender: No OFD packet to send [01:41:26]OFD Sender: No OFD packet to send [01:41:31]OFD Sender: No OFD packet to send [01:41:36]OFD Sender: No OFD packet to send [01:41:41]OFD Sender: No OFD packet to send [01:41:46]OFD Sender: No OFD packet to send [01:41:51]OFD Sender: No OFD packet to send [01:41:56]OFD Sender: No OFD packet to send [01:42:01]OFD Sender: No OFD packet to send [01:42:06]OFD Sender: No OFD packet to send [01:42:11]OFD Sender: No OFD packet to send [01:42:16]OFD Sender: No OFD packet to send [01:42:21]OFD Sender: No OFD packet to send [01:42:26]OFD Sender: No OFD packet to send [01:42:31]OFD Sender: No OFD packet to send [01:42:36]OFD Sender: No OFD packet to send [01:42:41]OFD Sender: No OFD packet to send [01:42:46]OFD Sender: No OFD packet to send [01:42:51]OFD Sender: No OFD packet to send [01:42:56]OFD Sender: No OFD packet to send [01:43:01]OFD Sender: No OFD packet to send [01:43:06]OFD Sender: No OFD packet to send [01:43:11]OFD Sender: No OFD packet to send [01:43:16]OFD Sender: No OFD packet to send [01:43:21]OFD Sender: No OFD packet to send [01:43:26]OFD Sender: No OFD packet to send [01:43:31]OFD Sender: No OFD packet to send [01:43:36]OFD Sender: No OFD packet to send [01:43:41]OFD Sender: No OFD packet to send [01:43:46]OFD Sender: No OFD packet to send [01:43:51]OFD Sender: No OFD packet to send [01:43:56]OFD Sender: No OFD packet to send [01:44:01]OFD Sender: No OFD packet to send [01:44:06]OFD Sender: No OFD packet to send [01:44:11]OFD Sender: No OFD packet to send [01:44:16]OFD Sender: No OFD packet to send [01:44:21]OFD Sender: No OFD packet to send [01:44:26]OFD Sender: No OFD packet to send [01:44:31]OFD Sender: No OFD packet to send [01:44:36]OFD Sender: No OFD packet to send [01:44:41]OFD Sender: No OFD packet to send [01:44:46]OFD Sender: No OFD packet to send [01:44:51]OFD Sender: No OFD packet to send [01:44:56]OFD Sender: No OFD packet to send [01:45:01]OFD Sender: No OFD packet to send [01:45:06]OFD Sender: No OFD packet to send [01:45:11]OFD Sender: No OFD packet to send [01:45:16]OFD Sender: No OFD packet to send [01:45:21]OFD Sender: No OFD packet to send [01:45:26]OFD Sender: No OFD packet to send [01:45:31]OFD Sender: No OFD packet to send [01:45:36]OFD Sender: No OFD packet to send [01:45:41]OFD Sender: No OFD packet to send [01:45:46]OFD Sender: No OFD packet to send [01:45:51]OFD Sender: No OFD packet to send [01:45:56]OFD Sender: No OFD packet to send [01:46:01]OFD Sender: No OFD packet to send [01:46:06]OFD Sender: No OFD packet to send [01:46:11]OFD Sender: No OFD packet to send [01:46:16]OFD Sender: No OFD packet to send [01:46:21]OFD Sender: No OFD packet to send [01:46:26]OFD Sender: No OFD packet to send [01:46:31]OFD Sender: No OFD packet to send [01:46:36]OFD Sender: No OFD packet to send [01:46:41]OFD Sender: No OFD packet to send [01:46:46]OFD Sender: No OFD packet to send [01:46:51]OFD Sender: No OFD packet to send [01:46:56]OFD Sender: No OFD packet to send [01:47:01]OFD Sender: No OFD packet to send [01:47:06]OFD Sender: No OFD packet to send [01:47:11]OFD Sender: No OFD packet to send [01:47:16]OFD Sender: No OFD packet to send [01:47:21]OFD Sender: No OFD packet to send [01:47:26]OFD Sender: No OFD packet to send [01:47:31]OFD Sender: No OFD packet to send [01:47:36]OFD Sender: No OFD packet to send [01:47:41]OFD Sender: No OFD packet to send [01:47:46]OFD Sender: No OFD packet to send [01:47:51]OFD Sender: No OFD packet to send [01:47:56]OFD Sender: No OFD packet to send [01:48:01]OFD Sender: No OFD packet to send [01:48:06]OFD Sender: No OFD packet to send [01:48:11]OFD Sender: No OFD packet to send [01:48: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:37]OFD Sender: No OFD packet to send [01:55:42]OFD Sender: No OFD packet to send [01:55:47]OFD Sender: No OFD packet to send [01:55:52]OFD Sender: No OFD packet to send [01:55:57]OFD Sender: No OFD packet to send [01:56:02]OFD Sender: No OFD packet to send [01:56:07]OFD Sender: No OFD packet to send [01:56:12]OFD Sender: No OFD packet to send [01:56:17]OFD Sender: No OFD packet to send [01:56:22]OFD Sender: No OFD packet to send [01:56:27]OFD Sender: No OFD packet to send [01:56:32]OFD Sender: No OFD packet to send [01:56:37]OFD Sender: No OFD packet to send [01:56:42]OFD Sender: No OFD packet to send [01:56:47]OFD Sender: No OFD packet to send [01:56:52]OFD Sender: No OFD packet to send [01:56:57]OFD Sender: No OFD packet to send [01:57:02]OFD Sender: No OFD packet to send [01:57:07]OFD Sender: No OFD packet to send [01:57:12]OFD Sender: No OFD packet to send [01:57:17]OFD Sender: No OFD packet to send [01:57:22]OFD Sender: No OFD packet to send [01:57:27]OFD Sender: No OFD packet to send [01:57:32]OFD Sender: No OFD packet to send [01:57:37]OFD Sender: No OFD packet to send [01:57:42]OFD Sender: No OFD packet to send [01:57:47]OFD Sender: No OFD packet to send [01:57:52]OFD Sender: No OFD packet to send [01:57:57]OFD Sender: No OFD packet to send [01:58:02]OFD Sender: No OFD packet to send [01:58:07]OFD Sender: No OFD packet to send [01:58:12]OFD Sender: No OFD packet to send [01:58:17]OFD Sender: No OFD packet to send [01:58:22]OFD Sender: No OFD packet to send [01:58:27]OFD Sender: No OFD packet to send [01:58:32]OFD Sender: No OFD packet to send [01:58:37]OFD Sender: No OFD packet to send [01:58:42]OFD Sender: No OFD packet to send [01:58:47]OFD Sender: No OFD packet to send [01:58:52]OFD Sender: No OFD packet to send [01:58:57]OFD Sender: No OFD packet to send [01:59:02]OFD Sender: No OFD packet to send [01:59:07]OFD Sender: No OFD packet to send [01:59:12]OFD Sender: No OFD packet to send [01:59:17]OFD Sender: No OFD packet to send [01:59:22]OFD Sender: No OFD packet to send [01:59:27]OFD Sender: No OFD packet to send [01:59:32]OFD Sender: No OFD packet to send [01:59:37]OFD Sender: No OFD packet to send [01:59:42]OFD Sender: No OFD packet to send [01:59:47]OFD Sender: No OFD packet to send [01:59:52]OFD Sender: No OFD packet to send [01:59:57]OFD Sender: No OFD packet to send [02:00:02]OFD Sender: No OFD packet to send [02:00:07]OFD Sender: No OFD packet to send [02:00:12]OFD Sender: No OFD packet to send [02:00:17]OFD Sender: No OFD packet to send [02:00:22]OFD Sender: No OFD packet to send [02:00:27]OFD Sender: No OFD packet to send [02:00:32]OFD Sender: No OFD packet to send [02:00:37]OFD Sender: No OFD packet to send [02:00:42]OFD Sender: No OFD packet to send [02:00:47]OFD Sender: No OFD packet to send [02:00:52]OFD Sender: No OFD packet to send [02:00:57]OFD Sender: No OFD packet to send [02:01:02]OFD Sender: No OFD packet to send [02:01:07]OFD Sender: No OFD packet to send [02:01:12]OFD Sender: No OFD packet to send [02:01:17]OFD Sender: No OFD packet to send [02:01:22]OFD Sender: No OFD packet to send [02:01:27]OFD Sender: No OFD packet to send [02:01:32]OFD Sender: No OFD packet to send [02:01:37]OFD Sender: No OFD packet to send [02:01:42]OFD Sender: No OFD packet to send [02:01:47]OFD Sender: No OFD packet to send [02:01:52]OFD Sender: No OFD packet to send [02:01:57]OFD Sender: No OFD packet to send [02:02:02]OFD Sender: No OFD packet to send [02:02:07]OFD Sender: No OFD packet to send [02:02:12]OFD Sender: No OFD packet to send [02:02:17]OFD Sender: No OFD packet to send [02:02:22]OFD Sender: No OFD packet to send [02:02:27]OFD Sender: No OFD packet to send [02:02:32]OFD Sender: No OFD packet to send [02:02:33]accept exits with 8 [02:02:33]New connection [02:02:33]New thread 3067317604 created [02:02:33]Thread 3067460964 joined [02:02:33]Waiting for new connection... [02:02:33] Sock 8.Parse request [02:02:33]Sock 8.Check first char [02:02:33]Sock 8.First char is OK [02:02:33]request: POST /json_proto HTTP/1.0 [02:02:33]Method: POST [02:02:33]URL: /json_proto [02:02:33]Method is POST - this is cgi request [02:02:33]url: /json_proto [02:02:33]query_string will be loaded in cgi processing [02:02:33]execute_cgi json_proto POST (null) [02:02:33]execute_cgi path=json_proto method=POST [02:02:33]POST find Content-Length [02:02:33]Host: 172.17.45.132:8080 [02:02:33]Content-Length: 1439 [02:02:33]Content-Type: application/json [02:02:33] [02:02:33]POST finish read [02:02:33]Found Content-Length = 1439 [02:02:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126451", "tax_sys" : 0, "items" : [ { "code": "4780028461378", "name": "\u0412\u0438\u043D\u043E \u043D\u0430\u0442\u0443\u0440\u0430\u043B\u044C\u043D\u043E\u0435 \u0441\u043E\u0440\u0442\u043E\u0432\u043E\u0435 OREANDA Merlot", "price" : 550.00, "quantity" : 1.000, "sum" : 550.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 782.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:02:33]execute_script... [02:02: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)126451", "tax_sys" : 0, "items" : [ { "code": "4780028461378", "name": "\u0412\u0438\u043D\u043E \u043D\u0430\u0442\u0443\u0440\u0430\u043B\u044C\u043D\u043E\u0435 \u0441\u043E\u0440\u0442\u043E\u0432\u043E\u0435 OREANDA Merlot", "price" : 550.00, "quantity" : 1.000, "sum" : 550.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 782.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:02:33]POST & json_proto [02:02:33]process_json_proto [02:02:33]json parsed OK: [02:02:33]protocol is kg_v1.0 [02:02:33]action value=close_receipt [02:02:33]process_action close_receipt [02:02:33]cmd_close_receipt [02:02:33]MH_GetDate [02:02:33]Write to MH i2c: F0 00 00 4C 6D A8 [02:02:33]Write i2c OK [02:02:33]MH_I2C_Read... [02:02:33]Read from MH i2c: F0 [02:02:33]MH_I2C_Read... [02:02:33]Read from MH i2c: F0 09 00 [02:02:33]MH_I2C_Read... [02:02:33]Read from MH i2c: F0 09 00 4C 6D 00 42 F8 A6 66 E3 0B 90 66 DB [02:02:33]GetLastDocTimeStamp 1722217031 [02:02:33]current date 1722218562 [02:02:33]FM_GetShiftState [02:02:33]SAM_PROTO_GetShiftState [02:02:33]wFMCommunicate request_size=4 [02:02:33]MH_SAM_APDU [02:02:33]CAPDU: 80 13 01 00 [02:02:33]Write to MH i2c: E2 08 00 4D 6D 80 13 01 00 00 00 00 00 37 [02:02:34]Write i2c OK [02:02:34]MH_I2C_Read... [02:02:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:02:34]Read from MH i2c: E2 [02:02:34]MH_I2C_Read... [02:02:34]Read from MH i2c: E2 0E 00 [02:02:34]MH_I2C_Read... [02:02:34]Read from MH i2c: E2 0E 00 4D 6D 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 30 [02:02:34]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [02:02:34]wFMCommunicate OK [02:02:34]SAM_PROTO_GetShiftState done [02:02:34]FM_GetShiftState done [02:02:34]opened in 1722213119 [02:02:34]opened+sec_in_day 1722299519 [02:02:34]quantity*price = 55000 [02:02:34]sum+1 = 55001 [02:02:34]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000189332 Холодный чай Fuse персик 1л 1.000 * 107.00 = 107.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000054227 Напиток Кока-Кола 1л 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 782.00 НСП 1% : 6.93 НДС 12% : 83.04 Наличными: 0.00 Безнал.: 782.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 7 29.07.2024 02:02 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2158 ФПД: 49212705407812 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T020242&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2158&fm=49212705407812&tin=02508201610067®Number=0000000000189667&sum=78200 0 [02:02:34]StoreToDocumentArchive [02:02:34]shift 15 fd 2158 [02:02:34]save to /storage/0015/doc_00002158 [02:02:34]save last doc name /storage/0015/doc_00002158 to /storage/kkm_last_doc_name [02:02:34]save OK [02:02:34]Clear old archive folders... [02:02:34]ProcessDocumentItem done err = 0, tmpTLVsize=530 [02:02:34]tlvbuf is 021A4950 [02:02:34]SAM_PROTO_ClearQueue [02:02:34]wFMCommunicate request_size=4 [02:02:34]MH_SAM_APDU [02:02:34]CAPDU: 80 09 00 00 [02:02:34]Write to MH i2c: E2 08 00 5A 6D 80 09 00 00 00 00 00 00 39 [02:02:34]Write i2c OK [02:02:34]MH_I2C_Read... [02:02:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:02:34]Read from MH i2c: E2 [02:02:34]MH_I2C_Read... [02:02:34]Read from MH i2c: E2 03 00 [02:02:34]MH_I2C_Read... [02:02:34]Read from MH i2c: E2 03 00 5A 6D 00 90 00 3B [02:02:34]RAPDU: 90 00 [02:02:34]wFMCommunicate OK [02:02:34]SAM_PROTO_ClearQueue done [02:02:34]KKMCreateOFDPacket [02:02:34]OFDProtocolAddRootSTLVToBuf [02:02:34]FM_MakeSignedData [02:02:34]FM_MakeSignedData [02:02:34]SAM_PROTO_SignData [02:02:34]wFMCommunicate request_size=4 [02:02:34]MH_SAM_APDU [02:02:34]CAPDU: 80 0D 01 02 [02:02:34]Write to MH i2c: E2 08 00 5B 6D 80 0D 01 02 00 00 00 00 41 [02:02:34]Write i2c OK [02:02:34]MH_I2C_Read... [02:02:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:02:34]Read from MH i2c: E2 [02:02:34]MH_I2C_Read... [02:02:34]Read from MH i2c: E2 03 00 [02:02:34]MH_I2C_Read... [02:02:34]Read from MH i2c: E2 03 00 5B 6D 00 90 00 3C [02:02:34]RAPDU: 90 00 [02:02:34]wFMCommunicate OK [02:02:34]wFMCommunicate request_size=255 [02:02:34]MH_SAM_APDU [02:02:34]CAPDU: 80 0D 02 02 FA 03 00 12 02 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 37 38 30 30 32 38 34 36 31 33 37 38 06 04 3F 00 D0 92 D0 B8 D0 BD D0 BE 20 D0 BD D0 B0 D1 82 D1 83 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 BE D0 B5 20 D1 81 D0 BE D1 80 D1 82 D0 BE D0 B2 D0 BE D0 B5 20 4F 52 45 41 4E 44 41 20 4D 65 72 6C 6F 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 D6 00 00 00 00 13 04 06 00 D8 D6 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 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 [02:02:35]Write to MH i2c: E2 02 01 5C 6D 80 0D 02 02 FA 00 03 00 12 02 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 37 38 30 30 32 38 34 36 31 33 37 38 06 04 3F 00 D0 92 D0 B8 D0 BD D0 BE 20 D0 BD D0 B0 D1 82 D1 83 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 BE D0 B5 20 D1 81 D0 BE D1 80 D1 82 D0 BE D0 B2 D0 BE D0 B5 20 4F 52 45 41 4E 44 41 20 4D 65 72 6C 6F 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 D6 00 00 00 00 13 04 06 00 D8 D6 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 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 00 00 02 [02:02:35]Write i2c OK [02:02:35]MH_I2C_Read... [02:02:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:02:35]Read from MH i2c: E2 [02:02:35]MH_I2C_Read... [02:02:35]Read from MH i2c: E2 03 00 [02:02:35]MH_I2C_Read... [02:02:35]Read from MH i2c: E2 03 00 5C 6D 00 90 00 3D [02:02:35]RAPDU: 90 00 [02:02:35]wFMCommunicate OK [02:02:35]wFMCommunicate request_size=255 [02:02:35]MH_SAM_APDU [02:02:35]CAPDU: 80 0D 02 02 FA 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 FC 03 06 00 78 31 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 20 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 31 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 42 F8 A6 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 [02:02:35]Write to MH i2c: E2 02 01 5D 6D 80 0D 02 02 FA 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 FC 03 06 00 78 31 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 20 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 31 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 42 F8 A6 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 00 00 66 [02:02:35]Write i2c OK [02:02:35]MH_I2C_Read... [02:02:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:02:35]Read from MH i2c: E2 [02:02:35]MH_I2C_Read... [02:02:35]Read from MH i2c: E2 03 00 [02:02:35]MH_I2C_Read... [02:02:35]Read from MH i2c: E2 03 00 5D 6D 00 90 00 3E [02:02:35]RAPDU: 90 00 [02:02:35]wFMCommunicate OK [02:02:35]wFMCommunicate request_size=39 [02:02:35]MH_SAM_APDU [02:02:35]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 6E 08 00 00 35 04 06 00 2C C2 39 D3 03 44 [02:02:35]Write to MH i2c: E2 2A 00 5E 6D 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 6E 08 00 00 35 04 06 00 2C C2 39 D3 03 44 00 00 B4 [02:02:35]Write i2c OK [02:02:35]MH_I2C_Read... [02:02:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:02:35]Read from MH i2c: E2 [02:02:35]MH_I2C_Read... [02:02:35]Read from MH i2c: E2 03 00 [02:02:35]MH_I2C_Read... [02:02:35]Read from MH i2c: E2 03 00 5E 6D 00 90 00 3F [02:02:35]RAPDU: 90 00 [02:02:35]wFMCommunicate OK [02:02:35]wFMCommunicate request_size=4 [02:02:35]MH_SAM_APDU [02:02:35]CAPDU: 80 0D 03 02 [02:02:35]Write to MH i2c: E2 08 00 5F 6D 80 0D 03 02 00 00 00 00 47 [02:02:35]Write i2c OK [02:02:35]MH_I2C_Read... [02:02:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:02:35]Read from MH i2c: E2 [02:02:35]MH_I2C_Read... [02:02:35]Read from MH i2c: E2 0B 00 [02:02:35]MH_I2C_Read... [02:02:35]Read from MH i2c: E2 0B 00 5F 6D 00 3D AF 27 36 AD 85 48 6A 90 00 75 [02:02:35]RAPDU: 3D AF 27 36 AD 85 48 6A 90 00 [02:02:35]wFMCommunicate OK [02:02:35]SAM_PROTO_SignData done [02:02:35]FM_MakeSignedData done [02:02:35]CreateOFDProtocolMessage [02:02:35]wFMCommunicate request_size=4 [02:02:35]MH_SAM_APDU [02:02:35]CAPDU: 80 11 00 00 [02:02:35]Write to MH i2c: E2 08 00 60 6D 80 11 00 00 00 00 00 00 47 [02:02:35]Write i2c OK [02:02:35]MH_I2C_Read... [02:02:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:02:36]Read from MH i2c: E2 [02:02:36]MH_I2C_Read... [02:02:36]Read from MH i2c: E2 17 00 [02:02:36]MH_I2C_Read... [02:02:36]Read from MH i2c: E2 17 00 60 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 97 [02:02:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [02:02:36]wFMCommunicate OK [02:02:36]CreateOFDProtocolMessage done [02:02:36]OFDSenderStorePacket 2158 [02:02:36]StoreOFDPacket docnum=2158 [02:02:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 26 02 00 00 D2 FF 1E 02 95 04 5A 03 01 00 03 00 12 02 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 37 38 30 30 32 38 34 36 31 33 37 38 06 04 3F 00 D0 92 D0 B8 D0 BD D0 BE 20 D0 BD D0 B0 D1 82 D1 83 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 BE D0 B5 20 D1 81 D0 BE D1 80 D1 82 D0 BE D0 B2 D0 BE D0 B5 20 4F 52 45 41 4E 44 41 20 4D 65 72 6C 6F 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 D6 00 00 00 00 13 04 06 00 D8 D6 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 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 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 31 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 20 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 31 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 42 F8 A6 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 6E 08 00 00 35 04 06 00 2C C2 39 D3 03 44 3D AF 27 36 AD 85 48 6A [02:02:36]CheckFolder [02:02:36]dirname=/storage/ofd_packets [02:02:36]CheckFolder done [02:02:36]ProducePacketName [02:02:36]name=ofd_packets/00002158 [02:02:36]NVStorageSaveData ofd_packets/00002158 [02:02:36]File name is /storage/ofd_packets/00002158 [02:02:36]Write 580 bytes [02:02:36]NVStorageSaveData done [02:02:36]OFDSenderStorePacket done [02:02:36]KKMCreateOFDPacket done [02:02:36]NVStorageSaveData kkm_last_timestamp [02:02:36]File name is /storage/kkm_last_timestamp [02:02:36]Write 4 bytes [02:02:36]NVStorageSaveData done [02:02:36]ExternCall_PrintAddStr [02:02:36]wPrintStart [02:02:36]Write to MH i2c: 01 00 00 61 6D CE [02:02:36]Write i2c OK [02:02:36]MH_I2C_Read... [02:02:36]Read from MH i2c: 01 [02:02:36]MH_I2C_Read... [02:02:36]Read from MH i2c: 01 07 00 [02:02:36]MH_I2C_Read... [02:02:36]Read from MH i2c: 01 07 00 61 6D 00 00 00 00 00 FF 0F E3 [02:02:36]RasterBufferAndPrint [02:02:36]line Счет N : (3)126451 [02:02:36]line ИНН: 02508201610067 [02:02:36]line Контрольно-Кассовый Чек [02:02:36]line ПРОДАЖА [02:02:36]line Товар: 4780028461378 [02:02:36]line Вино натуральное сортовое OREANDA Merlot [02:02:36]line 1.000 * 550.00 [02:02:36]line = 550.00 [02:02:36]line НДС 12% НСП 1% [02:02:36]line > о реализуемом товаре [02:02:36]line Товар: 5449000189332 [02:02:36]line Холодный чай Fuse персик 1л [02:02:36]line 1.000 * 107.00 [02:02:36]line = 107.00 [02:02:36]line НДС 12% НСП 1% [02:02:36]line > о реализуемом товаре [02:02:36]line Товар: 5449000054227 [02:02:36]line Напиток Кока-Кола 1л [02:02:36]line 1.000 * 125.00 [02:02:36]line = 125.00 [02:02:36]line НДС 12% НСП 1% [02:02:36]line > о реализуемом товаре [02:02:36]line ИТОГО: 782.00 [02:02:36]line НСП 1% : 6.93 [02:02:36]line НДС 12% : 83.04 [02:02:36]line Наличными: 0.00 [02:02:36]line Безнал.: 782.00 [02:02:36]line Место: АЗС № 127 "Партнер Нефть" [02:02:36]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [02:02:36]line СНО: Общий режим [02:02:36]line Чек 7 29.07.2024 02:02 [02:02:36]line Смена: 15 ФФД: 1.0 [02:02:36]line ЗНМ: 0300000161 [02:02:36]line РНМ: 0000000000189667 [02:02:36]line Версия ККМ: v1.0 [02:02:36]line Платежная система: O! деньги [02:02:36]line ФМ: 0000000002094248 [02:02:36]line ФД: 2158 [02:02:36]line ФПД: 49212705407812 [02:02:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T020242&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2158&fm=49212705407812&tin=02508201610067®Number=0000000000189667&sum=78200 [02:02:36]OFD Sender: Processing packet 2158 [packets to send 1, broken 0] [02:02:36]ProducePacketName [02:02:36]name=ofd_packets/00002158 [02:02:36]OFD Sender: To server: pG, [02:02:36]CommunicateWithHost lk.salyk.kg:30040 [02:02:36]ConnectInit lk.salyk.kg [02:02:36]line 0 [02:02:36]written 0, free lines is 4095 [02:02:36]Connected sock=10 [02:02:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 26 02 00 00 D2 FF 1E 02 95 04 5A 03 01 00 03 00 12 02 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 37 38 30 30 32 38 34 36 31 33 37 38 06 04 3F 00 D0 92 D0 B8 D0 BD D0 BE 20 D0 BD D0 B0 D1 82 D1 83 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 BE D0 B5 20 D1 81 D0 BE D1 80 D1 82 D0 BE D0 B2 D0 BE D0 B5 20 4F 52 45 41 4E 44 41 20 4D 65 72 6C 6F 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 D6 00 00 00 00 13 04 06 00 D8 D6 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 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 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 31 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 20 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 31 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 42 F8 A6 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 6E 08 00 00 35 04 06 00 2C C2 39 D3 03 44 3D AF 27 36 AD 85 48 6A [02:02:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 15 EE 47 00 43 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 32 30 39 34 32 34 38 10 04 04 00 6E 08 00 00 F4 03 04 00 B0 A3 A6 66 B6 04 01 00 00 68 B4 8C B7 F2 2E 70 5E [02:02:36]CommunicateWithHost err = 0 [02:02:36]CheckOFDResponse [02:02:36]1017 (14) - 77093643461234 [02:02:36]1041 (16) - 0000000002094248 [02:02:36]1040 (4) - 2158 [02:02:36]1012 (4) - 28.07.2024 20:01 [02:02:36]1206 (1) - 0 [02:02:36]OFD Sender: Remove packet 2158 [02:02:36]ProducePacketName [02:02:36]name=ofd_packets/00002158 [02:02:36]NVStorageDeleteData [02:02:36]Write to MH i2c: 01 00 00 98 6D 05 [02:02:36]Write i2c OK [02:02:36]MH_I2C_Read... [02:02:36]Read from MH i2c: 01 [02:02:36]MH_I2C_Read... [02:02:36]Read from MH i2c: 01 07 00 [02:02:36]MH_I2C_Read... [02:02:36]Read from MH i2c: 01 07 00 98 6D 00 00 00 00 00 5C 0C 74 [02:02:37]RasterBufferAndPrint [02:02:37]line [02:02:37]line [02:02:37]line [02:02:37]line [02:02:37]line [02:02:37]written 0, free lines is 3174 [02:02:37]MH_Cut [02:02:37]Write to MH i2c: D1 01 00 9F 6D 01 DE [02:02:37]Write i2c OK [02:02:37]MH_I2C_Read... [02:02:37]Read from MH i2c: D1 [02:02:37]MH_I2C_Read... [02:02:37]Read from MH i2c: D1 01 00 [02:02:37]MH_I2C_Read... [02:02:37]Read from MH i2c: D1 01 00 9F 6D 00 DD [02:02:37]Write to MH i2c: 01 00 00 A0 6D 0D [02:02:37]Write i2c OK [02:02:37]MH_I2C_Read... [02:02:37]OFD Sender: No OFD packet to send [02:02:37]*** Cut start [02:02:37]*** Partial cut [02:02:37]*** CUTSNS_PIN = 1 [02:02:37]*** CUTSNS_PIN = 0 [02:02:38]*** Brake cut motor [02:02:38]Read from MH i2c: 01 [02:02:38]MH_I2C_Read... [02:02:38]*** Stop cut motor [02:02:38]*** Cut end [02:02:38]Read from MH i2c: 01 07 00 [02:02:38]MH_I2C_Read... [02:02:38]Read from MH i2c: 01 07 00 A0 6D 00 00 00 00 00 FF 0F 22 [02:02:38]process_action close_receipt done [02:02:38]requested_data is exist [02:02:38]produce_requested_data [02:02:38]requested_item fm.sn is exist - process it [02:02:38]wFMCommunicate request_size=4 [02:02:38]MH_SAM_APDU [02:02:38]CAPDU: 80 11 00 00 [02:02:38]Write to MH i2c: E2 08 00 A1 6D 80 11 00 00 00 00 00 00 88 [02:02:38]Write i2c OK [02:02:38]MH_I2C_Read... [02:02:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:02:38]Read from MH i2c: E2 [02:02:38]MH_I2C_Read... [02:02:38]Read from MH i2c: E2 17 00 [02:02:38]MH_I2C_Read... [02:02:38]Read from MH i2c: E2 17 00 A1 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 D8 [02:02:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [02:02:38]wFMCommunicate OK [02:02:38]requested_item fd.num is exist - process it [02:02:38]SAM_PROTO_GetFieldsCounters [02:02:38]wFMCommunicate request_size=4 [02:02:38]MH_SAM_APDU [02:02:38]CAPDU: 80 13 00 00 [02:02:38]Write to MH i2c: E2 08 00 A2 6D 80 13 00 00 00 00 00 00 8B [02:02:38]Write i2c OK [02:02:38]MH_I2C_Read... [02:02:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:02:38]Read from MH i2c: E2 [02:02:38]MH_I2C_Read... [02:02:38]Read from MH i2c: E2 62 00 [02:02:38]MH_I2C_Read... [02:02:38]Read from MH i2c: E2 62 00 A2 6D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 6E 08 00 00 0E 04 04 00 0F 00 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 4F [02:02:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 6E 08 00 00 0E 04 04 00 0F 00 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 [02:02:38]wFMCommunicate OK [02:02:38]SAM_PROTO_GetFieldsCounters done [02:02:38]requested_item shift.num is exist - process it [02:02:38]requested_item shift.opened is exist - process it [02:02:38]req_shift_opened [02:02:38]FM_GetShiftState [02:02:38]SAM_PROTO_GetShiftState [02:02:38]wFMCommunicate request_size=4 [02:02:38]MH_SAM_APDU [02:02:38]CAPDU: 80 13 01 00 [02:02:38]Write to MH i2c: E2 08 00 A3 6D 80 13 01 00 00 00 00 00 8D [02:02:38]Write i2c OK [02:02:38]MH_I2C_Read... [02:02:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:02:38]Read from MH i2c: E2 [02:02:38]MH_I2C_Read... [02:02:38]Read from MH i2c: E2 0E 00 [02:02:38]MH_I2C_Read... [02:02:38]Read from MH i2c: E2 0E 00 A3 6D 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 86 [02:02:38]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [02:02:38]wFMCommunicate OK [02:02:38]SAM_PROTO_GetShiftState done [02:02:38]FM_GetShiftState done [02:02:38]req_shift_opened done [02:02:38]requested_item shift.open_date is exist - process it [02:02:38]req_shift_open_date [02:02:38]req_shift_open_date done [02:02:38]produce_requested_data done [02:02:38]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2158,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [02:02:38]process_action_free close_receipt [02:02:38]json_value_free [02:02:38]json_value_free done [02:02:38]process_json_proto returns [02:02:38]Send response to host [02:02:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2158,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [02:02:38]free response buf [02:02:38]execute_script done [02:02:38]execute_script returns [02:02:38]free content buf [02:02:38]Sock 8.Close socket [02:02:38]Sock 8.Thread stoped [02:02:42]OFD Sender: No OFD packet to send [02:02:47]OFD Sender: No OFD packet to send [02:02:52]OFD Sender: No OFD packet to send [02:02:57]OFD Sender: No OFD packet to send [02:03:02]OFD Sender: No OFD packet to send [02:03:07]OFD Sender: No OFD packet to send [02:03:12]OFD Sender: No OFD packet to send [02:03:17]OFD Sender: No OFD packet to send [02:03:22]OFD Sender: No OFD packet to send [02:03:27]OFD Sender: No OFD packet to send [02:03:32]OFD Sender: No OFD packet to send [02:03:37]OFD Sender: No OFD packet to send [02:03:42]OFD Sender: No OFD packet to send [02:03:47]OFD Sender: No OFD packet to send [02:03:52]OFD Sender: No OFD packet to send [02:03:57]OFD Sender: No OFD packet to send [02:04:02]OFD Sender: No OFD packet to send [02:04:07]OFD Sender: No OFD packet to send [02:04:12]OFD Sender: No OFD packet to send [02:04:17]OFD Sender: No OFD packet to send [02:04:22]OFD Sender: No OFD packet to send [02:04:27]OFD Sender: No OFD packet to send [02:04:32]OFD Sender: No OFD packet to send [02:04:37]OFD Sender: No OFD packet to send [02:04:42]OFD Sender: No OFD packet to send [02:04:47]OFD Sender: No OFD packet to send [02:04:52]OFD Sender: No OFD packet to send [02:04:57]OFD Sender: No OFD packet to send [02:05:02]OFD Sender: No OFD packet to send [02:05:07]OFD Sender: No OFD packet to send [02:05:12]OFD Sender: No OFD packet to send [02:05:17]OFD Sender: No OFD packet to send [02:05:22]OFD Sender: No OFD packet to send [02:05:27]OFD Sender: No OFD packet to send [02:05:32]OFD Sender: No OFD packet to send [02:05:37]OFD Sender: No OFD packet to send [02:05:42]OFD Sender: No OFD packet to send [02:05:47]OFD Sender: No OFD packet to send [02:05:52]OFD Sender: No OFD packet to send [02:05:57]OFD Sender: No OFD packet to send [02:06:02]OFD Sender: No OFD packet to send [02:06:07]OFD Sender: No OFD packet to send [02:06:12]OFD Sender: No OFD packet to send [02:06:17]OFD Sender: No OFD packet to send [02:06:22]OFD Sender: No OFD packet to send [02:06:27]OFD Sender: No OFD packet to send [02:06:32]OFD Sender: No OFD packet to send [02:06:37]OFD Sender: No OFD packet to send [02:06:42]OFD Sender: No OFD packet to send [02:06:47]OFD Sender: No OFD packet to send [02:06:52]OFD Sender: No OFD packet to send [02:06:57]OFD Sender: No OFD packet to send [02:07:02]OFD Sender: No OFD packet to send [02:07:07]OFD Sender: No OFD packet to send [02:07:12]OFD Sender: No OFD packet to send [02:07:17]OFD Sender: No OFD packet to send [02:07:22]OFD Sender: No OFD packet to send [02:07:27]OFD Sender: No OFD packet to send [02:07:32]OFD Sender: No OFD packet to send [02:07:37]OFD Sender: No OFD packet to send [02:07:42]OFD Sender: No OFD packet to send [02:07:47]OFD Sender: No OFD packet to send [02:07:52]OFD Sender: No OFD packet to send [02:07:57]OFD Sender: No OFD packet to send [02:08:02]OFD Sender: No OFD packet to send [02:08:07]OFD Sender: No OFD packet to send [02:08:12]OFD Sender: No OFD packet to send [02:08:17]OFD Sender: No OFD packet to send [02:08:22]OFD Sender: No OFD packet to send [02:08:27]OFD Sender: No OFD packet to send [02:08:32]OFD Sender: No OFD packet to send [02:08:37]OFD Sender: No OFD packet to send [02:08:42]OFD Sender: No OFD packet to send [02:08:47]OFD Sender: No OFD packet to send [02:08:52]OFD Sender: No OFD packet to send [02:08:57]OFD Sender: No OFD packet to send [02:09:02]OFD Sender: No OFD packet to send [02:09:07]OFD Sender: No OFD packet to send [02:09:12]OFD Sender: No OFD packet to send [02:09:17]OFD Sender: No OFD packet to send [02:09:22]OFD Sender: No OFD packet to send [02:09:27]OFD Sender: No OFD packet to send [02:09:32]OFD Sender: No OFD packet to send [02:09:37]OFD Sender: No OFD packet to send [02:09:42]OFD Sender: No OFD packet to send [02:09:47]OFD Sender: No OFD packet to send [02:09:52]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:53]OFD Sender: No OFD packet to send [02:16:58]OFD Sender: No OFD packet to send [02:17:03]OFD Sender: No OFD packet to send [02:17:08]OFD Sender: No OFD packet to send [02:17:13]OFD Sender: No OFD packet to send [02:17:18]OFD Sender: No OFD packet to send [02:17:23]OFD Sender: No OFD packet to send [02:17:28]OFD Sender: No OFD packet to send [02:17:33]OFD Sender: No OFD packet to send [02:17:38]OFD Sender: No OFD packet to send [02:17:43]OFD Sender: No OFD packet to send [02:17:48]OFD Sender: No OFD packet to send [02:17:53]OFD Sender: No OFD packet to send [02:17:58]OFD Sender: No OFD packet to send [02:18:03]OFD Sender: No OFD packet to send [02:18:08]OFD Sender: No OFD packet to send [02:18:13]OFD Sender: No OFD packet to send [02:18:18]OFD Sender: No OFD packet to send [02:18:23]OFD Sender: No OFD packet to send [02:18:28]OFD Sender: No OFD packet to send [02:18:33]OFD Sender: No OFD packet to send [02:18:38]OFD Sender: No OFD packet to send [02:18:43]OFD Sender: No OFD packet to send [02:18:48]OFD Sender: No OFD packet to send [02:18:53]OFD Sender: No OFD packet to send [02:18:58]OFD Sender: No OFD packet to send [02:19:03]OFD Sender: No OFD packet to send [02:19:08]OFD Sender: No OFD packet to send [02:19:13]OFD Sender: No OFD packet to send [02:19:18]OFD Sender: No OFD packet to send [02:19:23]OFD Sender: No OFD packet to send [02:19:28]OFD Sender: No OFD packet to send [02:19:33]OFD Sender: No OFD packet to send [02:19:38]OFD Sender: No OFD packet to send [02:19:43]OFD Sender: No OFD packet to send [02:19:48]OFD Sender: No OFD packet to send [02:19:53]OFD Sender: No OFD packet to send [02:19:58]OFD Sender: No OFD packet to send [02:20:03]OFD Sender: No OFD packet to send [02:20:08]OFD Sender: No OFD packet to send [02:20:13]OFD Sender: No OFD packet to send [02:20:18]OFD Sender: No OFD packet to send [02:20:23]OFD Sender: No OFD packet to send [02:20:28]OFD Sender: No OFD packet to send [02:20:33]OFD Sender: No OFD packet to send [02:20:38]OFD Sender: No OFD packet to send [02:20:43]OFD Sender: No OFD packet to send [02:20:48]OFD Sender: No OFD packet to send [02:20:53]OFD Sender: No OFD packet to send [02:20:58]OFD Sender: No OFD packet to send [02:21:03]OFD Sender: No OFD packet to send [02:21:08]OFD Sender: No OFD packet to send [02:21:13]OFD Sender: No OFD packet to send [02:21:18]OFD Sender: No OFD packet to send [02:21:23]OFD Sender: No OFD packet to send [02:21:28]OFD Sender: No OFD packet to send [02:21:33]OFD Sender: No OFD packet to send [02:21:38]OFD Sender: No OFD packet to send [02:21:43]OFD Sender: No OFD packet to send [02:21:48]OFD Sender: No OFD packet to send [02:21:53]OFD Sender: No OFD packet to send [02:21:58]OFD Sender: No OFD packet to send [02:22:03]OFD Sender: No OFD packet to send [02:22:08]OFD Sender: No OFD packet to send [02:22:13]OFD Sender: No OFD packet to send [02:22:18]OFD Sender: No OFD packet to send [02:22:23]OFD Sender: No OFD packet to send [02:22:28]OFD Sender: No OFD packet to send [02:22:33]OFD Sender: No OFD packet to send [02:22:38]OFD Sender: No OFD packet to send [02:22:43]OFD Sender: No OFD packet to send [02:22:48]OFD Sender: No OFD packet to send [02:22:53]OFD Sender: No OFD packet to send [02:22:58]OFD Sender: No OFD packet to send [02:23:03]OFD Sender: No OFD packet to send [02:23:08]OFD Sender: No OFD packet to send [02:23:13]OFD Sender: No OFD packet to send [02:23:18]OFD Sender: No OFD packet to send [02:23:23]OFD Sender: No OFD packet to send [02:23:28]OFD Sender: No OFD packet to send [02:23:33]OFD Sender: No OFD packet to send [02:23:38]OFD Sender: No OFD packet to send [02:23:43]OFD Sender: No OFD packet to send [02:23:48]OFD Sender: No OFD packet to send [02:23:53]OFD Sender: No OFD packet to send [02:23:58]OFD Sender: No OFD packet to send [02:24:03]OFD Sender: No OFD packet to send [02:24:08]OFD Sender: No OFD packet to send [02:24:13]OFD Sender: No OFD packet to send [02:24:18]OFD Sender: No OFD packet to send [02:24:23]OFD Sender: No OFD packet to send [02:24:28]OFD Sender: No OFD packet to send [02:24:33]OFD Sender: No OFD packet to send [02:24:38]OFD Sender: No OFD packet to send [02:24:43]OFD Sender: No OFD packet to send [02:24:48]OFD Sender: No OFD packet to send [02:24:53]OFD Sender: No OFD packet to send [02:24:58]OFD Sender: No OFD packet to send [02:25:03]OFD Sender: No OFD packet to send [02:25:08]OFD Sender: No OFD packet to send [02:25:13]OFD Sender: No OFD packet to send [02:25:18]OFD Sender: No OFD packet to send [02:25:23]OFD Sender: No OFD packet to send [02:25:28]OFD Sender: No OFD packet to send [02:25:33]OFD Sender: No OFD packet to send [02:25:38]OFD Sender: No OFD packet to send [02:25:43]OFD Sender: No OFD packet to send [02:25:48]OFD Sender: No OFD packet to send [02:25:53]OFD Sender: No OFD packet to send [02:25:58]OFD Sender: No OFD packet to send [02:26:03]OFD Sender: No OFD packet to send [02:26:08]OFD Sender: No OFD packet to send [02:26:13]OFD Sender: No OFD packet to send [02:26:18]OFD Sender: No OFD packet to send [02:26:23]OFD Sender: No OFD packet to send [02:26:28]OFD Sender: No OFD packet to send [02:26:33]OFD Sender: No OFD packet to send [02:26:38]OFD Sender: No OFD packet to send [02:26:43]OFD Sender: No OFD packet to send [02:26:48]OFD Sender: No OFD packet to send [02:26:53]OFD Sender: No OFD packet to send [02:26:58]OFD Sender: No OFD packet to send [02:27:03]OFD Sender: No OFD packet to send [02:27:08]OFD Sender: No OFD packet to send [02:27:13]OFD Sender: No OFD packet to send [02:27:18]OFD Sender: No OFD packet to send [02:27:23]OFD Sender: No OFD packet to send [02:27:28]OFD Sender: No OFD packet to send [02:27:33]OFD Sender: No OFD packet to send [02:27:38]OFD Sender: No OFD packet to send [02:27:43]OFD Sender: No OFD packet to send [02:27:48]OFD Sender: No OFD packet to send [02:27:53]OFD Sender: No OFD packet to send [02:27:58]OFD Sender: No OFD packet to send [02:28:03]OFD Sender: No OFD packet to send [02:28:08]OFD Sender: No OFD packet to send [02:28:13]OFD Sender: No OFD packet to send [02:28:18]OFD Sender: No OFD packet to send [02:28:23]OFD Sender: No OFD packet to send [02:28:28]OFD Sender: No OFD packet to send [02:28:33]OFD Sender: No OFD packet to send [02:28:38]OFD Sender: No OFD packet to send [02:28:43]OFD Sender: No OFD packet to send [02:28:48]OFD Sender: No OFD packet to send [02:28:53]OFD Sender: No OFD packet to send [02:28:58]OFD Sender: No OFD packet to send [02:29:03]OFD Sender: No OFD packet to send [02:29:08]OFD Sender: No OFD packet to send [02:29:13]OFD Sender: No OFD packet to send [02:29:18]OFD Sender: No OFD packet to send [02:29:23]OFD Sender: No OFD packet to send [02:29:28]OFD Sender: No OFD packet to send [02:29:33]OFD Sender: No OFD packet to send [02:29:38]OFD Sender: No OFD packet to send [02:29:43]OFD Sender: No OFD packet to send [02:29:48]OFD Sender: No OFD packet to send [02:29:53]OFD Sender: No OFD packet to send [02:29:58]OFD Sender: No OFD packet to send [02:30:03]OFD Sender: No OFD packet to send [02:30:08]OFD Sender: No OFD packet to send [02:30:13]OFD Sender: No OFD packet to send [02:30:18]OFD Sender: No OFD packet to send [02:30:23]OFD Sender: No OFD packet to send [02:30:28]OFD Sender: No OFD packet to send [02:30:33]OFD Sender: No OFD packet to send [02:30:38]OFD Sender: No OFD packet to send [02:30:43]OFD Sender: No OFD packet to send [02:30:48]OFD Sender: No OFD packet to send [02:30:53]OFD Sender: No OFD packet to send [02:30:58]OFD Sender: No OFD packet to send [02:31:03]OFD Sender: No OFD packet to send [02:31:08]OFD Sender: No OFD packet to send [02:31:13]OFD Sender: No OFD packet to send [02:31:18]OFD Sender: No OFD packet to send [02:31:23]OFD Sender: No OFD packet to send [02:31:28]OFD Sender: No OFD packet to send [02:31:33]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:23]OFD Sender: No OFD packet to send [02:34:28]OFD Sender: No OFD packet to send [02:34:33]OFD Sender: No OFD packet to send [02:34:38]OFD Sender: No OFD packet to send [02:34:43]OFD Sender: No OFD packet to send [02:34:48]OFD Sender: No OFD packet to send [02:34:53]OFD Sender: No OFD packet to send [02:34:58]OFD Sender: No OFD packet to send [02:35:03]OFD Sender: No OFD packet to send [02:35:08]OFD Sender: No OFD packet to send [02:35:13]OFD Sender: No OFD packet to send [02:35:18]OFD Sender: No OFD packet to send [02:35:23]OFD Sender: No OFD packet to send [02:35:28]OFD Sender: No OFD packet to send [02:35:33]OFD Sender: No OFD packet to send [02:35:38]OFD Sender: No OFD packet to send [02:35:43]OFD Sender: No OFD packet to send [02:35:48]OFD Sender: No OFD packet to send [02:35:53]OFD Sender: No OFD packet to send [02:35:58]OFD Sender: No OFD packet to send [02:36:03]OFD Sender: No OFD packet to send [02:36:08]OFD Sender: No OFD packet to send [02:36:13]OFD Sender: No OFD packet to send [02:36:18]OFD Sender: No OFD packet to send [02:36:23]OFD Sender: No OFD packet to send [02:36:28]OFD Sender: No OFD packet to send [02:36:33]OFD Sender: No OFD packet to send [02:36:38]OFD Sender: No OFD packet to send [02:36:43]OFD Sender: No OFD packet to send [02:36:48]OFD Sender: No OFD packet to send [02:36:53]OFD Sender: No OFD packet to send [02:36:58]OFD Sender: No OFD packet to send [02:37:03]OFD Sender: No OFD packet to send [02:37:08]OFD Sender: No OFD packet to send [02:37:13]OFD Sender: No OFD packet to send [02:37:18]OFD Sender: No OFD packet to send [02:37:23]OFD Sender: No OFD packet to send [02:37:28]OFD Sender: No OFD packet to send [02:37:33]OFD Sender: No OFD packet to send [02:37:38]OFD Sender: No OFD packet to send [02:37:43]OFD Sender: No OFD packet to send [02:37:48]OFD Sender: No OFD packet to send [02:37:53]OFD Sender: No OFD packet to send [02:37:58]OFD Sender: No OFD packet to send [02:38:03]OFD Sender: No OFD packet to send [02:38:08]OFD Sender: No OFD packet to send [02:38:13]OFD Sender: No OFD packet to send [02:38:18]OFD Sender: No OFD packet to send [02:38:23]OFD Sender: No OFD packet to send [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:49]OFD Sender: No OFD packet to send [02:38:54]OFD Sender: No OFD packet to send [02:38:59]OFD Sender: No OFD packet to send [02:39:04]OFD Sender: No OFD packet to send [02:39:09]OFD Sender: No OFD packet to send [02:39:14]OFD Sender: No OFD packet to send [02:39:19]OFD Sender: No OFD packet to send [02:39:24]OFD Sender: No OFD packet to send [02:39:29]OFD Sender: No OFD packet to send [02:39:34]OFD Sender: No OFD packet to send [02:39:39]OFD Sender: No OFD packet to send [02:39:44]OFD Sender: No OFD packet to send [02:39:49]OFD Sender: No OFD packet to send [02:39:54]OFD Sender: No OFD packet to send [02:39:59]OFD Sender: No OFD packet to send [02:40:04]OFD Sender: No OFD packet to send [02:40:09]OFD Sender: No OFD packet to send [02:40:14]OFD Sender: No OFD packet to send [02:40:19]OFD Sender: No OFD packet to send [02:40:24]OFD Sender: No OFD packet to send [02:40:29]OFD Sender: No OFD packet to send [02:40:34]OFD Sender: No OFD packet to send [02:40:39]OFD Sender: No OFD packet to send [02:40:44]OFD Sender: No OFD packet to send [02:40:49]OFD Sender: No OFD packet to send [02:40:54]OFD Sender: No OFD packet to send [02:40:59]OFD Sender: No OFD packet to send [02:41:04]OFD Sender: No OFD packet to send [02:41:09]OFD Sender: No OFD packet to send [02:41:14]OFD Sender: No OFD packet to send [02:41:19]OFD Sender: No OFD packet to send [02:41:24]OFD Sender: No OFD packet to send [02:41:29]OFD Sender: No OFD packet to send [02:41:34]OFD Sender: No OFD packet to send [02:41:39]OFD Sender: No OFD packet to send [02:41:44]OFD Sender: No OFD packet to send [02:41:49]OFD Sender: No OFD packet to send [02:41:54]OFD Sender: No OFD packet to send [02:41:59]OFD Sender: No OFD packet to send [02:42:04]OFD Sender: No OFD packet to send [02:42:09]OFD Sender: No OFD packet to send [02:42:14]OFD Sender: No OFD packet to send [02:42:19]OFD Sender: No OFD packet to send [02:42:24]OFD Sender: No OFD packet to send [02:42:29]OFD Sender: No OFD packet to send [02:42:34]OFD Sender: No OFD packet to send [02:42:39]OFD Sender: No OFD packet to send [02:42:44]OFD Sender: No OFD packet to send [02:42:49]OFD Sender: No OFD packet to send [02:42:54]OFD Sender: No OFD packet to send [02:42:59]OFD Sender: No OFD packet to send [02:43:04]OFD Sender: No OFD packet to send [02:43:09]OFD Sender: No OFD packet to send [02:43:14]OFD Sender: No OFD packet to send [02:43:19]OFD Sender: No OFD packet to send [02:43:24]OFD Sender: No OFD packet to send [02:43:29]OFD Sender: No OFD packet to send [02:43:34]OFD Sender: No OFD packet to send [02:43:39]OFD Sender: No OFD packet to send [02:43:44]OFD Sender: No OFD packet to send [02:43:49]OFD Sender: No OFD packet to send [02:43:54]OFD Sender: No OFD packet to send [02:43:59]OFD Sender: No OFD packet to send [02:44:04]OFD Sender: No OFD packet to send [02:44:09]OFD Sender: No OFD packet to send [02:44:14]OFD Sender: No OFD packet to send [02:44:19]OFD Sender: No OFD packet to send [02:44:24]OFD Sender: No OFD packet to send [02:44:29]OFD Sender: No OFD packet to send [02:44:34]OFD Sender: No OFD packet to send [02:44:39]OFD Sender: No OFD packet to send [02:44:44]OFD Sender: No OFD packet to send [02:44:49]OFD Sender: No OFD packet to send [02:44:54]OFD Sender: No OFD packet to send [02:44:59]OFD Sender: No OFD packet to send [02:45:04]OFD Sender: No OFD packet to send [02:45:09]OFD Sender: No OFD packet to send [02:45:14]OFD Sender: No OFD packet to send [02:45:19]OFD Sender: No OFD packet to send [02:45:24]OFD Sender: No OFD packet to send [02:45:29]OFD Sender: No OFD packet to send [02:45:34]OFD Sender: No OFD packet to send [02:45:39]OFD Sender: No OFD packet to send [02:45:44]OFD Sender: No OFD packet to send [02:45:49]OFD Sender: No OFD packet to send [02:45:54]OFD Sender: No OFD packet to send [02:45:59]OFD Sender: No OFD packet to send [02:46:04]OFD Sender: No OFD packet to send [02:46:09]OFD Sender: No OFD packet to send [02:46:14]OFD Sender: No OFD packet to send [02:46:19]OFD Sender: No OFD packet to send [02:46:24]OFD Sender: No OFD packet to send [02:46:29]OFD Sender: No OFD packet to send [02:46:34]OFD Sender: No OFD packet to send [02:46:39]OFD Sender: No OFD packet to send [02:46:44]OFD Sender: No OFD packet to send [02:46:49]OFD Sender: No OFD packet to send [02:46:54]OFD Sender: No OFD packet to send [02:46:59]OFD Sender: No OFD packet to send [02:47:04]OFD Sender: No OFD packet to send [02:47:09]OFD Sender: No OFD packet to send [02:47:14]OFD Sender: No OFD packet to send [02:47:19]OFD Sender: No OFD packet to send [02:47:24]OFD Sender: No OFD packet to send [02:47:29]OFD Sender: No OFD packet to send [02:47:34]OFD Sender: No OFD packet to send [02:47:39]OFD Sender: No OFD packet to send [02:47:44]OFD Sender: No OFD packet to send [02:47:49]OFD Sender: No OFD packet to send [02:47:54]OFD Sender: No OFD packet to send [02:47:59]OFD Sender: No OFD packet to send [02:48:04]OFD Sender: No OFD packet to send [02:48:09]OFD Sender: No OFD packet to send [02:48:14]OFD Sender: No OFD packet to send [02:48:19]OFD Sender: No OFD packet to send [02:48:24]OFD Sender: No OFD packet to send [02:48:29]OFD Sender: No OFD packet to send [02:48:34]OFD Sender: No OFD packet to send [02:48:39]OFD Sender: No OFD packet to send [02:48:44]OFD Sender: No OFD packet to send [02:48:49]OFD Sender: No OFD packet to send [02:48:54]OFD Sender: No OFD packet to send [02:48:59]OFD Sender: No OFD packet to send [02:49:04]OFD Sender: No OFD packet to send [02:49:09]OFD Sender: No OFD packet to send [02:49:14]OFD Sender: No OFD packet to send [02:49:19]OFD Sender: No OFD packet to send [02:49:24]OFD Sender: No OFD packet to send [02:49:29]OFD Sender: No OFD packet to send [02:49:34]OFD Sender: No OFD packet to send [02:49:39]OFD Sender: No OFD packet to send [02:49:44]OFD Sender: No OFD packet to send [02:49:49]OFD Sender: No OFD packet to send [02:49:54]OFD Sender: No OFD packet to send [02:49:59]OFD Sender: No OFD packet to send [02:50:04]OFD Sender: No OFD packet to send [02:50:09]OFD Sender: No OFD packet to send [02:50:14]OFD Sender: No OFD packet to send [02:50:19]OFD Sender: No OFD packet to send [02:50:24]OFD Sender: No OFD packet to send [02:50:29]OFD Sender: No OFD packet to send [02:50:34]OFD Sender: No OFD packet to send [02:50:39]OFD Sender: No OFD packet to send [02:50:44]OFD Sender: No OFD packet to send [02:50:49]OFD Sender: No OFD packet to send [02:50:54]OFD Sender: No OFD packet to send [02:50:59]OFD Sender: No OFD packet to send [02:51:04]OFD Sender: No OFD packet to send [02:51:09]OFD Sender: No OFD packet to send [02:51:14]OFD Sender: No OFD packet to send [02:51:19]OFD Sender: No OFD packet to send [02:51:24]OFD Sender: No OFD packet to send [02:51:29]OFD Sender: No OFD packet to send [02:51:34]OFD Sender: No OFD packet to send [02:51:39]OFD Sender: No OFD packet to send [02:51:44]OFD Sender: No OFD packet to send [02:51:49]OFD Sender: No OFD packet to send [02:51:54]OFD Sender: No OFD packet to send [02:51:59]OFD Sender: No OFD packet to send [02:52:04]OFD Sender: No OFD packet to send [02:52:09]OFD Sender: No OFD packet to send [02:52:14]OFD Sender: No OFD packet to send [02:52:19]OFD Sender: No OFD packet to send [02:52:24]OFD Sender: No OFD packet to send [02:52:29]OFD Sender: No OFD packet to send [02:52:34]OFD Sender: No OFD packet to send [02:52:39]OFD Sender: No OFD packet to send [02:52:44]OFD Sender: No OFD packet to send [02:52:49]OFD Sender: No OFD packet to send [02:52:54]OFD Sender: No OFD packet to send [02:52:59]OFD Sender: No OFD packet to send [02:53:04]OFD Sender: No OFD packet to send [02:53:09]OFD Sender: No OFD packet to send [02:53:14]OFD Sender: No OFD packet to send [02:53:19]OFD Sender: No OFD packet to send [02:53:24]OFD Sender: No OFD packet to send [02:53:29]OFD Sender: No OFD packet to send [02:53:34]OFD Sender: No OFD packet to send [02:53:39]OFD Sender: No OFD packet to send [02:53:44]OFD Sender: No OFD packet to send [02:53:49]OFD Sender: No OFD packet to send [02:53:54]OFD Sender: No OFD packet to send [02:53:59]OFD Sender: No OFD packet to send [02:54:04]OFD Sender: No OFD packet to send [02:54:09]OFD Sender: No OFD packet to send [02:54:14]OFD Sender: No OFD packet to send [02:54:19]OFD Sender: No OFD packet to send [02:54:24]OFD Sender: No OFD packet to send [02:54:29]OFD Sender: No OFD packet to send [02:54:34]OFD Sender: No OFD packet to send [02:54:39]OFD Sender: No OFD packet to send [02:54:44]OFD Sender: No OFD packet to send [02:54:49]OFD Sender: No OFD packet to send [02:54:54]OFD Sender: No OFD packet to send [02:54:59]OFD Sender: No OFD packet to send [02:55:04]OFD Sender: No OFD packet to send [02:55:09]OFD Sender: No OFD packet to send [02:55:14]OFD Sender: No OFD packet to send [02:55:19]OFD Sender: No OFD packet to send [02:55:24]OFD Sender: No OFD packet to send [02:55:29]OFD Sender: No OFD packet to send [02:55:34]OFD Sender: No OFD packet to send [02:55:39]OFD Sender: No OFD packet to send [02:55:44]OFD Sender: No OFD packet to send [02:55:49]OFD Sender: No OFD packet to send [02:55:54]OFD Sender: No OFD packet to send [02:55:59]OFD Sender: No OFD packet to send [02:56:04]OFD Sender: No OFD packet to send [02:56:09]OFD Sender: No OFD packet to send [02:56:14]OFD Sender: No OFD packet to send [02:56:19]OFD Sender: No OFD packet to send [02:56:24]OFD Sender: No OFD packet to send [02:56:29]OFD Sender: No OFD packet to send [02:56:34]OFD Sender: No OFD packet to send [02:56:39]OFD Sender: No OFD packet to send [02:56:44]OFD Sender: No OFD packet to send [02:56:49]OFD Sender: No OFD packet to send [02:56:54]OFD Sender: No OFD packet to send [02:56:59]OFD Sender: No OFD packet to send [02:57:04]OFD Sender: No OFD packet to send [02:57:09]OFD Sender: No OFD packet to send [02:57:14]OFD Sender: No OFD packet to send [02:57:19]OFD Sender: No OFD packet to send [02:57:24]OFD Sender: No OFD packet to send [02:57:29]OFD Sender: No OFD packet to send [02:57:34]OFD Sender: No OFD packet to send [02:57:39]OFD Sender: No OFD packet to send [02:57:44]OFD Sender: No OFD packet to send [02:57:49]OFD Sender: No OFD packet to send [02:57:54]OFD Sender: No OFD packet to send [02:57:59]OFD Sender: No OFD packet to send [02:58:04]OFD Sender: No OFD packet to send [02:58:09]OFD Sender: No OFD packet to send [02:58:14]OFD Sender: No OFD packet to send [02:58:19]OFD Sender: No OFD packet to send [02:58:24]OFD Sender: No OFD packet to send [02:58:29]OFD Sender: No OFD packet to send [02:58:34]OFD Sender: No OFD packet to send [02:58:39]OFD Sender: No OFD packet to send [02:58:44]OFD Sender: No OFD packet to send [02:58:49]OFD Sender: No OFD packet to send [02:58:54]OFD Sender: No OFD packet to send [02:58:59]OFD Sender: No OFD packet to send [02:59:04]OFD Sender: No OFD packet to send [02:59:09]OFD Sender: No OFD packet to send [02:59:14]OFD Sender: No OFD packet to send [02:59:19]OFD Sender: No OFD packet to send [02:59:24]OFD Sender: No OFD packet to send [02:59:29]OFD Sender: No OFD packet to send [02:59:34]OFD Sender: No OFD packet to send [02:59:39]OFD Sender: No OFD packet to send [02:59:44]OFD Sender: No OFD packet to send [02:59:49]OFD Sender: No OFD packet to send [02:59:54]OFD Sender: No OFD packet to send [02:59:59]OFD Sender: No OFD packet to send [03:00:04]OFD Sender: No OFD packet to send [03:00:09]OFD Sender: No OFD packet to send [03:00:14]OFD Sender: No OFD packet to send [03:00:19]OFD Sender: No OFD packet to send [03:00:24]OFD Sender: No OFD packet to send [03:00:29]OFD Sender: No OFD packet to send [03:00:34]OFD Sender: No OFD packet to send